Elm Exactly

TheoremrunWorker_sound

StandardElmMech/Prog/Worker.lean:134 · term proof

Statement

theorem runWorker_sound {w : WorkerTest} {lg : Log} {res : RunResult} (h : runWorker w = some (lg, res)) :
    WorkerExec (Mod.Btest []) w.prog.modules w.flagsType w.flags w.host lg

Proof

(runWorker_soundO h).exec

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

Theorems it uses

Used by

In StandardElmMech/Prog/Worker.lean: Worker tests: WorkerTest.Holds (some execution the book allows, under the test's host, has a log meeting every check), runWorker (evaluate the modules, start, run the scheduler), runWorker_sound, holds_of_run.

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.