Zulip Chat Archive

Stream: new members

Topic: typing special characters


Joshua Coleman (Jan 05 2024 at 05:17):

Hello everyone. I keep trying to learn lean, but every book that I read sort of skips the part that some of the keys they use don't exist on my keyboard (logical not, for example). Is there a resource that will tell me which keys to press to make the logic work?

Joshua Coleman (Jan 05 2024 at 05:17):

Hello everyone. I keep trying to learn lean, but every book that I read sort of skips the part that some of the keys they use don't exist on my keyboard (logical not, for example). Is there a resource that will tell me which keys to press to make the logic work?

Mario Carneiro (Jan 05 2024 at 05:20):

@Joshua Coleman hover over them in vscode and it will say how to input them

Kyle Miller (Jan 05 2024 at 10:02):

There's also the data file of all the abbreviations used by the VS Code extension: https://github.com/leanprover/vscode-lean4/blob/master/vscode-lean4/src/abbreviation/abbreviations.json

Michael Stoll (Jan 05 2024 at 11:33):

...which is also available in VSCode in the Lean ( :forall:) menu under "Documentation -> Docview: Show All Abbreviations".

Patrick Massot (Jan 05 2024 at 14:23):

Joshua Coleman said:

Hello everyone. I keep trying to learn lean, but every book that I read sort of skips the part that some of the keys they use don't exist on my keyboard (logical not, for example). Is there a resource that will tell me which keys to press to make the logic work?

Which book are you reading? I just checked that #tpil, #mil and #fpil all discuss this topic very early on.

Dan Grigsby (Jan 05 2024 at 22:06):

Expanding (possibly needlessly) @Mario Carneiro 's "hover" tip, to enter characters in VSCode, type backslash (\) followed by an abbreviation. From my limited experience, things feel pretty consistent. \le is less than or equal, so \ge naturally follows.


Last updated: May 02 2025 at 03:31 UTC