]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/grammar/cl_weight.ma
lambdadelta
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / grammar / cl_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 "basic_2/notation/functions/weight_2.ma".
16 include "basic_2/grammar/lenv_weight.ma".
17 include "basic_2/grammar/cl_shift.ma".
18
19 (* WEIGHT OF A CLOSURE ******************************************************)
20
21 definition fw: lenv → term → ? ≝ λL,T. ♯{L} + ♯{T}.
22
23 interpretation "weight (closure)" 'Weight L T = (fw L T).
24
25 (* Basic properties *********************************************************)
26
27 (* Basic_1: was: flt_shift *)
28 lemma fw_shift: ∀a,K,I,V,T. ♯{K. ⓑ{I} V, T} < ♯{K, ⓑ{a,I} V. T}.
29 normalize //
30 qed.
31
32 lemma fw_tpair_sn: ∀I,L,V,T. ♯{L, V} < ♯{L, ②{I}V.T}.
33 normalize in ⊢ (?→?→?→?→?%%); //
34 qed.
35
36 lemma fw_tpair_dx: ∀I,L,V,T. ♯{L, T} < ♯{L, ②{I}V.T}.
37 normalize in ⊢ (?→?→?→?→?%%); //
38 qed.
39
40 lemma fw_lpair_sn: ∀I,L,V,T. ♯{L, V} < ♯{L.ⓑ{I}V, T}.
41 normalize /3 width=1 by monotonic_lt_plus_l, monotonic_le_plus_r/ (**) (* auto too slow without trace *)
42 qed.
43
44 (* Basic_1: removed theorems 7:
45             flt_thead_sx flt_thead_dx flt_trans
46             flt_arith0 flt_arith1 flt_arith2 flt_wf_ind
47 *)
48 (* Basic_1: removed local theorems 1: q_ind *)