TheoremnodesOkB_nodesAtPats
Statement
theorem nodesOkB_nodesAtPats (U : List BVar) (path : List Nat) : ∀ (i : Nat) (l : List AAtPat),
nodesOkB (nodesAtPats U path i l) = okAtPatsB l
| _, [] => rfl
| i, a :: as => by
simp only [nodesAtPats, okAtPatsB, nodesOkB_append]
rw [nodesOkB_nodesAtPat U _ a, nodesOkB_nodesAtPats U path (i + 1) as]Proof
Proved by a term, which Lean's kernel checks directly.
In StandardElmMech/Stat/Annotated.lean: Annotated phrases (D10: a derivation is a phrase with the objects its rules choose) and the checker (checkExp, checkModule, checkProgram).
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.