Elm Exactly

Theoremnot_legal_of_imports

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

Statement

theorem not_legal_of_imports {B : SBasis} {sp : SProgram} (h : importsFailB B sp = true) :
    ¬ LegalProgram B sp

Proof

by
  unfold importsFailB at h
  split at h
  · rename_i m rest hms
    exact not_legal_of_noDeriv hms (noDeriv_of_imports (Option.isNone_iff_eq_none.mp h))
  · cases h

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

Theorems it uses

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.