]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambda-delta/Basic-2/reduction/ltpr_drop.ma
99c0ae0d492ed04a031142c7336ad47339268b51
[helm.git] / matita / matita / contribs / lambda-delta / Basic-2 / reduction / ltpr_drop.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/reduction/tpr_lift.ma".
16 include "Basic-2/reduction/ltpr.ma".
17
18 (* CONTEXT-FREE PARALLEL REDUCTION ON LOCAL ENVIRONMENTS ********************)
19
20 (* Basic-1: was: wcpr0_drop *)
21 lemma ltpr_drop_conf: ∀L1,K1,d,e. ↓[d, e] L1 ≡ K1 → ∀L2. L1 ⇒ L2 →
22                       ∃∃K2. ↓[d, e] L2 ≡ K2 & K1 ⇒ K2.
23 #L1 #K1 #d #e #H elim H -H L1 K1 d e
24 [ #d #e #X #H >(ltpr_inv_atom1 … H) -H /2/
25 | #L1 #K1 #I #V1 #HLK1 #_ #X #H
26   <(drop_inv_refl … HLK1) -HLK1 K1;
27   elim (ltpr_inv_pair1 … H) -H #L2 #V2 #HL12 #HV12 #H destruct /3 width=5/
28 | #L1 #K1 #I #V1 #e #_ #IHLK1 #X #H
29   elim (ltpr_inv_pair1 … H) -H #L2 #V2 #HL12 #HV12 #H destruct -X;
30   elim (IHLK1 … HL12) -IHLK1 HL12 /3/
31 | #L1 #K1 #I #V1 #W1 #d #e #_ #HWV1 #IHLK1 #X #H
32   elim (ltpr_inv_pair1 … H) -H #L2 #V2 #HL12 #HV12 #H destruct -X;
33   elim (tpr_inv_lift … HV12 … HWV1) -HV12 HWV1;
34   elim (IHLK1 … HL12) -IHLK1 HL12 /3 width=5/
35 ]
36 qed.
37
38 (* Basic-1: was: wcpr0_drop_back *)
39 lemma ltpr_drop_trans: ∀L1,K1,d,e. ↓[d, e] L1 ≡ K1 → ∀K2. K1 ⇒ K2 →
40                        ∃∃L2. ↓[d, e] L2 ≡ K2 & L1 ⇒ L2.
41 #L1 #K1 #d #e #H elim H -H L1 K1 d e
42 [ #d #e #X #H >(ltpr_inv_atom1 … H) -H /2/
43 | #L1 #K1 #I #V1 #HLK1 #_ #X #H
44   >(drop_inv_refl … HLK1) -HLK1 L1;
45   elim (ltpr_inv_pair1 … H) -H #K2 #V2 #HK12 #HV12 #H destruct /3 width=5/
46 | #L1 #K1 #I #V1 #e #_ #IHLK1 #K2 #HK12
47   elim (IHLK1 … HK12) -IHLK1 HK12 /3 width=5/
48 | #L1 #K1 #I #V1 #W1 #d #e #_ #HWV1 #IHLK1 #X #H
49   elim (ltpr_inv_pair1 … H) -H #K2 #W2 #HK12 #HW12 #H destruct -X;
50   elim (lift_total W2 d e) #V2 #HWV2
51   lapply (tpr_lift … HW12 … HWV1 … HWV2) -HW12 HWV1;
52   elim (IHLK1 … HK12) -IHLK1 HK12 /3 width=5/
53 ]
54 qed.