]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/static_2/syntax/bind_weight.ma
syntactic components detached from basic_2 become static_2
[helm.git] / matita / matita / contribs / lambdadelta / static_2 / syntax / bind_weight.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 "static_2/syntax/term_weight.ma".
16 include "static_2/syntax/bind.ma".
17
18 (* WEIGHT OF A BINDER FOR LOCAL ENVIRONMENTS *******************************)
19
20 rec definition bw I ≝ match I with
21 [ BUnit _   ⇒ 1
22 | BPair _ V ⇒ ♯{V}
23 ].
24
25 interpretation "weight (binder for local environments)" 'Weight I = (bw I).
26
27 (* Basic properties *********************************************************)
28
29 lemma bw_pos: ∀I. 1 ≤ ♯{I}.
30 * //
31 qed.