From 9e31ac1f3f868349154b0ce2e550e2476aaf6a30 Mon Sep 17 00:00:00 2001 From: Ferruccio Guidi Date: Sun, 11 Sep 2022 23:13:53 +0200 Subject: [PATCH] update in delayed_updating + reference by depth with offset parked for now --- .../delayed_updating/etc/d2/d2.etc | 77 +++++++++++++++++++ .../d2/nodelabel_d_2.etc} | 0 .../functions/tau_3.ma => etc/d2/tau_3.etc} | 0 .../delayed_updating/syntax/label.ma | 18 ++--- .../delayed_updating/syntax/path_depth.ma | 22 ++---- .../delayed_updating/syntax/path_inner.ma | 6 -- .../delayed_updating/syntax/path_structure.ma | 69 ++++------------- .../syntax/path_structure_inner.ma | 3 +- .../syntax/prototerm_constructors.ma | 16 ---- .../syntax/prototerm_proper_constructors.ma | 5 -- 10 files changed, 103 insertions(+), 113 deletions(-) create mode 100644 matita/matita/contribs/lambdadelta/delayed_updating/etc/d2/d2.etc rename matita/matita/contribs/lambdadelta/delayed_updating/{notation/functions/nodelabel_d_2.ma => etc/d2/nodelabel_d_2.etc} (100%) rename matita/matita/contribs/lambdadelta/delayed_updating/{notation/functions/tau_3.ma => etc/d2/tau_3.etc} (100%) diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/etc/d2/d2.etc b/matita/matita/contribs/lambdadelta/delayed_updating/etc/d2/d2.etc new file mode 100644 index 000000000..32a628e3f --- /dev/null +++ b/matita/matita/contribs/lambdadelta/delayed_updating/etc/d2/d2.etc @@ -0,0 +1,77 @@ +include "delayed_updating/notation/functions/nodelabel_d_2.ma". + +| label_d2: pnat → nat → label + +interpretation + "variable reference by depth with offset (label)" + 'NodeLabelD k d = (label_d2 k d). + + | label_d2 k d ⇒ depth q + +lemma depth_d2_dx (p) (k) (d): + ♭p = ♭(p◖𝗱❨k,d❩). +// qed. + +lemma depth_d2_sn (p) (k) (d): + ♭p = ♭(𝗱❨k,d❩◗p). +// qed. + + | label_d2 k d ⇒ structure q + +lemma structure_d2_dx (p) (k) (d): + ⊗p = ⊗(p◖𝗱❨k,d❩). +// qed. + +lemma structure_d2_sn (p) (k) (d): + ⊗p = ⊗(𝗱❨k,d❩◗p). +#p #k #d list_cons_comm #H0 +elim (eq_inv_append_structure … H0) -H0 #r1 #r2 +list_cons_comm #H0 -elim (eq_inv_append_structure … H0) -H0 #r1 #r2 -list_cons_comm #H0 diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/syntax/path_structure_inner.ma b/matita/matita/contribs/lambdadelta/delayed_updating/syntax/path_structure_inner.ma index 4de1097bb..99ed6a323 100644 --- a/matita/matita/contribs/lambdadelta/delayed_updating/syntax/path_structure_inner.ma +++ b/matita/matita/contribs/lambdadelta/delayed_updating/syntax/path_structure_inner.ma @@ -23,9 +23,8 @@ lemma structure_pic (p): ⊗p ϵ 𝐈. #p elim p -p [