X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fstatic_2%2Fsyntax%2Fappend.ma;h=0377292d68b1c4dc04406e0d31bff57f9ddce556;hb=98e786e1a6bd7b621e37ba7cd4098d4a0a6f8278;hp=ec9ac39dafc1acbaceed4b6cd6cc1a5e5fcbf8f6;hpb=ff612dc35167ec0c145864c9aa8ae5e1ebe20a48;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/static_2/syntax/append.ma b/matita/matita/contribs/lambdadelta/static_2/syntax/append.ma index ec9ac39da..0377292d6 100644 --- a/matita/matita/contribs/lambdadelta/static_2/syntax/append.ma +++ b/matita/matita/contribs/lambdadelta/static_2/syntax/append.ma @@ -12,6 +12,7 @@ (* *) (**************************************************************************) +include "ground/xoa/ex_1_2.ma". include "static_2/notation/functions/snitem_2.ma". include "static_2/notation/functions/snbind1_2.ma". include "static_2/notation/functions/snbind2_3.ma". @@ -24,10 +25,10 @@ include "static_2/syntax/lenv.ma". rec definition append L K on K ≝ match K with [ LAtom ⇒ L -| LBind K I ⇒ (append L K).ⓘ{I} +| LBind K I ⇒ (append L K).ⓘ[I] ]. -interpretation "append (local environment)" 'plus L1 L2 = (append L1 L2). +interpretation "append (local environment)" 'nplus L1 L2 = (append L1 L2). interpretation "local environment tail binding construction (generic)" 'SnItem I L = (append (LBind LAtom I) L). @@ -56,7 +57,7 @@ lemma append_atom: ∀L. (L + ⋆) = L. (**) (* () should be redundant *) // qed. (* Basic_2A1: uses: append_pair *) -lemma append_bind: ∀I,L,K. L+(K.ⓘ{I}) = (L+K).ⓘ{I}. +lemma append_bind: ∀I,L,K. L+(K.ⓘ[I]) = (L+K).ⓘ[I]. // qed. lemma append_atom_sn: ∀L. ⋆ + L = L. @@ -68,7 +69,7 @@ lemma append_assoc: associative … append. #L1 #L2 #L3 elim L3 -L3 // qed. -lemma append_shift: ∀L,K,I. L+(ⓘ{I}.K) = (L.ⓘ{I})+K. +lemma append_shift: ∀L,K,I. L+(ⓘ[I].K) = (L.ⓘ[I])+K. #L #K #I append_bind #H destruct qed-. -lemma append_inv_bind3_sn: ∀I0,L,L0,K. L0.ⓘ{I0} = L + K → - ∨∨ ∧∧ L0.ⓘ{I0} = L & ⋆ = K - | ∃∃K0. K = K0.ⓘ{I0} & L0 = L + K0. +lemma append_inv_bind3_sn: ∀I0,L,L0,K. L0.ⓘ[I0] = L + K → + ∨∨ ∧∧ L0.ⓘ[I0] = L & ⋆ = K + | ∃∃K0. K = K0.ⓘ[I0] & L0 = L + K0. #I0 #L #L0 * /3 width=1 by or_introl, conj/ #K #I >append_bind #H destruct /3 width=3 by ex2_intro, or_intror/ qed-. @@ -94,7 +95,7 @@ qed-. (* Basic_1: uses: chead_ctail *) (* Basic_2A1: uses: lpair_ltail *) -lemma lenv_case_tail: ∀L. L = ⋆ ∨ ∃∃K,I. L = ⓘ{I}.K. +lemma lenv_case_tail: ∀L. L = ⋆ ∨ ∃∃K,I. L = ⓘ[I].K. #L elim L -L /2 width=1 by or_introl/ #L #I * [2: * ] /3 width=3 by ex1_2_intro, or_intror/ qed-.