]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/delayed_updating/syntax/prototerm.ma
30a2770e279bceb6c3baa14bcd51e0dcc570a789
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / syntax / prototerm.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 (* PROTOTERM ****************************************************************)
21
22 (* Note: a prototerm is a subset of complete paths *)
23 definition prototerm: Type[0] ≝ 𝒫❨path❩.
24
25 definition prototerm_grafted: path → prototerm → prototerm ≝
26            λp,t,q. p●q ϵ t.
27
28 interpretation
29   "grafted (prototerm)"
30   'Pitchfork t p = (prototerm_grafted p t).
31
32 definition prototerm_root: prototerm → prototerm ≝
33            λt,q. ∃r. q●r ϵ t.
34
35 interpretation
36   "root (prototerm)"
37   'UpTriangle t = (prototerm_root t).
38
39 (* Basic constructions ******************************************************)
40
41 lemma prototerm_in_comp_root (p) (t):
42       p ϵ t → p ϵ ▵t.
43 /2 width=2 by ex_intro/
44 qed.
45
46 (* Basic destructions *******************************************************)
47
48 lemma prototerm_in_root_append_des_sn (t) (p) (q):
49       p●q ϵ ▵t → p ϵ ▵t.
50 #t #p #q * #r #Hr
51 /2 width=2 by ex_intro/
52 qed-.