Metakit / @doeixd/metakit/prove
transition
function · packages/metakit/src/prove.ts:90
function transition<S extends Schema.Top, I, Emit, Supplied>(
stateSchema: S,
tr: Transition.Transition<S['Type'], I, Emit, Supplied>,
options?: ProveOptions,
): Effect.Effect<Proof, SolverUnavailableError>Prove that transition leaves every state stateSchema accepts, under an
input its input Schema accepts and a guard that holds, a state the Schema
still accepts. Runs Tier 3 first. Where it proves the step and there is no
ensures, the proof stands; where it cannot show a fact of the Schema (a
check it cannot read, a union member, a finite number), the answer is its
Unknown, which the solver could not improve on; where it refutes the
step, the solver is asked only for a witness, and the refutation stands
without one.