2014-06-18 20:55:48 +00:00
|
|
|
inductive tree (A : Type) : Type :=
|
|
|
|
| node : A → forest A → tree A
|
2014-06-28 22:33:56 +00:00
|
|
|
with forest (A : Type) : Type :=
|
2014-06-18 20:55:48 +00:00
|
|
|
| nil : forest A
|
|
|
|
| cons : tree A → forest A → forest A
|
|
|
|
|
|
|
|
check tree.{1}
|
|
|
|
check forest.{1}
|
|
|
|
check tree_rec.{1 1}
|
|
|
|
check forest_rec.{1 1}
|
|
|
|
|
|
|
|
print "==============="
|
|
|
|
|
|
|
|
inductive group : Type :=
|
|
|
|
| mk_group : Π (carrier : Type) (mul : carrier → carrier → carrier) (one : carrier), group
|
|
|
|
|
|
|
|
check group.{1}
|
|
|
|
check group.{2}
|
|
|
|
check group_rec.{1 1}
|