chore: missing instances (#4479)

cc @shigoel
This commit is contained in:
Leonardo de Moura 2024-06-17 22:14:00 +02:00 committed by GitHub
parent 59a09fb4e7
commit 06731f99d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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