leanprover / leanprover/lean4

Hovering over applications of non-constants with implicit parameters only doesn't show the implicit parameters

Open
#10,167 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Prerequisites

Please put an X between the brackets as you perform the following steps:

Description

When hovering over applications of expressions that are not constants (e.g. free variables, lambda expressions) that don't have any explicit parameters, Lean only shows information for the unapplied constant instead of for the full expression

Context

Came up while debugging something else.

Steps to Reproduce
example (hide : {p : Prop} → Prop) (x : @hide True) : True := by
  1. Go to the end of the line. The infoview should include a line x : hide
  2. Hover/click on the hide in the line x : hide

Expected behavior: Lean shows @hide True : Prop, i.e. the expression with all parameters visible.

Actual behavior: Lean only shows @hide : {p : Prop} → Prop, making the implicit parameters unavailable to the user.

Versions

Lean 4.24.0-nightly-2025-08-27

Impact

Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.

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

Start with the minimal reproducer in the issue and inspect Lean's editor hover or infoview behavior for the hide application. Compare the displayed type for hide with the expected @hide True : Prop; done means hovering the non-constant application shows the full expression with its implicit parameter.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.