Zulip Chat Archive
Stream: lean4
Topic: a few abbreviation changes
Floris van Doorn (Mar 26 2024 at 18:19):
I just made a PR vscode-lean4#422 adding a bunch of abbreviations.
There are also a few changes (I think pretty uncontroversial):
\setminusfrom∖to\(the latter is the ASCII symbol). The former is unused in Mathlib, except in docstrings using the symbol incorrectly to refer to the latter. The former is still available as\smallsetminus.\subsetfrom⊂to⊆. The former is almost unused compared to the latter in Mathlib (240 vs 6900 hits). The former symbol is still available as\ssubor\ssubset. This should also make\subsautocomplete conveniently to⊆instead of⊂.\supsetsimilarly from⊃to⊇, which are rarely used (former: 13 hits, but only in tests/delaborators, latter: 80 hits).
Floris van Doorn (Mar 26 2024 at 18:20):
Feel free to suggest more abbreviations that you are missing, and I can add them to this PR or a later PR.
Yaël Dillies (Mar 26 2024 at 18:21):
Can you add \ma so that typing \ma results in ↦ not ♂?
Yaël Dillies (Mar 26 2024 at 18:23):
Floris van Doorn said:
\subsetfrom⊂to⊆. The former is almost unused compared to the latter in Mathlib (240 vs 6900 hits). The former symbol is still available as⊂ or⊂ This should also make⊂ autocomplete conveniently to⊆`
\su already autocompletes to ⊆
Floris van Doorn (Mar 26 2024 at 20:04):
Yaël Dillies said:
Floris van Doorn said:
\subsetfrom⊂to⊆. The former is almost unused compared to the latter in Mathlib (240 vs 6900 hits). The former symbol is still available as⊂ or⊂ This should also make⊂ autocomplete conveniently to⊆`
\sualready autocompletes to⊆
Yes, I know \subs is not the shortest way to write that symbol (although I generally use \sub), but still sometimes I (or a student) occasionally ends up writing.
Yaël Dillies (Mar 26 2024 at 20:08):
Could you also add \lf for ⌊? It currently gives ⧏
Floris van Doorn (Mar 26 2024 at 20:13):
I think the first occurrence is chosen in case there are competing matches (and there is no exact match), so I moved the more desirable symbols up.
Floris van Doorn (Mar 26 2024 at 20:14):
I also added "floor": "⌊$CURSOR⌋" (i.e. you get both symbols and your cursor goes in between).
Yaël Dillies (Mar 26 2024 at 20:41):
I assume you also added ceil?
Floris van Doorn (Mar 26 2024 at 22:09):
Of course, adding only one of them would be stupid (quickly pushes a commit adding ceil).
Eric Wieser (Mar 27 2024 at 17:42):
Should we switch to using ∖ (the unicode) for sdiff?
Eric Wieser (Mar 27 2024 at 17:44):
Right now it's the only boolean algebra operator that isn't unicode, so I don't think there's that much burden in making it so.
Yaël Dillies (Mar 27 2024 at 17:51):
Don't see much point in doing so, but we could
Timo Carlin-Burns (Mar 28 2024 at 21:12):
Yaël Dillies said:
Could you also add
\lffor⌊? It currently gives⧏
⧏ is currently used as a "less-than-or-fuzzy" relation in SetTheory.PGame. How do you type ⧏ after this change?
Yaël Dillies (Mar 28 2024 at 21:21):
I don't really mind. Can you come up with an abbreviation that's not lf?
Timo Carlin-Burns (Mar 28 2024 at 21:23):
\lfuzzy would be acceptable (although it is nice to have symmetry with \le and \lf)
Yaël Dillies (Mar 28 2024 at 21:24):
I'm afraid ⌊ is much more used than ⧏, so it would be better to respect the \lf/\rf symmetry
Richard Osborn (Mar 28 2024 at 21:47):
SetTheory.PGame.LF is probably misnamed as well. SetTheory.PGame.LTF or SetTheory.PGame.LTFuzzy seem like more appropriate names.
Yaël Dillies (Mar 28 2024 at 21:48):
docs#LE would like to disagree :grinning:
Floris van Doorn (Mar 28 2024 at 21:48):
I renamed \lf to \lfuzzy. \<| is also available. I also added shortcuts for the symmetric symbol ⧐ (maybe also useful for games?)
Floris van Doorn (Mar 28 2024 at 21:49):
I renamed \lf to \lfuzzy. \<| is also available. I also added shortcuts for the symmetric symbol ⧐ (maybe also useful for games?)
Last updated: May 02 2025 at 03:31 UTC