Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Cslib/Foundations/Data/PFunctor/Free.lean
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ variable {P : PFunctor.{uA, uB}} {α β γ : Type*}

instance : Pure (P.FreeM) where pure := .pure

@[simp]
theorem pure_eq_pure : (FreeM.pure : α → P.FreeM α) = pure := rfl

/-- Lift a shape of the base polynomial functor into the free monad. -/
Expand All @@ -108,8 +107,7 @@ protected def bind : P.FreeM α → (α → P.FreeM β) → P.FreeM β

instance : Bind (P.FreeM) where bind := .bind

/-- Note that this lemma does not always apply, as it is universe-constrained by `Bind.bind`. -/
@[simp]
/-- Not marked `simp` since it is not universe level generic. -/
theorem bind_eq_bind {α β : Type v} :
(FreeM.bind : P.FreeM α → _ → P.FreeM β) = Bind.bind := rfl

Expand Down
Loading