@[simp]
StateT.run' lemmas #
@[simp]
theorem
StateT.run'_lift'
{m : Type u → Type v}
{σ α : Type u}
[Monad m]
[LawfulMonad m]
(x : m α)
(s : σ)
:
theorem
StateT.map_run'_eq_of_map_eq
{m : Type u → Type v}
{σ α β : Type u}
[Monad m]
[LawfulMonad m]
{γ : Type u}
{f : α → γ}
{g : β → γ}
{mx : StateT σ m α}
{my : StateT σ m β}
(s : σ)
(h : f <$> mx = g <$> my)
:
If two StateT computations agree after mapping into a common result type, then they
still agree after projecting away the final state with run' from any initial state.