2014-06-18 20:55:48 +00:00
|
|
|
inductive tree.{u} (A : Type.{u}) : Type.{max u 1} :=
|
2015-02-26 01:00:10 +00:00
|
|
|
| node : A → forest.{u} A → tree.{u} A
|
2014-10-14 03:48:23 +00:00
|
|
|
with forest : Type.{max u 1} :=
|
2015-02-26 01:00:10 +00:00
|
|
|
| nil : forest.{u} A
|
|
|
|
| cons : tree.{u} A → forest.{u} A → forest.{u} A
|
2014-06-18 20:55:48 +00:00
|
|
|
|
|
|
|
check tree.{1}
|
|
|
|
check forest.{1}
|
2014-09-04 22:03:59 +00:00
|
|
|
check tree.rec.{1 1}
|
|
|
|
check forest.rec.{1 1}
|