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 "static_2/syntax/term_weight.ma".
16 include "static_2/syntax/genv.ma".
18 (* WEIGHT OF A GLOBAL ENVIRONMENT *******************************************)
20 rec definition gw G ≝ match G with
22 | GPair G I T ⇒ gw G + ♯❨T❩
25 interpretation "weight (global environment)" 'Weight G = (gw G).
27 (* Basic properties *********************************************************)
29 lemma gw_atom_unfold: 𝟏 = ♯❨⋆❩.
32 lemma gw_pair_unfold (I) (G) (T): ♯❨G❩ + ♯❨T❩ = ♯❨G.ⓑ[I]T❩.
35 lemma gw_pair: ∀I,G,T. ♯❨G❩ < ♯❨G.ⓑ[I]T❩.