]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind1_rmap.ma
update in delayed_updating
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / unwind / unwind1_rmap.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/black_righttriangle_1.ma".
17 include "ground/relocation/tr_uni.ma".
18 include "ground/relocation/tr_compose.ma".
19
20 (* BASIC UNWIND MAP FOR PATH ************************************************)
21
22 rec definition unwind1_rmap p on p: tr_map ā‰
23 match p with
24 [ list_empty     ā‡’ š¢
25 | list_lcons l q ā‡’
26   match l with
27   [ label_d n ā‡’ (unwind1_rmap q)āˆ˜š®āØnā©
28   | label_m   ā‡’ unwind1_rmap q
29   | label_L   ā‡’ ā«Æ(unwind1_rmap q)
30   | label_A   ā‡’ unwind1_rmap q
31   | label_S   ā‡’ unwind1_rmap q
32   ]
33 ].
34
35 interpretation
36   "basic unwind map (reversed path)"
37   'BlackRightTriangle p = (unwind1_rmap p).
38
39 (* Basic constructions *******************************************************)
40
41 lemma unwind1_rmap_empty:
42       (š¢) = ā–¶(šž).
43 // qed.
44
45 lemma unwind1_rmap_d_sn (p) (n:pnat):
46       (ā–¶pāˆ˜š®āØnā©) = ā–¶(š—±nā——p).
47 // qed.
48
49 lemma unwind1_rmap_m_sn (p):
50       ā–¶p = ā–¶(š—ŗā——p).
51 // qed.
52
53 lemma unwind1_rmap_L_sn (p):
54       (ā«Æā–¶p) = ā–¶(š—Ÿā——p).
55 // qed.
56
57 lemma unwind1_rmap_A_sn (p):
58       ā–¶p = ā–¶(š—”ā——p).
59 // qed.
60
61 lemma unwind1_rmap_S_sn (p):
62       ā–¶p = ā–¶(š—¦ā——p).
63 // qed.