Skip to content

refactor(AtLocation): allow throwing a warning when no progress is being made#37899

Closed
grunweg wants to merge 1 commit intoleanprover-community:masterfrom
grunweg:configure-warnings2
Closed

refactor(AtLocation): allow throwing a warning when no progress is being made#37899
grunweg wants to merge 1 commit intoleanprover-community:masterfrom
grunweg:configure-warnings2

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Apr 10, 2026

A future PR will use this to make by_contra! and friends warn if the push_neg step makes no progress.
The push_neg and ring_nf tactic configuration options are already modified accordingly;
no behaviour changes are performed as part of this PR.

Co-authored by: Jovan Gerbscheid jovan.gerbscheid@gmail.com


New incantation of #31597. I'm happy to overwrite that branch instead, if preferred.

Open in Gitpod

@grunweg grunweg added the WIP Work in progress label Apr 10, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 10, 2026

PR summary 25560be005

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ BehaviorIfUnchanged

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

@github-actions github-actions bot added the t-meta Tactics, attributes or user commands label Apr 10, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 10, 2026

✅ PR Title Formatted Correctly

The title of this PR has been updated to match our commit style conventions.
Thank you!

@grunweg grunweg changed the title Configure warnings2 chore(AtLocation): allow throwing a warning when no progress is being made Apr 10, 2026
@grunweg grunweg force-pushed the configure-warnings2 branch from ebcc419 to 5bff01b Compare April 10, 2026 19:15
@grunweg grunweg changed the title chore(AtLocation): allow throwing a warning when no progress is being made refactor(AtLocation): allow throwing a warning when no progress is being made Apr 10, 2026
@grunweg grunweg 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 Apr 10, 2026
@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 Apr 10, 2026
@grunweg grunweg added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Apr 13, 2026
@grunweg grunweg force-pushed the configure-warnings2 branch from fe38b19 to cbb8093 Compare April 13, 2026 13:12
grunweg added a commit to grunweg/mathlib4 that referenced this pull request Apr 13, 2026
Make errors in AtLocation surround the tactic name with backticks by default.
This fixes a few error messages to comply with mathlib's style guide.

Extracted from leanprover-community#37899.
@mathlib-dependent-issues mathlib-dependent-issues bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Apr 13, 2026
@grunweg grunweg removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Apr 13, 2026
mathlib-bors bot pushed a commit that referenced this pull request Apr 14, 2026
Make errors in AtLocation surround the tactic name with backticks by default. This fixes a few error messages to comply with mathlib's style guide.

Extracted from #37899.
mathlib-bors bot pushed a commit that referenced this pull request Apr 14, 2026
Make errors in AtLocation surround the tactic name with backticks by default. This fixes a few error messages to comply with mathlib's style guide.

Extracted from #37899.

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
@mathlib-dependent-issues mathlib-dependent-issues bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Apr 14, 2026
@mathlib-dependent-issues
Copy link
Copy Markdown

…ing made

A future PR will use this to make `by_contra!` and friends warn if the
`push_neg` step makes no progress. The `push_neg` and `ring_nf` tactic
configuration options are already modified to allow this;
no behaviour changes are performed as part of this PR.

Co-authored by: Jovan Gerbscheid <jovan.gerbscheid@gmail.com>
@grunweg grunweg force-pushed the configure-warnings2 branch from 71a30c4 to 476f69f Compare April 14, 2026 18:11
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Apr 14, 2026

I'm happy with this PR: let's land it at #31597.

@grunweg grunweg closed this Apr 14, 2026
@grunweg grunweg deleted the configure-warnings2 branch April 14, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-meta Tactics, attributes or user commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants