Elm Exactly

TheoremprogramSem_of_spec

StandardElmMech/Stat/Pipeline.lean:479, The pipeline · tactic proof

r:p-program with both premises, from a run of the pipeline, the static premise, and a value of the reduced modules.

Statement

theorem programSem_of_spec {B : SBasis} {s : SProgram} {r : Mod.Reduced}
    (hI : InferPrincipalFor B (bareOf s)) (h : endToEnd B s = .ok r)
    (hS : ∃ τ PE, StatProgram B (bareOf s) τ PE) (hv : ∃ v, DynOf r v) :
    ∃ τ PE v, ProgramSem B (bareOf s) (τ, PE, v)

Proof

by
  obtain ⟨τ, PE, hst⟩ := hS
  obtain ⟨v, hd⟩ := hv
  exact ⟨τ, PE, v, .r_p_program hst (specOf_of_endToEnd hI h) hd⟩

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

Rules of the book it uses

Theorems it uses

Used by

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.