parent
59a09fb4e7
commit
06731f99d4
2 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue