]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/delayed_updating/syntax/path.ma
2d8abe30451f25628141476a53cf2fb629dd2a44
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / syntax / path.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/lib/list_rcons.ma".
16 include "ground/notation/functions/element_e_0.ma".
17 include "ground/notation/functions/black_circle_2.ma".
18 include "ground/notation/functions/black_halfcircleright_2.ma".
19 include "ground/notation/functions/black_halfcircleleft_2.ma".
20 include "delayed_updating/syntax/label.ma".
21
22 (* PATH *********************************************************************)
23
24 (* Note: a path is a list of labels *) 
25 definition path ≝ list label.
26
27 interpretation
28   "empty (paths)"
29   'ElementE = (list_empty label).
30
31 interpretation
32   "left cons (paths)"
33   'BlackHalfCircleRight l p = (list_lcons label l p).
34
35 interpretation
36   "append (paths)"
37   'BlackCircle l1 l2 = (list_append label l1 l2).
38
39 interpretation
40   "right cons (paths)"
41   'BlackHalfCircleLeft p l = (list_append label p (list_lcons label l (list_empty label))).