]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/delayed_updating/syntax/preterm.ma
4ce09045380a7366bf8aefe467ade8f7baa14e60
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / syntax / preterm.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/subset.ma".
16 include "delayed_updating/syntax/path.ma".
17 include "delayed_updating/notation/functions/pitchfork_2.ma".
18 include "delayed_updating/notation/functions/uptriangle_1.ma".
19
20 (* PRETERM ******************************************************************)
21
22 (* Note: preterms are subsets of complete paths *)
23 definition preterm: Type[0] ≝ 𝒫❨path❩.
24
25 definition preterm_grafted: path → preterm → preterm ≝
26            λp,t,q. p●q ϵ t.
27
28 interpretation
29   "grafted (preterm)"
30   'Pitchfork t p = (preterm_grafted p t).
31
32 definition preterm_root: preterm → preterm ≝
33            λt,q. ∃r. q●r ϵ t.
34
35 interpretation
36   "root (preterm)"
37   'UpTriangle t = (preterm_root t).
38
39 (* Basic constructions ******************************************************)
40
41 lemma preterm_in_comp_root (p) (t):
42       p ϵ t → p ϵ ▵t.
43 /2 width=2 by ex_intro/
44 qed.