aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/success/indelim.v
blob: a962c29f4480f1b65786ebb32064806c38f79292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Inductive boolP : Prop :=
| trueP : boolP
| falseP : boolP.

Fail Check boolP_rect.


Inductive True : Prop := I : True.

Inductive False : Prop :=.

Inductive Empty_set : Set :=.

Fail Inductive Large_set : Set :=
  large_constr : forall A : Set, A -> Large_set.

Inductive smallunitProp : Prop :=
| onlyProps : True -> smallunitProp.

Check smallunitProp_rect.

Inductive nonsmallunitProp : Prop :=
| notonlyProps : nat -> nonsmallunitProp.

Fail Check nonsmallunitProp_rect.
Set Printing Universes.
Inductive inferProp :=
| hasonlyProps : True -> nonsmallunitProp -> inferProp.

Check (inferProp : Prop).

Inductive inferSet :=
| hasaset : nat -> True -> nonsmallunitProp -> inferSet.

Fail Check (inferSet : Prop).

Check (inferSet : Set).

Inductive inferLargeSet :=
| hasalargeset : Set -> True -> nonsmallunitProp -> inferLargeSet.

Fail Check (inferLargeSet : Set).

Inductive largeProp : Prop := somelargeprop : Set -> largeProp.


Inductive comparison : Set :=
  | Eq : comparison
  | Lt : comparison
  | Gt : comparison.

Inductive CompareSpecT (Peq Plt Pgt : Prop) : comparison -> Type :=
 | CompEqT : Peq -> CompareSpecT Peq Plt Pgt Eq
 | CompLtT : Plt -> CompareSpecT Peq Plt Pgt Lt
 | CompGtT : Pgt -> CompareSpecT Peq Plt Pgt Gt.

Inductive color := Red | Black.

Inductive option (A : Type) : Type :=
| None : option A
| Some : A -> option A.