]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/ground_2/steps/rtc_isrt.ma
bug fix in the context reduction rule for cast (cpm)
[helm.git] / matita / matita / contribs / lambdadelta / ground_2 / steps / rtc_isrt.ma
index ced83577ac246dddcb5a4edaff326317b8606908..9c988abea63f85bd33a65e7d05b191bfe96b1244 100644 (file)
@@ -34,6 +34,11 @@ lemma isr_10: š‘š“ā¦ƒ0, šŸ™šŸ˜ā¦„.
 lemma isrt_01: š‘š“ā¦ƒ1, šŸ˜šŸ™ā¦„.
 /2 width=3 by ex1_2_intro/ qed.
 
+lemma isrt_eq_t_trans: āˆ€n,c1,c2. š‘š“ā¦ƒn, c1ā¦„ ā†’ eq_t c1 c2 ā†’ š‘š“ā¦ƒn, c2ā¦„.
+#n #c1 #c2 * #ri1 #rs1 #H destruct
+#H elim (eq_t_inv_dx ā€¦ H) -H /2 width=3 by ex1_2_intro/
+qed-.
+
 (* Basic inversion properties ***********************************************)
 
 lemma isrt_inv_00: āˆ€n. š‘š“ā¦ƒn, šŸ˜šŸ˜ā¦„ ā†’ 0 = n.
@@ -50,6 +55,10 @@ qed-.
 
 (* Main inversion properties ************************************************)
 
-theorem isrt_mono: āˆ€n1,n2,c. š‘š“ā¦ƒn1, cā¦„ ā†’ š‘š“ā¦ƒn2, cā¦„ ā†’ n1 = n2.
+theorem isrt_inj: āˆ€n1,n2,c. š‘š“ā¦ƒn1, cā¦„ ā†’ š‘š“ā¦ƒn2, cā¦„ ā†’ n1 = n2.
 #n1 #n2 #c * #ri1 #rs1 #H1 * #ri2 #rs2 #H2 destruct //
 qed-.
+
+theorem isrt_mono: āˆ€n,c1,c2. š‘š“ā¦ƒn, c1ā¦„ ā†’ š‘š“ā¦ƒn, c2ā¦„ ā†’ eq_t c1 c2.
+#n #c1 #c2 * #ri1 #rs1 #H1 * #ri2 #rs2 #H2 destruct //
+qed-.