Elm Exactly

Theoremsc_mrule

StandardElmMech/Stat/RefuseScope.lean:748, The bare checker is sound · term proof

Statement

theorem sc_mrule : (mr : AMRule) → (C : Ctx) → (Γ : Shape) → Abs C Γ → checkMRule C mr = true →
    scMRule Γ mr.erase = true
  | .mk p e, C, Γ, hA, h => by
    simp only [checkMRule, Bool.and_eq_true] at h
    simp only [AMRule.erase, scMRule, Bool.and_eq_true]
    exact ⟨sc_pat C Γ hA p h.1, sc_exp e _ _ (abs_plusVE hA (keys_pat p)) h.2⟩

Proof

Proved by a term, which Lean's kernel checks directly.

In StandardElmMech/Stat/RefuseScope.lean: Refusals by scope, constructor arity and imports, for one module and for a module after a helper (scopeFailB).

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.