Elm Exactly

TheoremnoDeriv_of_imports

StandardElmMech/Stat/Refusals.lean:107, The refusals · tactic proof

A module whose imports do not elaborate has no derivation.

Statement

theorem noDeriv_of_imports {B : SBasis} {m : BModule} (h : importCtx B m.imports = none) : NoDeriv B m

Proof

by
  intro a he
  have : a.imports = m.imports := by rw [← he]; rfl
  simp [checkModule, AModule.result, this, h]

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

Used by

In StandardElmMech/Stat/Refusals.lean: Refusals (milestone 9d): inversion of Chapter 9's rules, and the lemmas that turn "no derivation checks", "no derivation meets the further restrictions" or "no derivation gives main a Chapter 9 type" into ¬ LegalProgram, with no hypothesis about principality.

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.