Skip to content

Commit

Permalink
feat: fix alex's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bollu committed Jan 22, 2024
1 parent 0ab7f5a commit 2d1d03d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SSA/Projects/InstCombine/AliveHandwrittenExamples.lean
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,13 @@ theorem alive_DivRemOfSelect (w : Nat) :
LLVM.const?, LLVM.icmp?,
HVector.toTuple, List.nthLe, bitvec_minus_one]
intro y x c
simp [Option.bind, bind, Monad.toBind]
simp only [List.length_singleton, Fin.zero_eta, List.get_cons_zero, List.map_eq_map, List.map_cons,
List.map_nil, CharP.cast_eq_zero, Ctxt.Valuation.snoc_last, pairBind, bind, Option.bind, Int.ofNat_eq_coe]
clear Γv
cases c
-- | select condition is itself `none`, nothing more to be done. propagate the `none`.
. case none => cases x <;> cases y <;> simp
. case some cond =>
case none => cases x <;> cases y <;> simp
case some cond =>
obtain ⟨vcond, hcond⟩ := cond
obtain (h | h) : vcond = 1 ∨ vcond = 0 := by
norm_num at hcond
Expand Down

0 comments on commit 2d1d03d

Please sign in to comment.