X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fcontribs%2Fformal_topology%2Foverlap%2Fcprop_connectives.ma;h=a1faba399dbce83504ae25a27776a95cecc88936;hb=1470ff47df1349333c6b721a1c162cc7dfc6806f;hp=59473882d6663d8b92ce8de55d31b63124fb7da2;hpb=13114a0147a28f8c7359c9c19ee254716eb5f55a;p=helm.git diff --git a/helm/software/matita/contribs/formal_topology/overlap/cprop_connectives.ma b/helm/software/matita/contribs/formal_topology/overlap/cprop_connectives.ma index 59473882d..a1faba399 100644 --- a/helm/software/matita/contribs/formal_topology/overlap/cprop_connectives.ma +++ b/helm/software/matita/contribs/formal_topology/overlap/cprop_connectives.ma @@ -102,27 +102,43 @@ notation "hvbox(a break ⇔ b)" right associative with precedence 25 for @{'iff1 interpretation "logical iff" 'iff x y = (Iff x y). interpretation "logical iff type1" 'iff1 x y = (Iff1 x y). +inductive exT22 (A:Type2) (P:A→CProp2) : CProp2 ≝ + ex_introT22: ∀w:A. P w → exT22 A P. + +interpretation "CProp2 exists" 'exists \eta.x = (exT22 ? x). + +definition pi1exT22 ≝ λA,P.λx:exT22 A P.match x with [ex_introT22 x _ ⇒ x]. +definition pi2exT22 ≝ + λA,P.λx:exT22 A P.match x return λx.P (pi1exT22 ?? x) with [ex_introT22 _ p ⇒ p]. + +interpretation "exT22 \fst" 'pi1 = (pi1exT22 ? ?). +interpretation "exT22 \snd" 'pi2 = (pi2exT22 ? ?). +interpretation "exT22 \fst a" 'pi1a x = (pi1exT22 ? ? x). +interpretation "exT22 \snd a" 'pi2a x = (pi2exT22 ? ? x). +interpretation "exT22 \fst b" 'pi1b x y = (pi1exT22 ? ? x y). +interpretation "exT22 \snd b" 'pi2b x y = (pi2exT22 ? ? x y). + inductive exT (A:Type0) (P:A→CProp0) : CProp0 ≝ ex_introT: ∀w:A. P w → exT A P. -interpretation "CProp exists" 'exists \eta.x = (exT _ x). +interpretation "CProp exists" 'exists \eta.x = (exT ? x). notation "\ll term 19 a, break term 19 b \gg" with precedence 90 for @{'dependent_pair $a $b}. interpretation "dependent pair" 'dependent_pair a b = - (ex_introT _ _ a b). + (ex_introT ? ? a b). definition pi1exT ≝ λA,P.λx:exT A P.match x with [ex_introT x _ ⇒ x]. definition pi2exT ≝ λA,P.λx:exT A P.match x return λx.P (pi1exT ?? x) with [ex_introT _ p ⇒ p]. -interpretation "exT \fst" 'pi1 = (pi1exT _ _). -interpretation "exT \fst" 'pi1a x = (pi1exT _ _ x). -interpretation "exT \fst" 'pi1b x y = (pi1exT _ _ x y). -interpretation "exT \snd" 'pi2 = (pi2exT _ _). -interpretation "exT \snd" 'pi2a x = (pi2exT _ _ x). -interpretation "exT \snd" 'pi2b x y = (pi2exT _ _ x y). +interpretation "exT \fst" 'pi1 = (pi1exT ? ?). +interpretation "exT \fst a" 'pi1a x = (pi1exT ? ? x). +interpretation "exT \fst b" 'pi1b x y = (pi1exT ? ? x y). +interpretation "exT \snd" 'pi2 = (pi2exT ? ?). +interpretation "exT \snd a" 'pi2a x = (pi2exT ? ? x). +interpretation "exT \snd b" 'pi2b x y = (pi2exT ? ? x y). inductive exT23 (A:Type0) (P:A→CProp0) (Q:A→CProp0) (R:A→A→CProp0) : CProp0 ≝ ex_introT23: ∀w,p:A. P w → Q p → R w p → exT23 A P Q R. @@ -132,18 +148,16 @@ definition pi1exT23 ≝ definition pi2exT23 ≝ λA,P,Q,R.λx:exT23 A P Q R.match x with [ex_introT23 _ x _ _ _ ⇒ x]. -interpretation "exT2 \fst" 'pi1 = (pi1exT23 _ _ _ _). -interpretation "exT2 \snd" 'pi2 = (pi2exT23 _ _ _ _). -interpretation "exT2 \fst" 'pi1a x = (pi1exT23 _ _ _ _ x). -interpretation "exT2 \snd" 'pi2a x = (pi2exT23 _ _ _ _ x). -interpretation "exT2 \fst" 'pi1b x y = (pi1exT23 _ _ _ _ x y). -interpretation "exT2 \snd" 'pi2b x y = (pi2exT23 _ _ _ _ x y). +interpretation "exT2 \fst" 'pi1 = (pi1exT23 ? ? ? ?). +interpretation "exT2 \snd" 'pi2 = (pi2exT23 ? ? ? ?). +interpretation "exT2 \fst a" 'pi1a x = (pi1exT23 ? ? ? ? x). +interpretation "exT2 \snd a" 'pi2a x = (pi2exT23 ? ? ? ? x). +interpretation "exT2 \fst b" 'pi1b x y = (pi1exT23 ? ? ? ? x y). +interpretation "exT2 \snd b" 'pi2b x y = (pi2exT23 ? ? ? ? x y). inductive exT2 (A:Type0) (P,Q:A→CProp0) : CProp0 ≝ ex_introT2: ∀w:A. P w → Q w → exT2 A P Q. -inductive exT22 (A:Type2) (P:A→CProp2) : CProp2 ≝ - ex_introT22: ∀w:A. P w → exT22 A P. definition Not : CProp0 → Prop ≝ λx:CProp.x → False.