leanprover / leanprover/vscode-lean4

Display target before assumptions not always respected

Open
#734 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
313
Forks
104
Avg merge
1h 56m
Merged PRs (30d)
1

Description

Description

There are situations (e.g. in messages) where the Infoview setting Display target before assumptions is not respected.
E.g. click on the underscore in the following:

theorem bla (a : False) : 1 = 2 := by sorry

theorem bla2 : 1 = 2 := by
  let := 1
  rw [bla (by _)]

The infoview shows the message

unsolved goals
this : Nat := 1
⊢ False

although i have set the setting to true.
This makes for a lot of scrolling in proofs with large contextes before i can finally see the goal.

Impact

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

Contributor guide

No contributing guide indexed for this repository

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 issue in the Infoview with the Lean snippet from the report and the “Display target before assumptions” setting enabled. Trace the Infoview path that formats unsolved-goal messages, then verify that the target appears before assumptions in this example and in contexts with many assumptions.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.