Theoremsc_matchOpt
Statement
theorem sc_matchOpt : (m : Option AMatch) → (τ : Ty) → (C : Ctx) → (Γ : Shape) → Abs C Γ →
checkMatchOptAt C τ m = true → scMatchOpt Γ (AMatch.eraseOpt m) = true
| none, _, _, _, _, _ => rfl
| some m, τ, C, Γ, hA, h => by
simp only [checkMatchOptAt, Bool.and_eq_true] at h
simp only [AMatch.eraseOpt, scMatchOpt]
exact sc_match m C Γ hA h.1Proof
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.