Zulip Chat Archive
Stream: lean4
Topic: Shorter abbreviation for ·
Gabriel Ebner (May 09 2021 at 18:45):
I'd like suggestions for a shorter abbreviation for ·, like in (· + ·). Unfortunately, \cdot is already taken for ⬝ (which is a different unicode symbol). I'm getting tired of typing \centerdot.
Mario Carneiro (May 09 2021 at 18:45):
I discovered that . also works
Mario Carneiro (May 09 2021 at 18:45):
I use that now
Mario Carneiro (May 09 2021 at 18:46):
(that's a plain period character fyi)
Sebastian Ullrich (May 09 2021 at 18:50):
In Emacs it's
to input: type "\centerdot" or "\cdot" or "\dot" or "\." with Lean input method
Gabriel Ebner (May 09 2021 at 18:56):
If nobody objects, then we can also make ⬝ and ∙ expand into · (yes, these are three different unicode dots!).
Mario Carneiro (May 09 2021 at 19:10):
I would prefer for lean not to take any of the center dots and just use . for this syntax. Let the mathematicians have the dots
Gabriel Ebner (May 21 2021 at 15:20):
There's a pretty common case where the ASCII dot doesn't work, namely in dot-notation: [(1,2)].map (·.fst)
Gabriel Ebner (May 21 2021 at 15:20):
Should we just make ∙ expand into · instead?
Gabriel Ebner (May 21 2021 at 15:20):
That's \.
Mario Carneiro (May 21 2021 at 17:50):
Can we make either (..fst) or (. .fst) work?
Last updated: May 02 2025 at 03:31 UTC