2014-06-18 13:55:48 -07:00
|
|
|
namespace list
|
|
|
|
inductive list (A : Type) : Type :=
|
2014-08-22 15:46:10 -07:00
|
|
|
nil : list A,
|
|
|
|
cons : A → list A → list A
|
2014-06-18 13:55:48 -07:00
|
|
|
|
|
|
|
check list.{1}
|
2014-09-04 16:36:06 -07:00
|
|
|
check list.cons.{1}
|
2014-09-04 15:03:59 -07:00
|
|
|
check list.rec.{1 1}
|
2014-08-07 16:59:08 -07:00
|
|
|
end list
|
2014-06-18 13:55:48 -07:00
|
|
|
|
|
|
|
check list.list.{1}
|