fix: ToExpr instance for Fin
This commit is contained in:
parent
6d569aa7b5
commit
66be8b9d4c
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ instance : ToExpr (Fin n) where
|
|||
toExpr a :=
|
||||
let r := mkRawNatLit a.val
|
||||
mkApp3 (.const ``OfNat.ofNat [0]) (.app (mkConst ``Fin) (toExpr n)) r
|
||||
(mkApp2 (.const ``Fin.instOfNat []) (mkRawNatLit (n-1)) r)
|
||||
(mkApp2 (.const ``Fin.instOfNat []) (mkNatLit (n-1)) r)
|
||||
|
||||
instance : ToExpr (BitVec n) where
|
||||
toTypeExpr := .app (mkConst ``BitVec) (toExpr n)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue