feat(builtin/basic): add TypeM alias
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
1b300d3598
commit
f8b82d854e
8 changed files with 2 additions and 9 deletions
|
@ -1,5 +1,7 @@
|
||||||
Import macros
|
Import macros
|
||||||
|
|
||||||
Definition TypeU := (Type U)
|
Definition TypeU := (Type U)
|
||||||
|
Definition TypeM := (Type M)
|
||||||
|
|
||||||
Definition SubstP {A : TypeU} {a b : A} (P : A → Bool) (H1 : P a) (H2 : a == b) : P b
|
Definition SubstP {A : TypeU} {a b : A} (P : A → Bool) (H1 : P a) (H2 : a == b) : P b
|
||||||
:= Subst H1 H2.
|
:= Subst H1 H2.
|
||||||
|
|
Binary file not shown.
|
@ -1,8 +1,6 @@
|
||||||
Import cast
|
Import cast
|
||||||
SetOption pp::colors false
|
SetOption pp::colors false
|
||||||
|
|
||||||
Definition TypeM := (Type M)
|
|
||||||
|
|
||||||
Check fun (A A': TypeM)
|
Check fun (A A': TypeM)
|
||||||
(B : A -> TypeM)
|
(B : A -> TypeM)
|
||||||
(B' : A' -> TypeM)
|
(B' : A' -> TypeM)
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
Set: pp::unicode
|
Set: pp::unicode
|
||||||
Imported 'cast'
|
Imported 'cast'
|
||||||
Set: pp::colors
|
Set: pp::colors
|
||||||
Defined: TypeM
|
|
||||||
λ (A A' : TypeM)
|
λ (A A' : TypeM)
|
||||||
(B : A → TypeM)
|
(B : A → TypeM)
|
||||||
(B' : A' → TypeM)
|
(B' : A' → TypeM)
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
Import cast
|
Import cast
|
||||||
SetOption pp::colors false
|
SetOption pp::colors false
|
||||||
|
|
||||||
Definition TypeM := (Type M)
|
|
||||||
|
|
||||||
Check fun (A A': TypeM)
|
Check fun (A A': TypeM)
|
||||||
(a : A)
|
(a : A)
|
||||||
(b : A')
|
(b : A')
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
Set: pp::unicode
|
Set: pp::unicode
|
||||||
Imported 'cast'
|
Imported 'cast'
|
||||||
Set: pp::colors
|
Set: pp::colors
|
||||||
Defined: TypeM
|
|
||||||
λ (A A' : TypeM) (a : A) (b : A') (L2 : A' == A), let b' : A := cast L2 b, L3 : b == b' := CastEq L2 b in L3 :
|
λ (A A' : TypeM) (a : A) (b : A') (L2 : A' == A), let b' : A := cast L2 b, L3 : b == b' := CastEq L2 b in L3 :
|
||||||
Π (A A' : TypeM) (a : A) (b : A') (L2 : A' == A), b == cast L2 b
|
Π (A A' : TypeM) (a : A) (b : A') (L2 : A' == A), b == cast L2 b
|
||||||
λ (A A' : TypeM)
|
λ (A A' : TypeM)
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
Import cast
|
Import cast
|
||||||
SetOption pp::colors false
|
SetOption pp::colors false
|
||||||
|
|
||||||
Definition TypeM := (Type M)
|
|
||||||
|
|
||||||
Check fun (A A': TypeM)
|
Check fun (A A': TypeM)
|
||||||
(a : A)
|
(a : A)
|
||||||
(b : A')
|
(b : A')
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
Set: pp::unicode
|
Set: pp::unicode
|
||||||
Imported 'cast'
|
Imported 'cast'
|
||||||
Set: pp::colors
|
Set: pp::colors
|
||||||
Defined: TypeM
|
|
||||||
λ (A A' : TypeM) (a : A) (b : A') (L2 : A' == A), let b' : A := cast L2 b, L3 : b == b' := CastEq L2 b in L3 :
|
λ (A A' : TypeM) (a : A) (b : A') (L2 : A' == A), let b' : A := cast L2 b, L3 : b == b' := CastEq L2 b in L3 :
|
||||||
Π (A A' : TypeM) (a : A) (b : A') (L2 : A' == A), b == cast L2 b
|
Π (A A' : TypeM) (a : A) (b : A') (L2 : A' == A), b == cast L2 b
|
||||||
λ (A A' : TypeM)
|
λ (A A' : TypeM)
|
||||||
|
|
Loading…
Add table
Reference in a new issue