1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 include "basic_2/notation/constructors/snitem2_3.ma".
16 include "basic_2/notation/constructors/star_0.ma".
17 include "basic_2/notation/constructors/snabstpos_2.ma".
18 include "basic_2/notation/constructors/snabbr_3.ma".
19 include "basic_2/notation/constructors/snabbrpos_2.ma".
20 include "basic_2/notation/constructors/snabbrneg_2.ma".
21 include "alpha_1/notation/constructors/snitem1_2.ma".
22 include "alpha_1/notation/constructors/snstar_2.ma".
23 include "alpha_1/notation/constructors/snlref_2.ma".
24 include "alpha_1/notation/constructors/sngref_2.ma".
25 include "alpha_1/notation/constructors/snabstneg_1.ma".
26 include "alpha_1/notation/constructors/snproj_3.ma".
27 include "alpha_1/notation/constructors/snprojpos_2.ma".
28 include "alpha_1/notation/constructors/snprojneg_2.ma".
29 include "alpha_1/grammar/item.ma".
31 (* TERMS ********************************************************************)
34 inductive term: Type[0] ≝
35 | TAtom: term (* atomic item construction *)
36 | TUnit: item1 → term → term (* unary item construction *)
37 | TPair: item2 → term → term → term (* binary item construction *)
40 interpretation "top (term)"
43 interpretation "term construction (unary)"
44 'SnItem1 I T = (TUnit I T).
46 interpretation "term construction (binary)"
47 'SnItem2 I T1 T2 = (TPair I T1 T2).
49 interpretation "character (term)"
50 'SnStar k T = (TUnit (Char k) T).
52 interpretation "local reference (term)"
53 'SnLRef i T = (TUnit (LRef i) T).
55 interpretation "global reference (term)"
56 'SnGRef p T = (TUnit (GRef p) T).
58 interpretation "negative abbreviation (term)"
59 'SnAbbrNeg T = (TUnit Decl T).
61 interpretation "positive abstraction (term)"
62 'SnAbstPos T1 T2 = (TPair Abst T1 T2).
64 interpretation "abbreviation (term)"
65 'SnAbbr a T1 T2 = (TPair (Abbr a) T1 T2).
67 interpretation "positive abbreviation (term)"
68 'SnAbbrPos T1 T2 = (TPair (Abbr true) T1 T2).
70 interpretation "negative abbreviation (term)"
71 'SnAbbrNeg T1 T2 = (TPair (Abbr false) T1 T2).
73 interpretation "projection (term)"
74 'SnProj a T1 T2 = (TPair (Proj a) T1 T2).
76 interpretation "positive projection (term)"
77 'SnProjPos T1 T2 = (TPair (Proj true) T1 T2).
79 interpretation "negative projection (term)"
80 'SnProjNeg T1 T2 = (TPair (Proj false) T1 T2).