Theoremtr_nil
With the book's host, an execution with no step has the empty trace: a program that starts has the empty trace.
Statement
theorem tr_nil {B : Mod.Basis} {ms : List Mod.Module} {τ1 : PTy} {j : BVal}
(h : ∃ r K0, Mod.EvalProgram B ms (.prog r) ∧ Start (portEnv ms) τ1 j r K0) : Tr B ms τ1 j []Proof
by
obtain ⟨r, K0, he, hs⟩ := h
exact ⟨r, K0, [], [], he, hs, .nil _ _, rfl⟩Proved with tactics, which Lean expands into a proof term that its kernel checks.
Used by
In StandardElmMech/Prog/Exec.lean: Hosts (any, none, the test runner's echo), executions with and without logs, a worker's executions (WorkerExec, its log as D9 defines it), traces and Tr (tr_nil, tr_prefix, tr_empty_iff_no_start).
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.