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/static/lfdeq_lfdeq.ma".
16 include "basic_2/rt_transition/lfpx_lfdeq.ma".
17 include "basic_2/rt_computation/lfsx.ma".
19 (* STRONGLY NORMALIZING LOCAL ENV.S FOR UNCOUNTED PARALLEL RT-TRANSITION ****)
21 axiom pippo: ∀h,o,p,I,G,L1,L2,V,T. ⦃G, L1⦄ ⊢ ⬈[h, V] L2 →
22 ∃∃L. ⦃G, L1⦄ ⊢ ⬈[h, ⓑ{p,I}V.T] L & L ≡[h, o, V] L2.
24 (* Advanced properties ******************************************************)
26 lemma lfsx_lfdeq_trans: ∀h,o,G,L1,T. G ⊢ ⬈*[h, o, T] 𝐒⦃L1⦄ →
27 ∀L2. L1 ≡[h, o, T] L2 → G ⊢ ⬈*[h, o, T] 𝐒⦃L2⦄.
28 #h #o #G #L1 #T #H @(lfsx_ind … H) -L1
29 #L1 #_ #IHL1 #L2 #HL12 @lfsx_intro
30 #L #HL2 #HnL2 elim (lfdeq_lfpx_trans … HL2 … HL12) -HL2
31 /4 width=5 by lfdeq_repl/
34 (* Advanced forward lemmas **************************************************)
36 (* Basic_2A1: was: lsx_fwd_bind_sn *)
37 lemma lfsx_fwd_bind_sn: ∀h,o,p,I,G,L,V,T. G ⊢ ⬈*[h, o, ⓑ{p,I}V.T] 𝐒⦃L⦄ →
39 #h #o #p #I #G #L #V #T #H @(lfsx_ind … H) -L
40 #L1 #_ #IHL1 @lfsx_intro
41 #L2 #H #HnL12 elim (pippo … o p I … T H) -H
42 /6 width=4 by lfsx_lfdeq_trans, lfdeq_trans, lfdeq_fwd_bind_sn/
45 lemma lfsx_fwd_flat_sn: ∀h,o,I,G,L,V,T,l. G ⊢ ⬈*[h, o, ⓕ{I}V.T, l] L →
47 #h #o #I #G #L #V #T #l #H @(lfsx_ind … H) -L
48 #L1 #_ #IHL1 @lfsx_intro
49 #L2 #HL12 #HV @IHL1 /3 width=3 by lfdeq_fwd_flat_sn/
52 lemma lfsx_fwd_flat_dx: ∀h,o,I,G,L,V,T,l. G ⊢ ⬈*[h, o, ⓕ{I}V.T, l] L →
54 #h #o #I #G #L #V #T #l #H @(lfsx_ind … H) -L
55 #L1 #_ #IHL1 @lfsx_intro
56 #L2 #HL12 #HV @IHL1 /3 width=3 by lfdeq_fwd_flat_dx/
59 lemma lfsx_fwd_pair_sn: ∀h,o,I,G,L,V,T,l. G ⊢ ⬈*[h, o, ②{I}V.T, l] L →
61 #h #o * /2 width=4 by lfsx_fwd_bind_sn, lfsx_fwd_flat_sn/
64 (* Basic inversion lemmas ***************************************************)
66 lemma lfsx_inv_flat: ∀h,o,I,G,L,V,T,l. G ⊢ ⬈*[h, o, ⓕ{I}V.T, l] L →
67 G ⊢ ⬈*[h, o, V, l] L ∧ G ⊢ ⬈*[h, o, T, l] L.
68 /3 width=3 by lfsx_fwd_flat_sn, lfsx_fwd_flat_dx, conj/ qed-.