Zulip Chat Archive

Stream: lean4

Topic: How to type ⨍


Geoffrey Irving (Jan 12 2024 at 21:26):

I've forgotten how to type the average integral symbol ⨍ in VSCode. Ideally I'd be able to mouse over it and have it show how to type it, but the mouseover only shows the mathematical description:

Screenshot-2024-01-12-at-9.23.48PM.png

Is this a bug, or is there some other way to get at the keyboard shortcut?

Julian Berman (Jan 12 2024 at 21:33):

I think the bug is that there isn't actually an abbreviation for it.

Geoffrey Irving (Jan 12 2024 at 21:33):

That would explain it! I guess I must have just copied and pasted it in the past.

Kevin Buzzard (Jan 12 2024 at 21:58):

This was also once true for the identity natural transformation (a bold face 1). I'm sure that a PR to abbreviations.json in the lean-vscode repo would be appreciated.

Kevin Buzzard (Jan 12 2024 at 22:00):

https://github.com/leanprover/vscode-lean4/blob/master/vscode-lean4%2Fsrc%2Fabbreviation%2Fabbreviations.json

Geoffrey Irving (Jan 12 2024 at 22:09):

"average" or "mean"? Happy to send a PR.

Kevin Buzzard (Jan 12 2024 at 22:28):

you can choose, or add both!

Geoffrey Irving (Jan 12 2024 at 22:37):

https://github.com/leanprover/vscode-lean4/pull/387. Testing it now.

Yury G. Kudryashov (Jan 13 2024 at 00:04):

I use \-int locally

Geoffrey Irving (Jan 13 2024 at 00:07):

Should I still do that PR? If not, is there a way to get that shortcut to show up as a hint?

Yury G. Kudryashov (Jan 13 2024 at 00:11):

I think that you should make the PR, I suggested one more name motivated by the glyph appearance.

Yury G. Kudryashov (Jan 13 2024 at 00:13):

While you're on it, could you please also add a shortcut for (I use oiint locally)

Yury G. Kudryashov (Jan 13 2024 at 00:13):

It's for docs#torusIntegral

Yury G. Kudryashov (Jan 13 2024 at 00:14):

Also, I suggest pd for . partial has conflicts with other shortcuts up to parti

Yury G. Kudryashov (Jan 13 2024 at 00:16):

I wonder if we should cleanup this list and remove the symbols that are never used in Lean+Std4+Mathlib.

Geoffrey Irving (Jan 13 2024 at 00:25):

I’ll add -int and oiint tomorrow. Though is tint better for torusIntegral?

Yury G. Kudryashov (Jan 13 2024 at 00:30):

We can have both. oiint is based on LaTeX command.

Geoffrey Irving (Jan 17 2024 at 10:27):

I added the other abbreviations to the PR, and it's now merged.


Last updated: May 02 2025 at 03:31 UTC