X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fdelayed_updating%2Funwind%2Funwind2_rmap_closed.ma;h=b0d062de63b8dc18ef33d422531c793d28cee4d2;hb=119da3f9ce130f7c4e8b23fcc491d221472ad657;hp=7c551ed857d82aebe819bd896f23fc8dd02079e9;hpb=829e3a8af3229c4e625245f7265dd67939da98c4;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_rmap_closed.ma b/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_rmap_closed.ma index 7c551ed85..b0d062de6 100644 --- a/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_rmap_closed.ma +++ b/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_rmap_closed.ma @@ -16,6 +16,7 @@ include "delayed_updating/unwind/unwind2_rmap_eq.ma". include "delayed_updating/syntax/path_closed.ma". include "delayed_updating/syntax/path_depth.ma". include "ground/relocation/xap.ma". +include "ground/lib/stream_tls_plus.ma". include "ground/lib/stream_eq_eq.ma". include "ground/arith/nat_le_plus.ma". include "ground/arith/nat_le_pred.ma". @@ -24,11 +25,11 @@ include "ground/arith/nat_le_pred.ma". (* Destructions with cpp ****************************************************) -lemma unwind2_rmap_append_closed_dx_xap_le (f) (p) (q) (n): - q ϵ 𝐂❨n❩ → ∀m. m ≤ n → +lemma xap_le_unwind2_rmap_append_closed_dx (o) (f) (p) (q) (n): + q ϵ 𝐂❨o,n❩ → ∀m. m ≤ n → ▶[f]q@❨m❩ = ▶[f](p●q)@❨m❩. -#f #p #q #n #Hq elim Hq -q -n -[|*: #q #n [ #k ] #_ #IH ] #m #Hm +#o #f #p #q #n #Hq elim Hq -q -n +[|*: #q #n [ #k #_ ] #_ #IH ] #m #Hm [ <(nle_inv_zero_dx … Hm) -m // | Ho // nrplus_inj_dx >nrplus_inj_sn >nsucc_unfold // +qed-. + +lemma tls_plus_unwind2_rmap_closed_true (f) (q) (n): + q ϵ 𝐂❨Ⓣ,n❩ → + ∀m. ⇂*[m]f ≗ ⇂*[m+n]▶[f]q. #f #q #n #Hq elim Hq -q -n // -#q #n [ #k ] #_ #IH #m -[ @(stream_eq_trans … (tls_unwind2_rmap_d_dx …)) - >nrplus_inj_dx >nrplus_inj_sn >nsucc_unfold // -| Ho // nrplus_inj_dx >nrplus_inj_sn >nsucc_unfold +>nplus_succ_dx (xap_unwind2_rmap_append_closed_true_dx_depth f p … Hb) -Hb +>(nap_plus_unwind2_rmap_append_closed_Lq_dx_depth … Hq) -Hq // +qed-. + +lemma tls_succ_plus_unwind2_rmap_append_closed_bLq_dx (o) (f) (p) (b) (q) (m) (n): + b ϵ 𝐂❨Ⓣ,m❩ → q ϵ 𝐂❨o,n❩ → + ▶[f]p ≗ ⇂*[↑(m+n)]▶[f](p●b●𝗟◗q). +#o #f #p #b #q #m #n #Hb #Hq +>nplus_succ_dx list_append_assoc +@(stream_eq_trans … (tls_unwind2_rmap_append_closed_true_dx … Hb)) -Hb +/3 width=2 by stream_tls_eq_repl, tls_succ_unwind2_rmap_append_closed_Lq_dx/ qed-.