Zulip Chat Archive
Stream: lean4
Topic: notation
Dean Young (Dec 25 2022 at 20:55):
How could I define a notation like this:
notation C --> D := Fun C D
It's not quite right I think.
or this:
notation "[" C "," D "]" := Fun C D
Mario Carneiro (Dec 25 2022 at 21:07):
the second one is mostly correct, you need an => as the error message says:
notation "[" C "," D "]" => Fun C D
Mario Carneiro (Dec 25 2022 at 21:08):
The first one isn't likely to work because -- is the comment syntax (as the syntax highlighting here indicates)
Arthur Paulino (Dec 26 2022 at 01:54):
I'm not on my PC right now, but is there a \longrightarrow?
Arthur Paulino (Dec 26 2022 at 15:15):
Arthur Paulino said:
I'm not on my PC right now, but is there a
\longrightarrow?
Just tested it: yes, and it can also be spelled \-->. But it can be confused with the common right arrow
Dean Young (Dec 26 2022 at 17:26):
Arthur Paulino said:
Arthur Paulino said:
I'm not on my PC right now, but is there a
\longrightarrow?Just tested it: yes, and it can also be spelled
\-->. But it can be confused with the common right arrow
oh thanks!
Last updated: May 02 2025 at 03:31 UTC