leanprover / leanprover/lean4

Do not report expected type when not helpful

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

Nobody has claimed this yet.

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

Description

At a minimum, we should not report the type of a by block when inside it, i.e. when the displayed goals are more specific and can lead to confusion in combination.

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

The issue gives no file or test entry point. Start by locating the diagnostic or pretty-printing code that reports expected types for by blocks, then trace how displayed goals are selected. Done means the expected type is omitted when it is not helpful and the displayed goals remain clear.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.