Skip to content

[Merged by Bors] - feat(push): error message tweaks#38008

Closed
grunweg wants to merge 3 commits intoleanprover-community:masterfrom
grunweg:atlocation-message-tweaks
Closed

[Merged by Bors] - feat(push): error message tweaks#38008
grunweg wants to merge 3 commits intoleanprover-community:masterfrom
grunweg:atlocation-message-tweaks

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Apr 13, 2026

  • make free variables in all errors "made no progress" hoverable (this applies also to ring, abel, field_simp, ...)
  • include the constant being pushed in the error message

Open in Gitpod

@grunweg grunweg added the t-meta Tactics, attributes or user commands label Apr 13, 2026
@grunweg grunweg requested a review from thorimur April 13, 2026 15:31
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 13, 2026

PR summary 10b21fc2a1

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

@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 added 2 commits April 14, 2026 12:56
logWarning does most of the heavy listing (by adding the necessary message
context), so this was very easy.

Also add a test for the current push_neg error if no progress was made.
Making it print the constant pushed would be more readable (but that is
not as obvious).
@grunweg grunweg force-pushed the atlocation-message-tweaks branch from da3e30a to a57352e Compare April 14, 2026 10:56
@grunweg grunweg removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Apr 14, 2026
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Apr 14, 2026

@JovanGerb I'm also curious what you think about the error message change.

Copy link
Copy Markdown
Contributor

@JovanGerb JovanGerb left a comment

Choose a reason for hiding this comment

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

Yes, this seems like a good idea to me.

@JovanGerb
Copy link
Copy Markdown
Contributor

The PR description seems off. You say "declaration names". Did you mean "free variables"?

@mathlib-dependent-issues
Copy link
Copy Markdown

This PR/issue depends on:

@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Apr 14, 2026

Thanks, both fixed now!

@JovanGerb
Copy link
Copy Markdown
Contributor

maintainer merge

@github-actions
Copy link
Copy Markdown

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

@mathlib-triage mathlib-triage bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Apr 14, 2026
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 ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Apr 14, 2026
mathlib-bors bot pushed a commit that referenced this pull request Apr 14, 2026
- make free variables in all errors "made no progress" hoverable (this applies also to ring, abel, field_simp, ...)
- include the constant being pushed in the error message
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Apr 14, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(push): error message tweaks [Merged by Bors] - feat(push): error message tweaks Apr 14, 2026
@mathlib-bors mathlib-bors bot closed this Apr 14, 2026
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.

3 participants