Step * of Lemma pv11_p1_scout_state_from_p1bs

Cmd:ValueAllType. ∀f:pv11_p1_headers_type{i:l}(Cmd). ∀es:EO+(Message(f)). ∀start,e:E. ∀accpts,ldrs:bag(Id).
ldrs_uid:Id ⟶ ℤ. ∀reps:bag(Id). ∀bnum:pv11_p1_Ballot_Num(). ∀waitfor:bag(Id).
pvalues:(pv11_p1_Ballot_Num() × ℤ × Cmd) List.
  (start ≤loc 
   Inj(Id;ℤ;ldrs_uid)
   pv11_p1_message-constraint{paxos-v11-part1.esh:o}(Cmd; accpts; ldrs; ldrs_uid; reps; f; es)
   (<waitfor, pvalues>
     pv11_p1_ScoutStateFun(Cmd;accpts;f;bnum;es.start;e)
     ∈ (bag(Id) × ((pv11_p1_Ballot_Num() × ℤ × Cmd) List)))
   (↓∃L:E List
        ((waitfor [i∈accpts|¬bi ∈b map(λe.loc(e);L)] ∈ bag(Id))
        ∧ (∀pv:pv11_p1_Ballot_Num() × ℤ × Cmd
             ((pv ∈ pvalues) ⇐⇒ (pv ∈ concat(map(λe.(snd(pv11_p1_AcceptorStateFun(Cmd;ldrs_uid;f;es;e)));L)))))
        ∧ (∀e':E
             ((e' ∈ L)
              ((e' < e)
                ∧ loc(e') ↓∈ accpts
                ∧ (bnum (fst(pv11_p1_AcceptorStateFun(Cmd;ldrs_uid;f;es;e'))) ∈ pv11_p1_Ballot_Num())))))))
BY
StartEmlProof }

1
1. Cmd {T:Type| valueall-type(T)} @i'
2. pv11_p1_headers_type{i:l}(Cmd)@i'
3. (f [decision]) (ℤ × Cmd) ∈ Type
4. (f [propose]) (ℤ × Cmd) ∈ Type
5. (f ``pv11_p1 adopted``) (pv11_p1_Ballot_Num() × ((pv11_p1_Ballot_Num() × ℤ × Cmd) List)) ∈ Type
6. (f ``pv11_p1 preempted``) pv11_p1_Ballot_Num() ∈ Type
7. (f ``pv11_p1 p2b``) (Id × pv11_p1_Ballot_Num() × ℤ × pv11_p1_Ballot_Num()) ∈ Type
8. (f ``pv11_p1 p2a``) (Id × pv11_p1_Ballot_Num() × ℤ × Cmd) ∈ Type
9. (f ``pv11_p1 p1b``)
(Id × pv11_p1_Ballot_Num() × pv11_p1_Ballot_Num() × ((pv11_p1_Ballot_Num() × ℤ × Cmd) List))
∈ Type
10. (f ``pv11_p1 p1a``) (Id × pv11_p1_Ballot_Num()) ∈ Type
11. f ∈ Name ⟶ Type
12. es EO+(Message(f))@i'
13. start E@i
14. E@i
15. accpts bag(Id)@i
16. ldrs bag(Id)@i
17. ldrs_uid Id ⟶ ℤ@i
18. reps bag(Id)@i
19. bnum pv11_p1_Ballot_Num()@i
20. waitfor bag(Id)@i
21. pvalues (pv11_p1_Ballot_Num() × ℤ × Cmd) List@i
22. start ≤loc @i
23. Inj(Id;ℤ;ldrs_uid)@i
24. pv11_p1_message-constraint{paxos-v11-part1.esh:o}(Cmd; accpts; ldrs; ldrs_uid; reps; f; es)@i
25. <waitfor, pvalues>
pv11_p1_ScoutStateFun(Cmd;accpts;f;bnum;es.start;e)
∈ (bag(Id) × ((pv11_p1_Ballot_Num() × ℤ × Cmd) List))@i
⊢ ↓∃L:E List
    ((waitfor [i∈accpts|¬bi ∈b map(λe.loc(e);L)] ∈ bag(Id))
    ∧ (∀pv:pv11_p1_Ballot_Num() × ℤ × Cmd
         ((pv ∈ pvalues) ⇐⇒ (pv ∈ concat(map(λe.(snd(pv11_p1_AcceptorStateFun(Cmd;ldrs_uid;f;es;e)));L)))))
    ∧ (∀e':E
         ((e' ∈ L)
          ((e' < e)
            ∧ loc(e') ↓∈ accpts
            ∧ (bnum (fst(pv11_p1_AcceptorStateFun(Cmd;ldrs_uid;f;es;e'))) ∈ pv11_p1_Ballot_Num())))))


Latex:


Latex:
\mforall{}Cmd:ValueAllType.  \mforall{}f:pv11\_p1\_headers\_type\{i:l\}(Cmd).  \mforall{}es:EO+(Message(f)).  \mforall{}start,e:E.
\mforall{}accpts,ldrs:bag(Id).  \mforall{}ldrs$_{uid}$:Id  {}\mrightarrow{}  \mBbbZ{}.  \mforall{}reps:bag(Id).  \mforall{}bnum:pv11\_p1\_Ballot\000C\_Num().  \mforall{}waitfor:bag(Id).
\mforall{}pvalues:(pv11\_p1\_Ballot\_Num()  \mtimes{}  \mBbbZ{}  \mtimes{}  Cmd)  List.
    (start  \mleq{}loc  e 
    {}\mRightarrow{}  Inj(Id;\mBbbZ{};ldrs$_{uid}$)
    {}\mRightarrow{}  pv11\_p1\_message-constraint\{paxos-v11-part1.esh:o\}(Cmd;  accpts;  ldrs;  ldrs$_{uid\mbackslash{}ff7\000Cd$;  reps;  f;  es)
    {}\mRightarrow{}  (<waitfor,  pvalues>  =  pv11\_p1\_ScoutStateFun(Cmd;accpts;f;bnum;es.start;e))
    {}\mRightarrow{}  (\mdownarrow{}\mexists{}L:E  List
                ((waitfor  =  [i\mmember{}accpts|\mneg{}\msubb{}i  \mmember{}\msubb{}  map(\mlambda{}e.loc(e);L)])
                \mwedge{}  (\mforall{}pv:pv11\_p1\_Ballot\_Num()  \mtimes{}  \mBbbZ{}  \mtimes{}  Cmd
                          ((pv  \mmember{}  pvalues)
                          \mLeftarrow{}{}\mRightarrow{}  (pv  \mmember{}  concat(map(\mlambda{}e.(snd(pv11\_p1\_AcceptorStateFun(Cmd;ldrs$_{uid}\mbackslash{}f\000Cf24;f;es;e)));L)))))
                \mwedge{}  (\mforall{}e':E
                          ((e'  \mmember{}  L)
                          {}\mRightarrow{}  ((e'  <  e)
                                \mwedge{}  loc(e')  \mdownarrow{}\mmember{}  accpts
                                \mwedge{}  (bnum  =  (fst(pv11\_p1\_AcceptorStateFun(Cmd;ldrs$_{uid}$;f;es;e'\000C))))))))))


By


Latex:
StartEmlProof




Home Index