Skip to content

[Merged by Bors] - chore: adaptations for nightly-2024-02-29 - #11070

Closed
kim-em wants to merge 31 commits into
bump/v4.7.0from
bump/nightly-2024-02-29
Closed

kim-em wants to merge 31 commits into
bump/v4.7.0from
bump/nightly-2024-02-29

Conversation

@kim-em

@kim-em kim-em commented Feb 29, 2024 •

Copy link
Copy Markdown
Contributor

field_simp is a very ambitious tactic, that tries to prove that it can clear denominators. Previously it was taking advantage of essentially a bug in the simp discharging framework, so that parts of its discharging strategy were not limited by maxDischargeDepth (so it could "keep trying"), but everyone else was limited (so simp didn't waste time exploring large trees of discharges). Now the maxDischargeDepth is enforced for everyone, so to keep field_simp working we have to increase its maxDischargeDepth. That makes it extremely slow. I've kept the maxDischargeDepth to a minimum, but still there are some set_option maxHeartbeats (all with notes attached).

After we've merged this, someone is going to have to rewrite field_simp to make it performant.


#11079 is backporting a few changes to master

@grunweg grunweg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A few non-expert comments - it seems this could use a merge of mathlib's master branch.

I was wondering: are the remaining Adaptation notes supposed to stay? If so, would a tracking issue for them be useful, so they don't get forgotten?

Comment thread Mathlib/Algebra/Free.lean Resolved
Comment thread Mathlib/Algebra/Order/Ring/WithTop.lean Resolved
Comment thread Mathlib/Order/Filter/AtTopBot.lean Resolved
Comment thread Mathlib/Algebra/Free.lean Resolved
Comment thread Mathlib/Data/Nat/Digits.lean Resolved
Comment thread Mathlib/Data/Real/EReal.lean Resolved
Comment thread Mathlib/Order/BooleanAlgebra.lean Resolved
Comment thread Mathlib/Order/Filter/AtTopBot.lean Resolved
Comment thread Mathlib/Algebra/Order/Ring/WithTop.lean Resolved
Comment thread time_startup.sh Resolved

@grunweg grunweg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I've gone over the entire diff: apart from these few nits and the ones already mentioned, the changes are either mechanical, improvements or reverting temporary sorries.

Comment thread Mathlib/RingTheory/AlgebraTower.lean Resolved
mathlib-bors Bot pushed a commit that referenced this pull request Mar 1, 2024
A random collection of changes, backporting from the upcoming Lean bump.
- squeeze one simp
- backport one more simp change (which probably was missed in the previous backports)
- rewrite the `field_simp` in SolutionOfCubic: with the upcoming Lean bump, this would become **very** slow

Similar to #10996 and #11001.
@jcommelin

Copy link
Copy Markdown
Member

Thanks 🎉

If CI passes, please remove the label awaiting-CI and merge this yourself, by adding a comment bors r+.

bors d+

@mathlib-bors

mathlib-bors Bot commented Mar 1, 2024

Copy link
Copy Markdown
Contributor

✌️ semorrison can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@jcommelin jcommelin added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Mar 1, 2024
@github-actions github-actions Bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Mar 1, 2024
@kim-em kim-em added auto-merge-after-CI Please do not add manually. Requests for a bot to merge automatically once CI is done. and removed awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. labels Mar 1, 2024
riccardobrasca pushed a commit that referenced this pull request Mar 1, 2024
A random collection of changes, backporting from the upcoming Lean bump.
- squeeze one simp
- backport one more simp change (which probably was missed in the previous backports)
- rewrite the `field_simp` in SolutionOfCubic: with the upcoming Lean bump, this would become **very** slow

Similar to #10996 and #11001.
@kim-em

kim-em commented Mar 2, 2024

Copy link
Copy Markdown
Contributor Author

bors p=10

@adomani

adomani commented Mar 2, 2024

Copy link
Copy Markdown
Contributor

I just cherry-picked 51da0513b468f47b974b0aa874ca730371f70416, since it seems to fix compute_degree and not cause further breakage.

@ghost

ghost commented Mar 2, 2024

Copy link
Copy Markdown

As this PR is labelled auto-merge-after-CI, we are now sending it to bors:

bors merge

mathlib-bors Bot pushed a commit that referenced this pull request Mar 2, 2024
`field_simp` is a very ambitious tactic, that tries to prove that it can clear denominators. Previously it was taking advantage of essentially a bug in the simp discharging framework, so that parts of its discharging strategy were not limited by `maxDischargeDepth` (so it could "keep trying"), but everyone else was limited (so `simp` didn't waste time exploring large trees of discharges). Now the `maxDischargeDepth` is enforced for everyone, so to keep `field_simp` working we have to increase its `maxDischargeDepth`. That makes it extremely slow. I've kept the `maxDischargeDepth` to a minimum, but still there are some `set_option maxHeartbeats` (all with notes attached).

After we've merged this, someone is going to have to rewrite `field_simp` to make it performant.



Co-authored-by: thorimur <[email protected]>
Co-authored-by: Scott Morrison <[email protected]>
Co-authored-by: Michael Rothgang <[email protected]>
Co-authored-by: adomani <[email protected]>
@mathlib-bors

mathlib-bors Bot commented Mar 2, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into bump/v4.7.0.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title chore: adaptations for nightly-2024-02-29 [Merged by Bors] - chore: adaptations for nightly-2024-02-29 Mar 2, 2024
@mathlib-bors mathlib-bors Bot closed this Mar 2, 2024
@mathlib-bors
mathlib-bors Bot deleted the bump/nightly-2024-02-29 branch March 2, 2024 19:42
kbuzzard pushed a commit that referenced this pull request Mar 12, 2024
A random collection of changes, backporting from the upcoming Lean bump.
- squeeze one simp
- backport one more simp change (which probably was missed in the previous backports)
- rewrite the `field_simp` in SolutionOfCubic: with the upcoming Lean bump, this would become **very** slow

Similar to #10996 and #11001.
dagurtomas pushed a commit that referenced this pull request Mar 22, 2024
A random collection of changes, backporting from the upcoming Lean bump.
- squeeze one simp
- backport one more simp change (which probably was missed in the previous backports)
- rewrite the `field_simp` in SolutionOfCubic: with the upcoming Lean bump, this would become **very** slow

Similar to #10996 and #11001.
utensil pushed a commit that referenced this pull request Mar 26, 2024
A random collection of changes, backporting from the upcoming Lean bump.
- squeeze one simp
- backport one more simp change (which probably was missed in the previous backports)
- rewrite the `field_simp` in SolutionOfCubic: with the upcoming Lean bump, this would become **very** slow

Similar to #10996 and #11001.
xgenereux pushed a commit that referenced this pull request Apr 15, 2024
A random collection of changes, backporting from the upcoming Lean bump.
- squeeze one simp
- backport one more simp change (which probably was missed in the previous backports)
- rewrite the `field_simp` in SolutionOfCubic: with the upcoming Lean bump, this would become **very** slow

Similar to #10996 and #11001.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-after-CI Please do not add manually. Requests for a bot to merge automatically once CI is done. delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants