]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambda_delta/basic_2/unfold/thin.ma
- more properties on lifting, slicing, delifting and thinning
[helm.git] / matita / matita / contribs / lambda_delta / basic_2 / unfold / thin.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/unfold/ltpss.ma".
16
17 (* LOCAL ENVIRONMENT THINNING ***********************************************)
18
19 definition thin: nat → nat → relation lenv ≝
20                  λd,e,L1,L2. ∃∃L. L1 [d, e] ▶* L & ⇩[d, e] L ≡ L2.
21
22 interpretation "thinning (local environment)"
23    'TSubst L1 d e L2 = (thin d e L1 L2).
24
25 (* Basic properties *********************************************************)
26
27 lemma ldrop_thin: ∀L1,L2,d,e. ⇩[d, e] L1 ≡ L2 → L1 [d, e] ≡ L2.
28 /2 width=3/ qed.
29
30 (* Basic inversion lemmas ***************************************************)
31
32 lemma thin_inv_thin1: ∀I,K1,V1,L2,e. K1. ⓑ{I} V1 [0, e] ≡ L2 → 0 < e →
33                       K1 [0, e - 1] ≡ L2.
34 #I #K1 #V1 #L2 #e * #X #HK1 #HL2 #e
35 elim (ltpss_inv_tpss21 … HK1 ?) -HK1 // #K #V #HK1 #_ #H destruct
36 lapply (ldrop_inv_ldrop1 … HL2 ?) -HL2 // /2 width=3/
37 qed-.