Elm Exactly

Theorema62_no_update

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

A62: while the head message has no update, no step changes the model, and every queue of messages begins with the queue at the start.

Statement

theorem a62_no_update {PE : PortEnv} {r : List (String × Val)} {hst : Host} {K : Config}
    {hs : List BVal} {π : Path} {hs' : List BVal} {v1 fu : Val} {M : List Val}
    (hK : K.msgs = v1 :: M) (hfu : field r "update" = some fu)
    (hno : ¬ ∃ v2 w, AppVal fu v1 v2 ∧ AppVal v2 K.model w) (h : Exec PE r hst K hs π hs') :
    ∀ K' ∈ π.map (·.2), K'.model = K.model ∧ ∃ ms, K'.msgs = K.msgs ++ ms

Proof

a62_aux ⟨M, hK⟩ hfu hno h rfl ⟨[], by simp⟩

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

Theorems 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.