TheoremtaskRedL_det
The task step's only action, task and log, when it spawns nothing (D1).
Statement
theorem taskRedL_det {o : Oracle} {n fr : Nat} {tk : Val} (h : (stepTaskL o n fr tk 0).isAt 0 = true)
(hs : ∀ x, (stepTaskL o n fr tk 0).get.1 = some x → x.prim ≠ .spawn) :
∀ a t l, TaskRedL tk a t l → a = (stepTaskL o n fr tk 0).get.1 ∧ t = (stepTaskL o n fr tk 0).get.2 ∧
l = (stepTaskL o n fr tk 0).logProof
by
intro a t l d
have he := Res.eq_get h
exact stepTaskL_unique (a := (stepTaskL o n fr tk 0).get.1) (t := (stepTaskL o n fr tk 0).get.2)
(he.trans (by simp)) hs a t l dProved with tactics, which Lean expands into a proof term that its kernel checks.
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.