Elm Exactly

TheoremmapOut_value

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

Statement

theorem mapOut_value {α β : Type} {r : Res α} {f : α → β} {b : β} (h : (r.mapOut f).out = .value b) :
    ∃ a, r.out = .value a ∧ f a = b

Proof

by
  rcases r with ⟨out, l, k⟩
  cases out <;> simp [Res.mapOut] at h ⊢
  exact h

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.