X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fcontribs%2Fdama%2Fdama%2Fordered_set.ma;h=a227af3c1928927fe04185224cfe1b409d9b8029;hb=98c84d48f4511cb52c8dc03881e113bd4bd9c6ce;hp=c161fee4589d50ef1789a6968780fda804dfd2b9;hpb=9eabe046c1182960de8cfdba96c5414224e3a61e;p=helm.git diff --git a/helm/software/matita/contribs/dama/dama/ordered_set.ma b/helm/software/matita/contribs/dama/dama/ordered_set.ma index c161fee45..a227af3c1 100644 --- a/helm/software/matita/contribs/dama/dama/ordered_set.ma +++ b/helm/software/matita/contribs/dama/dama/ordered_set.ma @@ -48,3 +48,29 @@ cases (os_cotransitive ??? a1 Eab) (H H); [cases (Laa1 H)] cases (os_cotransitive ??? b1 H) (H1 H1); [assumption] cases (Lb1b H1); qed. + +lemma square_ordered_set: ordered_set → ordered_set. +intro O; +apply (mk_ordered_set (O × O)); +[1: intros (x y); apply (\fst x ≰ \fst y ∨ \snd x ≰ \snd y); +|2: intro x0; cases x0 (x y); clear x0; simplify; intro H; + cases H (X X); apply (os_coreflexive ?? X); +|3: intros 3 (x0 y0 z0); cases x0 (x1 x2); cases y0 (y1 y2) ; cases z0 (z1 z2); + clear x0 y0 z0; simplify; intro H; cases H (H1 H1); clear H; + [1: cases (os_cotransitive ??? z1 H1); [left; left|right;left]assumption; + |2: cases (os_cotransitive ??? z2 H1); [left;right|right;right]assumption]] +qed. + +notation "s 2 \atop \nleq" non associative with precedence 90 + for @{ 'square_os $s }. +notation > "s 'square'" non associative with precedence 90 + for @{ 'square $s }. +interpretation "ordered set square" 'square s = (square_ordered_set s). +interpretation "ordered set square" 'square_os s = (square_ordered_set s). + +definition os_subset ≝ λO:ordered_set.λP,Q:O→Prop.∀x:O.P x → Q x. + +notation "a \subseteq u" left associative with precedence 70 + for @{ 'subset $a $u }. +interpretation "ordered set subset" 'subset a b = (os_subset _ a b). +