]> matita.cs.unibo.it Git - helm.git/blob - 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
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 include "ground_2/xoa/ex_3_2.ma".
16 include "ground_2/steps/rtc_plus.ma".
17 include "ground_2/steps/rtc_isrt.ma".
18
19 (* RT-TRANSITION COUNTER ****************************************************)
20
21 (* Properties with test for constrained rt-transition counter ***************)
22
23 lemma isrt_plus: âˆ€n1,n2,c1,c2. ð‘𝐓❊n1,c1âŦ â†’ ð‘𝐓❊n2,c2âŦ â†’ ð‘𝐓❊n1+n2,c1+c2âŦ.
24 #n1 #n2 #c1 #c2 * #ri1 #rs1 #H1 * #ri2 #rs2 #H2 destruct
25 /2 width=3 by ex1_2_intro/
26 qed.
27
28 lemma isrt_plus_O1: âˆ€n,c1,c2. ð‘𝐓❊0,c1âŦ â†’ ð‘𝐓❊n,c2âŦ â†’ ð‘𝐓❊n,c1+c2âŦ.
29 /2 width=1 by isrt_plus/ qed.
30
31 lemma isrt_plus_O2: âˆ€n,c1,c2. ð‘𝐓❊n,c1âŦ â†’ ð‘𝐓❊0,c2âŦ â†’ ð‘𝐓❊n,c1+c2âŦ.
32 #n #c1 #c2 #H1 #H2 >(plus_n_O n) /2 width=1 by isrt_plus/
33 qed.
34
35 lemma isrt_succ: âˆ€n,c. ð‘𝐓❊n,câŦ â†’ ð‘𝐓❊↑n,c+𝟘𝟙âŦ.
36 /2 width=1 by isrt_plus/ qed.
37
38 (* Inversion properties with test for constrained rt-transition counter *****)
39
40 lemma isrt_inv_plus: âˆ€n,c1,c2. ð‘𝐓❊n,c1 + c2âŦ â†’
41                      âˆƒâˆƒn1,n2. ð‘𝐓❊n1,c1âŦ & ð‘𝐓❊n2,c2âŦ & n1 + n2 = n.
42 #n #c1 #c2 * #ri #rs #H
43 elim (plus_inv_dx â€Ķ H) -H #ri1 #rs1 #ti1 #ts1 #ri2 #rs2 #ti2 #ts2 #_ #_ #H1 #H2 #H3 #H4
44 elim (plus_inv_O3 â€Ķ H1) -H1 /3 width=5 by ex3_2_intro, ex1_2_intro/
45 qed-.
46
47 lemma isrt_inv_plus_O_dx: âˆ€n,c1,c2. ð‘𝐓❊n,c1 + c2âŦ â†’ ð‘𝐓❊0,c2âŦ â†’ ð‘𝐓❊n,c1âŦ.
48 #n #c1 #c2 #H #H2
49 elim (isrt_inv_plus â€Ķ H) -H #n1 #n2 #Hn1 #Hn2 #H destruct
50 lapply (isrt_inj â€Ķ Hn2 H2) -c2 #H destruct //
51 qed-.
52
53 lemma isrt_inv_plus_SO_dx: âˆ€n,c1,c2. ð‘𝐓❊n,c1 + c2âŦ â†’ ð‘𝐓❊1,c2âŦ â†’
54                            âˆƒâˆƒm. ð‘𝐓❊m,c1âŦ & n = â†‘m.
55 #n #c1 #c2 #H #H2
56 elim (isrt_inv_plus â€Ķ H) -H #n1 #n2 #Hn1 #Hn2 #H destruct
57 lapply (isrt_inj â€Ķ Hn2 H2) -c2 #H destruct
58 /2 width=3 by ex2_intro/
59 qed-.