]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambda-delta/Basic-2/grammar/lenv.ma
dfec098086a0464ed6b7a629529bfaf57746cac3
[helm.git] / matita / matita / contribs / lambda-delta / Basic-2 / grammar / lenv.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 "Basic-2/grammar/term.ma".
16
17 (* LOCAL ENVIRONMENTS *******************************************************)
18
19 (* local environments *)
20 inductive lenv: Type[0] ≝
21 | LAtom: lenv                       (* empty *)
22 | LPair: lenv → bind2 → term → lenv (* binary binding construction *)
23 .
24
25 interpretation "sort (local environment)" 'Star = LAtom.
26
27 interpretation "environment binding construction (binary)" 'DBind L I T = (LPair L I T).