Elm Exactly

TheoremBtest_agrees

StandardElmMech/Mod/Properties.lean:125, The test basis (D2) · tactic proof

D2: the test basis agrees with ME0 on every module but Html and the library's modules.

Statement

theorem Btest_agrees {lib : ModEnv} {md : ModId} (hHtml : md ≠ "Html") (hlib : md ∉ fmDom lib) :
    fmLookup (Btest lib) md = fmLookup ME0 md

Proof

by
  unfold Btest
  rw [foldl_btest_other lib _ md hlib, fmLookup_fmPlus]
  simp [fmLookup, Ne.symm hHtml]

Proved with tactics, which Lean expands into a proof term that its kernel checks.

Theorems it uses

In StandardElmMech/Mod/Properties.lean: The frame lemmas (a module's derivation reads the basis only at the modules it imports) and Btest_agrees.

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.