Zulip Chat Archive
Stream: mathlib4
Topic: rw with `mk_initialSeg`
Nir Paz (Sep 18 2024 at 17:03):
What do you think of changing Ordinal.mk_initialSeg
to be written with Iio o
rather than { o' : Ordinal | o' < o }
? Or even adding a version with it. Currently I do something like change ... #{p | _} ...
every time I rw
with it.
@Violeta Hernández
Nir Paz (Sep 18 2024 at 17:04):
Just changing it doesn't break anything
Violeta Hernández (Sep 18 2024 at 17:32):
I think that's unambiguously good. It should also be called mk_Iio_ordinal
Ruben Van de Velde (Sep 18 2024 at 17:42):
If you find yourself using change, you almost certainly need to add a lemma, yeah
Nir Paz (Sep 18 2024 at 18:25):
Nir Paz (Sep 18 2024 at 18:26):
Apparantly mk_initialSeg
is only used once in mathlib
Violeta Hernández (Sep 18 2024 at 18:31):
I actually wanted to use this exact lemma yesterday! I just forgot it had that weird name.
Nir Paz (Sep 18 2024 at 18:36):
It's funny, I feel like I use it all the time
Nir Paz (Sep 19 2024 at 14:19):
In a similar vein: aleph_isNormal : IsNormal (ord ∘ aleph)
is annoying to work with (for example everything we have on iSup
uses the ⨆
notation). We can change it to IsNormal (fun o ↦ (aleph o).ord)
.
Violeta Hernández (Sep 20 2024 at 10:01):
I feel like this might be an XY. It'd be nice not to have to work with ord ⚬ aleph
at all and simply have a function omega
for this.
Violeta Hernández (Sep 20 2024 at 10:01):
Just, named differently
Violeta Hernández (Sep 20 2024 at 10:02):
I just opened #16964. I did it to golf the definition of aleph
later down the line, but it could also be used to define this omega
function first. It'd be the enumerator function of initial ordinals.
Violeta Hernández (Sep 20 2024 at 10:17):
I half-recall proposing this at some point, but I imagine my proposed rename omega
→ omega₀
didn't make people too happy. Might be misremembering though.
Nir Paz (Sep 20 2024 at 14:57):
To be honest it doesn't make me happy either, but having an omega
function is worth it.
Nir Paz (Sep 20 2024 at 14:58):
Actually as long as the notation for it works it doesn't really matter anyways
Last updated: May 02 2025 at 03:31 UTC