]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/basic_2/rt_computation/csx_cpxs.ma
milestone update in basic_2
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / rt_computation / csx_cpxs.ma
index baba7a13128c28adadd4d7e6ed848e26af54f665..07782a8dcb9bf9f41f9b841dd3321ddc131cf8c5 100644 (file)
@@ -12,7 +12,7 @@
 (*                                                                        *)
 (**************************************************************************)
 
-include "basic_2/rt_computation/cpxs_teqx.ma".
+include "basic_2/rt_computation/cpxs_teqg.ma".
 include "basic_2/rt_computation/cpxs_cpxs.ma".
 include "basic_2/rt_computation/csx_csx.ma".
 
@@ -22,7 +22,7 @@ include "basic_2/rt_computation/csx_csx.ma".
 
 (* Basic_1: was just: sn3_intro *)
 lemma csx_intro_cpxs (G) (L):
-      â\88\80T1. (â\88\80T2. â\9dªG,Lâ\9d« â\8a¢ T1 â¬\88* T2 â\86\92 (T1 â\89\9b T2 → ⊥) → ❪G,L❫ ⊢ ⬈*𝐒 T2) →
+      â\88\80T1. (â\88\80T2. â\9dªG,Lâ\9d« â\8a¢ T1 â¬\88* T2 â\86\92 (T1 â\89\85 T2 → ⊥) → ❪G,L❫ ⊢ ⬈*𝐒 T2) →
       ❪G,L❫ ⊢ ⬈*𝐒 T1.
 /4 width=1 by cpx_cpxs, csx_intro/ qed-.
 
@@ -36,36 +36,32 @@ qed-.
 
 (* Eliminators with extended context-sensitive rt-computation for terms *****)
 
-lemma csx_ind_cpxs_teqx (G) (L):
-      ∀Q:predicate term.
-      (∀T1. ❪G,L❫ ⊢ ⬈*𝐒 T1 →
-        (∀T2. ❪G,L❫ ⊢ T1 ⬈* T2 → (T1 ≛ T2 → ⊥) → Q T2) → Q T1
-      ) →
-      ∀T1. ❪G,L❫ ⊢ ⬈*𝐒 T1 →
-      ∀T0. ❪G,L❫ ⊢ T1 ⬈* T0 → ∀T2. T0 ≛ T2 → Q T2.
+fact csx_ind_cpxs_aux (G) (L):
+     ∀Q:predicate term.
+     (∀T1. ❪G,L❫ ⊢ ⬈*𝐒 T1 →
+       (∀T2. ❪G,L❫ ⊢ T1 ⬈* T2 → (T1 ≅ T2 → ⊥) → Q T2) → Q T1
+     ) →
+     ∀T1. ❪G,L❫ ⊢ ⬈*𝐒 T1 →
+     ∀T2. ❪G,L❫ ⊢ T1 ⬈* T2 → Q T2.
 #G #L #Q #IH #T1 #H @(csx_ind … H) -T1
-#T1 #HT1 #IH1 #T0 #HT10 #T2 #HT02
-@IH -IH /3 width=3 by csx_cpxs_trans, csx_teqx_trans/ -HT1 #V2 #HTV2 #HnTV2
-lapply (teqx_tneqx_trans … HT02 … HnTV2) -HnTV2 #H
-elim (teqx_cpxs_trans … HT02 … HTV2) -T2 #V0 #HTV0 #HV02
-lapply (tneqx_teqx_canc_dx … H … HV02) -H #HnTV0
-elim (teqx_dec T1 T0) #H
-[ lapply (teqx_tneqx_trans … H … HnTV0) -H -HnTV0 #Hn10
-  lapply (cpxs_trans … HT10 … HTV0) -T0 #H10
-  elim (cpxs_tneqx_fwd_step_sn … H10 …  Hn10) -H10 -Hn10
-  /3 width=8 by teqx_trans/
-| elim (cpxs_tneqx_fwd_step_sn … HT10 … H) -HT10 -H #T #V #HT1 #HnT1 #HTV #HVT0
-  elim (teqx_cpxs_trans … HVT0 … HTV0) -T0
-  /3 width=8 by cpxs_trans, teqx_trans/
+#T1 #HT1 #IH1 #T2 #HT12
+@IH -IH /2 width=3 by csx_cpxs_trans/ -HT1 #V2 #HTV2 #HnTV2
+elim (teqx_dec T1 T2) #H
+[ lapply (teqg_tneqg_trans … H … HnTV2) // -H -HnTV2 #Hn12
+  lapply (cpxs_trans … HT12 … HTV2) -T2 #H12
+  elim (cpxs_tneqg_fwd_step_sn … H12 …  Hn12) /2 width=1 by sfull_dec/ -H12 -Hn12
+  /3 width=4 by/
+| elim (cpxs_tneqg_fwd_step_sn … HT12 … H) -HT12 -H
+  /3 width=6 by cpxs_trans, sfull_dec/
 ]
 qed-.
 
 (* Basic_2A1: was: csx_ind_alt *)
 lemma csx_ind_cpxs (G) (L) (Q:predicate …):
       (∀T1. ❪G,L❫ ⊢ ⬈*𝐒 T1 →
-        (â\88\80T2. â\9dªG,Lâ\9d« â\8a¢ T1 â¬\88* T2 â\86\92 (T1 â\89\9b T2 → ⊥) → Q T2) → Q T1
+        (â\88\80T2. â\9dªG,Lâ\9d« â\8a¢ T1 â¬\88* T2 â\86\92 (T1 â\89\85 T2 → ⊥) → Q T2) → Q T1
       ) →
       ∀T. ❪G,L❫ ⊢ ⬈*𝐒 T → Q T.
 #G #L #Q #IH #T #HT
-@(csx_ind_cpxs_teqx … IH … HT) -IH -HT // (**) (* full auto fails *)
+@(csx_ind_cpxs_aux … IH … HT) -IH -HT // (**) (* full auto fails *)
 qed-.