Elm Exactly

Theoremkeys_dec

StandardElmMech/Stat/RefuseScope.lean:653, The bare checker is sound · tactic proof

The environment a declaration adds binds only the variables of its bindings.

Statement

theorem keys_dec {C : Ctx} {d : ADec} (h : checkDec C d = true) : KeysIn (d.result C) (decVars d.erase)

Proof

by
  cases d with
  | val VE vb =>
    simp only [checkDec, Bool.and_eq_true, decide_eq_true_eq] at h
    simp only [ADec.result, ADec.erase, decVars]
    rw [← h.2]
    exact keysIn_closGroup _ (keys_valBind vb)

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.