]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/rt_computation/lfsx_lfsx.ma
a6ef10ba90c933849610958fc39b026fc0335f88
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / rt_computation / lfsx_lfsx.ma
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/static/lfdeq_lfdeq.ma".
16 include "basic_2/rt_transition/lfpx_lfdeq.ma".
17 include "basic_2/rt_computation/lfsx.ma".
18
19 (* STRONGLY NORMALIZING LOCAL ENV.S FOR UNCOUNTED PARALLEL RT-TRANSITION ****)
20
21 (* Advanced properties ******************************************************)
22
23 (* Basic_2A1: uses: lsx_lleq_trans *)
24 lemma lfsx_lfdeq_trans: āˆ€h,o,G,L1,T. G āŠ¢ ā¬ˆ*[h, o, T] š’ā¦ƒL1ā¦„ ā†’
25                         āˆ€L2. L1 ā‰›[h, o, T] L2 ā†’ G āŠ¢ ā¬ˆ*[h, o, T] š’ā¦ƒL2ā¦„.
26 #h #o #G #L1 #T #H @(lfsx_ind ā€¦ H) -L1
27 #L1 #_ #IHL1 #L2 #HL12 @lfsx_intro
28 #L #HL2 #HnL2 elim (lfdeq_lfpx_trans ā€¦ HL2 ā€¦ HL12) -HL2
29 /4 width=5 by lfdeq_repl/
30 qed-.
31
32 (* Basic_2A1: uses: lsx_lpx_trans *)
33 lemma lfsx_lfpx_trans: āˆ€h,o,G,L1,T. G āŠ¢ ā¬ˆ*[h, o, T] š’ā¦ƒL1ā¦„ ā†’
34                        āˆ€L2. ā¦ƒG, L1ā¦„ āŠ¢ ā¬ˆ[h, T] L2 ā†’ G āŠ¢ ā¬ˆ*[h, o, T] š’ā¦ƒL2ā¦„.
35 #h #o #G #L1 #T #H @(lfsx_ind ā€¦ H) -L1 #L1 #HL1 #IHL1 #L2 #HL12
36 elim (lfdeq_dec h o L1 L2 T) /3 width=4 by lfsx_lfdeq_trans, lfxs_refl/
37 qed-.
38
39 (* Advanced forward lemmas **************************************************)
40
41 (* Basic_2A1: uses: lsx_fwd_pair_sn lsx_fwd_bind_sn lsx_fwd_flat_sn *)
42 lemma lfsx_fwd_pair_sn: āˆ€h,o,I,G,L,V,T. G āŠ¢ ā¬ˆ*[h, o, ā‘”{I}V.T] š’ā¦ƒLā¦„ ā†’
43                         G āŠ¢ ā¬ˆ*[h, o, V] š’ā¦ƒLā¦„.
44 #h #o #I #G #L #V #T #H @(lfsx_ind ā€¦ H) -L
45 #L1 #_ #IHL1 @lfsx_intro
46 #L2 #H #HnL12 elim (lfpx_pair_sn_split ā€¦ H o I T) -H
47 /6 width=3 by lfsx_lfdeq_trans, lfdeq_trans, lfdeq_fwd_pair_sn/
48 qed-.
49
50 (* Basic_2A1: uses: lsx_fwd_flat_dx *)
51 lemma lfsx_fwd_flat_dx: āˆ€h,o,I,G,L,V,T. G āŠ¢ ā¬ˆ*[h, o, ā“•{I}V.T] š’ā¦ƒLā¦„ ā†’
52                         G āŠ¢ ā¬ˆ*[h, o, T] š’ā¦ƒLā¦„.
53 #h #o #I #G #L #V #T #H @(lfsx_ind ā€¦ H) -L
54 #L1 #_ #IHL1 @lfsx_intro
55 #L2 #H #HnL12 elim (lfpx_flat_dx_split ā€¦ H o I V) -H
56 /6 width=3 by lfsx_lfdeq_trans, lfdeq_trans, lfdeq_fwd_flat_dx/
57 qed-.
58
59 (* Basic_2A1: uses: lsx_fwd_bind_dx *)
60 (* Note: the exclusion binder (ā“§) makes this more elegant and much simpler *)
61 lemma lfsx_fwd_bind_dx: āˆ€h,o,p,I,G,L,V,T. G āŠ¢ ā¬ˆ*[h, o, ā“‘{p,I}V.T] š’ā¦ƒLā¦„ ā†’
62                         G āŠ¢ ā¬ˆ*[h, o, T] š’ā¦ƒL.ā“§ā¦„.
63 #h #o #p #I #G #L #V #T #H @(lfsx_ind ā€¦ H) -L
64 #L1 #_ #IH @lfsx_intro
65 #L2 #H #HT elim (lfpx_bind_dx_split_void ā€¦ H o p I V) -H
66 /6 width=5 by lfsx_lfdeq_trans, lfdeq_trans, lfdeq_fwd_bind_dx_void/
67 qed-.
68
69 (* Advanced inversion lemmas ************************************************)
70
71 (* Basic_2A1: uses: lsx_inv_flat *)
72 lemma lfsx_inv_flat: āˆ€h,o,I,G,L,V,T. G āŠ¢ ā¬ˆ*[h, o, ā“•{I}V.T] š’ā¦ƒLā¦„ ā†’
73                      G āŠ¢ ā¬ˆ*[h, o, V] š’ā¦ƒLā¦„ āˆ§ G āŠ¢ ā¬ˆ*[h, o, T] š’ā¦ƒLā¦„.
74 /3 width=3 by lfsx_fwd_pair_sn, lfsx_fwd_flat_dx, conj/ qed-.
75
76 (* Basic_2A1: uses: lsx_inv_bind *)
77 lemma lfsx_inv_bind: āˆ€h,o,p,I,G,L,V,T. G āŠ¢ ā¬ˆ*[h, o, ā“‘{p,I}V.T] š’ā¦ƒLā¦„ ā†’
78                      G āŠ¢ ā¬ˆ*[h, o, V] š’ā¦ƒLā¦„ āˆ§ G āŠ¢ ā¬ˆ*[h, o, T] š’ā¦ƒL.ā“§ā¦„.
79 /3 width=4 by lfsx_fwd_pair_sn, lfsx_fwd_bind_dx, conj/ qed-.