2013-12-19 23:15:32 +00:00
|
|
|
Definition id (A : Type) : (Type U) := A.
|
2013-10-15 22:35:08 +00:00
|
|
|
Variable p : (Int -> Int) -> Bool.
|
|
|
|
Check fun (x : id Int), x.
|
|
|
|
Variable f : (id Int) -> (id Int).
|
|
|
|
Check p f.
|
|
|
|
|
2013-12-19 23:15:32 +00:00
|
|
|
Definition c (A : (Type 3)) : (Type 3) := (Type 1).
|
2013-10-15 22:35:08 +00:00
|
|
|
Variable g : (c (Type 2)) -> Bool.
|
|
|
|
Variable a : (c (Type 1)).
|
|
|
|
Check g a.
|
|
|
|
|
2013-12-19 23:15:32 +00:00
|
|
|
Definition c2 {T : Type} (A : (Type 3)) (a : T) : (Type 3) := (Type 1)
|
2013-10-15 22:35:08 +00:00
|
|
|
Variable b : Int
|
2013-12-22 01:02:16 +00:00
|
|
|
Check @c2
|
2013-10-15 22:35:08 +00:00
|
|
|
Variable g2 : (c2 (Type 2) b) -> Bool
|
|
|
|
Check g2
|
|
|
|
Variable a2 : (c2 (Type 1) b).
|
|
|
|
Check g2 a2
|
|
|
|
Check fun x : (c2 (Type 1) b), g2 x
|