X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fdelayed_updating%2Funwind%2Funwind2_path.ma;h=08115e1e43a424da880d2a6f06e5e4586fbd3b17;hb=61bc42e04598a9f5e489c3867af72e700c7fda04;hp=3288fc7348869901e972b030cd150290bc328abb;hpb=5c2d38b46908f662cbb717156b29101ff30f8352;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_path.ma b/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_path.ma index 3288fc734..08115e1e4 100644 --- a/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_path.ma +++ b/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_path.ma @@ -12,73 +12,159 @@ (* *) (**************************************************************************) -include "delayed_updating/unwind/unwind_gen.ma". include "delayed_updating/unwind/unwind2_rmap.ma". -include "delayed_updating/syntax/path_reverse.ma". +include "delayed_updating/syntax/path_structure.ma". include "delayed_updating/notation/functions/black_downtriangle_2.ma". -include "ground/lib/list_tl.ma". -(* UNWIND FOR PATH **********************************************************) +(* TAILED UNWIND FOR PATH ***************************************************) definition unwind2_path (f) (p): path ≝ - ◆[▶[f]⇂(pᴿ)]p -. +match p with +[ list_empty ⇒ (𝐞) +| list_lcons l q ⇒ + match l with + [ label_d k ⇒ (⊗q)◖𝗱(▶[f]q@⧣❨k❩) + | label_m ⇒ ⊗p + | label_L ⇒ ⊗p + | label_A ⇒ ⊗p + | label_S ⇒ ⊗p + ] +]. interpretation - "unwind (path)" + "tailed unwind (path)" 'BlackDownTriangle f p = (unwind2_path f p). (* Basic constructions ******************************************************) -lemma unwind2_path_unfold (f) (p): - ◆[▶[f]⇂(pᴿ)]p = ▼[f]p. -// qed. - lemma unwind2_path_empty (f): (𝐞) = ▼[f]𝐞. // qed. -lemma unwind2_path_d_empty (f) (n): - (𝗱(f@⧣❨n❩)◗𝐞) = ▼[f](𝗱n◗𝐞). +lemma unwind2_path_d_dx (f) (p) (k) : + (⊗p)◖𝗱((▶[f]p)@⧣❨k❩) = ▼[f](p◖𝗱k). // qed. -lemma unwind2_path_d_lcons (f) (p) (l) (n:pnat): - ▼[f∘𝐮❨n❩](l◗p) = ▼[f](𝗱n◗l◗p). -#f #p #l #n