]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/library/logic/connectives.ma
huge commit in automation:
[helm.git] / helm / software / matita / library / logic / connectives.ma
index 4cbea3529a7ec983b39f814f1243f1a5f92568ab..832d1a531fee7a18ee64c1de57997af27a867f15 100644 (file)
@@ -12,8 +12,6 @@
 (*                                                                        *)
 (**************************************************************************)
 
-set "baseuri" "cic:/matita/logic/connectives/".
-
 inductive True: Prop \def
 I : True.
 
@@ -26,8 +24,7 @@ default "false" cic:/matita/logic/connectives/False.ind.
 definition Not: Prop \to Prop \def
 \lambda A. (A \to False).
 
-(*CSC: the URI must disappear: there is a bug now *)
-interpretation "logical not" 'not x = (cic:/matita/logic/connectives/Not.con x).
+interpretation "logical not" 'not x = (Not x).
 
 theorem absurd : \forall A,C:Prop. A \to \lnot A \to C.
 intros. elim (H1 H).
@@ -38,8 +35,7 @@ default "absurd" cic:/matita/logic/connectives/absurd.con.
 inductive And (A,B:Prop) : Prop \def
     conj : A \to B \to (And A B).
 
-(*CSC: the URI must disappear: there is a bug now *)
-interpretation "logical and" 'and x y = (cic:/matita/logic/connectives/And.ind#xpointer(1/1) x y).
+interpretation "logical and" 'and x y = (And x y).
 
 theorem proj1: \forall A,B:Prop. A \land B \to A.
 intros. elim H. assumption.
@@ -53,9 +49,7 @@ inductive Or (A,B:Prop) : Prop \def
      or_introl : A \to (Or A B)
    | or_intror : B \to (Or A B).
 
-(*CSC: the URI must disappear: there is a bug now *)
-interpretation "logical or" 'or x y =
-  (cic:/matita/logic/connectives/Or.ind#xpointer(1/1) x y).
+interpretation "logical or" 'or x y = (Or x y).
 
 theorem Or_ind':
  \forall A,B:Prop.
@@ -75,16 +69,10 @@ definition decidable : Prop \to Prop \def \lambda A:Prop. A \lor \lnot A.
 inductive ex (A:Type) (P:A \to Prop) : Prop \def
     ex_intro: \forall x:A. P x \to ex A P.
 
-(*CSC: the URI must disappear: there is a bug now *)
-interpretation "exists" 'exists \eta.x =
-  (cic:/matita/logic/connectives/ex.ind#xpointer(1/1) _ x).
-
-notation < "hvbox(\exists ident i opt (: ty) break . p)"
-  right associative with precedence 20
-for @{ 'exists ${default
-  @{\lambda ${ident i} : $ty. $p)}
-  @{\lambda ${ident i} . $p}}}.
+interpretation "exists" 'exists \eta.x = (ex _ x).
 
 inductive ex2 (A:Type) (P,Q:A \to Prop) : Prop \def
     ex_intro2: \forall x:A. P x \to Q x \to ex2 A P Q.
 
+definition iff :=
+ \lambda A,B. (A -> B) \land (B -> A).