Elm Exactly

TheoremtopSound_plus

StandardElmMech/Stat/RefuseScope.lean:956, Top-level declarations · tactic proof

Statement

theorem topSound_plus {E1 E2 : Env} {b1 b2 : List (String × Option Nat)} (h1 : TopSound E1 b1)
    (h2 : TopSound E2 b2) : TopSound (E1.plus E2) (b2 ++ b1)

Proof

by
  refine ⟨?_, vesound_modify h1.2 h2.2⟩
  simp only [Env.plus, h1.1, h2.1]
  rfl

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

Theorems it uses

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.