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/reducibility/cpr_lift.ma".
16 include "basic_2/computation/cprs.ma".
18 (* CONTEXT-SENSITIVE PARALLEL COMPUTATION ON TERMS **************************)
20 (* Advanced inversion lemmas ************************************************)
22 (* Basic_1: was: pr3_gen_abst *)
23 lemma cprs_inv_abst1: ∀I,W,L,V1,T1,U2. L ⊢ ⓛV1. T1 ➡* U2 →
24 ∃∃V2,T2. L ⊢ V1 ➡* V2 & L. ⓑ{I} W ⊢ T1 ➡* T2 &
26 #I #W #L #V1 #T1 #U2 #H @(cprs_ind … H) -U2 /2 width=5/
27 #U #U2 #_ #HU2 * #V #T #HV1 #HT1 #H destruct
28 elim (cpr_inv_abst1 … HU2 I W) -HU2 #V2 #T2 #HV2 #HT2 #H destruct /3 width=5/
31 (* Relocation properties ****************************************************)
33 (* Basic_1: was: pr3_lift *)
34 lemma cprs_lift: ∀L,K,d,e. ⇩[d, e] L ≡ K → ∀T1,U1. ⇧[d, e] T1 ≡ U1 →
35 ∀T2. K ⊢ T1 ➡* T2 → ∀U2. ⇧[d, e] T2 ≡ U2 →
37 #L #K #d #e #HLK #T1 #U1 #HTU1 #T2 #HT12 @(cprs_ind … HT12) -T2
39 <(lift_mono … HTU1 … HT12) -T1 //
40 | -HTU1 #T #T2 #_ #HT2 #IHT2 #U2 #HTU2
41 elim (lift_total T d e) #U #HTU
42 lapply (cpr_lift … HLK … HTU … HTU2 … HT2) -T2 -HLK /3 width=3/
46 (* Basic_1: was: pr3_gen_lift *)
47 lemma cprs_inv_lift: ∀L,K,d,e. ⇩[d, e] L ≡ K →
48 ∀T1,U1. ⇧[d, e] T1 ≡ U1 → ∀U2. L ⊢ U1 ➡* U2 →
49 ∃∃T2. ⇧[d, e] T2 ≡ U2 & K ⊢ T1 ➡* T2.
50 #L #K #d #e #HLK #T1 #U1 #HTU1 #U2 #HU12 @(cprs_ind … HU12) -U2 /2 width=3/
51 -HTU1 #U #U2 #_ #HU2 * #T #HTU #HT1
52 elim (cpr_inv_lift … HLK … HTU … HU2) -U -HLK /3 width=5/