Skip to content
Snippets Groups Projects
Commit 587a5d1a authored by Luke Naylor's avatar Luke Naylor
Browse files

Use walrus op in asserts to keep track of alternative exprs pt 2

parent 88a7c303
No related branches found
No related tags found
No related merge requests found
......@@ -461,11 +461,19 @@ bgmlv3_d_upperbound_exp_term = (
# Verify the simplified forms of the terms that will be mentioned in text
var("chbv",domain="real") # symbol to represent ch_1^\beta(v)
assert bgmlv3_d_upperbound_const_term == (
bgmlv3_d_upperbound_const_term_alt1 :=
v.twist(beta_min).ch[2]
+ beta_min*q
).expand()
(
# keep hold of this alternative expression:
bgmlv3_d_upperbound_const_term_alt1 := (
chbv
+ beta_min*q
)
)
.subs(chbv == v.twist(beta_min).ch[2]) # subs real val of ch_1^\beta(v)
.expand()
)
assert bgmlv3_d_upperbound_exp_term == (
bgmlv3_d_upperbound_const_term_alt2 :=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment