]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/multiple/frees_leq.ma
bb387ad1065337a0eaaf85ec2d51fc0e13a34700
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / multiple / frees_leq.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/substitution/ldrop_leq.ma".
16 include "basic_2/multiple/frees.ma".
17
18 (* CONTEXT-SENSITIVE FREE VARIABLES *****************************************)
19
20 (* Properties on equivalence for local environments *************************)
21
22 lemma leq_frees_trans: āˆ€L2,U,d,i. L2 āŠ¢ i Ļµ š…*[d]ā¦ƒUā¦„ ā†’
23                        āˆ€L1. L1 ā‰ƒ[d, āˆž] L2 ā†’ L1 āŠ¢ i Ļµ š…*[d]ā¦ƒUā¦„.
24 #L2 #U #d #i #H elim H -L2 -U -d -i /3 width=2 by frees_eq/
25 #I2 #L2 #K2 #U #W2 #d #i #j #Hdj #Hji #HnU #HLK2 #_ #IHW2 #L1 #HL12
26 elim (leq_ldrop_trans_be ā€¦ HL12 ā€¦ HLK2) -L2 // >yminus_Y_inj #K1 #HK12 #HLK1
27 lapply (leq_inv_O_Y ā€¦ HK12) -HK12 #H destruct /3 width=9 by frees_be/
28 qed-.
29
30 lemma frees_leq_conf: āˆ€L1,U,d,i. L1 āŠ¢ i Ļµ š…*[d]ā¦ƒUā¦„ ā†’
31                       āˆ€L2. L1 ā‰ƒ[d, āˆž] L2 ā†’ L2 āŠ¢ i Ļµ š…*[d]ā¦ƒUā¦„.
32 /3 width=3 by leq_sym, leq_frees_trans/ qed-.