]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/basic_2/rt_computation/lfsx_lfpxs.ma
lfsx_lfpxs completed!
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / rt_computation / lfsx_lfpxs.ma
index d1e4f4de8054f7bbae46785500a8fc1be3e720b1..31a027834c09f98cec0a489ff49c060591863458 100644 (file)
@@ -30,7 +30,7 @@ lemma lfsx_intro_lfpxs: āˆ€h,o,G,L1,T.
 (* Basic_2A1: uses: lsx_lpxs_trans *)
 lemma lfsx_lfpxs_trans: āˆ€h,o,G,L1,T. G āŠ¢ ā¬ˆ*[h, o, T] š’ā¦ƒL1ā¦„ ā†’
                         āˆ€L2. ā¦ƒG, L1ā¦„ āŠ¢ ā¬ˆ*[h, T] L2 ā†’ G āŠ¢ ā¬ˆ*[h, o, T] š’ā¦ƒL2ā¦„.
-#h #o #G #L1 #T #HL1 #L2 #H @(lfpxs_ind ā€¦ H) -L2
+#h #o #G #L1 #T #HL1 #L2 #H @(lfpxs_ind_sn ā€¦ H) -L2
 /2 width=3 by lfsx_lfpx_trans/
 qed-.
 
@@ -73,51 +73,50 @@ qed-.
 
 (* Advanced properties ******************************************************)
 
-fact lsx_bind_lpxs_aux: āˆ€h,o,p,I,G,L1,V. G āŠ¢ ā¬ˆ*[h, o, V] š’ā¦ƒL1ā¦„ ā†’
-                        āˆ€Y,T. G āŠ¢ ā¬ˆ*[h, o, T] š’ā¦ƒYā¦„ ā†’
-                        āˆ€L2. Y = L2.ā“‘{I}V ā†’ ā¦ƒG, L1ā¦„ āŠ¢ ā¬ˆ*[h, ā“‘{p,I}V.T] L2 ā†’
-                        G āŠ¢ ā¬ˆ*[h, o, ā“‘{p,I}V.T] š’ā¦ƒL2ā¦„.
+fact lfsx_bind_lfpxs_aux: āˆ€h,o,p,I,G,L1,V. G āŠ¢ ā¬ˆ*[h, o, V] š’ā¦ƒL1ā¦„ ā†’
+                          āˆ€Y,T. G āŠ¢ ā¬ˆ*[h, o, T] š’ā¦ƒYā¦„ ā†’
+                          āˆ€L2. Y = L2.ā“‘{I}V ā†’ ā¦ƒG, L1ā¦„ āŠ¢ ā¬ˆ*[h, ā“‘{p,I}V.T] L2 ā†’
+                          G āŠ¢ ā¬ˆ*[h, o, ā“‘{p,I}V.T] š’ā¦ƒL2ā¦„.
 #h #o #p #I #G #L1 #V #H @(lfsx_ind_lfpxs ā€¦ H) -L1
-#L1 #HL1 #IHL1 #Y #T #H @(lfsx_ind_lfpxs ā€¦ H) -Y
-#Y #HY #IHY #L2 #H #HL12 destruct @lfsx_intro_lfpxs
-#L0 #HL20 lapply (lfpxs_trans ā€¦ HL12 ā€¦ HL20)
-#HL10 #H elim (lfdneq_inv_bind ā€¦ H) -H [ -HL1 -IHY | -HY -IHL1 ]
+#L1 #_ #IHL1 #Y #T #H @(lfsx_ind_lfpxs ā€¦ H) -Y
+#Y #HY #IHY #L2 #H #HL12 destruct
+@lfsx_intro_lfpxs #L0 #HL20
+lapply (lfpxs_trans ā€¦ HL12 ā€¦ HL20) #HL10 #H
+elim (lfdneq_inv_bind ā€¦ H) -H [ -IHY | -HY -IHL1 -HL12 ]
 [ #HnV elim (lfdeq_dec h o L1 L2 V)
-  [ #HV @(IHL1 ā€¦ L0) -IHL1
-    [2: /3 width=5 by lfdeq_canc_sn/
-    |5: // |3: skip
-    |6: //
-  
-   lfdeq_lfdneq_trans/
-  
-  /3 width=5 by lfsx_lfpxs_trans, lfpxs_pair, lfdeq_canc_sn/ (**) (* full auto too slow *)
-  | -HnV -HL10 /4 width=5 by lsx_lpxs_trans, lpxs_pair/
+  [ #HV @(IHL1 ā€¦ L0) -IHL1 -HL12
+    /3 width=4 by lfsx_lfpxs_trans, lfpxs_fwd_bind_dx, lfpxs_fwd_pair_sn, lfdeq_canc_sn/ (**) (* full auto too slow *)
+  | -HnV -HL10 /4 width=4 by lfsx_lfpxs_trans, lfpxs_fwd_pair_sn/
   ]
-| /3 width=4 by lpxs_pair/
+| /3 width=4 by lfpxs_fwd_bind_dx/
 ]
 qed-.
 
-lemma lsx_bind: āˆ€h,o,a,I,G,L,V,l. G āŠ¢ ā¬ˆ*[h, o, V, l] L ā†’
-                āˆ€T. G āŠ¢ ā¬ˆ*[h, o, T, ā«Æl] L.ā“‘{I}V ā†’
-                G āŠ¢ ā¬ˆ*[h, o, ā“‘{a,I}V.T, l] L.
-/2 width=3 by lsx_bind_lpxs_aux/ qed.
+(* Basic_2A1: uses: lsx_bind *)
+lemma lfsx_bind: āˆ€h,o,p,I,G,L,V. G āŠ¢ ā¬ˆ*[h, o, V] š’ā¦ƒLā¦„ ā†’
+                 āˆ€T. G āŠ¢ ā¬ˆ*[h, o, T] š’ā¦ƒL.ā“‘{I}Vā¦„ ā†’
+                 G āŠ¢ ā¬ˆ*[h, o, ā“‘{p,I}V.T] š’ā¦ƒLā¦„.
+/2 width=3 by lfsx_bind_lfpxs_aux/ qed.
 
-lemma lsx_flat_lpxs: āˆ€h,o,I,G,L1,V,l. G āŠ¢ ā¬ˆ*[h, o, V, l] L1 ā†’
-                     āˆ€L2,T. G āŠ¢ ā¬ˆ*[h, o, T, l] L2 ā†’ ā¦ƒG, L1ā¦„ āŠ¢ ā¬ˆ*[h, o] L2 ā†’
-                     G āŠ¢ ā¬ˆ*[h, o, ā“•{I}V.T, l] L2.
-#h #o #I #G #L1 #V #l #H @(lsx_ind_lfpxs ā€¦ H) -L1
-#L1 #HL1 #IHL1 #L2 #T #H @(lsx_ind_lfpxs ā€¦ H) -L2
-#L2 #HL2 #IHL2 #HL12 @lsx_intro_lfpxs
-#L0 #HL20 lapply (lpxs_trans ā€¦ HL12 ā€¦ HL20)
-#HL10 #H elim (nlleq_inv_flat ā€¦ H) -H [ -HL1 -IHL2 | -HL2 -IHL1 ]
-[ #HnV elim (lleq_dec V L1 L2 l)
-  [ #HV @(IHL1 ā€¦ L0) /3 width=3 by lsx_lpxs_trans, lleq_canc_sn/ (**) (* full auto too slow: 47s *)
-  | -HnV -HL10 /3 width=4 by lsx_lpxs_trans/
+(* Basic_2A1: uses: lsx_flat_lpxs *)
+lemma lfsx_flat_lfpxs: āˆ€h,o,I,G,L1,V. G āŠ¢ ā¬ˆ*[h, o, V] š’ā¦ƒL1ā¦„ ā†’
+                       āˆ€L2,T. G āŠ¢ ā¬ˆ*[h, o, T] š’ā¦ƒL2ā¦„ ā†’ ā¦ƒG, L1ā¦„ āŠ¢ ā¬ˆ*[h, ā“•{I}V.T] L2 ā†’
+                       G āŠ¢ ā¬ˆ*[h, o, ā“•{I}V.T] š’ā¦ƒL2ā¦„.
+#h #o #I #G #L1 #V #H @(lfsx_ind_lfpxs ā€¦ H) -L1
+#L1 #HL1 #IHL1 #L2 #T #H @(lfsx_ind_lfpxs ā€¦ H) -L2
+#L2 #HL2 #IHL2 #HL12 @lfsx_intro_lfpxs
+#L0 #HL20 lapply (lfpxs_trans ā€¦ HL12 ā€¦ HL20)
+#HL10 #H elim (lfdneq_inv_flat ā€¦ H) -H [ -HL1 -IHL2 | -HL2 -IHL1 ]
+[ #HnV elim (lfdeq_dec h o L1 L2 V)
+  [ #HV @(IHL1 ā€¦ L0) -IHL1 -HL12
+    /3 width=5 by lfsx_lfpxs_trans, lfpxs_fwd_flat_dx, lfpxs_fwd_pair_sn, lfdeq_canc_sn/ (**) (* full auto too slow: 47s *)
+  | -HnV -HL10 /4 width=4 by lfsx_lfpxs_trans, lfpxs_fwd_pair_sn/
   ]
-| /3 width=1 by/
+| /3 width=3 by lfpxs_fwd_flat_dx/
 ]
 qed-.
 
-lemma lsx_flat: āˆ€h,o,I,G,L,V,l. G āŠ¢ ā¬ˆ*[h, o, V, l] L ā†’
-                āˆ€T. G āŠ¢ ā¬ˆ*[h, o, T, l] L ā†’ G āŠ¢ ā¬ˆ*[h, o, ā“•{I}V.T, l] L.
-/2 width=3 by lsx_flat_lpxs/ qed.
+(* Basic_2A1: uses: lsx_flat *)
+lemma lfsx_flat: āˆ€h,o,I,G,L,V. G āŠ¢ ā¬ˆ*[h, o, V] š’ā¦ƒLā¦„ ā†’
+                 āˆ€T. G āŠ¢ ā¬ˆ*[h, o, T] š’ā¦ƒLā¦„ ā†’ G āŠ¢ ā¬ˆ*[h, o, ā“•{I}V.T] š’ā¦ƒLā¦„.
+/2 width=3 by lfsx_flat_lfpxs/ qed.