Elm Exactly

Theoremsame

StandardElmMech/Stat/DupValuesCounterexample.lean:82 · kernel-checked (decide +kernel)

Specialisation gives the same for both: no reduced program (x's instance is not a number).

Statement

theorem same : (reduceProgram Btest dA).toOption = none ∧ (reduceProgram Btest dA').toOption = none

Proof

by
  decide +kernel

Proved by decide +kernel: Lean's kernel itself runs the decision procedure, here the evaluator, and checks that the answer is true, so nothing outside the kernel is trusted.

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.