TheoremevModule_unique_l
Statement
theorem evModule_unique_l {o : Oracle} {n : Nat} {B : Basis} {m : Module} {k : Nat} {B' : Basis}
{VE : ValEnv} {l : Log} (h : evModule o n B m k = ⟨.value (B', VE), l, k⟩) :
∀ B'' VE' l', EvalModuleL B m B'' VE' l' → B'' = B' ∧ VE' = VE ∧ l' = lProof
by
intro B'' VE' l' d
rcases EvalModuleL.nostuck d o n k _ h with h1 | h1 | h1
· simp at h1
· simp at h1
· simp only [Res.mk.injEq, Outcome.value.injEq, Prod.mk.injEq] at h1
exact ⟨h1.1.1.symm, h1.1.2.symm, h1.2.1.symm⟩Proved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
In StandardElmMech/Mod/Complete.lean: The functional parts' converses, nostuck for modules and programs, noMeaning_of_stuck, evProgram_unique_l, completeness (evProgram_complete, noMeaning_iff).
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.