TheoremholdsNot_any
An invariant proved for the book's host (Host.any) holds under every host.
Statement
theorem holdsNot_any {w : WorkerTest} {pat : String} (T : TestInv { w with hostProof
.any } pat) :
w.HoldsNot pat := by
intro j lg ⟨r, lm, K0, ls, π, hs, he, hst, hx, hlg⟩
exact T.sound j lg ⟨r, lm, K0, ls, π, [], he, hst, ExecL.toAny [] hx, hlg⟩Proved by a term, which Lean's kernel checks directly.
Theorems it uses
In StandardElmMech/Prog/Invariant.lean: CHECK-NOT as a statement about every execution (WorkerTest.HoldsNot), per-test invariants (TestInv, TestInv.sound, holdsNot_any), and the determinism and inversion lemmas they use.
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.