Elm Exactly

TheoremrecvL_det

StandardElmMech/Prog/Invariant.lean:147, Results of the evaluator, checked by the kernel · term proof

The message's only value and log (D1).

Statement

theorem recvL_det {o : Oracle} {n : Nat} {c : Val} {x : Input} (h : (recvL o n c x 0).isAt 0 = true) :
    ∀ v l, RecvL c x v l → v = (recvL o n c x 0).get ∧ l = (recvL o n c x 0).log

Proof

recvL_unique (Res.eq_get h)

Proved by a term, which Lean's kernel checks directly.

Theorems it uses

Used by

In StandardElmMech/Prog/Invariant.lean: CHECK-NOT as a statement about every execution (WorkerTest.HoldsNot), per-test invariants (TestInv, TestInv.sound, holdsNot_any), and the determinism and inversion lemmas they use.

A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.