Elm Exactly

Theorema62_wait_continues

StandardElmMech/Prog/Rulings.lean:61, A62: an update with no result ends message handling; other steps go on · tactic proof

A62: other steps go on; time can always pass.

Statement

theorem a62_wait_continues (PE : PortEnv) (r : List (String × Val)) :
    ∀ K, ∃ K', Step PE r K (some (.wait 1)) K'

Proof

by
  rintro ⟨s, v, M, P, sb, Q, H⟩
  exact ⟨_, .r_p_wait s v M P sb Q H 1 (by decide)⟩

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

Rules of the book it uses

About ruling A62 of the book, where the implementations disagreed or were silent and the definition decides.

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.