Elm Exactly

Theoremkeys_patRowOpt

StandardElmMech/Stat/RefuseScope.lean:501, The keys of the value environments of patterns and bindings · term proof

Statement

theorem keys_patRowOpt : (r : Option APatRow) → KeysIn (APatRow.veOpt r) (patRowVarsOpt (APatRow.eraseOpt r))
  | none => keysIn_nil _
  | some r => by
    simp only [APatRow.veOpt, APatRow.eraseOpt, patRowVarsOpt]
    exact keys_patRow r

Proof

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

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.