Skip to content

Commit

Permalink
chore: missing instances (#4479)
Browse files Browse the repository at this point in the history
  • Loading branch information
leodemoura authored Jun 17, 2024
1 parent 59a09fb commit 06731f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/BitVec.lean
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ structure Literal where
n : Nat
/-- Actual value. -/
value : BitVec n
deriving DecidableEq, Repr

/--
Try to convert `OfNat.ofNat`/`BitVec.OfNat` application into a
Expand Down
1 change: 1 addition & 0 deletions src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Fin.lean
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ open Lean Meta Simp
structure Value where
n : Nat
value : Fin n
deriving DecidableEq, Repr

def fromExpr? (e : Expr) : SimpM (Option Value) := do
let some ⟨n, value⟩ ← getFinValue? e | return none
Expand Down

0 comments on commit 06731f9

Please sign in to comment.