1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| A.Asperti, C.Sacerdoti Coen, *)
8 (* ||A|| E.Tassi, S.Zacchiroli *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU Lesser General Public License Version 2.1 *)
13 (**************************************************************************)
15 set "baseuri" "cic:/matita/higher_order_defs/relations/".
17 include "logic/connectives.ma".
19 definition relation : Type \to Type
20 \def \lambda A:Type.A \to A \to Prop.
22 definition reflexive: \forall A:Type.\forall R :relation A.Prop
24 \lambda A.\lambda R.\forall x:A.R x x.
26 definition symmetric: \forall A:Type.\forall R: relation A.Prop
28 \lambda A.\lambda R.\forall x,y:A.R x y \to R y x.
30 definition transitive: \forall A:Type.\forall R:relation A.Prop
32 \lambda A.\lambda R.\forall x,y,z:A.R x y \to R y z \to R x z.
34 definition irreflexive: \forall A:Type.\forall R:relation A.Prop
36 \lambda A.\lambda R.\forall x:A.\lnot (R x x).
38 definition cotransitive: \forall A:Type.\forall R:relation A.Prop
40 \lambda A.\lambda R.\forall x,y:A.R x y \to \forall z:A. R x z \lor R z y.
42 definition tight_apart: \forall A:Type.\forall eq,ap:relation A.Prop
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)).
47 definition antisymmetric: \forall A:Type.\forall R:relation A.Prop
49 \lambda A.\lambda R.\forall x,y:A. R x y \to \not (R y x).