Zulip Chat Archive
Stream: new members
Topic: help debugging
Holly Liu (Aug 04 2021 at 17:43):
i get the unexpected token
error when hovering over the red line:
image.png
how do i go about this?
Mario Carneiro (Aug 04 2021 at 17:45):
try restarting lean, try deleting and rewriting the characters in that area in case there are some hidden bad unicode characters
Mario Carneiro (Aug 04 2021 at 17:46):
try not using unicode names (at least for debugging purposes)
Holly Liu (Aug 04 2021 at 17:56):
i tried those and it looks like σⱼ
doesn't work for me at all, although other subscripts like σₖ
seem to work.
Mario Carneiro (Aug 04 2021 at 18:06):
Oh unicode. Of course it would be the case that subscript i is in the Phonetic extensions block, subscript j is in the Latin Extended-C block, and subscript k is in the Superscripts and subscripts block.
Mario Carneiro (Aug 04 2021 at 18:07):
unfortunately lean's list of subscript blocks in unicode missed a spot
Mario Carneiro (Aug 04 2021 at 18:10):
If you really want to use a non-identifier character in an identifier, you can enclose it in "french double quotes":
example («σⱼ» : ℕ) : ℕ := «σⱼ»
Mario Carneiro (Aug 04 2021 at 18:11):
or you can just get lazy and use σ_j
or σj
Holly Liu (Aug 04 2021 at 18:25):
ok. very sad that i can't do the usual i,j indexing.
Holly Liu (Aug 04 2021 at 18:41):
sorry if this is a dumb question. lean isn't able to find the σᵢ
all the way at the bottom here although i defined it in braid_rels
image.png
Holly Liu (Aug 04 2021 at 18:42):
it's also the unexpected token
error
Mario Carneiro (Aug 04 2021 at 19:04):
I think subscript i has the same problem
Last updated: Dec 20 2023 at 11:08 UTC