From 2a990279a83acb9736bbaaf3d978bc4ae994880b Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Tue, 20 Sep 2005 15:31:01 +0000 Subject: [PATCH] added non-builtin notation for exists actually, the parsing rules is built-in, while the pretty priting one is not --- helm/matita/library/logic/connectives.ma | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/helm/matita/library/logic/connectives.ma b/helm/matita/library/logic/connectives.ma index 6437bd132..15b1cfe10 100644 --- a/helm/matita/library/logic/connectives.ma +++ b/helm/matita/library/logic/connectives.ma @@ -54,7 +54,8 @@ inductive Or (A,B:Prop) : Prop \def | 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 = + (cic:/matita/logic/connectives/Or.ind#xpointer(1/1) x y). definition decidable : Prop \to Prop \def \lambda A:Prop. A \lor \not A. @@ -62,7 +63,15 @@ 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 x y = (cic:/matita/logic/connectives/ex.ind#xpointer(1/1) x y). +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}}}. 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. + -- 2.39.2