Elm Exactly

TheoremstepTaskL_andThen_inner

StandardElmMech/Eff/Task.lean:393, The executable step · tactic proof

Statement

theorem stepTaskL_andThen_inner {o : Oracle} {n fr k : Nat} {f t : Val} (h : t.isOutcome = false) :
    stepTaskL o n fr (.andThen f t) k = (stepTaskL o n fr t k).mapOut fun (a, t') => (a, .andThen f t')

Proof

by
  cases t <;> simp_all [stepTaskL, Val.isOutcome]

Proved with tactics, which Lean expands into a proof term that its kernel checks.

Used by

In StandardElmMech/Eff/Task.lean: Task reduction (TaskRed, 7 rules, r_e_task_*) and its logged twin, focus and plug, the property of task reduction (taskRed_iff, taskRed_outcome, taskRed_kind, taskRed_silent_same, taskRed_none), and the executable step stepTaskL, sound, complete and unique.

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.