From: Ferruccio Guidi Date: Thu, 31 Mar 2016 14:44:31 +0000 (+0000) Subject: - uniform relocations X-Git-Tag: make_still_working~618 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=9a023f554e56d6edbbb2eeaf17ce61e31857ef4a;p=helm.git - uniform relocations - more results on at and after --- diff --git a/matita/matita/contribs/lambdadelta/ground_2/notation/functions/uniform_1.ma b/matita/matita/contribs/lambdadelta/ground_2/notation/functions/uniform_1.ma new file mode 100644 index 000000000..896665d02 --- /dev/null +++ b/matita/matita/contribs/lambdadelta/ground_2/notation/functions/uniform_1.ma @@ -0,0 +1,19 @@ +(**************************************************************************) +(* ___ *) +(* ||M|| *) +(* ||A|| A project by Andrea Asperti *) +(* ||T|| *) +(* ||I|| Developers: *) +(* ||T|| The HELM team. *) +(* ||A|| http://helm.cs.unibo.it *) +(* \ / *) +(* \ / This file is distributed under the terms of the *) +(* v GNU General Public License Version 2 *) +(* *) +(**************************************************************************) + +(* GENERAL NOTATION USED BY THE FORMAL SYSTEM λδ ****************************) + +notation "hvbox( 𝐔 ❴ break term 46 a ❵ )" + non associative with precedence 90 + for @{ 'Uniform $a }. diff --git a/matita/matita/contribs/lambdadelta/ground_2/relocation/rtmap_after.ma b/matita/matita/contribs/lambdadelta/ground_2/relocation/rtmap_after.ma index fdfefbba5..80401a3d1 100644 --- a/matita/matita/contribs/lambdadelta/ground_2/relocation/rtmap_after.ma +++ b/matita/matita/contribs/lambdadelta/ground_2/relocation/rtmap_after.ma @@ -14,7 +14,7 @@ include "ground_2/notation/relations/rafter_3.ma". include "ground_2/relocation/rtmap_istot.ma". -include "ground_2/relocation/rtmap_isuni.ma". +include "ground_2/relocation/rtmap_uni.ma". (* RELOCATION MAP ***********************************************************) @@ -251,7 +251,7 @@ corec theorem after_trans2: ∀f1,f0,f4. f1 ⊚ f0 ≡ f4 → ] qed-. -(* Main inversion lemmas on after *******************************************) +(* Main inversion lemmas ****************************************************) corec theorem after_mono: ∀f1,f2,x,y. f1 ⊚ f2 ≡ x → f1 ⊚ f2 ≡ y → x ≗ y. #f1 #f2 #x #y * -f1 -f2 -x @@ -382,6 +382,43 @@ lemma after_fwd_at1: ∀i,i2,i1,f,f2. @⦃i1, f⦄ ≡ i → @⦃i2, f2⦄ ≡ i ] qed-. +(* Properties with at *******************************************************) + +lemma after_isuni_dx: ∀i2,i1,f2. @⦃i1, f2⦄ ≡ i2 → + ∀f. f2 ⊚ 𝐔❴i1❵ ≡ f → 𝐔❴i2❵ ⊚ ⫱*[i2] f2 ≡ f. +#i2 elim i2 -i2 +[ #i1 #f2 #Hf2 #f #Hf + elim (at_inv_xxp … Hf2) -Hf2 // #g2 #H1 #H2 destruct + lapply (after_isid_inv_dx … Hf ?) -Hf + /3 width=3 by isid_after_sn, after_eq_repl_back_0/ +| #i2 #IH #i1 #f2 #Hf2 #f #Hf + elim (at_inv_xxn … Hf2) -Hf2 [1,3: * |*: // ] + [ #g2 #j1 #Hg2 #H1 #H2 destruct + elim (after_inv_pnx … Hf) -Hf [ |*: // ] #g #Hg #H destruct + /3 width=5 by after_next/ + | #g2 #Hg2 #H2 destruct + elim (after_inv_nxx … Hf) -Hf [2,3: // ] #g #Hg #H destruct + /3 width=5 by after_next/ + ] +] +qed. + +lemma after_isuni_sn: ∀i2,i1,f2. @⦃i1, f2⦄ ≡ i2 → + ∀f. 𝐔❴i2❵ ⊚ ⫱*[i2] f2 ≡ f → f2 ⊚ 𝐔❴i1❵ ≡ f. +#i2 elim i2 -i2 +[ #i1 #f2 #Hf2 #f #Hf + elim (at_inv_xxp … Hf2) -Hf2 // #g2 #H1 #H2 destruct + lapply (after_isid_inv_sn … Hf ?) -Hf + /3 width=3 by isid_after_dx, after_eq_repl_back_0/ +| #i2 #IH #i1 #f2 #Hf2 #f #Hf + elim (after_inv_nxx … Hf) -Hf [2,3: // ] #g #Hg #H destruct + elim (at_inv_xxn … Hf2) -Hf2 [1,3: * |*: // ] + [ #g2 #j1 #Hg2 #H1 #H2 destruct /3 width=7 by after_push/ + | #g2 #Hg2 #H2 destruct /3 width=5 by after_next/ + ] +] +qed-. + (* Forward lemmas on istot **************************************************) lemma after_istot_fwd: ∀f2,f1,f. f2 ⊚ f1 ≡ f → 𝐓⦃f2⦄ → 𝐓⦃f1⦄ → 𝐓⦃f⦄. diff --git a/matita/matita/contribs/lambdadelta/ground_2/relocation/rtmap_at.ma b/matita/matita/contribs/lambdadelta/ground_2/relocation/rtmap_at.ma index e60a2affc..06223bc53 100644 --- a/matita/matita/contribs/lambdadelta/ground_2/relocation/rtmap_at.ma +++ b/matita/matita/contribs/lambdadelta/ground_2/relocation/rtmap_at.ma @@ -274,6 +274,25 @@ lemma at_pxx_tls: ∀n,f. @⦃0, f⦄ ≡ n → @⦃0, ⫱*[n]f⦄ ≡ 0. #n #IH #f #Hf cases (at_inv_pxn … Hf) -Hf /2 width=3 by/ qed. +lemma at_tls: ∀i2,f. ↑⫱*[⫯i2]f ≗ ⫱*[i2]f → ∃i1. @⦃i1, f⦄ ≡ i2. +#i2 elim i2 -i2 +[ /4 width=4 by at_eq_repl_back, at_refl, ex_intro/ +| #i2 #IH #f