Engine

8.3. Reachable states🔗

A state is reached from the empty one by deploys and appends. What holds of every reachable state is what the other pages' guarantees stand on.

🔗inductive predicate
Spec.Reachable : State → Prop
Spec.Reachable : State → Prop

States reachable from the empty one by single-event appends and deploys.

Spec.Reachable.init : Reachable { }

the empty state

Spec.Reachable.append {st st' : State} (e : Event) :
  Reachable st → st.appendOne e = some st' → Reachable st'

an accepted single event

Spec.Reachable.deploy {st st' : State} (sc : Schema)
  (fs : List RuleFile) :
  Reachable st → st.deploy sc fs = some st' → Reachable st'

an accepted deploy

🔗inductive predicate
Spec.ReachableB : State → Prop
Spec.ReachableB : State → Prop

The same with batches.

Spec.ReachableB.init : ReachableB { }

the empty state

Spec.ReachableB.append {st st' : State} (es : List Event) :
  ReachableB st →
    st.appendBatch es = some st' → ReachableB st'

an accepted batch

Spec.ReachableB.deploy {st st' : State} (sc : Schema)
  (fs : List RuleFile) :
  ReachableB st →
    st.deploy sc fs = some st' → ReachableB st'

an accepted deploy