2014-06-18 20:55:48 +00:00
|
|
|
namespace list
|
|
|
|
inductive list (A : Type) : Type :=
|
2014-08-22 22:46:10 +00:00
|
|
|
nil : list A,
|
|
|
|
cons : A → list A → list A
|
2014-06-18 20:55:48 +00:00
|
|
|
|
|
|
|
check list.{1}
|
|
|
|
check cons.{1}
|
|
|
|
check list_rec.{1 1}
|
2014-08-07 23:59:08 +00:00
|
|
|
end list
|
2014-06-18 20:55:48 +00:00
|
|
|
|
|
|
|
check list.list.{1}
|