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 "basic_2/unfold/ltpss.ma".
17 (* LOCAL ENVIRONMENT THINNING ***********************************************)
19 definition thin: nat → nat → relation lenv ≝
20 λd,e,L1,L2. ∃∃L. L1 [d, e] ▶* L & ⇩[d, e] L ≡ L2.
22 interpretation "thinning (local environment)"
23 'TSubst L1 d e L2 = (thin d e L1 L2).
25 (* Basic properties *********************************************************)
27 lemma ldrop_thin: ∀L1,L2,d,e. ⇩[d, e] L1 ≡ L2 → L1 [d, e] ≡ L2.
30 (* Basic inversion lemmas ***************************************************)
32 lemma thin_inv_thin1: ∀I,K1,V1,L2,e. K1. ⓑ{I} V1 [0, e] ≡ L2 → 0 < e →
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/