blob: 9b68928ba84ed3d2fb83ae703dc74c4bba25a148 (
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
|
(* $Id$ *)
(*********************************************************)
(* Or and Exist in Type *)
(* *)
(*********************************************************)
(**********)
Inductive sumboolT [A,B:Prop]:Type:=
leftT : A->(sumboolT A B)
|rightT: B->(sumboolT A B).
(**********)
Inductive sumorT [A:Type;B:Prop]:Type:=
inleftT : A->(sumorT A B)
|inrightT: B->(sumorT A B).
(**********)
Inductive sigT [A:Set;P:A->Prop]:Type:=
existT: (x:A)(P x)->(sigT A P).
(**********)
Inductive sigTT [A:Type;P:A->Prop]:Type:=
existTT: (x:A)(P x)->(sigTT A P).
|