Theoremnot_valuesDistinct
The program breaks res:modules-values-distinct.
Statement
theorem not_valuesDistinct : ∃ m ∈ dupProg.modules, ¬ Src.ValuesDistinct mProof
by
refine ⟨_, List.mem_singleton_self _, by decide⟩Proved with tactics, which Lean expands into a proof term that its kernel checks.
In StandardElmMech/Stat/DupValuesCounterexample.lean: Two derivations with the same nodes that differ only in an instance specialisation once read through a scope the checker disagrees with (a module with two top-level x); specialisation now reads instances off the occurrence's type (same).
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.