From 97ff918432e878ab8314c72fe2b948a253b26e21 Mon Sep 17 00:00:00 2001 From: Ferruccio Guidi Date: Sat, 21 May 2022 20:23:22 +0200 Subject: [PATCH] update in delayed_updating + unwind completed with an important result on lift --- .../unwind.ma => etc/unwind1/unwind.etc} | 0 .../unwind1/unwind_constructors.etc} | 0 .../unwind1/unwind_depth.etc} | 0 .../unwind1/unwind_eq.etc} | 0 .../unwind1/unwind_eq_etc.etc} | 0 .../unwind1/unwind_fsubst.etc} | 0 .../unwind1/unwind_preterm_eq.etc} | 0 .../unwind1/unwind_prototerm.etc} | 0 .../unwind1/unwind_prototerm_eq.etc} | 0 .../unwind1/unwind_structure.etc} | 0 .../unwind1/unwind_structure_depth.etc} | 0 .../unwind1/unwind_update.etc} | 0 .../delayed_updating/substitution/lift_eq.ma | 43 ++++++- .../delayed_updating/syntax/bdd_term.ma | 2 +- .../delayed_updating/syntax/path_proper.ma | 8 ++ .../delayed_updating/unwind/nap.ma | 1 - .../unwind/unwind2_constructors.ma | 39 ++++++ .../delayed_updating/unwind/unwind2_path.ma | 84 +++++++++++++ .../unwind/unwind2_path_eq.ma | 40 ++++++ .../unwind/unwind2_path_lift.ma | 31 +++++ .../unwind/unwind2_path_structure.ma | 116 ++++++++++++++++++ .../unwind/unwind2_preterm_eq.ma | 67 ++++++++++ .../unwind/unwind2_preterm_fsubst.ma | 62 ++++++++++ .../unwind/unwind2_prototerm.ma | 30 +++++ .../unwind/unwind2_prototerm_eq.ma | 41 +++++++ .../unwind/unwind2_prototerm_lift.ma | 31 +++++ .../unwind/unwind2_rmap_head.ma | 55 +++++++-- .../delayed_updating/unwind/unwind_gen.ma | 4 +- .../unwind/unwind_gen_after.ma | 3 +- .../delayed_updating/unwind/unwind_gen_eq.ma | 12 +- .../unwind/unwind_gen_structure.ma | 24 ++-- .../delayed_updating/unwind/xap.ma | 55 +++++++++ 32 files changed, 710 insertions(+), 38 deletions(-) rename matita/matita/contribs/lambdadelta/delayed_updating/{unwind1/unwind.ma => etc/unwind1/unwind.etc} (100%) rename matita/matita/contribs/lambdadelta/delayed_updating/{unwind1/unwind_constructors.ma => etc/unwind1/unwind_constructors.etc} (100%) rename matita/matita/contribs/lambdadelta/delayed_updating/{unwind1/unwind_depth.ma => etc/unwind1/unwind_depth.etc} (100%) rename matita/matita/contribs/lambdadelta/delayed_updating/{unwind1/unwind_eq.ma => etc/unwind1/unwind_eq.etc} (100%) rename matita/matita/contribs/lambdadelta/delayed_updating/{unwind1/unwind_eq_etc.ma => etc/unwind1/unwind_eq_etc.etc} (100%) rename matita/matita/contribs/lambdadelta/delayed_updating/{unwind1/unwind_fsubst.ma => etc/unwind1/unwind_fsubst.etc} (100%) rename matita/matita/contribs/lambdadelta/delayed_updating/{unwind1/unwind_preterm_eq.ma => etc/unwind1/unwind_preterm_eq.etc} (100%) rename matita/matita/contribs/lambdadelta/delayed_updating/{unwind1/unwind_prototerm.ma => etc/unwind1/unwind_prototerm.etc} (100%) rename matita/matita/contribs/lambdadelta/delayed_updating/{unwind1/unwind_prototerm_eq.ma => etc/unwind1/unwind_prototerm_eq.etc} (100%) rename matita/matita/contribs/lambdadelta/delayed_updating/{unwind1/unwind_structure.ma => etc/unwind1/unwind_structure.etc} (100%) rename matita/matita/contribs/lambdadelta/delayed_updating/{unwind1/unwind_structure_depth.ma => etc/unwind1/unwind_structure_depth.etc} (100%) rename matita/matita/contribs/lambdadelta/delayed_updating/{unwind1/unwind_update.ma => etc/unwind1/unwind_update.etc} (100%) create mode 100644 matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_constructors.ma create mode 100644 matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_path.ma create mode 100644 matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_path_eq.ma create mode 100644 matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_path_lift.ma create mode 100644 matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_path_structure.ma create mode 100644 matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_preterm_eq.ma create mode 100644 matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_preterm_fsubst.ma create mode 100644 matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_prototerm.ma create mode 100644 matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_prototerm_eq.ma create mode 100644 matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_prototerm_lift.ma create mode 100644 matita/matita/contribs/lambdadelta/delayed_updating/unwind/xap.ma diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind.ma b/matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind.etc similarity index 100% rename from matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind.ma rename to matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind.etc diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_constructors.ma b/matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_constructors.etc similarity index 100% rename from matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_constructors.ma rename to matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_constructors.etc diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_depth.ma b/matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_depth.etc similarity index 100% rename from matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_depth.ma rename to matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_depth.etc diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_eq.ma b/matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_eq.etc similarity index 100% rename from matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_eq.ma rename to matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_eq.etc diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_eq_etc.ma b/matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_eq_etc.etc similarity index 100% rename from matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_eq_etc.ma rename to matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_eq_etc.etc diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_fsubst.ma b/matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_fsubst.etc similarity index 100% rename from matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_fsubst.ma rename to matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_fsubst.etc diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_preterm_eq.ma b/matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_preterm_eq.etc similarity index 100% rename from matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_preterm_eq.ma rename to matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_preterm_eq.etc diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_prototerm.ma b/matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_prototerm.etc similarity index 100% rename from matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_prototerm.ma rename to matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_prototerm.etc diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_prototerm_eq.ma b/matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_prototerm_eq.etc similarity index 100% rename from matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_prototerm_eq.ma rename to matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_prototerm_eq.etc diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_structure.ma b/matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_structure.etc similarity index 100% rename from matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_structure.ma rename to matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_structure.etc diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_structure_depth.ma b/matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_structure_depth.etc similarity index 100% rename from matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_structure_depth.ma rename to matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_structure_depth.etc diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_update.ma b/matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_update.etc similarity index 100% rename from matita/matita/contribs/lambdadelta/delayed_updating/unwind1/unwind_update.ma rename to matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind1/unwind_update.etc diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/substitution/lift_eq.ma b/matita/matita/contribs/lambdadelta/delayed_updating/substitution/lift_eq.ma index 68a4ceb36..5eac1985e 100644 --- a/matita/matita/contribs/lambdadelta/delayed_updating/substitution/lift_eq.ma +++ b/matita/matita/contribs/lambdadelta/delayed_updating/substitution/lift_eq.ma @@ -13,11 +13,6 @@ (**************************************************************************) include "delayed_updating/substitution/lift.ma". -(* -include "ground/relocation/tr_uni_compose.ma". -include "ground/relocation/tr_compose_compose.ma". -include "ground/relocation/tr_compose_eq.ma". -*) include "ground/relocation/tr_pap_eq.ma". include "ground/relocation/tr_pn_eq.ma". include "ground/lib/stream_tls_eq.ma". @@ -110,6 +105,44 @@ lemma lift_path_A_sn (f) (p): lemma lift_path_S_sn (f) (p): (𝗦◗↑[f]p) = ↑[f](𝗦◗p). // qed. + +lemma lift_path_append (p2) (p1) (f): + (↑[f]p1)●(↑[↑[p1]f]p2) = ↑[f](p1●p2). +#p2 #p1 elim p1 -p1 // +* [ #n1 ] #p1 #IH #f +[ (unwind2_path_eq_repl … (tr_compose_assoc …)) // +| <(unwind2_path_L_sn … f1) tr_compose_push_bi // +] +qed. diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_path_lift.ma b/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_path_lift.ma new file mode 100644 index 000000000..642056c89 --- /dev/null +++ b/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_path_lift.ma @@ -0,0 +1,31 @@ +(**************************************************************************) +(* ___ *) +(* ||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 *) +(* *) +(**************************************************************************) + +include "delayed_updating/unwind/unwind2_path_eq.ma". +include "delayed_updating/substitution/lift_eq.ma". +include "ground/relocation/tr_uni_compose.ma". + +(* UNWIND FOR PATH **********************************************************) + +(* Properties with lift_path ************************************************) + +lemma unwind2_lift_path_after (p) (f1) (f2): + ↑[f2]▼[f1]p = ▼[f2∘f1]p. +#p @(path_ind_unwind … p) -p // [ #n | #p ] #IH #f1 #f2 +[ tr_compose_push_bi // +] +qed. diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_path_structure.ma b/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_path_structure.ma new file mode 100644 index 000000000..7cb6190b1 --- /dev/null +++ b/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_path_structure.ma @@ -0,0 +1,116 @@ +(**************************************************************************) +(* ___ *) +(* ||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 *) +(* *) +(**************************************************************************) + +include "delayed_updating/unwind/unwind2_path.ma". +include "delayed_updating/unwind/unwind_gen_structure.ma". +include "delayed_updating/syntax/path_inner.ma". +include "delayed_updating/syntax/path_proper.ma". +include "ground/xoa/ex_4_2.ma". + +(* UNWIND FOR PATH **********************************************************) + +(* Constructions with list_rcons ********************************************) + +lemma unwind2_path_d_dx (f) (p) (n) : + (⊗p)◖𝗱((▶[f](pᴿ))@⧣❨n❩) = ▼[f](p◖𝗱n). +#f #p #n unwind2_rmap_S_sn >reverse_rcons >structure_S_dx + @unwind2_term_grafted_sn // (**) (* auto fails *) +| /2 width=1 by unwind2_term_grafted_S_dx/ +] +qed. diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_preterm_fsubst.ma b/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_preterm_fsubst.ma new file mode 100644 index 000000000..4245a6638 --- /dev/null +++ b/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_preterm_fsubst.ma @@ -0,0 +1,62 @@ +(**************************************************************************) +(* ___ *) +(* ||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 *) +(* *) +(**************************************************************************) + +include "delayed_updating/unwind/unwind2_prototerm_eq.ma". +include "delayed_updating/unwind/unwind2_path_structure.ma". +include "delayed_updating/substitution/fsubst.ma". +include "delayed_updating/syntax/preterm.ma". +include "delayed_updating/syntax/prototerm_proper.ma". + +(* UNWIND FOR PRETERM ******************************************************) + +(* Constructions with fsubst ************************************************) + +lemma unwind2_term_fsubst_sn (f) (t) (u) (p): u ϵ 𝐏 → + (▼[f]t)[⋔(⊗p)←▼[▶[f]pᴿ]u] ⊆ ▼[f](t[⋔p←u]). +#f #t #u #p #Hu #ql * * +[ #rl * #r #Hr #H1 #H2 destruct + >unwind2_path_append_proper_dx + /4 width=5 by in_comp_unwind2_path_term, in_ppc_comp_trans, or_introl, ex2_intro/ +| * #q #Hq #H1 #H0 + @(ex2_intro … H1) @or_intror @conj // * + [ tr_pushs_swap IH -IH IH -IH tr_compose_nap >tr_compose_push_bi // +qed. + +lemma tr_uni_xap_succ (n) (m): + ↑m + n = 𝐮❨n❩@❨↑m❩. +#n #m +tr_pushs_succ