]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2A/etc/fpr/cfpr_ltpss.etc
milestone update in ground_2 and basic_2A
[helm.git] / matita / matita / contribs / lambdadelta / basic_2A / etc / fpr / cfpr_ltpss.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_lift.ma".
16 include "basic_2/reducibility/cpr_ltpss_sn.ma".
17 include "basic_2/reducibility/cfpr.ma".
18
19 (* CONTEXT-SENSITIVE PARALLEL REDUCTION ON CLOSURES *************************)
20
21 (* Advanced inversion lemmas ************************************************)
22
23 lemma cfpr_inv_pair1: ∀I,L,K1,L2,V1,T1,T2. L ⊢ ⦃⋆.ⓑ{I}V1@@K1, T1⦄ ➡ ⦃L2, T2⦄ →
24                       ∃∃K2,V,V2. V1 ➡ V & L ⊢ V ▶* [0, |L|] V2 &
25                                  L.ⓑ{I}V ⊢ ⦃K1, T1⦄ ➡ ⦃K2, T2⦄  &
26                                  L2 = ⋆.ⓑ{I}V2@@K2.
27 * #L #K1 #L2 #V1 #T1 #T2 * >append_length #H
28 elim (length_inv_pos_sn_append … H) -H #I2 #K2 #V2 #HK12 #H destruct
29 >shift_append_assoc >shift_append_assoc normalize in ⊢ (??%%→?); #H
30 [ elim (cpr_inv_abbr1 … H) -H *
31   [ #V #V0 #T0 #HV1 #HV0 #HT10 #H destruct /3 width=7/
32   | #T0 #_ #_ #H destruct
33   ]
34 | elim (cpr_inv_abst1 … H Abst V2) -H
35   #V #T * #V0 #HV10 #HV0 #HT1 #H destruct
36   lapply (ltpss_sn_cpr_trans (L.ⓛV0) … 0 (|L|+1) … HT1) -HT1 /2 width=1/ #HT12
37   /3 width=7/
38 ]
39 qed-.