]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/delayed_updating/substitution/path_dephi.ma
f51295ecf7b839dee17c2f26e3e6936a6101a2ac
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / substitution / path_dephi.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 "ground/relocation/tr_pap.ma".
16 include "delayed_updating/syntax/path.ma".
17
18 (* DEPHI FOR PATH ***********************************************************)
19
20 rec definition path_dephi (f) (p) on p ā‰
21 match p with
22 [ list_empty     ā‡’ šž
23 | list_lcons l q ā‡’
24    match l with
25    [ label_node_d n ā‡’ š—±āØf@āØnā©ā©;path_dephi f q
26    | label_edge_L   ā‡’ š—Ÿ;path_dephi (šŸāØ®f) q
27    | label_edge_A   ā‡’ š—”;path_dephi f q
28    | label_edge_S   ā‡’ š—¦;path_dephi f q
29    ]
30 ].