]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/grammar/test.ma
- the example is smaller and really self-contained ...
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / grammar / test.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 universe constraint Type[0] < Type[1].
16
17 (* notations ****************************************************************)
18
19 notation "hvbox(a break \to b)"
20   right associative with precedence 20
21 for @{ \forall $_:$a.$b }.
22
23 notation "hvbox( T . break ⓑ { term 46 I } break term 48 T1 )"
24  non associative with precedence 47
25  for @{ 'DxBind2 $T $I $T1 }.
26
27 (* definitions **************************************************************)
28
29 inductive lenv: Type[0] ≝
30 | LAtom: lenv
31 | LPair: lenv → lenv → lenv → lenv
32 .
33
34 inductive genv: Type[0] ≝
35 | GAtom: genv
36 | GPair: genv → genv → genv → genv
37 .
38
39 axiom fw: genv → lenv → Prop.
40
41 (* interpretations **********************************************************)
42
43 interpretation "environment binding construction (binary)"
44    'DxBind2 L I T = (LPair L I T).
45
46 interpretation "environment binding construction (binary)"
47    'DxBind2 G I T = (GPair G I T).
48
49 (* statements ***************************************************************)
50
51 axiom fw_shift: ∀I,G,K,V. fw G (K.ⓑ{I}V).