Skip to content

[Merged by Bors] - feat(MathlibTest/FieldSimp): comprehensive test file#28362

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

[Merged by Bors] - feat(MathlibTest/FieldSimp): comprehensive test file#28362
hrmacbeth wants to merge 2 commits intoleanprover-community:masterfrom
hrmacbeth:fieldsimp-tests

Conversation

@hrmacbeth
Copy link
Copy Markdown
Member

field_simp's current test file is very short: it contains regression tests for bugs noticed over the years and documents a few features added after the original implementation.

In preparation for a planned refactor of field_simp by @FLDutchmann @grunweg and me, this PR provides a comprehensive test file for field_simp.

Co-authored-by: Michael Rothgang @grunweg


Open in Gitpod

@hrmacbeth hrmacbeth added the t-meta Tactics, attributes or user commands label Aug 13, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Aug 13, 2025

PR summary ed52228da9

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

@hrmacbeth hrmacbeth changed the title feat(Tactic/FieldSimp): comprehensive test file feat(MathlibTest/FieldSimp): comprehensive test file Aug 13, 2025

/-! ### Most common use case: Cancel denominators to something solvable by `ring`

When (eventually) this is robust enough, there should be a `field` tactic
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you add an explanation here that TODO (new implementation) refers to this not-yet-extant field tactic?

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.

TODO (new implementation) just signifies tasks that should be in scope for field_simp, but that would require switching field_simp to a different implementation (e.g. our WIP re-implementation).

It's not referring to the idea I mention here, that there should be a field tactic.

Copy link
Copy Markdown
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

bors d+

Thanks!

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Aug 14, 2025

✌️ hrmacbeth 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 the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Aug 14, 2025
@hrmacbeth
Copy link
Copy Markdown
Member Author

bors r+

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Aug 14, 2025
mathlib-bors bot pushed a commit that referenced this pull request Aug 14, 2025
`field_simp`'s current test file is very short: it contains regression tests for bugs noticed over the years and documents a few features added after the original implementation.

In preparation for a planned refactor of `field_simp` by @FLDutchmann @grunweg and me, this PR provides a comprehensive test file for `field_simp`.

Co-authored-by: Michael Rothgang @grunweg
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Aug 14, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(MathlibTest/FieldSimp): comprehensive test file [Merged by Bors] - feat(MathlibTest/FieldSimp): comprehensive test file Aug 14, 2025
@mathlib-bors mathlib-bors bot closed this Aug 14, 2025
mathlib-bors bot pushed a commit that referenced this pull request Aug 14, 2025
Add a few more tests documenting current features of field_simp (or their absence). Extension to #28362; all of these have been discussed in the current field_simp rewrite with @FLDutchmann  and @hrmacbeth.
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.
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
…unity#28362)

`field_simp`'s current test file is very short: it contains regression tests for bugs noticed over the years and documents a few features added after the original implementation.

In preparation for a planned refactor of `field_simp` by @FLDutchmann @grunweg and me, this PR provides a comprehensive test file for `field_simp`.

Co-authored-by: Michael Rothgang @grunweg
Paul-Lez pushed a commit to Paul-Lez/mathlib4 that referenced this pull request Aug 23, 2025
…ty#28413)

Add a few more tests documenting current features of field_simp (or their absence). Extension to leanprover-community#28362; all of these have been discussed in the current field_simp rewrite with @FLDutchmann  and @hrmacbeth.
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
…unity#28362)

`field_simp`'s current test file is very short: it contains regression tests for bugs noticed over the years and documents a few features added after the original implementation.

In preparation for a planned refactor of `field_simp` by @FLDutchmann @grunweg and me, this PR provides a comprehensive test file for `field_simp`.

Co-authored-by: Michael Rothgang @grunweg
pechersky pushed a commit to pechersky/mathlib4 that referenced this pull request Aug 25, 2025
…ty#28413)

Add a few more tests documenting current features of field_simp (or their absence). Extension to leanprover-community#28362; all of these have been discussed in the current field_simp rewrite with @FLDutchmann  and @hrmacbeth.
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

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). 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.

2 participants