Elm Exactly

TheoremnoMeaning_of_stuck

StandardElmMech/Mod/Complete.lean:289, Statements about every derivation of a program · tactic proof

A program on which the evaluator is stuck without reading a choice has no meaning (A25, A62).

Statement

theorem noMeaning_of_stuck {o : Oracle} {n : Nat} {B : Basis} {p : List Module} {k : Nat} {l : Log}
    (h : evProgram o n B p k = ⟨.stuck, l, k⟩) : ¬ ∃ v, EvalProgram B p v

Proof

by
  rintro ⟨v, d⟩
  obtain ⟨l', d'⟩ := EvalProgram.lift d
  rcases EvalProgramL.nostuck d' o n k _ h with h1 | h1 | h1 <;> simp at h1

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

Theorems it uses

Used by

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

In StandardElmMech/Mod/Complete.lean: The functional parts' converses, nostuck for modules and programs, noMeaning_of_stuck, evProgram_unique_l, completeness (evProgram_complete, noMeaning_iff).

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.