Elm Exactly

Theorema79_fail_ends

StandardElmMech/Prog/Rulings.lean:150, A79: a failing process ends, whatever its origin, and nothing else happens · term proof

Statement

theorem a79_fail_ends (PE : PortEnv) (r : List (String × Val)) {K : Config} {n : Nat} {v : Val}
    {s' : Time} {o : Option Val} (hp : K.procs.get n = some (.live ⟨.fail v, s', o⟩)) :
    Step PE r K none { K with procs

Proof

K.procs.set n .ended } := by
  obtain ⟨s, m, M, P, sb, Q, H⟩ := K
  exact .r_p_proc_end s m M P sb Q H n _ s' o hp (.inl ⟨v, rfl⟩)

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

Rules of the book it uses

In StandardElmMech/Prog/Rulings.lean: The rulings A62, A72, A77, A79, A80 and A81 as theorems, and a66_batch_order_open: a program whose batch is delivered in either order.

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.