]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/ground_2/steps/rtc_isrt_plus.ma
update in ground_2, static_2, basic_2
[helm.git] / matita / matita / contribs / lambdadelta / ground_2 / steps / rtc_isrt_plus.ma
diff --git a/matita/matita/contribs/lambdadelta/ground_2/steps/rtc_isrt_plus.ma b/matita/matita/contribs/lambdadelta/ground_2/steps/rtc_isrt_plus.ma
new file mode 100644 (file)
index 0000000..5d799bd
--- /dev/null
@@ -0,0 +1,59 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||M||                                                             *)
+(*      ||A||       A project by Andrea Asperti                           *)
+(*      ||T||                                                             *)
+(*      ||I||       Developers:                                           *)
+(*      ||T||         The HELM team.                                      *)
+(*      ||A||         http://helm.cs.unibo.it                             *)
+(*      \   /                                                             *)
+(*       \ /        This file is distributed under the terms of the       *)
+(*        v         GNU General Public License Version 2                  *)
+(*                                                                        *)
+(**************************************************************************)
+
+include "ground_2/xoa/ex_3_2.ma".
+include "ground_2/steps/rtc_plus.ma".
+include "ground_2/steps/rtc_isrt.ma".
+
+(* RT-TRANSITION COUNTER ****************************************************)
+
+(* Properties with test for constrained rt-transition counter ***************)
+
+lemma isrt_plus: âˆ€n1,n2,c1,c2. ð‘𝐓❊n1,c1âŦ â†’ ð‘𝐓❊n2,c2âŦ â†’ ð‘𝐓❊n1+n2,c1+c2âŦ.
+#n1 #n2 #c1 #c2 * #ri1 #rs1 #H1 * #ri2 #rs2 #H2 destruct
+/2 width=3 by ex1_2_intro/
+qed.
+
+lemma isrt_plus_O1: âˆ€n,c1,c2. ð‘𝐓❊0,c1âŦ â†’ ð‘𝐓❊n,c2âŦ â†’ ð‘𝐓❊n,c1+c2âŦ.
+/2 width=1 by isrt_plus/ qed.
+
+lemma isrt_plus_O2: âˆ€n,c1,c2. ð‘𝐓❊n,c1âŦ â†’ ð‘𝐓❊0,c2âŦ â†’ ð‘𝐓❊n,c1+c2âŦ.
+#n #c1 #c2 #H1 #H2 >(plus_n_O n) /2 width=1 by isrt_plus/
+qed.
+
+lemma isrt_succ: âˆ€n,c. ð‘𝐓❊n,câŦ â†’ ð‘𝐓❊↑n,c+𝟘𝟙âŦ.
+/2 width=1 by isrt_plus/ qed.
+
+(* Inversion properties with test for constrained rt-transition counter *****)
+
+lemma isrt_inv_plus: âˆ€n,c1,c2. ð‘𝐓❊n,c1 + c2âŦ â†’
+                     âˆƒâˆƒn1,n2. ð‘𝐓❊n1,c1âŦ & ð‘𝐓❊n2,c2âŦ & n1 + n2 = n.
+#n #c1 #c2 * #ri #rs #H
+elim (plus_inv_dx â€Ķ H) -H #ri1 #rs1 #ti1 #ts1 #ri2 #rs2 #ti2 #ts2 #_ #_ #H1 #H2 #H3 #H4
+elim (plus_inv_O3 â€Ķ H1) -H1 /3 width=5 by ex3_2_intro, ex1_2_intro/
+qed-.
+
+lemma isrt_inv_plus_O_dx: âˆ€n,c1,c2. ð‘𝐓❊n,c1 + c2âŦ â†’ ð‘𝐓❊0,c2âŦ â†’ ð‘𝐓❊n,c1âŦ.
+#n #c1 #c2 #H #H2
+elim (isrt_inv_plus â€Ķ H) -H #n1 #n2 #Hn1 #Hn2 #H destruct
+lapply (isrt_inj â€Ķ Hn2 H2) -c2 #H destruct //
+qed-.
+
+lemma isrt_inv_plus_SO_dx: âˆ€n,c1,c2. ð‘𝐓❊n,c1 + c2âŦ â†’ ð‘𝐓❊1,c2âŦ â†’
+                           âˆƒâˆƒm. ð‘𝐓❊m,c1âŦ & n = â†‘m.
+#n #c1 #c2 #H #H2
+elim (isrt_inv_plus â€Ķ H) -H #n1 #n2 #Hn1 #Hn2 #H destruct
+lapply (isrt_inj â€Ķ Hn2 H2) -c2 #H destruct
+/2 width=3 by ex2_intro/
+qed-.