Skip to content

Commit

Permalink
Update name of getLsb_cons to getLsbD_cons
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaz1502 committed Nov 14, 2024
1 parent 8bc677e commit 877ee4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Smt/Reconstruct/BitVec.lean
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def reconstructRewrite (pf : cvc5.Proof) : ReconstructM (Option Expr) := do
let h : Q(decide (BitVec.beq $x $y) = decide $p) ← Meta.mkFreshExprMVar q(decide (BitVec.beq $x $y) = @decide $p $hp)
let mv ← Bool.boolify h.mvarId!
let ds := [``BitVec.beq, ``BitVec.beq.go]
let ts := [``BitVec.getLsb_cons, ``Nat.succ.injEq]
let ts := [``BitVec.getLsbD_cons, ``Nat.succ.injEq]
let ps := [``Nat.reduceAdd, ``Nat.reduceSub, ``Nat.reduceEqDiff, ``reduceIte]
let simpTheorems ← ds.foldrM (fun n a => a.addDeclToUnfold n) {}
let simpTheorems ← ts.foldrM (fun n a => a.addConst n) simpTheorems
Expand All @@ -290,7 +290,7 @@ def reconstructRewrite (pf : cvc5.Proof) : ReconstructM (Option Expr) := do
let h : Q((BitVec.adc' $x $y false).snd = $z) ← Meta.mkFreshExprMVar q((BitVec.adc' $x $y false).snd = $z)
let mv ← Bool.boolify h.mvarId!
let ds := [``BitVec.adc', ``BitVec.adcb', ``BitVec.iunfoldr, ``Fin.hIterate, ``Fin.hIterateFrom]
let ts := [``BitVec.getLsb_cons, ``Nat.succ.injEq]
let ts := [``BitVec.getLsbD_cons, ``Nat.succ.injEq]
let ps := [``Nat.reduceAdd, ``Nat.reduceLT, ``reduceDIte, ``reduceIte]
let simpTheorems ← ds.foldrM (fun n a => a.addDeclToUnfold n) {}
let simpTheorems ← ts.foldrM (fun n a => a.addConst n) simpTheorems
Expand Down

0 comments on commit 877ee4a

Please sign in to comment.