Zulip Chat Archive
Stream: mathlib4
Topic: scoped notation I
Johan Commelin (Apr 10 2025 at 06:43):
--- Porting note: removed `scoped[uIcc]` temporarily before a workaround is found
-- Below is a capital iota
/-- `Ι a b` denotes the open-closed interval with unordered bounds. Here, `Ι` is a capital iota,
distinguished from a capital `i`. -/
-notation "Ι" => Set.uIoc
+scoped[uIcc] notation "Ι" => Set.uIoc
+
+open scoped uIcc
causes a cascade of fixes to Mathlib, of which I haven't yet seen the end. See https://github.com/leanprover-community/mathlib4/compare/917b269...jmc-uicc?expand=1
Is this what we want? Or should we scope this in Interval
? Or just leave it as is?
Johan Commelin (Apr 10 2025 at 06:44):
/poll What shall we do with the I
notation for the unit interval?
- Status quo: global notation
- Scope in
Interval
- Scope in
uIcc
(see diff above)
Kevin Buzzard (Apr 10 2025 at 06:58):
uIoc
scoped in uIcc
?
Patrick Massot (Apr 10 2025 at 07:03):
I am very strongly against the global notation option. Very generic global notation for specialized notions are really a pain. I’ve been hit by this many times.
Johan Commelin (Apr 10 2025 at 07:03):
Lol, I only looked at the porting note...
Johan Commelin (Apr 28 2025 at 09:17):
Returning to this again. I'll go with the Interval
scope.
Johan Commelin (Apr 28 2025 at 10:09):
chore: scope Interval notation #24433
Yury G. Kudryashov (Apr 28 2025 at 22:36):
I would drop this notation.
Yury G. Kudryashov (Apr 28 2025 at 22:37):
It doesn't save key strokes and IMHO it's less readable than uIoc
.
Last updated: May 02 2025 at 03:31 UTC