From 5489d0b66ed7bff17b9dedb89708f57f1d542adc Mon Sep 17 00:00:00 2001 From: Ferruccio Guidi Date: Tue, 4 Jan 2022 16:48:03 +0100 Subject: [PATCH] update in delayed_updating + improved lift --- .../delayed_updating/substitution/lift.ma | 24 ++++++++++++------- .../substitution/lift_structure.ma | 4 ++-- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/substitution/lift.ma b/matita/matita/contribs/lambdadelta/delayed_updating/substitution/lift.ma index 5db8fa945..f0d5ebd58 100644 --- a/matita/matita/contribs/lambdadelta/delayed_updating/substitution/lift.ma +++ b/matita/matita/contribs/lambdadelta/delayed_updating/substitution/lift.ma @@ -31,7 +31,7 @@ match p with match l with [ label_node_d n ⇒ match q with - [ list_empty ⇒ lift_gen (A) (λp. k (𝗱❨f@❨n❩❩◗p)) q f + [ list_empty ⇒ lift_gen (A) (λp. k (𝗱❨f@❨n❩❩◗p)) q (f∘𝐮❨n❩) | list_lcons _ _ ⇒ lift_gen (A) k q (f∘𝐮❨n❩) ] | label_edge_L ⇒ lift_gen (A) (λp. k (𝗟◗p)) q (⫯f) @@ -63,7 +63,7 @@ lemma lift_empty (A) (k) (f): // qed. lemma lift_d_empty_sn (A) (k) (n) (f): - ↑❨(λp. k (𝗱❨f@❨n❩❩◗p)), 𝐞, f❩ = ↑{A}❨k, 𝗱❨n❩◗𝐞, f❩. + ↑❨(λp. k (𝗱❨f@❨n❩❩◗p)), 𝐞, f∘𝐮❨ninj n❩❩ = ↑{A}❨k, 𝗱❨n❩◗𝐞, f❩. // qed. lemma lift_d_lcons_sn (A) (k) (p) (l) (n) (f): @@ -94,13 +94,9 @@ lemma lift_path_d_lcons_sn (f) (p) (l) (n): (* Basic constructions with proj_rmap ***************************************) -lemma lift_rmap_d_empty_sn (f) (n): - f = ↑[𝗱❨n❩◗𝐞]f. -// qed. - -lemma lift_rmap_d_lcons_sn (f) (p) (l) (n): - ↑[l◗p](f∘𝐮❨ninj n❩) = ↑[𝗱❨n❩◗l◗p]f. -// qed. +lemma lift_rmap_d_sn (f) (p) (n): + ↑[p](f∘𝐮❨ninj n❩) = ↑[𝗱❨n❩◗p]f. +#f * // qed. lemma lift_rmap_L_sn (f) (p): ↑[p](⫯f) = ↑[𝗟◗p]f. @@ -114,6 +110,16 @@ lemma lift_rmap_S_sn (f) (p): ↑[p]f = ↑[𝗦◗p]f. // qed. +(* Advanced constructions with proj_rmap and path_append ********************) + +lemma lift_rmap_append (p2) (p1) (f): + ↑[p2]↑[p1]f = ↑[p1●p2]f. +#p2 #p1 elim p1 -p1 // * [ #n ] #p1 #IH #f // +[