Skip to content

[Merged by Bors] - fix(Tactic/Lift): replace simp at h h with simp at h#23437

Closed
vasnesterov wants to merge 4 commits intomasterfrom
vasnesterov/lift_fix
Closed

[Merged by Bors] - fix(Tactic/Lift): replace simp at h h with simp at h#23437
vasnesterov wants to merge 4 commits intomasterfrom
vasnesterov/lift_fix

Conversation

@vasnesterov
Copy link
Copy Markdown
Collaborator

@vasnesterov vasnesterov commented Mar 29, 2025

The lift tactic previously called simp only [h_eq] at h h instead of simp only [h_eq] at h when rewriting a local hypothesis h with h_eq : old_value = ↑lifted_value. This caused hypothesis duplication in some cases:
#mathlib4 > Bug in `lift` tactic? @ 💬

This PR removes the second h in the simp call.


Open in Gitpod

@vasnesterov vasnesterov added the t-meta Tactics, attributes or user commands label Mar 29, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 29, 2025

PR summary 7e1a618c81

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@urkud urkud requested a review from kim-em March 29, 2025 18:43
@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Mar 30, 2025

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Mar 30, 2025

✌️ vasnesterov can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Mar 30, 2025
@vasnesterov
Copy link
Copy Markdown
Collaborator Author

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Mar 31, 2025
The `lift` tactic previously called `simp only [h_eq] at h h` instead of `simp only [h_eq] at h` when rewriting a local hypothesis `h` with `h_eq : old_value = ↑lifted_value`. This caused hypothesis duplication in some cases:  
[#mathlib4 > Bug in &#96;lift&#96; tactic? @ 💬](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Bug.20in.20.60lift.60.20tactic.3F/near/508521400)  

This PR removes the second `h` in the `simp` call.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Mar 31, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title fix(Tactic/Lift): replace simp at h h with simp at h [Merged by Bors] - fix(Tactic/Lift): replace simp at h h with simp at h Mar 31, 2025
@mathlib-bors mathlib-bors bot closed this Mar 31, 2025
@mathlib-bors mathlib-bors bot deleted the vasnesterov/lift_fix branch March 31, 2025 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-meta Tactics, attributes or user commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants