]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2A/etc/delift/cprs_delift.etc
milestone update in ground_2 and basic_2A
[helm.git] / matita / matita / contribs / lambdadelta / basic_2A / etc / delift / cprs_delift.etc
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/reducibility/cpr_delift.ma".
16 include "basic_2/reducibility/cpr_cpr.ma".
17 include "basic_2/computation/cprs.ma".
18
19 (* CONTEXT-SENSITIVE PARALLEL COMPUTATION ON TERMS **************************)
20
21 (* Properties on inverse basic term relocation ******************************)
22
23 (* Note: this should be stated with tprs *)
24 lemma cprs_zeta_delift: ∀L,V,T1,T2. L.ⓓV ⊢ ▼*[O, 1] T1 ≡ T2 → L ⊢ +ⓓV.T1 ➡* T2.
25 #L #V #T1 #T2 * #T #HT1 #HT2
26 @(cprs_strap2 … (+ⓓV.T)) [ /3 width=3/ | @inj /3 width=3/ ] (**) (* explicit constructor, /5 width=3/ is too slow *)
27 qed.
28
29 (* Basic_1: was only: pr3_gen_cabbr *)
30 lemma thin_cprs_delift_conf: ∀L,U1,U2. L ⊢ U1 ➡* U2 →
31                              ∀K,d,e. ▼*[d, e] L ≡ K → ∀T1. L ⊢ ▼*[d, e] U1 ≡ T1 →
32                              ∃∃T2. K ⊢ T1 ➡* T2 & L ⊢ ▼*[d, e] U2 ≡ T2.
33 #L #U1 #U2 #H @(cprs_ind … H) -U2 /2 width=3/
34 #U #U2 #_ #HU2 #IHU1 #K #d #e #HLK #T1 #HTU1
35 elim (IHU1 … HLK … HTU1) -U1 #T #HT1 #HUT
36 elim (thin_cpr_delift_conf … HU2 … HLK … HUT) -U -HLK /3 width=3/
37 qed.