Zulip Chat Archive
Stream: CSLib
Topic: Paper on CSLib
Ching-Tsun Chou (Feb 05 2026 at 17:58):
https://arxiv.org/abs/2602.04846
Justin Asher (Feb 05 2026 at 18:14):
Awesome to see the white paper released!
Shreyas Srinivas (Feb 05 2026 at 18:23):
Slight quibble, I think the TimeM is not identical to Mathlib’s writer monad directly since the Mathlib writer monad assumes that the w type is a multiplicative monoid, a very mathlib specific distinction. The writer monad has been around in Haskell for longer and is conceptually similar to Writer monad with AddMonoid attached to the logging type w.
Shreyas Srinivas (Feb 05 2026 at 18:24):
Something like WriterT (Multiplicative Nat). (Cc: @Eric Wieser told me about the Multiplicative declaration recently)
Shreyas Srinivas (Feb 05 2026 at 18:26):
And it is worth mentioning that TimeM is currently limited to Nat costs which I address in cslib#275
Finally the query based approach is definitely not “heavyweight”. It is a systematisation and strict generalisation of what TimeM does and would definitely qualify as “lightweight”. It just allows explicit specification what is being counted upfront, allows defining reductions between models, custom cost models, and allows lower bound proofs, and also surprisingly to me circuit complexity upper bounds. Keeping it lightweight is why Tanner suggested to put my combinator proposal into a Free monad.
Shreyas Srinivas (Feb 05 2026 at 18:27):
CC : Corresponding authors (help tag them please) :folded_hands:
Eric Wieser (Feb 05 2026 at 18:31):
Shreyas Srinivas said:
I think the TimeM is not identical to Mathlib’s writer monad directly since the Mathlib writer monad
This is why the wording is "akin to" not "exactly"
Shreyas Srinivas (Feb 05 2026 at 18:33):
Okay fair. I still think the second third point is worth fixing.
Shreyas Srinivas (Feb 05 2026 at 18:33):
Also whom should I tag for this?
Shreyas Srinivas (Feb 05 2026 at 19:55):
At least the classification of query models into the heavy weight side needs fixing, even if the rest of it is not explained. The current draft is factually wrong on that point.
Swarat Chaudhuri (Feb 06 2026 at 10:13):
I was going to post the paper here but you beat me to it! :-) @Shreyas Srinivas thanks for your thoughts. I will discuss a rewording with the other authors.
Shreyas Srinivas (Feb 06 2026 at 14:12):
Another thing. We had a really long chat about the pros and cons of the TimeM model and the query model on this channel. I see some content from there in the paper . I am guessing that channel topic needs to be cited or referenced somehow, though I am not sure how that would work (maybe a footnote? authors: CSLib Zulip community?)
Shreyas Srinivas (Feb 06 2026 at 14:14):
Shreyas Srinivas (Feb 06 2026 at 14:17):
I actually have a list linear search example and an ordered insertion example completed in CSLib#275. It might serve to illustrate this query model if you need a reference example.
Last updated: Feb 28 2026 at 14:05 UTC