Zulip Chat Archive

Stream: general

Topic: intros gives alpha with diacritics, literally untypable


Siyuan Yan (Nov 03 2022 at 23:45):

I noticed when given without explicit variable names, introssometimes produce these variable names made of alpha with a breve diacritic. Is this by design? This is super hard to type. Can't even get it with compose key (unless using a greek keyboard layout). (@Julian Berman how do I type these using lean.nvim?)

 :  (x : ), f (- x) = - f x
ᾰ_1 :  (x : ), g (- x) = - g x

Andrew Yang (Nov 03 2022 at 23:49):

This is intended to be untypable.

Julian Berman (Nov 03 2022 at 23:49):

(See e.g. https://leanprover.zulipchat.com/#narrow/stream/113489-new-members/topic/.E2.9C.94.20Typing.20.E1.BE.B0 )

Siyuan Yan (Nov 03 2022 at 23:58):

Thanks, I find it hilarious

Kevin Buzzard (Nov 04 2022 at 16:14):

It was less funny when it was giving weird errors because of variable name clashes -- this is why it was changed

Mike Shulman (Nov 04 2022 at 16:56):

Wouldn't be better to make the variable actually impossible to refer to, such as by labeling it _, so that users would be more likely to realize that if they want to refer to it they have to give it a name themselves?

Kevin Buzzard (Nov 04 2022 at 17:12):

That is basically what is done in lean 4, is my understanding.

Reid Barton (Nov 04 2022 at 17:13):

We were originally going to use a name starting with an underscore but that caused some other issues because it made Lean think it was an internal variable (github discussion thread)

Reid Barton (Nov 04 2022 at 17:18):

The Lean 4 behavior is much better of course (the variable has a normal name but displayed with a suffixed \dagger, and it can't be referred to)


Last updated: Dec 20 2023 at 11:08 UTC