]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/contribs/dama/dama/cprop_connectives.ma
exhaustivity defined
[helm.git] / helm / software / matita / contribs / dama / dama / cprop_connectives.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 include "logic/equality.ma".
16
17 inductive Or (A,B:CProp) : CProp ≝
18    Left : A → Or A B
19  | Right : B → Or A B.
20
21 interpretation "constructive or" 'or x y =
22   (cic:/matita/dama/cprop_connectives/Or.ind#xpointer(1/1) x y).
23
24 inductive And (A,B:CProp) : CProp ≝
25  | Conj : A → B → And A B.
26  
27 interpretation "constructive and" 'and x y =
28   (cic:/matita/dama/cprop_connectives/And.ind#xpointer(1/1) x y).
29
30 inductive exT (A:Type) (P:A→CProp) : CProp ≝
31   ex_introT: ∀w:A. P w → exT A P.
32
33 interpretation "CProp exists" 'exists \eta.x =
34   (cic:/matita/dama/cprop_connectives/exT.ind#xpointer(1/1) _ x).
35
36 definition Not : CProp → Prop ≝ λx:CProp.x → False.
37
38 interpretation "constructive not" 'not x = 
39   (cic:/matita/dama/cprop_connectives/Not.con x).
40   
41 definition cotransitive ≝
42  λC:Type.λlt:C→C→CProp.∀x,y,z:C. lt x y → lt x z ∨ lt z y. 
43
44 definition coreflexive ≝ λC:Type.λlt:C→C→CProp. ∀x:C. ¬ (lt x x).
45
46 definition symmetric ≝ λC:Type.λlt:C→C→CProp. ∀x,y:C.lt x y → lt y x.
47
48 definition antisymmetric ≝ λA:Type.λR:A→A→CProp.λeq:A→A→Prop.∀x:A.∀y:A.R x y→R y x→eq x y.
49
50 definition reflexive ≝ λA:Type.λR:A→A→CProp.∀x:A.R x x.
51
52 definition transitive ≝ λA:Type.λR:A→A→CProp.∀x,y,z:A.R x y → R y z → R x z.
53