TheoremprogramSem_of_legal
The same, with the static premise from step 9's legality of the program (legal_X h).
Statement
theorem programSem_of_legal {B : SBasis} {s : SProgram} {r : Mod.Reduced}
(hI : D11For B (bareOf s)) (h : endToEnd B s = .ok r) (hL : LegalProgram B s)
(hv : ∃ v, DynOf r v) : ∃ τ PE v, ProgramSem B (bareOf s) (τ, PE, v)Proof
programSem_of_spec hI h hL.2 hvProved by a term, which Lean's kernel checks directly.
Theorems it uses
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.