]> matita.cs.unibo.it Git - helm.git/blob - matita/library/higher_order_defs/relations.ma
tagged 0.5.0-rc1
[helm.git] / matita / library / higher_order_defs / relations.ma
1 (**************************************************************************)
2 (*       ___                                                                *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||       A.Asperti, C.Sacerdoti Coen,                          *)
8 (*      ||A||       E.Tassi, S.Zacchiroli                                 *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU Lesser General Public License Version 2.1         *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 set "baseuri" "cic:/matita/higher_order_defs/relations/".
16
17 include "logic/connectives.ma".
18
19 definition relation : Type \to Type
20 \def \lambda A:Type.A \to A \to Prop. 
21
22 definition reflexive: \forall A:Type.\forall R :relation A.Prop
23 \def 
24 \lambda A.\lambda R.\forall x:A.R x x.
25
26 definition symmetric: \forall A:Type.\forall R: relation A.Prop
27 \def 
28 \lambda A.\lambda R.\forall x,y:A.R x y \to R y x.
29
30 definition transitive: \forall A:Type.\forall R:relation A.Prop
31 \def 
32 \lambda A.\lambda R.\forall x,y,z:A.R x y \to R y z \to R x z.
33
34 definition irreflexive: \forall A:Type.\forall R:relation A.Prop
35 \def 
36 \lambda A.\lambda R.\forall x:A.\lnot (R x x).
37
38 definition cotransitive: \forall A:Type.\forall R:relation A.Prop
39 \def
40 \lambda A.\lambda R.\forall x,y:A.R x y \to \forall z:A. R x z \lor R z y.
41
42 definition tight_apart: \forall A:Type.\forall eq,ap:relation A.Prop
43 \def 
44 \lambda A.\lambda eq,ap.\forall x,y:A. (\not (ap x y) \to eq x y) \land
45 (eq x y \to \not (ap x y)).
46
47 definition antisymmetric: \forall A:Type.\forall R:relation A.Prop
48 \def 
49 \lambda A.\lambda R.\forall x,y:A. R x y \to \not (R y x).
50
51