TheoremnodesOkB_nodesPat
Statement
theorem nodesOkB_nodesPat (U : List BVar) (path : List Nat) : ∀ p : APat, nodesOkB (nodesPat U path p) = okPatB p
| .atpat a => by
simp only [nodesPat, okPatB]; nodes_ok_simp
rw [nodesOkB_nodesAtPat U _ a]
| .con _ _ args τ => by
simp only [nodesPat, okPatB]; nodes_ok_simp
rw [nodesOkB_nodesAtPats U path 0 args]
| .cons p1 p2 => by
simp only [nodesPat, okPatB]; nodes_ok_simp
rw [nodesOkB_nodesPat U _ p1, nodesOkB_nodesPat U _ p2]
| .as p _ => by
simp only [nodesPat, okPatB]; nodes_ok_simp
rw [nodesOkB_nodesPat U _ p]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.