Theoremsc_atPatList
Statement
theorem sc_atPatList (C : Ctx) (Γ : Shape) (hA : Abs C Γ) : (as : List AAtPat) →
checkAtPatList C as = true → scAtPatList Γ (AAtPat.eraseList as) = true
| [], _ => rfl
| a :: as, h => by
simp only [checkAtPatList, Bool.and_eq_true] at h
simp only [AAtPat.eraseList, scAtPatList, Bool.and_eq_true]
exact ⟨sc_atPat C Γ hA a h.1, sc_atPatList C Γ hA as h.2⟩Proof
Proved by a term, which Lean's kernel checks directly.
Used by
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.