remove an (.int). no one likes ints
This commit is contained in:
parent
6c05a348d5
commit
6da33625f8
2 changed files with 4 additions and 8 deletions
|
@ -277,10 +277,14 @@ NotCloTerm d n = Subset (Term d n) $ So . not . isCloT
|
||||||
|
|
||||||
|
|
||||||
mutual
|
mutual
|
||||||
|
||| if the input term has any top-level closures, push them under one layer of
|
||||||
|
||| syntax
|
||||||
export
|
export
|
||||||
pushSubstsT : Term d n -> NotCloTerm d n
|
pushSubstsT : Term d n -> NotCloTerm d n
|
||||||
pushSubstsT s = pushSubstsT' id id s
|
pushSubstsT s = pushSubstsT' id id s
|
||||||
|
|
||||||
|
||| if the input elimination has any top-level closures, push them under one
|
||||||
|
||| layer of syntax
|
||||||
export
|
export
|
||||||
pushSubstsE : Elim d n -> NotCloElim d n
|
pushSubstsE : Elim d n -> NotCloElim d n
|
||||||
pushSubstsE e = pushSubstsE' id id e
|
pushSubstsE e = pushSubstsE' id id e
|
||||||
|
|
|
@ -99,14 +99,6 @@ toFromNat 0 (LTESucc x) = Refl
|
||||||
toFromNat (S k) (LTESucc x) = cong S $ toFromNat k x
|
toFromNat (S k) (LTESucc x) = cong S $ toFromNat k x
|
||||||
|
|
||||||
|
|
||||||
public export
|
|
||||||
(.int) : Var n -> Integer
|
|
||||||
i.int = natToInteger i.nat
|
|
||||||
%builtin NaturalToInteger Var.(.int)
|
|
||||||
|
|
||||||
public export Cast (Var n) Integer where cast i = i.int
|
|
||||||
|
|
||||||
|
|
||||||
-- not using %transform like other things because weakSpec requires the proof
|
-- not using %transform like other things because weakSpec requires the proof
|
||||||
-- to be relevant. but since only `LTESucc` is ever possible that seems
|
-- to be relevant. but since only `LTESucc` is ever possible that seems
|
||||||
-- to be a bug?
|
-- to be a bug?
|
||||||
|
|
Loading…
Reference in a new issue