]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2A/grammar/cl_restricted_weight.ma
update in binararies for λδ
[helm.git] / matita / matita / contribs / lambdadelta / basic_2A / grammar / cl_restricted_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_2A/notation/functions/weight_2.ma".
16 include "basic_2A/grammar/lenv_weight.ma".
17
18 (* WEIGHT OF A RESTRICTED CLOSURE *******************************************)
19
20 definition rfw: lenv → term → ? ≝ λL,T. ♯{L} + ♯{T}.
21
22 interpretation "weight (restricted closure)" 'Weight L T = (rfw L T).
23
24 (* Basic properties *********************************************************)
25
26 lemma rfw_shift: ∀a,I,K,V,T. ♯{K.ⓑ{I}V, T} < ♯{K, ⓑ{a,I}V.T}.
27 normalize //
28 qed.
29
30 lemma rfw_tpair_sn: ∀I,L,V,T. ♯{L, V} < ♯{L, ②{I}V.T}.
31 normalize in ⊢ (?→?→?→?→?%%); //
32 qed.
33
34 lemma rfw_tpair_dx: ∀I,L,V,T. ♯{L, T} < ♯{L, ②{I}V.T}.
35 normalize in ⊢ (?→?→?→?→?%%); //
36 qed.
37
38 lemma rfw_lpair_sn: ∀I,L,V,T. ♯{L, V} < ♯{L.ⓑ{I}V, T}.
39 normalize /3 width=1 by monotonic_lt_plus_l, monotonic_le_plus_r/
40 qed.
41
42 lemma rfw_lpair_dx: ∀I,L,V,T. ♯{L, T} < ♯{L.ⓑ{I}V, T}.
43 normalize /3 width=1 by monotonic_lt_plus_l, monotonic_le_plus_r/
44 qed.