Zulip Chat Archive
Stream: lean4
Topic: Opening a file in core gives lots of errors
Bhavik Mehta (Apr 04 2025 at 12:16):
Opening Lean/Elab/Tactic/RCases.lean gives me a ton of errors from a project on 4.18.0-rc1, starting on line 68:
elaboration function for 'Lean.Elab.Tactic.RCases.termListΠ._@.Lean.Elab.Tactic.RCases._hyg.538' has not been implemented
ListΠ
@Kevin Buzzard reports seeing the same thing from mathlib on v4.15.0-rc1, and also from mathlib master on v4.19.0-rc2. What's going on here?
Edward van de Meent (Apr 04 2025 at 13:32):
The specific notation this is referring to looks to be defined at around line 30 of the same file...
Kevin Buzzard (Apr 04 2025 at 14:07):
So just to be clear, I've got mathlib open and then I'm opening some file in ~/.elan/toolchains
so in particular it's not within the project.
Eric Wieser (Apr 04 2025 at 15:58):
What does lean --version
give when run from that directory?
Kevin Buzzard (Apr 04 2025 at 16:28):
I'm not at Lean right now but I got to the file via "jump to definition"
Bhavik Mehta (Apr 04 2025 at 16:32):
Likewise for me, and the jump to definition was from a file in (working) mathlib
Eric Wieser (Apr 04 2025 at 16:34):
I suspect the answer is that elan doesn't know which lean to run
Eric Wieser (Apr 04 2025 at 16:34):
And so it uses whatever your default toolchain is
Bhavik Mehta (Apr 04 2025 at 16:35):
Shouldn't it be the same Lean server that's already running in mathlib? It's the same vscode window
Eric Wieser (Apr 04 2025 at 16:35):
No, you can have multiple servers within the same window
Eric Wieser (Apr 04 2025 at 16:35):
Vscode just asks elan to choose a lean version for whatever directory it is looking at
Bhavik Mehta (Apr 04 2025 at 16:40):
When in ~/.elan/toolchains/leanprover--lean4---v4.18.0-rc1
, I get
$ lean --version
Lean (version 4.18.0-rc1, x86_64-apple-darwin22.6.0, commit 69a1d0485e24, Release)
Eric Wieser (Apr 04 2025 at 16:41):
What about in the exact folder where the .lean
file you're looking at is?
Bhavik Mehta (Apr 04 2025 at 19:14):
Exactly the same result
Kyle Miller (Apr 04 2025 at 19:15):
Does elan override list
show anything?
Bhavik Mehta (Apr 04 2025 at 19:16):
/Users/bmehta/Documents/lean/mathport/Oneshot/lean3-in leanprover-community/lean:3.51.1
/Users/bmehta/Documents/lean/mathport/sources/lean leanprover-community/lean:3.51.1
Bhavik Mehta (Apr 04 2025 at 19:16):
Kevin might be able to give better debug information, his laptop is fast and clean and mine is old and has a bunch of crap on it :)
Last updated: May 02 2025 at 03:31 UTC