Zulip Chat Archive

Stream: lean4

Topic: Should `Thunk` have a `Monad` instance?


Vilim Lendvaj (Oct 19 2025 at 07:35):

It already has map, pure and bind functions, seems pretty straightforward. LawfulMonad is also just by intros; rfl for everything.

Asei Inoue (Oct 19 2025 at 09:45):

interesting

František Silváši 🦉 (Oct 19 2025 at 09:47):

#lean4 > Why isn't Thunk a Monad?

Vilim Lendvaj (Oct 19 2025 at 11:15):

If I'm reading that thread right, it can be done now?

Eric Wieser (Oct 19 2025 at 11:16):

I think best to post a remark along those lines in the original thread


Last updated: Dec 20 2025 at 21:32 UTC