Elm Exactly

TheoremportRowB_of_all

StandardElmMech/Stat/Pipeline.lean:194, Payload types and `main` · term proof

Statement

theorem portRowB_of_all : ∀ (ρ : Row), (∀ l τ, (l, τ) ∈ ρ → portB τ = true) → portRowB ρ = true
  | [], _ => rfl
  | (l, τ) :: rest, h => by
    simp only [portRowB, Bool.and_eq_true]
    exact ⟨h l τ List.mem_cons_self, portRowB_of_all rest fun l' τ' hm => h l' τ' (List.mem_cons_of_mem _ hm)⟩

Proof

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

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.