blob: 651247937db0e75078961497c3cbc72ef765b955 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
Module Att.
#[uniform] Inductive list (A : Type) :=
| nil : list
| cons : A -> list -> list.
Check (list : Type -> Type).
Check (cons : forall A, A -> list A -> list A).
End Att.
Set Uniform Inductive Parameters.
Inductive list (A : Type) :=
| nil : list
| cons : A -> list -> list.
Check (list : Type -> Type).
Check (cons : forall A, A -> list A -> list A).
Inductive list2 (A : Type) (A' := prod A A) :=
| nil2 : list2
| cons2 : A' -> list2 -> list2.
Check (list2 : Type -> Type).
Check (cons2 : forall A (A' := prod A A), A' -> list2 A -> list2 A).
#[nonuniform] Inductive bla (n:nat) := c (_ : bla (S n)).
|