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/reduction/fpbq_alt.ma".
16 include "basic_2/computation/fpbs_alt.ma".
18 (* "QRST" PARALLEL COMPUTATION FOR CLOSURES *********************************)
20 (* Properties on extended context-sensitive parallel computation for terms **)
22 lemma fpbs_cpx_trans_neq: ∀h,o,G1,G2,L1,L2,T1,T2. ⦃G1, L1, T1⦄ ≥[h, o] ⦃G2, L2, T2⦄ →
23 ∀U2. ⦃G2, L2⦄ ⊢ T2 ➡[h, o] U2 → (T2 = U2 → ⊥) →
24 ∃∃U1. ⦃G1, L1⦄ ⊢ T1 ➡[h, o] U1 & T1 = U1 → ⊥ & ⦃G1, L1, U1⦄ ≥[h, o] ⦃G2, L2, U2⦄.
25 #h #o #G1 #G2 #L1 #L2 #T1 #T2 #H #U2 #HTU2 #HnTU2 elim (fpbs_inv_alt … H) -H
26 #L00 #L0 #T0 #HT10 #H10 #HL00 #HL02 lapply (lleq_cpx_trans … HTU2 … HL02) -HTU2
27 #HTU2 lapply (cpx_lleq_conf_sn … HTU2 … HL02) -HL02
28 #HL02 lapply (lpxs_cpx_trans … HTU2 … HL00) -HTU2
29 #HTU2 elim (fqus_cpxs_trans_neq … H10 … HTU2 HnTU2) -H10 -HTU2 -HnTU2
30 #U0 #HTU0 #HnTU0 #HU02 elim (eq_term_dec T1 T0) #HnT10 destruct
31 [ -HT10 elim (cpxs_neq_inv_step_sn … HTU0 HnTU0) -HTU0 -HnTU0
32 | -HnTU0 elim (cpxs_neq_inv_step_sn … HT10 HnT10) -HT10 -HnT10
34 /4 width=10 by fpbs_intro_alt, cpxs_trans, ex3_intro/
37 (* Properties on "rst" proper parallel reduction on closures ****************)
39 lemma fpb_fpbs: ∀h,o,G1,G2,L1,L2,T1,T2. ⦃G1, L1, T1⦄ ≻[h, o] ⦃G2, L2, T2⦄ →
40 ⦃G1, L1, T1⦄ ≥[h, o] ⦃G2, L2, T2⦄.
41 /3 width=1 by fpbq_fpbs, fpb_fpbq/ qed.