Zulip Chat Archive
Stream: mathlib4
Topic: rename Memℒp to MemLp?
Floris van Doorn (Feb 21 2025 at 10:42):
Unicode characters in declaration names are pretty annoying, and I don't see any reason why Memℒp
needs to have a unicode character in the name. Shall we just replace the ℒ
with a regular L
?
Reasons why it is annoying:
- More annoying to type
- docs#MeasureTheory.Memℒp
- No results found here: https://leanprover-community.github.io/mathlib4_docs/404.html#MeasureTheory.Mem%E2%84%92
- The character
ℒ
/ ℒ looks quite different in various fonts (for me, these two occurrences of the same character are displayed very differently)
Etienne Marion (Feb 21 2025 at 11:00):
I think the reason is that usually ℒp is used to denote the set of functions with integrable power p
while Lp is for the quotient set. But I agree this is quite annoying and not very useful.
Rémy Degenne (Feb 21 2025 at 11:21):
That was the reason, but I agree it's annoying to use and and we should change it.
Kevin Buzzard (Feb 21 2025 at 12:05):
Do these comments also apply to docs#Memℓp ? (edit: lol at least one of them seems to)
Yaël Dillies (Feb 21 2025 at 13:29):
I basically never use the docs for anything related to Lp spaces precisely because it's so hard to type
Floris van Doorn (Feb 21 2025 at 13:48):
Does such a name change require deprecating all lemmas with an ℒ
in the name, or is just the definitions sufficient? (I think I know the answer but I don't like it)
Michael Rothgang (Feb 21 2025 at 14:02):
How difficult would it be to
- make loogle support entering the L well?
- make doc-gen support the same unicode input options?
Deprecating many lemmas is painful, to what extent would this already help?
Kevin Buzzard (Feb 21 2025 at 14:04):
How difficult would it be to write a script which deprecates all declarations with an ℒ
in?
Yaël Dillies (Feb 21 2025 at 14:06):
The script already exists: scripts/add_deprecations.sh
Marc Huisinga (Feb 21 2025 at 14:10):
Michael Rothgang said:
How difficult would it be to
- make loogle support entering the L well?
- make doc-gen support the same unicode input options?
Deprecating many lemmas is painful, to what extent would this already help?
Loogle already supports Unicode input.
Floris van Doorn (Feb 21 2025 at 14:29):
Yaël Dillies said:
The script already exists:
scripts/add_deprecations.sh
Oh nice! I didn't know the script, so I did some regex-replace myself. Is the script idempotent? I think I missed a few deprecations.
Floris van Doorn (Feb 21 2025 at 14:29):
WIP: #22164
Yaël Dillies (Feb 21 2025 at 14:29):
No, it is not idempotent
Yury G. Kudryashov (Feb 21 2025 at 14:34):
CC: @Sébastien Gouëzel
Floris van Doorn (Feb 21 2025 at 15:06):
#22164 builds now, and a speedy review would be appreciated, since it likely rots quickly.
Michael Rothgang (Feb 21 2025 at 19:48):
Marc Huisinga said:
Michael Rothgang said:
How difficult would it be to make loogle support entering the L well?
Loogle already supports Unicode input.
I know! I guess I have a bug report then, in that I cannot make loogle find results with "Mem𝓛p". Never mind: copy-pasting the name from the docs works. But using \MCL
to type a curly L fails, as that is a different unicode L.
Jireh Loreaux (Feb 21 2025 at 20:24):
The one used in Memℒp
is \McL
.
Last updated: May 02 2025 at 03:31 UTC