Elm Exactly

TheoremcheckTypes_fix

StandardElmMech/Stat/Deterministic.lean:442, Type declarations, given the type names they generate · tactic proof

Statement

theorem checkTypes_fix {C : Ctx} {TE : TyEnv} {VE : ValEnv} {db : Option BDatBind} {tbs : List BTypBind}
    (h : checkTypes C TE VE db tbs = true) : checkTypesFix C TE VE db tbs = true

Proof

by
  simp only [checkTypes, Bool.and_eq_true] at h; exact h.1

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

Used by

In StandardElmMech/Stat/Deterministic.lean: The deterministic parts as functions, each sound for its relation: type expressions, imports and exposing, type declarations given their names (checkTypes), ports.

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.