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/dynamic/snv_aaa.ma".
16 include "basic_2/dynamic/lsubsv.ma".
18 (* LOCAL ENVIRONMENT REFINEMENT FOR STRATIFIED NATIVE VALIDITY **************)
20 (* Forward lemmas on lenv refinement for atomic arity assignment ************)
22 lemma lsubsv_fwd_lsuba: ∀h,g,L1,L2. h ⊢ L1 ¡⊑[g] L2 → L1 ⁝⊑ L2.
23 #h #g #L1 #L2 #H elim H -L1 -L2 // /2 width=1/
24 #L1 #L2 #W #V #W1 #V2 #l #HV #HW #_ #_ #_ #IHL12 -W1 -V2
25 elim (snv_fwd_aaa … HV) -HV #A #HV
26 elim (snv_fwd_aaa … HW) -HW #B #HW
27 elim (aaa_inv_cast … HV) #HWA #_
28 lapply (lsuba_aaa_trans … HW … IHL12) #HWB
29 lapply (aaa_mono … HWB … HWA) -HWB -HWA #H destruct /2 width=3/