Elm Exactly

TheoremtoPTy_isSome_iff

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

fig:static-modules-port: toPTy is defined exactly on the types of Port.

Statement

theorem toPTy_isSome_iff (τ : Ty) : (toPTy τ).isSome ↔ Port τ

Proof

by
  rw [toPTy_isSome]
  exact ⟨portB_sound τ, portB_complete⟩

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.