TheoremevModule_sound_l
Statement
theorem evModule_sound_l {o : Oracle} {n : Nat} {B : Basis} {m : Module} {k : Nat} {B' : Basis}
{VE : ValEnv} {l : Log} {k' : Nat} :
evModule o n B m k = ⟨.value (B', VE), l, k'⟩ → EvalModuleL B m B' VE lProof
by
obtain ⟨hd, is, td⟩ := m
simp only [evModule]
intro h
split at h
· rename_i E hE
split at h
· rename_i I l1 k1 h1
split at h
· rename_i mid I' hh
simp only [Res.mk.injEq, Outcome.value.injEq, Prod.mk.injEq] at h
obtain ⟨⟨rfl, rfl⟩, rfl, rfl⟩ := h
exact .r_dm_module_l B hd is td E I mid I' l1 (evImports_sound hE) (evTopDec_sound_l h1)
(evHeader_sound hh)
· simp at h
all_goals simp at h
· simp at hProved with tactics, which Lean expands into a proof term that its kernel checks.
Rules of the book it uses
Theorems it uses
Used by
In StandardElmMech/Mod/Sound.lean: Its soundness.
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.