1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 include "ground/xoa/ex_3_2.ma".
16 include "ground/counters/rtc_max.ma".
17 include "ground/counters/rtc_ist.ma".
19 (* T-BOUND RT-TRANSITION COUNTERS *******************************************)
21 (* Constructions with rtc_max ***********************************************)
23 lemma rtc_ist_max (n1) (n2) (c1) (c2): ๐โจn1,c1โฉ โ ๐โจn2,c2โฉ โ ๐โจn1โจn2,c1โจc2โฉ.
24 #n1 #n2 #c1 #c2 #H1 #H2 destruct //
27 lemma rtc_ist_max_zero_sn (n) (c1) (c2): ๐โจ๐,c1โฉ โ ๐โจn,c2โฉ โ ๐โจn,c1โจc2โฉ.
28 /2 width=1 by rtc_ist_max/ qed.
30 lemma rtc_ist_max_zero_dx (n) (c1) (c2): ๐โจn,c1โฉ โ ๐โจ๐,c2โฉ โ ๐โจn,c1โจc2โฉ.
33 lemma rtc_ist_max_idem_sn (n) (c1) (c2): ๐โจn,c1โฉ โ ๐โจn,c2โฉ โ ๐โจn,c1โจc2โฉ.
34 #n #c1 #c2 #H1 #H2 >(nmax_idem n) /2 width=1 by rtc_ist_max/
37 (* Inversions with rtc_max **************************************************)
39 lemma rtc_ist_inv_max (n) (c1) (c2): ๐โจn,c1 โจ c2โฉ โ
40 โโn1,n2. ๐โจn1,c1โฉ & ๐โจn2,c2โฉ & (n1 โจ n2) = n.
42 elim (rtc_max_inv_dx โฆ H) -H #ri1 #rs1 #ti1 #ts1 #ri2 #rs2 #ti2 #ts2 #H1 #H2 #H3 #H4 #H5 #H6 destruct
43 elim (eq_inv_nmax_zero โฆ H1) -H1 #H11 #H12 destruct
44 elim (eq_inv_nmax_zero โฆ H2) -H2 #H21 #H22 destruct
45 elim (eq_inv_nmax_zero โฆ H3) -H3 #H31 #H32 destruct
46 /2 width=5 by ex3_2_intro/
49 lemma rtc_ist_inv_zero_max (c1) (c2): ๐โจ๐,c1 โจ c2โฉ โ โงโง ๐โจ๐,c1โฉ & ๐โจ๐,c2โฉ.
51 elim (rtc_ist_inv_max โฆ H) -H #n1 #n2 #Hn1 #Hn2 #H
52 elim (eq_inv_nmax_zero โฆ H) -H #H1 #H2 destruct
56 lemma rtc_ist_inv_max_zero_dx (n) (c1) (c2): ๐โจn,c1 โจ c2โฉ โ ๐โจ๐,c2โฉ โ ๐โจn,c1โฉ.
58 elim (rtc_ist_inv_max โฆ H) -H #n1 #n2 #Hn1 #Hn2 #H destruct //