Zulip Chat Archive

Stream: lean4

Topic: WriterT Monad


lorã (Sep 16 2025 at 00:06):

Hello, I am looking for a built-in implementation similar to the WriterT monad. I suspect it might exist under a different name, but I have been unable to locate it. What I should use instead? (I am also prepared to implement it myself if a suitable built-in option is not available)
~ Thank you for your time.

Aaron Liu (Sep 16 2025 at 00:09):

what do you mean by "builtin"?

lorã (Sep 16 2025 at 00:25):

Ty for the question! Ideally, I'm looking for a solution in the standard library. However, any stable, existing implementation would also be sufficient for my needs.

Eric Wieser (Sep 16 2025 at 00:32):

So docs#WriterT ?

lorã (Sep 16 2025 at 00:33):

oh, its in mathlib! Thank u! I was not expecting that there, sorry


Last updated: Dec 20 2025 at 21:32 UTC