Elm Exactly

TheoremtoPFields_isSome

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

Statement

theorem toPFields_isSome : (ρ : Row) → (toPFields ρ).isSome = portRowB ρ
  | [] => rfl
  | (l, τ) :: rest => by
    have ih1

Proof

toPTy_isSome τ
    have ih2 := toPFields_isSome rest
    simp only [toPFields, portRowB]
    rw [← ih1, ← ih2]
    cases toPTy τ <;> cases toPFields rest <;> rfl

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

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.