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/relocation/fsup.ma".
16 include "basic_2/relocation/ldrop_lpx_sn.ma".
17 include "basic_2/reduction/cpr_lift.ma".
18 include "basic_2/reduction/lpr.ma".
20 (* SN PARALLEL REDUCTION FOR LOCAL ENVIRONMENTS *****************************)
22 (* Properies on local environment slicing ***********************************)
24 (* Basic_1: includes: wcpr0_drop *)
25 lemma lpr_ldrop_conf: dropable_sn lpr.
26 /3 width=5 by lpx_sn_deliftable_dropable, cpr_inv_lift1/ qed-.
28 (* Basic_1: includes: wcpr0_drop_back *)
29 lemma ldrop_lpr_trans: dedropable_sn lpr.
30 /3 width=9 by lpx_sn_liftable_dedropable, cpr_lift/ qed-.
32 lemma lpr_ldrop_trans_O1: dropable_dx lpr.
33 /2 width=3 by lpx_sn_dropable/ qed-.
35 (* Properties on context-sensitive parallel reduction for terms *************)
37 lemma fsup_cpr_trans: ∀L1,L2,T1,T2. ⦃L1, T1⦄ ⊃ ⦃L2, T2⦄ → ∀U2. L2 ⊢ T2 ➡ U2 →
38 ∃∃L,U1. L1 ⊢ ➡ L & L ⊢ T1 ➡ U1 & ⦃L, U1⦄ ⊃ ⦃L2, U2⦄.
39 #L1 #L2 #T1 #T2 #H elim H -L1 -L2 -T1 -T2 [1,2,3,4,5: /3 width=5/ ]
40 #L1 #K1 #K2 #T1 #T2 #U1 #d #e #HLK1 #HTU1 #_ #IHT12 #U2 #HTU2
41 elim (IHT12 … HTU2) -IHT12 -HTU2 #K #T #HK1 #HT1 #HT2
42 elim (lift_total T d e) #U #HTU
43 elim (ldrop_lpr_trans … HLK1 … HK1) -HLK1 -HK1 #L2 #HL12 #HL2K
44 lapply (cpr_lift … HT1 … HL2K … HTU1 … HTU) -HT1 -HTU1 /3 width=11/