Skip to content

Commit

Permalink
chore: make proof more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasgrosser committed Apr 29, 2024
1 parent 7180e9b commit 3c60de9
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions SSA/Projects/InstCombine/AliveHandwrittenLargeExamples.lean
Original file line number Diff line number Diff line change
Expand Up @@ -1204,9 +1204,7 @@ def trsa' {A B : BitVec w} (h : BitVec.toNat B < w):
simp
omega
·
rw [Nat.mod_eq_of_lt]
rw [Nat.mod_eq_of_lt]
rw [Nat.mod_eq_of_lt]
repeat (rw [Nat.mod_eq_of_lt])
ring_nf
simp [sn]
simp at h
Expand All @@ -1216,8 +1214,7 @@ def trsa' {A B : BitVec w} (h : BitVec.toNat B < w):
ring_nf
simp [sn]
simp at h
simp only [h]
simp
simp [h]
· simp
ring_nf

Expand All @@ -1237,8 +1234,8 @@ def alive_simplifyMulDivRem290 (w : Nat) :
simp_alive_undef
simp_alive_ops
intros A B
rcases A with none | A <;> simp [Option.bind, Bind.bind] <;>
rcases B with none | B <;> simp [Option.bind, Bind.bind] <;>
rcases A with none | A <;> (try (simp [Option.bind, Bind.bind]; done)) <;>
rcases B with none | B <;> (try (simp [Option.bind, Bind.bind]; done)) <;>
by_cases h : w ≤ BitVec.toNat B <;> simp [h]
rw [trsa]
omega
Expand Down

0 comments on commit 3c60de9

Please sign in to comment.