Theoremdispatch_task1
Statement
theorem dispatch_task1 {s : Time} {P : Procs} {Q : OutQ} {H : Pending} {c tk : Val} {P' : Procs}
{Q' : OutQ} {H' : Pending} (hc : leafCore c = some (.task, tk))
(h : Dispatch s P Q H [c] P' Q' H') :
∃ n, n ∉ P.dom ∧ P' = P.set n (.live ⟨tk, s, some c⟩) ∧ Q' = Q ∧ H' = HProof
by
cases h with
| r_p_disp_task _ _ _ _ tk' n _ _ _ _ hc' hn hd =>
rw [hc] at hc'; cases hc'
obtain ⟨rfl, rfl, rfl⟩ := dispatch_nil hd
exact ⟨n, hn, rfl, rfl, rfl⟩
| r_p_disp_out _ _ _ _ _ _ _ _ _ _ _ hc' _ _ => rw [hc] at hc'; cases hc'
| r_p_disp_plat _ _ _ _ _ _ _ _ _ _ _ hm _ => simp [platMgrs] at hmProved with tactics, which Lean expands into a proof term that its kernel checks.
Rules of the book it uses
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.