Elm Exactly

TheoremnodesOkB_nodesExp

StandardElmMech/Stat/Annotated.lean:527, The types at the nodes · term proof

Statement

theorem nodesOkB_nodesExp (C : Ctx) (path : List Nat) : ∀ e : AExp, nodesOkB (nodesExp C path e) = okExpB e
  | .atexp a => by
    simp only [nodesExp, okExpB]; nodes_ok_simp
    rw [nodesOkB_nodesAtExp C _ a]
  | .app e a => by
    simp only [nodesExp, okExpB]; nodes_ok_simp
    rw [nodesOkB_nodesExp C _ e, nodesOkB_nodesAtExp C _ a]
  | .lam p e => by
    simp only [nodesExp, okExpB]; nodes_ok_simp
    rw [nodesOkB_nodesAtPat C.U _ p, nodesOkB_nodesExp _ _ e]
  | .caseE e m => by
    simp only [nodesExp, okExpB]; nodes_ok_simp
    rw [nodesOkB_nodesExp C _ e, nodesOkB_nodesMatch C _ m]

Proof

Proved by a term, which Lean's kernel checks directly.

Used by

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.