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/reducibility/cpr_ltpss_sn.ma".
17 include "basic_2/reducibility/cfpr.ma".
19 (* CONTEXT-SENSITIVE PARALLEL REDUCTION ON CLOSURES *************************)
21 (* Advanced inversion lemmas ************************************************)
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⦄ &
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
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