Zulip Chat Archive
Stream: general
Topic: lambda / lamda
Alistair Tucker (Mar 13 2023 at 12:25):
Is there maybe some special unicode character I can use for a variable name? I thought maybe \lamda
was it but it seems to do just the same as \lambda
Floris van Doorn (Mar 13 2023 at 12:27):
There are a few greek letters that cannot be used in declaration names or variable names, due to there use in type theory (at least in Lean 3). I think this only concerns λ
, Π
and Σ
Alistair Tucker (Mar 13 2023 at 12:28):
Yes thanks but I wondered if there was some unicode variation that I could use
Alex J. Best (Mar 13 2023 at 12:29):
I don't see any variants searching through https://github.com/leanprover/vscode-lean/blob/master/src/abbreviation/abbreviations.json, other than upper case lambda
Julian Berman (Mar 13 2023 at 12:32):
There's «λ»
if that counts.
Kevin Buzzard (Mar 13 2023 at 12:58):
Because of this issue Lean 4 uses fun
, but you can use lambda for functions anyway in lean 4, so I conjecture that using lambda for e.g. real scalars (which is common in mathematics) might still not be possible even in Lean 4.
Last updated: Dec 20 2023 at 11:08 UTC