The edge protocol (spec/04 §1), modeled so every ordering it reaches is checked (spec/00
§3). An owner publishes each change under the next sequence; a mirror applies the next
one it expects, ignores a repeat, and on a gap joins again and takes the owner's answer
whole. The owner may end and be restarted once: its :DOWN follows its publications on
the one channel to the mirror (the BEAM's order between a pair of processes), and the
mirror joins the restarted owner at it. The restarted owner's publications travel on a
channel of their own (second), in no order against the first owner's (first).
A restarted owner's sequence starts past every sequence its predecessor published
(base), so a late publication of the first owner is a repeat and the restarted owner's
first is a gap the mirror rejoins at. The owner's values at a sequence are named by the
sequence and the owner's generation, so a mirror holding generation held at mseq
holds exactly the owner's values there.
The invariants: a mirror never applies a publication of one generation over values of
another (never_mixed); it never skips a change (never_skipped); and within one
generation it is never ahead of the owner (never_ahead). With base: 0 a restarted
owner numbers from zero again and never_mixed breaks; with rejoin: false a gap is
applied as if it were the next and an invariant breaks, so the model is shown to find
each broken protocol, not only to pass.
Summary
Functions
The compiled specification (ExTLA.Spec.Compiled).
Functions
The compiled specification (ExTLA.Spec.Compiled).