Theoremvesound_of_keysIn
Statement
theorem vesound_of_keysIn {VE : ValEnv} {xs : List String} (h : KeysIn VE xs) : VESound VE (vs xs)Proof
by
refine ⟨fun x b hx => ⟨none, ?_, fun n hn => by cases hn⟩, fun x n hx => ?_⟩
· simp [find?_vs, h x b hx]
· rw [find?_vs] at hx; split at hx <;> cases hxProved 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.