Theoremsc_valBindOpt
Statement
theorem sc_valBindOpt : (vb : Option AValBind) → (C : Ctx) → (Γ : Shape) → Abs C Γ →
checkValBindOpt C vb = true → scVBOpt Γ (AValBind.eraseOpt vb) = true
| none, _, _, _, _ => rfl
| some vb, C, Γ, hA, h => by
simp only [checkValBindOpt] at h
simp only [AValBind.eraseOpt, scVBOpt]
exact sc_valBind vb C Γ hA hProof
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.