]> 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 path_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 β‡’ path_structure q
26    | label_edge_L   β‡’ π—Ÿβ——path_structure q
27    | label_edge_A   β‡’ π—”β——path_structure q
28    | label_edge_S   β‡’ π—¦β——path_structure q
29    ]
30 ].
31
32 interpretation
33   "structure (path)"
34   'CircledTimes p = (path_structure p).