Elm Exactly

Theoremnodes_eq

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

Their nodes are equal.

Statement

theorem nodes_eq : (nodesModule Btest m0').map (fun n => (n.path, n.U, n.tys, n.schemes)) =
    (nodesModule Btest m0).map (fun n => (n.path, n.U, n.tys, n.schemes))

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.