Skip to content

[Merged by Bors] - chore(MathlibTest/FieldSimp): more tests#28646

Closed
hrmacbeth wants to merge 1 commit intoleanprover-community:masterfrom
hrmacbeth:fieldsimp-tests-2
Closed

[Merged by Bors] - chore(MathlibTest/FieldSimp): more tests#28646
hrmacbeth wants to merge 1 commit intoleanprover-community:masterfrom
hrmacbeth:fieldsimp-tests-2

Conversation

@hrmacbeth
Copy link
Copy Markdown
Member

@hrmacbeth hrmacbeth commented Aug 19, 2025

Following on from #28362 and #28413: a few more field_simp tests and light cleanup of the test file.


Open in Gitpod

@github-actions
Copy link
Copy Markdown

PR summary 3e97beff8a

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

Comment on lines -519 to -530
guard_target =
((F x * F x * 2 - (F x * F x + F y * F y - F (x - y) * F (x - y)))
* (F y * F y * 2 - (F x * F x + F y * F y - F (x - y) * F (x - y)))
* F x * F y * F (x - y) * F (x - y) * (2 * 2)
- 2 * (F x * F (x - y)) * (2 * (F y * F (x - y))) *
(F x * F x * (F y * F y) * (2 * 2)
- (F x * F x + F y * F y - F (x - y) * F (x - y))
* (F x * F x + F y * F y - F (x - y) * F (x - y))))
* (2 * (F x * F y))
= (F (x - y) * F (x - y) - (F x * F x + F y * F y))
* F x * F y * F (x - y) * F (x - y)
* (2 * (F x * F (x - y)) * (2 * (F y * F (x - y))) * (2 * 2))
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Deleting this check because it is time-consuming enough to seriously affect the heartbeat count! (In the new implementation it accounts for 2/3 of the heartbeats.)

#guard_msgs in
example {a : Nat} : P (a* x - a * x) := by test_field_simp

-- We simplify multiplication by one, but not by e.g. two, and do not simplify literals.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This section is not deleted, just moved down later in the file.

@grunweg grunweg self-assigned this Aug 19, 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 merge

@github-actions
Copy link
Copy Markdown

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

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Aug 19, 2025
@bryangingechen
Copy link
Copy Markdown
Contributor

Thanks!
bors r+

mathlib-bors bot pushed a commit that referenced this pull request Aug 19, 2025
Following on from #28362 and #28413: a few more `field_simp` tests and light cleanup of the test file.
@ghost ghost 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 Aug 19, 2025
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Aug 19, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore(MathlibTest/FieldSimp): more tests [Merged by Bors] - chore(MathlibTest/FieldSimp): more tests Aug 19, 2025
@mathlib-bors mathlib-bors bot closed this Aug 19, 2025
pfaffelh pushed a commit to pfaffelh/mathlib4 that referenced this pull request Aug 20, 2025
Following on from leanprover-community#28362 and leanprover-community#28413: a few more `field_simp` tests and light cleanup of the test file.
Paul-Lez pushed a commit to Paul-Lez/mathlib4 that referenced this pull request Aug 23, 2025
Following on from leanprover-community#28362 and leanprover-community#28413: a few more `field_simp` tests and light cleanup of the test file.
pechersky pushed a commit to pechersky/mathlib4 that referenced this pull request Aug 25, 2025
Following on from leanprover-community#28362 and leanprover-community#28413: a few more `field_simp` tests and light cleanup of the test file.
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants