Elm Exactly

TheoremportB_complete

StandardElmMech/Stat/Pipeline.lean:200, Payload types and `main` · tactic proof

Statement

theorem portB_complete {τ : Ty} (h : Port τ) : portB τ = true

Proof

by
  induction h with
  | int | float | bool | string | bytes | unit | value => rfl
  | list _ ih => simp [listTy, portB, ih]
  | maybe _ ih => simp [portB, ih]
  | array _ ih => simp [portB, ih]
  | tuple2 _ _ ih1 ih2 => simp [portB, ih1, ih2]
  | tuple3 _ _ _ ih1 ih2 ih3 => simp [portB, ih1, ih2, ih3]
  | @record ρ _ ih =>
    simp only [portB]
    exact portRowB_of_all ρ ih

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

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.