Nuprl Lemma : CLK-msg

[MsgType:{T:Type| valueall-type(T)} ]. ∀[locs:bag(Id)]. ∀[reply:Id ⟶ MsgType ⟶ (MsgType × Id)].
[f:CLK_headers_type{i:l}(MsgType)]. ∀[es:EO+(Message(f))]. ∀[e:E]. ∀[d:ℤ]. ∀[i:Id]. ∀[auth:𝔹]. ∀[v:MsgType]. ∀[k:ℤ].
  (<d, i, mk-msg(auth;``CLK msg``;<v, k>)> ∈ CLK_main(MsgType;locs;reply;f)(e)
  ⇐⇒ loc(e) ↓∈ locs
      ∧ ((header(e) ``CLK msg`` ∈ Name) ∧ has-es-info-type(es;e;f;MsgType × ℤ))
      ∧ (d 0 ∈ ℤ)
      ∧ (i (snd((reply loc(e) (fst(msgval(e)))))) ∈ Id)
      ∧ auth ff
      ∧ (v (fst((reply loc(e) (fst(msgval(e)))))) ∈ MsgType)
      ∧ (k CLK_ClockVal(MsgType;f)@e ∈ ℤ))


Proof




Definitions occuring in Statement :  CLK_main: CLK_main(MsgType;locs;reply;f) CLK_ClockFun: CLK_ClockVal(MsgType;f)@e CLK_headers_type: CLK_headers_type{i:l}(MsgType) msg-interface: Interface mk-msg: mk-msg(auth;hdr;val) es-info-body: msgval(e) has-es-info-type: has-es-info-type(es;e;f;T) es-header: header(e) Message: Message(f) classrel: v ∈ X(e) event-ordering+: EO+(Info) es-loc: loc(e) es-E: E Id: Id name: Name cons: [a b] nil: [] valueall-type: valueall-type(T) bfalse: ff bool: 𝔹 uall: [x:A]. B[x] pi1: fst(t) pi2: snd(t) iff: ⇐⇒ Q and: P ∧ Q set: {x:A| B[x]}  apply: a function: x:A ⟶ B[x] pair: <a, b> product: x:A × B[x] natural_number: $n int: token: "$token" universe: Type equal: t ∈ T bag-member: x ↓∈ bs bag: bag(T)
Definitions unfolded in proof :  uall: [x:A]. B[x] CLK_headers_type: CLK_headers_type{i:l}(MsgType) l_all: (∀x∈L.P[x]) all: x:A. B[x] and: P ∧ Q member: t ∈ T so_lambda: λ2x.t[x] subtype_rel: A ⊆B vatype: ValueAllType prop: so_apply: x[s] iff: ⇐⇒ Q implies:  Q listp: List+ name: Name int_seg: {i..j-} lelt: i ≤ j < k le: A ≤ B less_than': less_than'(a;b) false: False not: ¬A less_than: a < b squash: T length: ||as|| list_ind: list_ind CLK_headers: CLK_headers() cons: [a b] nil: [] it: true: True select: L[n] uimplies: supposing a guard: {T} rev_implies:  Q CLK_headers_fun: CLK_headers_fun(MsgType) name_eq: name_eq(x;y) name-deq: NameDeq list-deq: list-deq(eq) band: p ∧b q ifthenelse: if then else fi  atom-deq: AtomDeq eq_atom: =a y btrue: tt null: null(as) bag-member: x ↓∈ bs has-es-info-type: has-es-info-type(es;e;f;T) make-msg-interface: make-msg-interface(i;l;m) classrel: v ∈ X(e) top: Top cand: c∧ B pi1: fst(t) pi2: snd(t)

Latex:
\mforall{}[MsgType:\{T:Type|  valueall-type(T)\}  ].  \mforall{}[locs:bag(Id)].  \mforall{}[reply:Id  {}\mrightarrow{}  MsgType  {}\mrightarrow{}  (MsgType  \mtimes{}  Id)].
\mforall{}[f:CLK\_headers\_type\{i:l\}(MsgType)].  \mforall{}[es:EO+(Message(f))].  \mforall{}[e:E].  \mforall{}[d:\mBbbZ{}].  \mforall{}[i:Id].  \mforall{}[auth:\mBbbB{}].
\mforall{}[v:MsgType].  \mforall{}[k:\mBbbZ{}].
    (<d,  i,  mk-msg(auth;``CLK  msg``;<v,  k>)>  \mmember{}  CLK\_main(MsgType;locs;reply;f)(e)
    \mLeftarrow{}{}\mRightarrow{}  loc(e)  \mdownarrow{}\mmember{}  locs
            \mwedge{}  ((header(e)  =  ``CLK  msg``)  \mwedge{}  has-es-info-type(es;e;f;MsgType  \mtimes{}  \mBbbZ{}))
            \mwedge{}  (d  =  0)
            \mwedge{}  (i  =  (snd((reply  loc(e)  (fst(msgval(e)))))))
            \mwedge{}  auth  =  ff
            \mwedge{}  (v  =  (fst((reply  loc(e)  (fst(msgval(e)))))))
            \mwedge{}  (k  =  CLK\_ClockVal(MsgType;f)@e))



Date html generated: 2016_05_17-PM-02_45_52
Last ObjectModification: 2016_04_03-PM-09_42_45

Theory : lamport!s!clocks


Home Index