Elm Exactly

Theoremvalue_of_holds

StandardElmMech/Stat/Pipeline.lean:502, Values of Part I's programs · tactic proof

A worker's execution starts from the value of main.

Statement

theorem value_of_holds {w : Prog.WorkerTest} (h : w.Holds) :
    ∃ v, Mod.EvalProgram (Mod.Btest []) w.prog.modules v

Proof

by
  obtain ⟨lg, outs, ⟨r, lm, K0, ls, π, hs, he, -⟩, -⟩ := h
  exact ⟨_, he.forget⟩

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

In StandardElmMech/Stat/Pipeline.lean: SpecOf, DynOf (in Lib.Btest for a view, Mod.Btest [] for a worker: dynBasis), ProgramSem (r:p-program), D11For; copy names, payload types and main (copyName_inj, toPTy_isSome_iff, mainKind_worker_iff, mainKind_view_iff); the pipeline theorems (specOf_of_endToEnd, programSem_of_legal).

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.