Zulip Chat Archive
Stream: maths
Topic: Ordinal.lsub
Violeta Hernández (Oct 15 2024 at 00:50):
Out of all of my planned refactors on ordinals, the docs#Ordinal.lsub refactor is the one I'm the most iffy about.
Violeta Hernández (Oct 15 2024 at 00:52):
There's a few issues with lsub
. One is the name, which is a bit obscure without the docstring (it stands for least strict upper bound). Of course, there's also the issue with universes - if we are to keep this function, we should not restrict the universes of the indexing family.
Violeta Hernández (Oct 15 2024 at 00:53):
But the greater issue is that using lsub
instead of writing its definition down explicitly means we can't use the vast API that already exists for suprema.
Violeta Hernández (Oct 15 2024 at 00:54):
On the other hand... this is definitely a useful definition to have. It appears most prominently in cofinality: the cofinality of an ordinal o
is the smallest cardinal of an indexing family f : ι → Ordinal
with lsub f = o
.
Violeta Hernández (Oct 15 2024 at 00:56):
What should be done? I see three options here:
Violeta Hernández (Oct 15 2024 at 00:57):
/poll What to do with lsub
?
Deprecate lsub
, use iSup
Keep lsub
(but generalize its universes)
Generalize lsub
to appropriate typeclasses
Violeta Hernández (Oct 15 2024 at 00:59):
The generalization option would be really cool, but it comes with a high maintenance cost. And there's the issue of whether we should also have a set version...
Violeta Hernández (Oct 15 2024 at 01:00):
I'm pretty much 50/50 on deprecating or keeping it.
Violeta Hernández (Oct 15 2024 at 01:00):
(In any case, docs#Ordinal.blsub has to go)
Violeta Hernández (Oct 15 2024 at 01:02):
@Yaël Dillies @Nir Paz
Nir Paz (Oct 15 2024 at 12:39):
Adding an explicit succ ∘
in the characterization of cofinality isn't that bad, especially since for limits it's equivalent to iSup
. This is always the interesting case so I assume the clumsier iSup (succ ∘ f)
won't even be used often.
Violeta Hernández (Oct 15 2024 at 20:09):
Not quite, every nonzero ordinal is the supremum of a singleton (namely the one consisting of itself)
Violeta Hernández (Oct 15 2024 at 20:11):
On the other hand, it's true that you can just characterize the cofinality of a limit ordinal as the size of the least set of smaller ordinals whose supremum equals it
Violeta Hernández (Oct 16 2024 at 00:12):
Well the poll clearly shows we don't want this haha
Violeta Hernández (Oct 16 2024 at 00:12):
I'll try to refactor the cofinality file to not use lsub
in the coming weeks
Violeta Hernández (Oct 16 2024 at 00:13):
Its other uses are somewhat more minor - after getting rid of those we can deprecate the function altogether
Last updated: May 02 2025 at 03:31 UTC