Skip to content

[Merged by Bors] - feat: have ring_nf fail if no progress#24529

Closed
plp127 wants to merge 6 commits intomasterfrom
aliu/ringnf-fail
Closed

[Merged by Bors] - feat: have ring_nf fail if no progress#24529
plp127 wants to merge 6 commits intomasterfrom
aliu/ringnf-fail

Conversation

@plp127
Copy link
Copy Markdown
Contributor

@plp127 plp127 commented May 1, 2025

Makes ring_nf fail if no progress is made, and adds a new option failIfUnchanged (default value := true) to the config.

Motivated by stanford-centaur/PyPantograph#97. The unusedTactic linter is not sufficient here because it fails in the presence of certain errors (for example, unsolved goals).


Open in Gitpod

@plp127 plp127 added the t-meta Tactics, attributes or user commands label May 1, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2025

PR summary 30762f3b8f

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).

Copy link
Copy Markdown
Contributor

@grunweg grunweg left a comment

Choose a reason for hiding this comment

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

Seems reasonable (though I'm not an expert on ring_nf). Can you extend the PR description a bit to motivate why this is useful (as opposed to a built-in version of the unusedTactic linter)?

Comment thread Mathlib/NumberTheory/Padics/PadicNumbers.lean Outdated
Comment thread MathlibTest/ring.lean
@grunweg grunweg added the awaiting-author A reviewer has asked the author a question or requested changes. label May 2, 2025
Co-authored-by: Michael Rothgang <rothgami@math.hu-berlin.de>
@plp127 plp127 removed the awaiting-author A reviewer has asked the author a question or requested changes. label May 12, 2025
Copy link
Copy Markdown
Contributor

@grunweg grunweg left a comment

Choose a reason for hiding this comment

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

Thanks!
maintainer delegate

@grunweg grunweg self-assigned this May 12, 2025
@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by grunweg.

@github-actions github-actions Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label May 12, 2025
@j-loreaux
Copy link
Copy Markdown
Contributor

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors Bot commented May 13, 2025

✌️ plp127 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 delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels May 13, 2025
@plp127
Copy link
Copy Markdown
Contributor Author

plp127 commented May 13, 2025

bors merge

mathlib-bors Bot pushed a commit that referenced this pull request May 13, 2025
Makes `ring_nf` fail if no progress is made, and adds a new option `failIfUnchanged` (default value := `true`) to the config.

Motivated by stanford-centaur/PyPantograph#97. The unusedTactic linter is not sufficient here because it fails in the presence of certain errors (for example, `unsolved goals`).
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors Bot commented May 13, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat: have ring_nf fail if no progress [Merged by Bors] - feat: have ring_nf fail if no progress May 13, 2025
@mathlib-bors mathlib-bors Bot closed this May 13, 2025
@mathlib-bors mathlib-bors Bot deleted the aliu/ringnf-fail branch May 13, 2025 01:00
tannerduve pushed a commit that referenced this pull request May 13, 2025
Makes `ring_nf` fail if no progress is made, and adds a new option `failIfUnchanged` (default value := `true`) to the config.

Motivated by stanford-centaur/PyPantograph#97. The unusedTactic linter is not sufficient here because it fails in the presence of certain errors (for example, `unsolved goals`).
jano-wol pushed a commit that referenced this pull request May 16, 2025
Makes `ring_nf` fail if no progress is made, and adds a new option `failIfUnchanged` (default value := `true`) to the config.

Motivated by stanford-centaur/PyPantograph#97. The unusedTactic linter is not sufficient here because it fails in the presence of certain errors (for example, `unsolved goals`).
bwehlin pushed a commit to bwehlin/mathlib4 that referenced this pull request May 31, 2025
Makes `ring_nf` fail if no progress is made, and adds a new option `failIfUnchanged` (default value := `true`) to the config.

Motivated by stanford-centaur/PyPantograph#97. The unusedTactic linter is not sufficient here because it fails in the presence of certain errors (for example, `unsolved goals`).
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.

3 participants