move SomeTerm stuff
This commit is contained in:
parent
65e45dcc79
commit
81fc802fa8
2 changed files with 24 additions and 24 deletions
|
@ -15,30 +15,6 @@ import Data.SortedMap
|
||||||
%default total
|
%default total
|
||||||
|
|
||||||
|
|
||||||
public export Exists2 : (ty1 -> ty2 -> Type) -> Type
|
|
||||||
Exists2 t = Exists (\a => Exists (\b => t a b))
|
|
||||||
|
|
||||||
parameters {0 t : ty -> Type}
|
|
||||||
private %inline some : t a -> Exists t
|
|
||||||
some t = Evidence _ t
|
|
||||||
|
|
||||||
parameters {0 t : ty1 -> ty2 -> Type}
|
|
||||||
private %inline some2 : t a b -> Exists2 t
|
|
||||||
some2 t = some $ some t
|
|
||||||
|
|
||||||
||| A term of some unknown scope sizes.
|
|
||||||
public export SomeTerm : Type
|
|
||||||
SomeTerm = Exists2 Term
|
|
||||||
|
|
||||||
||| An elimination of some unknown scope sizes.
|
|
||||||
public export SomeElim : Type
|
|
||||||
SomeElim = Exists2 Elim
|
|
||||||
|
|
||||||
||| A dimension of some unknown scope size.
|
|
||||||
public export SomeDim : Type
|
|
||||||
SomeDim = Exists Dim
|
|
||||||
|
|
||||||
|
|
||||||
public export
|
public export
|
||||||
record Global where
|
record Global where
|
||||||
constructor G
|
constructor G
|
||||||
|
|
|
@ -368,3 +368,27 @@ parameters {auto _ : Alternative f}
|
||||||
export
|
export
|
||||||
step' : Elim d n -> Elim d n
|
step' : Elim d n -> Elim d n
|
||||||
step' e = fromMaybe e $ step e
|
step' e = fromMaybe e $ step e
|
||||||
|
|
||||||
|
|
||||||
|
public export Exists2 : (ty1 -> ty2 -> Type) -> Type
|
||||||
|
Exists2 t = Exists (\a => Exists (\b => t a b))
|
||||||
|
|
||||||
|
parameters {0 t : ty -> Type}
|
||||||
|
public export %inline some : t a -> Exists t
|
||||||
|
some t = Evidence _ t
|
||||||
|
|
||||||
|
parameters {0 t : ty1 -> ty2 -> Type}
|
||||||
|
public export %inline some2 : t a b -> Exists2 t
|
||||||
|
some2 t = some $ some t
|
||||||
|
|
||||||
|
||| A term of some unknown scope sizes.
|
||||||
|
public export SomeTerm : Type
|
||||||
|
SomeTerm = Exists2 Term
|
||||||
|
|
||||||
|
||| An elimination of some unknown scope sizes.
|
||||||
|
public export SomeElim : Type
|
||||||
|
SomeElim = Exists2 Elim
|
||||||
|
|
||||||
|
||| A dimension of some unknown scope size.
|
||||||
|
public export SomeDim : Type
|
||||||
|
SomeDim = Exists Dim
|
||||||
|
|
Loading…
Reference in a new issue