2014-07-06 23:46:34 +00:00
|
|
|
inductive list (A : Type) : Type :=
|
2014-08-22 22:46:10 +00:00
|
|
|
nil {} : list A,
|
|
|
|
cons : A → list A → list A
|
2014-07-06 23:46:34 +00:00
|
|
|
|
|
|
|
section
|
|
|
|
parameter A : Type
|
|
|
|
inductive list2 : Type :=
|
2014-08-22 22:46:10 +00:00
|
|
|
nil2 {} : list2,
|
|
|
|
cons2 : A → list2 → list2
|
2014-07-06 23:46:34 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
variable num : Type.{1}
|
|
|
|
|
|
|
|
namespace Tree
|
|
|
|
inductive tree (A : Type) : Type :=
|
2014-08-22 22:46:10 +00:00
|
|
|
node : A → forest A → tree A
|
2014-07-06 23:46:34 +00:00
|
|
|
with forest (A : Type) : Type :=
|
2014-08-22 22:46:10 +00:00
|
|
|
nil : forest A,
|
|
|
|
cons : tree A → forest A → forest A
|
2014-08-07 23:59:08 +00:00
|
|
|
end Tree
|
2014-07-06 23:46:34 +00:00
|
|
|
|
|
|
|
inductive group_struct (A : Type) : Type :=
|
2014-08-22 22:46:10 +00:00
|
|
|
mk_group_struct : (A → A → A) → A → group_struct A
|
2014-07-06 23:46:34 +00:00
|
|
|
|
|
|
|
inductive group : Type :=
|
2014-08-22 22:46:10 +00:00
|
|
|
mk_group : Π (A : Type), (A → A → A) → A → group
|
2014-07-06 23:46:34 +00:00
|
|
|
|
|
|
|
section
|
|
|
|
parameter A : Type
|
|
|
|
parameter B : Type
|
|
|
|
inductive pair : Type :=
|
2014-08-22 22:46:10 +00:00
|
|
|
mk_pair : A → B → pair
|
2014-07-06 23:46:34 +00:00
|
|
|
end
|
|
|
|
|
2014-07-22 16:43:18 +00:00
|
|
|
definition Prop [inline] := Type.{0}
|
|
|
|
inductive eq {A : Type} (a : A) : A → Prop :=
|
2014-08-22 22:46:10 +00:00
|
|
|
refl : eq a a
|
2014-07-06 23:46:34 +00:00
|
|
|
|
|
|
|
section
|
|
|
|
parameter {A : Type}
|
2014-07-22 16:43:18 +00:00
|
|
|
inductive eq2 (a : A) : A → Prop :=
|
2014-08-22 22:46:10 +00:00
|
|
|
refl2 : eq2 a a
|
2014-07-06 23:46:34 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
section
|
|
|
|
parameter A : Type
|
|
|
|
parameter B : Type
|
|
|
|
inductive triple (C : Type) : Type :=
|
2014-08-22 22:46:10 +00:00
|
|
|
mk_triple : A → B → C → triple C
|
2014-07-06 23:46:34 +00:00
|
|
|
end
|