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/notation/functions/weight_3.ma".
16 include "static_2/syntax/lenv_weight.ma".
17 include "static_2/syntax/genv.ma".
19 (* WEIGHT OF A CLOSURE ******************************************************)
22 definition fw: genv → lenv → term → ? ≝ λG,L,T. ♯❨L❩ + ♯❨T❩.
24 interpretation "weight (closure)" 'Weight G L T = (fw G L T).
26 (* Basic properties *********************************************************)
28 (* Basic_1: was: flt_shift *)
29 lemma fw_shift: ∀p,I,G,K,V,T. ♯❨G,K.ⓑ[I]V,T❩ < ♯❨G,K,ⓑ[p,I]V.T❩.
30 normalize /2 width=1 by monotonic_le_plus_r/
33 lemma fw_clear: ∀p,I1,I2,G,K,V,T. ♯❨G,K.ⓤ[I1],T❩ < ♯❨G,K,ⓑ[p,I2]V.T❩.
34 normalize /4 width=1 by monotonic_le_plus_r, le_S_S/
37 lemma fw_tpair_sn: ∀I,G,L,V,T. ♯❨G,L,V❩ < ♯❨G,L,②[I]V.T❩.
38 normalize in ⊢ (?→?→?→?→?→?%%); //
41 lemma fw_tpair_dx: ∀I,G,L,V,T. ♯❨G,L,T❩ < ♯❨G,L,②[I]V.T❩.
42 normalize in ⊢ (?→?→?→?→?→?%%); //
45 lemma fw_lpair_sn: ∀I,G,L,V,T. ♯❨G,L,V❩ < ♯❨G,L.ⓑ[I]V,T❩.
46 normalize /3 width=1 by monotonic_lt_plus_l, monotonic_le_plus_r/
49 (* Basic_1: removed theorems 7:
50 flt_thead_sx flt_thead_dx flt_trans
51 flt_arith0 flt_arith1 flt_arith2 flt_wf_ind
53 (* Basic_1: removed local theorems 1: q_ind *)