Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add missing def to simp set and use full types (prepare for lean 4.9) #326

Merged
merged 2 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SSA/Projects/InstCombine/LLVM/CLITests.lean
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ match ctxt, values with
let valuation' := mkValuation tys valsVec
match ty with
| .bitvec (.concrete w) =>
let newTy : toType (.bitvec (.concrete w)) := Option.map (BitVec.ofInt w) val
let newTy : toType (InstCombine.MTy.bitvec (ConcreteOrMVar.concrete w)) := Option.map (BitVec.ofInt w) val
Ctxt.Valuation.snoc valuation' newTy

def ConcreteCliTest.eval (test : ConcreteCliTest) (values : Vector (Option Int) test.context.length) :
Expand Down
2 changes: 1 addition & 1 deletion SSA/Projects/Scf/ScfFunctor.lean
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ abbrev instHadd : HAdd ⟦ScfFunctor.Arith.Ty.int⟧ ⟦ScfFunctor.Arith.Ty.int
open Scf in
open Arith in
theorem correct : Com.denote (lhs v0) Γv = Com.denote (rhs v0) Γv := by
simp only [lhs, rhs, for_, axpy, cst]
simp only [lhs, rhs, for_, axpy, cst, add]
simp_peephole at Γv
intros A B
simp only [Ctxt.Valuation.snoc, Var.casesOn, Ctxt.get?, Var.zero_eq_last, cast_eq]
Expand Down
Loading