Zulip Chat Archive

Stream: mathlib4

Topic: what does doset even mean


Kevin Buzzard (Oct 20 2024 at 14:11):

I recently discovered that mathlib has docs#Doset.doset . Can anyone guess what it means without clicking? I propose we rename it to what mathematicians call it. Or is this standard terminology? I'd never heard of it.

Edward van de Meent (Oct 20 2024 at 14:19):

even reading the spoiler i couldn't figure it out, i had to go to the docs and expand the equation... i agree we should call it what mathematicians call it (unless of course there is a clearer way to express the concept)

Damiano Testa (Oct 20 2024 at 14:40):

I agree that it should be called what the spoiler says: without context (and maybe even with context!), I would have never guessed its meaning.

Eric Wieser (Oct 20 2024 at 14:45):

Maybe this should be a new threshold for whether mathlib should have something; introduce it with a silly name, and if no one complains within 3 years then maybe mathlib didn't need it after all!

Kevin Buzzard (Oct 20 2024 at 14:49):

I need it for FLT, and that was how I discovered it!

Damiano Testa (Oct 20 2024 at 14:50):

And given that Chris authored the file, I imagine that they wanted it for similar reasons!

Kevin Buzzard (Oct 20 2024 at 14:51):

Yes, we're both thinking about Hecke operators right now.

Eric Wieser (Oct 20 2024 at 14:54):

(I was kidding, I don't think mathlib should be pruned of things that no one currently wants)

Johan Commelin (Oct 21 2024 at 13:33):

I confess that I know what a Doset.doset is, without looking at the spoiler...

Johan Commelin (Oct 21 2024 at 13:34):

But I reviewed the PR that introduced it... so maybe you should take this data point with a grain of salt

Ben Eltschig (Oct 22 2024 at 01:42):

Eric Wieser said:

Maybe this should be a new threshold for whether mathlib should have something; introduce it with a silly name, and if no one complains within 3 years then maybe mathlib didn't need it after all!

I know you were kidding, but I'd still like to mention that they find use in the construction of universal orbifold coverings too, so I will need them if/when I get to formalising that. I don't think I would have easily found them under that name though, if I hadn't seen this post...

Kevin Buzzard (Jul 11 2025 at 16:15):

Mathlib has dosets. If you don't know what they are, then feel free to guess before reading on.

Dosets are a mathlibism. Doset isn't a word, it's not searchable, it's not guessable, it's confusing. We have them in one file in mathlib so it's easy to change Dosets to DoubleCosets, which is what they are, and is what the literature calls them. I want to add stuff to this file and do stuff with topological double cosets but I cannot get used to the mathlibism name; I think we should stick to the literature. We could have a vote on it but given that it was trivial to do the search-and-replace PR because they're only in one file right now, I made #27004 . Yes Doset is shorter than DoubleCoset. But why does this matter? If shortness matters and readability doesn't, I propose just changing it to D because that's just as incomprehensible.

Eric Wieser (Jul 11 2025 at 16:15):

(merged with the previous thread)

Kevin Buzzard (Jul 11 2025 at 16:16):

I'd forgotten my previous rant on the matter; at least this time I did something.

Kevin Buzzard (Jul 11 2025 at 16:20):

On top of that, I've just noticed that the module docstring talks about a non-existing rel which is called setoid in the code, although all lemmas about it still refer to rel. Should we just change setoid to rel (it's in the Doset namespace)

Aaron Liu (Jul 11 2025 at 16:21):

Quotient needs a redesign

Eric Wieser (Jul 11 2025 at 16:22):

Yeah, I would say leave the rel alone for that reason

Eric Wieser (Jul 11 2025 at 16:22):

The rel is vestigial from when the preferred spelling was someSetoid.rel x y, whereas now we write someSetoid.r x y which via a CoeFun (not FunLike) is someSetoid x y


Last updated: Dec 20 2025 at 21:32 UTC