]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/ground_2/steps/rtc_ist_max.ma
update in ground_2 and basic_2
[helm.git] / matita / matita / contribs / lambdadelta / ground_2 / steps / rtc_ist_max.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/steps/rtc_max.ma".
16 include "ground_2/steps/rtc_ist.ma".
17
18 (* RT-TRANSITION COUNTER ****************************************************)
19
20 (* Properties with test for t-transition counter ****************************)
21
22 lemma ist_max: ∀n1,n2,c1,c2. 𝐓⦃n1,c1⦄ → 𝐓⦃n2,c2⦄ → 𝐓⦃n1∨n2,c1∨c2⦄.
23 #n1 #n2 #c1 #c2 #H1 #H2 destruct //
24 qed.
25
26 lemma ist_max_O1: ∀n,c1,c2. 𝐓⦃0,c1⦄ → 𝐓⦃n,c2⦄ → 𝐓⦃n,c1∨c2⦄.
27 /2 width=1 by ist_max/ qed.
28
29 lemma ist_max_O2: ∀n,c1,c2. 𝐓⦃n,c1⦄ → 𝐓⦃0,c2⦄ → 𝐓⦃n,c1∨c2⦄.
30 #n #c1 #c2 #H1 #H2 >(max_O2 n) /2 width=1 by ist_max/
31 qed.
32
33 lemma ist_max_idem1: ∀n,c1,c2. 𝐓⦃n,c1⦄ → 𝐓⦃n,c2⦄ → 𝐓⦃n,c1∨c2⦄.
34 #n #c1 #c2 #H1 #H2 >(idempotent_max n) /2 width=1 by ist_max/
35 qed.
36
37 (* Inversion properties with test for t-transition counter ******************)
38
39 lemma ist_inv_max:
40       ∀n,c1,c2. 𝐓⦃n,c1 ∨ c2⦄ →
41       ∃∃n1,n2. 𝐓⦃n1,c1⦄ & 𝐓⦃n2,c2⦄ & (n1 ∨ n2) = n.
42 #n #c1 #c2 #H
43 elim (max_inv_dx … H) -H #ri1 #rs1 #ti1 #ts1 #ri2 #rs2 #ti2 #ts2 #H1 #H2 #H3 #H4 #H5 #H6 destruct
44 elim (max_inv_O3 … H1) -H1 #H11 #H12 destruct
45 elim (max_inv_O3 … H2) -H2 #H21 #H22 destruct
46 elim (max_inv_O3 … H3) -H3 #H31 #H32 destruct
47 /2 width=5 by ex3_2_intro/
48 qed-.
49
50 lemma ist_O_inv_max: ∀c1,c2. 𝐓⦃0,c1 ∨ c2⦄ → ∧∧ 𝐓⦃0,c1⦄ & 𝐓⦃0,c2⦄.
51 #c1 #c2 #H
52 elim (ist_inv_max … H) -H #n1 #n2 #Hn1 #Hn2 #H
53 elim (max_inv_O3 … H) -H #H1 #H2 destruct
54 /2 width=1 by conj/
55 qed-.
56
57 lemma ist_inv_max_O_dx: ∀n,c1,c2. 𝐓⦃n,c1 ∨ c2⦄ → 𝐓⦃0,c2⦄ → 𝐓⦃n,c1⦄.
58 #n #c1 #c2 #H #H2
59 elim (ist_inv_max … H) -H #n1 #n2 #Hn1 #Hn2 #H destruct //
60 qed-.