Elm Exactly

Theoremme0_PlatformSub_none_eval

StandardElmMech/Mod/ME0.lean:105 · kernel-checked (decide +kernel)

The text of Platform.Sub's none evaluates, in its environment, to batch() (D3).

Statement

theorem me0_PlatformSub_none_eval :
    EvalDec E_Sub (.val (.var "none" noneBody none)) [("none", .batch [])]

Proof

noneIsBatch_sound (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.

Theorems it uses

In StandardElmMech/Mod/ME0.lean: The dynamic ME0 of the default-imported modules (plan decision D3), the harness Html and Btest (D2), E_default (the environment the default imports give, derived by the rules), the texts of none.

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.