Elm Exactly

TheoremnamesNewB_spec

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

Statement

theorem namesNewB_spec (T : List TyName) (TE : TyEnv) (h : namesNewB T TE = true) :
    ∀ s ∈ TE.vals, ∀ t, s.1.name? = some t → t ∉ T

Proof

by
  intro s hs t ht
  have := List.all_eq_true.mp h s hs
  rw [ht] at this
  simpa using this

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.