leanprover / leanprover/lean4

Hovers & infoview fail for `ex_of_PSigma`

Open
#2,420 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P-low
Dominant language
Lean
Stars
9.2k
Forks
990
Avg merge
1d 17h
Merged PRs (30d)
175

Description

Neither the LSP hover for the definition id nor the infoview goal display (on the first x in the body e.g.) work in the ex_of_PSigma theorem. The infoview shows the following error:

Error updating: Error fetching goals: Rpc error: InternalError: unknown constant '«term_×'_»'

What happens is that there's a built-in delaborator for PSigma, but the ×' syntax is defined using a ParserDescr. So the delaborator produces invalid syntax before the notation command for ×'.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure in the ex_of_PSigma theorem, focusing on the LSP hover and infoview displays for the definition id and the first x. Read the PSigma built-in delaborator alongside the ×' ParserDescr and notation mentioned in the report. Done means both views work without producing the unknown constant '«term_×'_»' error.

Written by the indexing model from the issue text.

Assessment

Domain
compilers, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.