Skip to content

bump: lean4: account for leanprover/lean4#2502#6928

Closed
thorimur wants to merge 15 commits intomasterfrom
bump-refine-fix-lean4-2502
Closed

bump: lean4: account for leanprover/lean4#2502#6928
thorimur wants to merge 15 commits intomasterfrom
bump-refine-fix-lean4-2502

Conversation

@thorimur
Copy link
Copy Markdown
Contributor

@thorimur thorimur commented Sep 2, 2023

⚠️ NOTE: this is an anticipatory PR, and uses a temporary PR-release toolchain for CI.

leanprover/lean4#2502 changes the way refine and elabTermWithHoles behaves. In particular, it ensures that both only return new goals: refine e should only return goals created during elaboration of e, not pre-existing goals which happen to occur in e.

All fixes to refine and convert (which uses the underlying infrastructure of refine) made by this PR were instances of "goal tunneling", wherein refine e added a goal to the list which was not obviously present in e, and had been created earlier—sometimes far earlier, and in one case, in a different field of the structure. Some fixes were minor, needing only the removal of a swap, but some required moving tactic blocks to earlier positions in the proof where they could solve the goal nearer its point of creation. Two touched porting notes.

None required any significant alteration of a proof—moving tactic blocks around and sometimes adding a case or refine to expose the goal for solving was the most that was required.


Open in Gitpod

* changes argument type from `List Name` to `Array Name`
* reason: `refine'` was capturing a `_` from a different field's value
* reason: the same: "goal tunneling"
* reason: goal tunneling
* reason: goal tunneling
* reason: goal tunneling; extraneous `swap`
r`
* reason: synthetic goal tunneling
* reason: probably goal tunneling; newly-unneeded `exact`.
* reason: synthetic goal tunneling—note that this touched a porting note
@ghost ghost added blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Sep 4, 2023
@thorimur thorimur added awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. and removed WIP Work in progress labels Sep 11, 2023
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Sep 11, 2023
@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Sep 11, 2023
@thorimur thorimur added blocked-by-core-PR This PR depends on a PR to Core/Std awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. WIP Work in progress and removed blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. WIP Work in progress labels Sep 12, 2023
@ghost ghost added blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Sep 12, 2023
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Sep 19, 2023
@ghost ghost removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Sep 21, 2023
@ghost
Copy link
Copy Markdown

ghost commented Sep 21, 2023

@thorimur thorimur added blocked-by-core-release Not relevant for the current Lean release candidate, but will be needed for the next. and removed blocked-by-core-PR This PR depends on a PR to Core/Std labels Sep 21, 2023
Copy link
Copy Markdown
Contributor

@kim-em kim-em left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've merged this into the nightly-testing branch. I will roll this in the bump PR for v4.2.0-rc1.

@kim-em kim-em added this to the v4.2.0 milestone Sep 21, 2023
@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Sep 26, 2023

Subsumed into #7370.

@kim-em kim-em closed this Sep 26, 2023
bors bot pushed a commit that referenced this pull request Sep 26, 2023
This rolls in the changed from #6928.

Co-authored-by: Thomas Murrills <thomasmurrills@gmail.com>



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
@YaelDillies YaelDillies deleted the bump-refine-fix-lean4-2502 branch July 31, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked-by-core-release Not relevant for the current Lean release candidate, but will be needed for the next.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants