X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fdama%2Fconstructive_connectives.ma;h=8518d7ede45f0a68a07586f79ef1bccf4b219625;hb=515b66b082bf6e1553d1aa75ba632b99a4d88e27;hp=461f90e6dd66ef507029de1e0494ecb0859097c0;hpb=f1a90ee8745c3fa5324e7a7e8c2f8398483c1ff6;p=helm.git diff --git a/helm/software/matita/dama/constructive_connectives.ma b/helm/software/matita/dama/constructive_connectives.ma index 461f90e6d..8518d7ede 100644 --- a/helm/software/matita/dama/constructive_connectives.ma +++ b/helm/software/matita/dama/constructive_connectives.ma @@ -14,21 +14,40 @@ set "baseuri" "cic:/matita/constructive_connectives/". -inductive or (A,B:Type) : Type \def - Left : A → or A B - | Right : B → or A B. +inductive Or (A,B:Type) : Type ≝ + Left : A → Or A B + | Right : B → Or A B. interpretation "constructive or" 'or x y = - (cic:/matita/constructive_connectives/or.ind#xpointer(1/1) x y). + (cic:/matita/constructive_connectives/Or.ind#xpointer(1/1) x y). -inductive ex (A:Type) (P:A→Prop) : Type \def +inductive And (A,B:Type) : Type ≝ + | Conj : A → B → And A B. + +interpretation "constructive and" 'and x y = + (cic:/matita/constructive_connectives/And.ind#xpointer(1/1) x y). + +inductive exT (A:Type) (P:A→Type) : Type ≝ + ex_introT: ∀w:A. P w → exT A P. + +inductive ex (A:Type) (P:A→Prop) : Type ≝ ex_intro: ∀w:A. P w → ex A P. +(* notation < "hvbox(Σ ident i opt (: ty) break . p)" right associative with precedence 20 -for @{ 'exists ${default +for @{ 'sigma ${default @{\lambda ${ident i} : $ty. $p)} @{\lambda ${ident i} . $p}}}. +*) + +interpretation "constructive exists" 'exists \eta.x = + (cic:/matita/constructive_connectives/ex.ind#xpointer(1/1) _ x). +interpretation "constructive exists (Type)" 'exists \eta.x = + (cic:/matita/constructive_connectives/exT.ind#xpointer(1/1) _ x). + +alias id "False" = "cic:/matita/logic/connectives/False.ind#xpointer(1/1)". +definition Not ≝ λx:Type.x → False. -interpretation "constructive exists" 'sigma \eta.x = - (cic:/matita/constructive_connectives/ex.ind#xpointer(1/1) _ x). \ No newline at end of file +interpretation "constructive not" 'not x = + (cic:/matita/constructive_connectives/Not.con x).