Compare commits

...

1 Commits

Author SHA1 Message Date
Leonardo de Moura
8965f1709f chore: missing instances
cc @shigoel
2024-06-17 13:00:00 -07:00
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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