2014-01-01 21:52:25 +00:00
|
|
|
Import Int.
|
2013-09-08 02:40:40 +00:00
|
|
|
Variable list : Type -> Type
|
|
|
|
Variable nil {A : Type} : list A
|
|
|
|
Variable cons {A : Type} (head : A) (tail : list A) : list A
|
|
|
|
Definition n1 : list Int := cons (nat_to_int 10) nil
|
|
|
|
Definition n2 : list Nat := cons 10 nil
|
|
|
|
Definition n3 : list Int := cons 10 nil
|
|
|
|
Definition n4 : list Int := nil
|
|
|
|
Definition n5 : _ := cons 10 nil
|
|
|
|
|
2013-12-19 05:18:45 +00:00
|
|
|
SetOption pp::coercion true
|
|
|
|
SetOption pp::implicit true
|
2014-01-05 19:03:35 +00:00
|
|
|
print Environment 1.
|