Zulip Chat Archive
Stream: new members
Topic: Mathlib symbols not showing in VSCode for suggestions
Anand Jain (Mar 25 2025 at 16:34):
image.png
Just a second ago it seemed like I could type a few characters and hit Ctrl Enter and it would find me symbols in mathlib that matched. For some reason these symbols arent showing up. What am I doing wrong? Thanks
Anand Jain (Mar 25 2025 at 16:34):
I tried restarting the LSP but that didn't help
Kevin Buzzard (Mar 25 2025 at 16:35):
I don't know much about autocompletion but I think it might depend on the context. For example try #check bij
(so now lean is expecting a term, not a command) and see if you get different answers.
Anand Jain (Mar 25 2025 at 16:36):
image.png
Thank you Kevin!
Anand Jain (Mar 25 2025 at 16:43):
image.png
Is it expected that loading symbols from mathlib takes more than 2 minutes? I've been waiting for a while for symbols in Mathlib.Data to load but it doesn't seem like it will
Marc Huisinga (Mar 25 2025 at 16:44):
Anand Jain said:
image.png
Is it expected that loading symbols from mathlib takes more than 2 minutes? I've been waiting for a while for symbols in Mathlib.Data to load but it doesn't seem like it will
Does it work if you press Escape and Ctrl+Space again to retrigger the completion?
Marc Huisinga (Mar 25 2025 at 16:45):
There are some known issues with the import completion mechanism that should be fixed in the next release candidate (lean4#7178)
Anand Jain (Mar 25 2025 at 16:51):
Weird now it seems to be working, it takes maybe 10 seconds to load symbols now.
Since I have you what is the difference between FinSet and Finset. I cannot seem to get docstring
image.png. I tried searching for FinSet on the mathlib docs but it seems like there is only Finite.Set which I cannot seem to find
Anand Jain (Mar 25 2025 at 16:52):
All I'm trying to do is get the set of bijections from F->F. (trying to prove that this set forms a group under composition) but I can't seem to figure out how to set everything up properly
Kevin Buzzard (Mar 25 2025 at 16:56):
FinSet
isn't a thing, and if you write it in a project which has got the autoImplicit
footgun set to true
(the default setting) then Lean just creates a random new type called FinSet
in order to make your life easier / completely confuse you depending on your level of comprehension of the system.
Marc Huisinga (Mar 25 2025 at 16:58):
On v4.18.0-rc1, the auto-implicit is now displayed explicitly as such:
Auto-implicit inlay hint
Anand Jain (Mar 25 2025 at 17:03):
I think I got it variable (S : { f : Finset α → Finset α // Function.Bijective f})
Anand Jain (Mar 25 2025 at 17:03):
Actually I think this might be wrong, because I'm trying to say the collection of bijections from a finite set to itself, which I don't think Finset \alpha to Finset \alpha means
Kevin Buzzard (Mar 25 2025 at 17:04):
Finset \alpha
is the type of all finite subsets of \alpha
.
Last updated: May 02 2025 at 03:31 UTC