Elm Exactly

TheoremsynOK_of_modules

StandardElmMech/Stat/RefuseAll.lean:17 · tactic proof

SynOK reads only the modules of a program.

Statement

theorem synOK_of_modules {p q : SProgram} (h : q.modules = p.modules) : Src.SynOK q ↔ Src.SynOK p

Proof

by
  obtain ⟨_, _, qm⟩ := q
  obtain ⟨_, _, pm⟩ := p
  simp only at h
  subst h
  exact Iff.rfl

Proved with tactics, which Lean expands into a proof term that its kernel checks.

Used by

In StandardElmMech/Stat/RefuseAll.lean: The refusal deciders certify tries, and the refusals of step 8's syntactic restrictions for one-module programs and texts without main.

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.