Elm Exactly

Theoremsc_expRowOpt

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

Statement

theorem sc_expRowOpt : (r : Option AExpRow) → (C : Ctx) → (Γ : Shape) → Abs C Γ →
    checkExpRowOpt C r = true → scExpRowOpt Γ (AExpRow.eraseOpt r) = true
  | none, _, _, _, _ => rfl
  | some r, C, Γ, hA, h => by
    simp only [checkExpRowOpt] at h
    simp only [AExpRow.eraseOpt, scExpRowOpt]
    exact sc_expRow r C Γ hA h

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.