Theoremvesound_single
Statement
theorem vesound_single {k : String} {b : Scheme × IdStatus} {a : Option Nat} (h : Valid a b) :
VESound [(k, b)] [(k, a)]Proof
by
refine ⟨fun x b' hx => ?_, fun x n hx => ?_⟩
· simp only [FMap.find?] at hx
split at hx
· rename_i e; subst e; cases hx; exact ⟨a, by simp [FMap.find?], h⟩
· cases hx
· simp only [FMap.find?] at hx ⊢
split at hx
· rename_i e; simp [e]
· cases hxProved with tactics, which Lean expands into a proof term that its kernel checks.
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.