Elm Exactly

TheoremprincipalModDer_check

StandardElmMech/Stat/Refusals.lean:36, Inversion of the rules of Chapter 9 · tactic proof

Statement

theorem principalModDer_check {B : SBasis} {m : BModule} {B' : SBasis} {E : Env}
    (h : PrincipalModDer B m B' E) :
    ∃ a, a.erase = m ∧ checkModule B a = true ∧ a.result B = some (B', E) ∧ FurtherMod B a

Proof

by
  obtain ⟨a, he, hp, hr, hf⟩ := h
  exact ⟨a, he, hp.1, hr, hf⟩

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.