TheoremviewChecks_every
When the evaluator reads no choice, the checks hold of every derivation's log, not only of some (from evProgram_unique_l): the existential of D9 is then also universal.
Statement
theorem viewChecks_every {o : Oracle} {B : Basis} {p : List Module} {cs : List LogCheck} {v : Val}
{l : Log} (h : evProgram o fuelT B p 0 = ⟨.value v, l, 0⟩) (hc : cs.all (·.check l) = true) :
∀ v' l', EvalProgramL B p v' l' → ∀ c ∈ cs, c.Holds l'Proof
by
intro v' l' d c hm
obtain ⟨_, rfl⟩ := evProgram_unique_l h v' l' d
exact LogCheck.check_sound (List.all_eq_true.mp hc c hm)Proved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
In StandardElmMech/Mod/Program.lean: A test program in module form (plan step 3): Appendix A's derived form for modules (Module.ofSource: the custom types, the aliases, the ports, then the definitions in components), a program's modules in program order; ViewChecks and NoMeaning with their deciders proved sound; viewChecks_every.
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.