]> 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_node_d n β‡’ structure q
26    | label_edge_L   β‡’ π—Ÿβ——structure q
27    | label_edge_A   β‡’ π—”β——structure q
28    | label_edge_S   β‡’ π—¦β——structure q
29    ]
30 ].
31
32 interpretation
33   "structure (path)"
34   'CircledTimes p = (structure p).
35
36 (* Basic constructions ******************************************************)
37
38 lemma structure_empty:
39       πž = βŠ—πž.
40 // qed.
41
42 lemma structure_d_sn (p) (n):
43       βŠ—p = βŠ—(𝗱❨n❩◗p).
44 // qed.
45
46 lemma structure_L_sn (p):
47       π—Ÿβ——βŠ—p = βŠ—(π—Ÿβ——p).
48 // qed.
49
50 lemma structure_A_sn (p):
51       π—”β——βŠ—p = βŠ—(𝗔◗p).
52 // qed.
53
54 lemma structure_S_sn (p):
55       π—¦β——βŠ—p = βŠ—(𝗦◗p).
56 // qed.
57
58 (* Main constructions *******************************************************)
59
60 theorem structure_idem (p):
61         βŠ—p = βŠ—βŠ—p.
62 #p elim p -p [| * [ #n ] #p #IH ] //
63 qed.
64
65 theorem structure_append (p1) (p2):
66         βŠ—p1β—βŠ—p2 = βŠ—(p1●p2).
67 #p1 elim p1 -p1 [| * [ #n ] #p1 #IH ] #p2
68 [||*: <list_append_lcons_sn ] //
69 qed.
70
71 (* Constructions with list_rcons ********************************************)
72
73 lemma structure_d_dx (p) (n):
74       βŠ—p = βŠ—(p◖𝗱❨n❩).
75 #p #n <structure_append //
76 qed.
77
78 lemma structure_L_dx (p):
79       (βŠ—p)β—–π—Ÿ = βŠ—(pβ—–π—Ÿ).
80 #p <structure_append //
81 qed.
82
83 lemma structure_A_dx (p):
84       (βŠ—p)◖𝗔 = βŠ—(p◖𝗔).
85 #p <structure_append //
86 qed.
87
88 lemma structure_S_dx (p):
89       (βŠ—p)◖𝗦 = βŠ—(p◖𝗦).
90 #p <structure_append //
91 qed.