Theoremnames_of_newFor
Statement
theorem names_of_newFor {U' : List BVar} {ty : BTy} (h : newForB U' ty [] = true) (v : BVar) (s : String)
(hv : v ∈ U') (hs : v.name? = some s) : s ∈ bTyNames tyProof
by
have hn : s ∈ namesU U' := List.mem_filterMap.mpr ⟨v, hv, hs⟩
exact (((newFor_of_newForB h).2.1 s).mp hn).1Proved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
Used by
In StandardElmMech/Stat/RefuseTypes.lean: Refusals by type expressions (aliases, constructor arguments, annotations, ports) and by the type of main (typesFailB, mainFailB), for every choice of generated names and variable sorts.
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.