Lemmas About Option Monad Transformer #
This file contains lemmas about the behavior of OptionT and OptionT.run.
@[simp]
theorem OptionT.run_mapConst {m : Type u_1 → Type u_2} {α β : Type u_1} [Monad m] [LawfulMonad m] (x : OptionT m α) (y : β) :
instance OptionT.instLawfulMonadStateOfOfLawfulMonad {m : Type u_1 → Type u_2} {σ : Type u_1} [Monad m] [LawfulMonad m] [MonadStateOf σ m] [LawfulMonadStateOf σ m] :
LawfulMonadStateOf σ (OptionT m)