Elm Exactly

Theoremdispatch_nil

StandardElmMech/Prog/Invariant.lean:308, Inversions · tactic proof

Statement

theorem dispatch_nil {s : Time} {P : Procs} {Q : OutQ} {H : Pending} {P' : Procs} {Q' : OutQ}
    {H' : Pending} (h : Dispatch s P Q H [] P' Q' H') : P' = P ∧ Q' = Q ∧ H' = H

Proof

by
  cases h; exact ⟨rfl, rfl, rfl⟩

Proved with tactics, which Lean expands into a proof term that its kernel checks.

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.