]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/ground/steps/rtc_ist_plus.ma
ground_2 released and permanently renamed as ground
[helm.git] / matita / matita / contribs / lambdadelta / ground / steps / rtc_ist_plus.ma
diff --git a/matita/matita/contribs/lambdadelta/ground/steps/rtc_ist_plus.ma b/matita/matita/contribs/lambdadelta/ground/steps/rtc_ist_plus.ma
new file mode 100644 (file)
index 0000000..44f12f0
--- /dev/null
@@ -0,0 +1,67 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||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/xoa/ex_3_2.ma".
+include "ground/steps/rtc_plus.ma".
+include "ground/steps/rtc_ist.ma".
+
+(* RT-TRANSITION COUNTER ****************************************************)
+
+(* Properties with test for t-transition counter ****************************)
+
+lemma ist_plus: āˆ€n1,n2,c1,c2. š“āŖn1,c1ā« ā†’ š“āŖn2,c2ā« ā†’ š“āŖn1+n2,c1+c2ā«.
+#n1 #n2 #c1 #c2 #H1 #H2 destruct //
+qed.
+
+lemma ist_plus_O1: āˆ€n,c1,c2. š“āŖ0,c1ā« ā†’ š“āŖn,c2ā« ā†’ š“āŖn,c1+c2ā«.
+/2 width=1 by ist_plus/ qed.
+
+lemma ist_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 ist_plus/
+qed.
+
+lemma ist_succ: āˆ€n,c. š“āŖn,cā« ā†’ š“āŖā†‘n,c+šŸ˜šŸ™ā«.
+/2 width=1 by ist_plus/ qed.
+
+(* Inversion properties with test for constrained rt-transition counter *****)
+
+lemma ist_inv_plus:
+      āˆ€n,c1,c2. š“āŖn,c1 + c2ā« ā†’
+      āˆƒāˆƒn1,n2. š“āŖn1,c1ā« & š“āŖn2,c2ā« & n1 + n2 = n.
+#n #c1 #c2 #H
+elim (plus_inv_dx ā€¦ H) -H #ri1 #rs1 #ti1 #ts1 #ri2 #rs2 #ti2 #ts2 #H1 #H2 #H3 #H4 #H5 #H6 destruct
+elim (plus_inv_O3 ā€¦ H1) -H1 #H11 #H12 destruct
+elim (plus_inv_O3 ā€¦ H2) -H2 #H21 #H22 destruct
+elim (plus_inv_O3 ā€¦ H3) -H3 #H31 #H32 destruct
+/3 width=5 by ex3_2_intro/
+qed-.
+
+lemma ist_inv_plus_O_dx: āˆ€n,c1,c2. š“āŖn,c1 + c2ā« ā†’ š“āŖ0,c2ā« ā†’ š“āŖn,c1ā«.
+#n #c1 #c2 #H #H2
+elim (ist_inv_plus ā€¦ H) -H #n1 #n2 #Hn1 #Hn2 #H destruct //
+qed-.
+
+lemma ist_inv_plus_SO_dx:
+      āˆ€n,c1,c2. š“āŖn,c1 + c2ā« ā†’ š“āŖ1,c2ā« ā†’
+      āˆƒāˆƒm. š“āŖm,c1ā« & n = ā†‘m.
+#n #c1 #c2 #H #H2 destruct
+elim (ist_inv_plus ā€¦ H) -H #n1 #n2 #Hn1 #Hn2 #H destruct
+/2 width=3 by ex2_intro/
+qed-.
+
+lemma ist_inv_plus_10_dx: āˆ€n,c. š“āŖn,c+šŸ™šŸ˜ā« ā†’ āŠ„.
+#n #c #H
+elim (ist_inv_plus ā€¦ H) -H #n1 #n2 #_ #H #_
+/2 width=2 by ist_inv_10/
+qed-.