]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/basic_2/rt_computation/csx_cnx.ma
- csx_cnx_vector.ma completed
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / rt_computation / csx_cnx.ma
index 8f9268fabdebc14beb748b0408f85540bfecff4d..ea34597b9fef2e09073ef5c762b9e11e5cd41649 100644 (file)
@@ -22,3 +22,16 @@ include "basic_2/rt_computation/csx.ma".
 (* Basic_1: was just: sn3_nf2 *)
 lemma cnx_csx: ∀h,o,G,L,T. ⦃G, L⦄ ⊢ ⬈[h, o] 𝐍⦃T⦄ → ⦃G, L⦄ ⊢ ⬈*[h, o] 𝐒⦃T⦄.
 /2 width=1 by NF_to_SN/ qed.
+
+(* Advanced properties ******************************************************)
+
+lemma csx_sort: ∀h,o,G,L,s. ⦃G, L⦄ ⊢ ⬈*[h, o] 𝐒⦃⋆s⦄.
+#h #o #G #L #s elim (deg_total h o s)
+#d generalize in match s; -s elim d -d
+[ /3 width=3 by cnx_csx, cnx_sort/
+| #d #IH #s #Hsd lapply (deg_next_SO … Hsd) -Hsd
+  #Hsd @csx_intro #X #H #HX
+  elim (cpx_inv_sort1 … H) -H #H destruct /2 width=1 by/
+  elim HX -HX //
+]
+qed.