]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/ground_2/steps/rtc_max.ma
update in ground_2, static_2, basic_2
[helm.git] / matita / matita / contribs / lambdadelta / ground_2 / steps / rtc_max.ma
index e35ae558a80ef26d7e0e8a4785caf840b99731d7..a6e0efa87c5cb4ec93ceaaff7820e23c2b2ab82f 100644 (file)
@@ -12,9 +12,8 @@
 (*                                                                        *)
 (**************************************************************************)
 
-include "ground_2/xoa/ex_3_2.ma".
 include "ground_2/xoa/ex_6_8.ma".
-include "ground_2/steps/rtc_shift.ma".
+include "ground_2/steps/rtc.ma".
 
 (* RT-TRANSITION COUNTER ****************************************************)
 
@@ -58,69 +57,3 @@ theorem max_assoc: associative โ€ฆ max.
 * #ri1 #rs1 #ti1 #ts1 * #ri2 #rs2 #ti2 #ts2 * #ri3 #rs3 #ti3 #ts3
 <max_rew <max_rew //
 qed.
-
-(* Properties with test for constrained rt-transition counter ***************)
-
-lemma isrt_max: โˆ€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_max_O1: โˆ€n,c1,c2. ๐‘๐“โช0,c1โซ โ†’ ๐‘๐“โชn,c2โซ โ†’ ๐‘๐“โชn,c1โˆจc2โซ.
-/2 width=1 by isrt_max/ qed.
-
-lemma isrt_max_O2: โˆ€n,c1,c2. ๐‘๐“โชn,c1โซ โ†’ ๐‘๐“โช0,c2โซ โ†’ ๐‘๐“โชn,c1โˆจc2โซ.
-#n #c1 #c2 #H1 #H2 >(max_O2 n) /2 width=1 by isrt_max/
-qed.
-
-lemma isrt_max_idem1: โˆ€n,c1,c2. ๐‘๐“โชn,c1โซ โ†’ ๐‘๐“โชn,c2โซ โ†’ ๐‘๐“โชn,c1โˆจc2โซ.
-#n #c1 #c2 #H1 #H2 >(idempotent_max n) /2 width=1 by isrt_max/
-qed.
-
-(* Inversion properties with test for constrained rt-transition counter *****)
-
-lemma isrt_inv_max: โˆ€n,c1,c2. ๐‘๐“โชn,c1 โˆจ c2โซ โ†’
-                    โˆƒโˆƒn1,n2. ๐‘๐“โชn1,c1โซ & ๐‘๐“โชn2,c2โซ & (n1 โˆจ n2) = n.
-#n #c1 #c2 * #ri #rs #H
-elim (max_inv_dx โ€ฆ H) -H #ri1 #rs1 #ti1 #ts1 #ri2 #rs2 #ti2 #ts2 #_ #_ #H1 #H2 #H3 #H4
-elim (max_inv_O3 โ€ฆ H1) -H1 /3 width=5 by ex3_2_intro, ex1_2_intro/
-qed-.
-
-lemma isrt_O_inv_max: โˆ€c1,c2. ๐‘๐“โช0,c1 โˆจ c2โซ โ†’ โˆงโˆง ๐‘๐“โช0,c1โซ & ๐‘๐“โช0,c2โซ.
-#c1 #c2 #H
-elim (isrt_inv_max โ€ฆ H) -H #n1 #n2 #Hn1 #Hn2 #H
-elim (max_inv_O3 โ€ฆ H) -H #H1 #H2 destruct
-/2 width=1 by conj/
-qed-.
-
-lemma isrt_inv_max_O_dx: โˆ€n,c1,c2. ๐‘๐“โชn,c1 โˆจ c2โซ โ†’ ๐‘๐“โช0,c2โซ โ†’ ๐‘๐“โชn,c1โซ.
-#n #c1 #c2 #H #H2
-elim (isrt_inv_max โ€ฆ H) -H #n1 #n2 #Hn1 #Hn2 #H destruct
-lapply (isrt_inj โ€ฆ Hn2 H2) -c2 #H destruct //
-qed-.
-
-lemma isrt_inv_max_eq_t: โˆ€n,c1,c2. ๐‘๐“โชn,c1 โˆจ c2โซ โ†’ eq_t c1 c2 โ†’
-                         โˆงโˆง ๐‘๐“โชn,c1โซ & ๐‘๐“โชn,c2โซ.
-#n #c1 #c2 #H #Hc12
-elim (isrt_inv_max โ€ฆ H) -H #n1 #n2 #Hc1 #Hc2 #H destruct
-lapply (isrt_eq_t_trans โ€ฆ Hc1 โ€ฆ Hc12) -Hc12 #H
-<(isrt_inj โ€ฆ H โ€ฆ Hc2) -Hc2
-<idempotent_max /2 width=1 by conj/
-qed-.
-
-(* Properties with shift ****************************************************)
-
-lemma max_shift: โˆ€c1,c2. ((โ†•*c1) โˆจ (โ†•*c2)) = โ†•*(c1โˆจc2).
-* #ri1 #rs1 #ti1 #ts1 * #ri2 #rs2 #ti2 #ts2
-<shift_rew <shift_rew <shift_rew <max_rew //
-qed.
-
-(* Inversion lemmaswith shift ***********************************************)
-
-lemma isrt_inv_max_shift_sn: โˆ€n,c1,c2. ๐‘๐“โชn,โ†•*c1 โˆจ c2โซ โ†’
-                             โˆงโˆง ๐‘๐“โช0,c1โซ & ๐‘๐“โชn,c2โซ.
-#n #c1 #c2 #H
-elim (isrt_inv_max โ€ฆ H) -H #n1 #n2 #Hc1 #Hc2 #H destruct
-elim (isrt_inv_shift โ€ฆ Hc1) -Hc1 #Hc1 * -n1
-/2 width=1 by conj/
-qed-.