TheoremhostAllows_echo_in
The echo host sends back on i only the oldest value it holds.
Statement
theorem hostAllows_echo_in {o i p : String} {hs hs' : List BVal} {j : BVal}
(h : HostAllows (.echo o i) hs (some (.inn p j)) hs') : p = i ∧ hs = j :: hs'Proof
by
cases h; exact ⟨rfl, rfl⟩Proved with tactics, which Lean expands into a proof term that its kernel checks.
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.