Step * 1 of Lemma rsc4-decided-property


1. Cmd : Type
2. Cmd  ValueAllType
3. valueall-type(Cmd)
4. cmdeq : EqDecider(Cmd)
5. locs : bag(Id)
6. clients : bag(Id)
7. coeff : 
8. flrs : 
9. es : EO'
10. StandardAssumptions(rsc4_Main) es
11. e : E
12. c : Cmd
13. n : 
14. <n, c rsc4_decided'base(Cmd)(e)
15. e' : E
16. (e' < e)
17. loc(e')  locs
18. loc(e) = loc(e')
19. e1 : {e1:E| e1 loc e' } 
20. a : 
21. a2 : 
22. b2 :  List
23. <a2, b2 Memory-class(rsc4_update_replica(Cmd);rsc4_init() <0, []>;rsc4_Proposal(Cmd))(e1)
24. (a2 < a)  (a  b2)
25. b : Cmd
26. True
27. <a, b Base([propose];  Cmd)(e1)
 (b1:. b3:Id. <<<a, b1>, b>, b3 Base(``rsc4 vote``;    Cmd  Id)(e1))
28. b1 : 
29. c1 : Cmd
30. lastloc : Id
31. <<<n, b1>, c1>, lastloc Base(``rsc4 vote``;    Cmd  Id)(e')
32. cs : Cmd List
33. ||cs|| = (coeff * flrs)
34. (fst(poss-maj(cmdeq;[c1 / cs];c1))) = ((coeff * flrs) + 1)
35. c = (snd(poss-maj(cmdeq;[c1 / cs];c1)))
36. L : Id List
37. <cs, L Memory-class(rsc4_add_to_quorum(Cmd) <a, 0>;rsc4_init() <[], []>;rsc4_vote'base(Cmd))(e')
38. (rsc4_newvote(Cmd) <a, 0> <<<n, b1>, c1>, lastloc> <cs, L>)
39. (no rsc4_Quorum(Cmd;cmdeq;coeff;flrs) <a, 0between e1 and e')
40. (z[c1 / cs].z = c)
 (||cs|| = ||L||)  no_repeats(Id;L)
BY
{ ((Assert <cs, L rsc4_QuorumState(Cmd) <a, 0>(e') THENA (RepUR ``rsc4_QuorumState`` 0 THEN Trivial))
   THEN FLemma `rsc4_quorum_invariant` [-1]
   THEN Auto
   THEN Reduce (-1)
   THEN MaAuto) }




1.  Cmd  :  Type
2.  Cmd  \mmember{}  ValueAllType
3.  valueall-type(Cmd)
4.  cmdeq  :  EqDecider(Cmd)
5.  locs  :  bag(Id)
6.  clients  :  bag(Id)
7.  coeff  :  \mBbbZ{}
8.  flrs  :  \mBbbZ{}
9.  es  :  EO'
10.  StandardAssumptions(rsc4\_Main)  es
11.  e  :  E
12.  c  :  Cmd
13.  n  :  \mBbbZ{}
14.  <n,  c>  \mmember{}  rsc4\_decided'base(Cmd)(e)
15.  e'  :  E
16.  (e'  <  e)
17.  loc(e')  \mdownarrow{}\mmember{}  locs
18.  loc(e)  =  loc(e')
19.  e1  :  \{e1:E|  e1  \mleq{}loc  e'  \} 
20.  a  :  \mBbbZ{}
21.  a2  :  \mBbbZ{}
22.  b2  :  \mBbbZ{}  List
23.  <a2,  b2>  \mmember{}  Memory-class(rsc4\_update\_replica(Cmd);rsc4\_init()  ɘ,  []>rsc4\_Proposal(Cmd))(e1)
24.  (a2  <  a)  \mvee{}  (a  \mmember{}  b2)
25.  b  :  Cmd
26.  True
27.  <a,  b>  \mmember{}  Base([propose];\mBbbZ{}  \mtimes{}  Cmd)(e1)
\mvee{}  (\mexists{}b1:\mBbbZ{}.  \mexists{}b3:Id.  <<<a,  b1>,  b>,  b3>  \mmember{}  Base(``rsc4  vote``;\mBbbZ{}  \mtimes{}  \mBbbZ{}  \mtimes{}  Cmd  \mtimes{}  Id)(e1))
28.  b1  :  \mBbbZ{}
29.  c1  :  Cmd
30.  lastloc  :  Id
31.  <<<n,  b1>,  c1>,  lastloc>  \mmember{}  Base(``rsc4  vote``;\mBbbZ{}  \mtimes{}  \mBbbZ{}  \mtimes{}  Cmd  \mtimes{}  Id)(e')
32.  cs  :  Cmd  List
33.  ||cs||  =  (coeff  *  flrs)
34.  (fst(poss-maj(cmdeq;[c1  /  cs];c1)))  =  ((coeff  *  flrs)  +  1)
35.  c  =  (snd(poss-maj(cmdeq;[c1  /  cs];c1)))
36.  L  :  Id  List
37.  <cs,  L>  \mmember{}  Memory-class(rsc4\_add\_to\_quorum(Cmd)  <a,  0>rsc4\_init()  <[],  []>rsc4\_vote'base(Cmd))(
                            e')
38.  \muparrow{}(rsc4\_newvote(Cmd)  <a,  0>  <<<n,  b1>,  c1>,  lastloc>  <cs,  L>)
39.  (no  rsc4\_Quorum(Cmd;cmdeq;coeff;flrs)  <a,  0>  between  e1  and  e')
40.  (\mforall{}z\mmember{}[c1  /  cs].z  =  c)
\mvdash{}  (||cs||  =  ||L||)  \mwedge{}  no\_repeats(Id;L)


By


((Assert  \mkleeneopen{}<cs,  L>  \mmember{}  rsc4\_QuorumState(Cmd)  <a,  0>(e')\mkleeneclose{}\mcdot{}
    THENA  (RepUR  ``rsc4\_QuorumState``  0  THEN  Trivial)
    )
  THEN  FLemma  `rsc4\_quorum\_invariant`  [-1]
  THEN  Auto
  THEN  Reduce  (-1)
  THEN  MaAuto)



Home Index