2014-06-18 20:55:48 +00:00
|
|
|
namespace list
|
|
|
|
inductive list (A : Type) : Type :=
|
2015-02-26 01:00:10 +00:00
|
|
|
| nil : list A
|
|
|
|
| cons : A → list A → list A
|
2014-06-18 20:55:48 +00:00
|
|
|
|
|
|
|
check list.{1}
|
2014-09-04 23:36:06 +00:00
|
|
|
check list.cons.{1}
|
2014-09-04 22:03:59 +00:00
|
|
|
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}
|