Skip to content

[Merged by Bors] - fix(Tactic/DepRewrite): conv mode#37251

Closed
plp127 wants to merge 1 commit intoleanprover-community:masterfrom
plp127:aliu/drw-fix-conv
Closed

[Merged by Bors] - fix(Tactic/DepRewrite): conv mode#37251
plp127 wants to merge 1 commit intoleanprover-community:masterfrom
plp127:aliu/drw-fix-conv

Conversation

@plp127
Copy link
Copy Markdown
Contributor

@plp127 plp127 commented Mar 26, 2026

Add tests for rewrite! and rw! in conv mode. Fix a bug where rw! always produces type-incorrect terms when rewriting the goal in conv mode. Remove support for rw! [...] at h in conv mode, for consistency with rw, which does not have this feature, and because it's usually not what you want to do anyways.


Open in Gitpod

@plp127 plp127 requested a review from Vtec234 March 26, 2026 23:58
@plp127 plp127 added the t-meta Tactics, attributes or user commands label Mar 26, 2026
@github-actions
Copy link
Copy Markdown

PR summary 4e685c1d08

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/pr_summary/declarations_diff.sh <optional_commit>

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

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


No changes to technical debt.

You can run this locally as

./scripts/reporting/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).

Copy link
Copy Markdown
Contributor

@Vtec234 Vtec234 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Contributor

@bryangingechen bryangingechen left a comment

Choose a reason for hiding this comment

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

Thanks!
bors r+

@mathlib-triage mathlib-triage bot added the ready-to-merge This PR has been sent to bors. label Apr 5, 2026
mathlib-bors bot pushed a commit that referenced this pull request Apr 5, 2026
Add tests for `rewrite!` and `rw!` in `conv` mode. Fix a bug where `rw!` always produces type-incorrect terms when rewriting the goal in `conv` mode. Remove support for `rw! [...] at h` in `conv` mode, for consistency with `rw`, which does not have this feature, and because it's usually not what you want to do anyways.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Apr 5, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title fix(Tactic/DepRewrite): conv mode [Merged by Bors] - fix(Tactic/DepRewrite): conv mode Apr 5, 2026
@mathlib-bors mathlib-bors bot closed this Apr 5, 2026
@plp127 plp127 deleted the aliu/drw-fix-conv branch April 5, 2026 03:55
riccardobrasca pushed a commit to riccardobrasca/mathlib4 that referenced this pull request Apr 6, 2026
Add tests for `rewrite!` and `rw!` in `conv` mode. Fix a bug where `rw!` always produces type-incorrect terms when rewriting the goal in `conv` mode. Remove support for `rw! [...] at h` in `conv` mode, for consistency with `rw`, which does not have this feature, and because it's usually not what you want to do anyways.
YellPika pushed a commit to YellPika/mathlib4 that referenced this pull request Apr 6, 2026
Add tests for `rewrite!` and `rw!` in `conv` mode. Fix a bug where `rw!` always produces type-incorrect terms when rewriting the goal in `conv` mode. Remove support for `rw! [...] at h` in `conv` mode, for consistency with `rw`, which does not have this feature, and because it's usually not what you want to do anyways.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-meta Tactics, attributes or user commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants