]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/delayed_updating/syntax/path_structure.ma
update in delayed_updating
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / syntax / path_structure.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 include "delayed_updating/syntax/path.ma".
16 include "delayed_updating/notation/functions/circled_times_1.ma".
17
18 (* STRUCTURE FOR PATH *******************************************************)
19
20 rec definition structure (p) on p β‰
21 match p with
22 [ list_empty     β‡’ πž
23 | list_lcons l q β‡’
24    match l with
25    [ label_d n β‡’ structure q
26    | label_m   β‡’ structure q
27    | label_L   β‡’ π—Ÿβ——structure q
28    | label_A   β‡’ π—”β——structure q
29    | label_S   β‡’ π—¦β——structure q
30    ]
31 ].
32
33 interpretation
34   "structure (path)"
35   'CircledTimes p = (structure p).
36
37 (* Basic constructions ******************************************************)
38
39 lemma structure_empty:
40       πž = βŠ—πž.
41 // qed.
42
43 lemma structure_d_sn (p) (n):
44       βŠ—p = βŠ—(𝗱nβ——p).
45 // qed.
46
47 lemma structure_m_sn (p):
48       βŠ—p = βŠ—(𝗺◗p).
49 // qed.
50
51 lemma structure_L_sn (p):
52       (π—Ÿβ——βŠ—p) = βŠ—(π—Ÿβ——p).
53 // qed.
54
55 lemma structure_A_sn (p):
56       (π—”β——βŠ—p) = βŠ—(𝗔◗p).
57 // qed.
58
59 lemma structure_S_sn (p):
60       (π—¦β——βŠ—p) = βŠ—(𝗦◗p).
61 // qed.
62
63 (* Main constructions *******************************************************)
64
65 theorem structure_idem (p):
66         βŠ—p = βŠ—βŠ—p.
67 #p elim p -p [| * [ #n ] #p #IH ] //
68 qed.
69
70 theorem structure_append (p1) (p2):
71         βŠ—p1β—βŠ—p2 = βŠ—(p1●p2).
72 #p1 elim p1 -p1 [| * [ #n ] #p1 #IH ] #p2
73 [||*: <list_append_lcons_sn ] //
74 qed.
75
76 (* Constructions with list_rcons ********************************************)
77
78 lemma structure_d_dx (p) (n):
79       βŠ—p = βŠ—(p◖𝗱n).
80 #p #n <structure_append //
81 qed.
82
83 lemma structure_m_dx (p):
84       βŠ—p = βŠ—(p◖𝗺).
85 #p <structure_append //
86 qed.
87
88 lemma structure_L_dx (p):
89       (βŠ—p)β—–π—Ÿ = βŠ—(pβ—–π—Ÿ).
90 #p <structure_append //
91 qed.
92
93 lemma structure_A_dx (p):
94       (βŠ—p)◖𝗔 = βŠ—(p◖𝗔).
95 #p <structure_append //
96 qed.
97
98 lemma structure_S_dx (p):
99       (βŠ—p)◖𝗦 = βŠ—(p◖𝗦).
100 #p <structure_append //
101 qed.