Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - perf(AlgebraicGeometry): Fix slow and bad proofs #7747

Closed
wants to merge 28 commits into from

Conversation

erdOne
Copy link
Member

@erdOne erdOne commented Oct 18, 2023

Fixed AlgebraicGeometry/AffineSchemes.lean, AlgebraicGeometry/Morphisms/QuasiSeparated.lean and AlgebraicGeometry/Morphisms/RingHomProperties.lean.


Open in Gitpod

@erdOne erdOne added the WIP Work in progress label Oct 18, 2023
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added merge-conflict The PR has a merge conflict with master, and needs manual merging. and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. labels Oct 18, 2023
@erdOne erdOne closed this Oct 21, 2023
@erdOne erdOne reopened this Oct 21, 2023
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Oct 21, 2023
@digama0
Copy link
Member

digama0 commented Oct 21, 2023

Note: I have pushed an update to the lean toolchain because this PR was on a buggy version of the toolchain. WARNING: checking out old commits of this PR using v4.2.0-rc2 or v4.2.0-rc3 can cause lake clean to delete your mathlib folder! If you need to do so, make sure to delete lakefile.olean manually before running any lake commands.

Mathlib/AlgebraicGeometry/AffineScheme.lean Outdated Show resolved Hide resolved
Mathlib/AlgebraicGeometry/Restrict.lean Outdated Show resolved Hide resolved
Mathlib/AlgebraicGeometry/Restrict.lean Outdated Show resolved Hide resolved
@erdOne erdOne added awaiting-review The author would like community review of the PR t-algebraic-geometry Algebraic geometry labels Oct 25, 2023
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Oct 31, 2023
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Nov 10, 2023
@jcommelin
Copy link
Member

@erdOne This seems like an improvement! Would you mind fixing the build please?

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Nov 12, 2023
@collares
Copy link
Collaborator

collares commented Nov 12, 2023

@erdOne Feel free to revert my hacky 42a9855 as part of this (much better) PR, or ping me if you want me to do the revert instead. I didn't know of this PR before.

Edit: I ended up just reverting it myself to save you the trouble, hopefully that's not a problem. Feel free to force push your local copy if it conflicts with any changes you might have.

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Nov 12, 2023
@collares
Copy link
Collaborator

@erdOne This seems like an improvement! Would you mind fixing the build please?

@jcommelin The build failure was just a "no space left on device error". I triggered a rebuild and it was green.

@erdOne
Copy link
Member Author

erdOne commented Nov 12, 2023

@collares Thanks for the fix!

@erdOne
Copy link
Member Author

erdOne commented Nov 12, 2023

!bench

@leanprover-bot
Copy link
Collaborator

leanprover-bot commented Nov 12, 2023

Here are the benchmark results for commit 55c54de.
There were significant changes against commit daf40d2:

  Benchmark                                                Metric         Change
  ==============================================================================
+ ~Mathlib.AlgebraicGeometry.AffineScheme                  instructions   -84.4%
- ~Mathlib.AlgebraicGeometry.GammaSpecAdjunction           instructions     8.5%
+ ~Mathlib.AlgebraicGeometry.Morphisms.QuasiSeparated      instructions   -75.3%
+ ~Mathlib.AlgebraicGeometry.Morphisms.RingHomProperties   instructions   -24.2%
- ~Mathlib.AlgebraicGeometry.Restrict                      instructions     5.1%
- ~Mathlib.Topology.Sheaves.SheafCondition.UniqueGluing    instructions    51.0%

(Note: the three files becoming slower is due to new lemmas added to those files. - Junyan)

@semorrison
Copy link
Contributor

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Nov 12, 2023
mathlib-bors bot pushed a commit that referenced this pull request Nov 12, 2023
Fixed `AlgebraicGeometry/AffineSchemes.lean`, `AlgebraicGeometry/Morphisms/QuasiSeparated.lean` and  `AlgebraicGeometry/Morphisms/RingHomProperties.lean`.



Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Co-authored-by: Andrew Yang <36414270+erdOne@users.noreply.github.com>
Co-authored-by: Johan Commelin <johan@commelin.net>
Co-authored-by: Mauricio Collares <mauricio@collares.org>
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Nov 12, 2023

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title perf(AlgebraicGeometry): Fix slow and bad proofs [Merged by Bors] - perf(AlgebraicGeometry): Fix slow and bad proofs Nov 12, 2023
@mathlib-bors mathlib-bors bot closed this Nov 12, 2023
@mathlib-bors mathlib-bors bot deleted the erd1/AG-perf branch November 12, 2023 22:07
alexkeizer pushed a commit that referenced this pull request Nov 17, 2023
Fixed `AlgebraicGeometry/AffineSchemes.lean`, `AlgebraicGeometry/Morphisms/QuasiSeparated.lean` and  `AlgebraicGeometry/Morphisms/RingHomProperties.lean`.



Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Co-authored-by: Andrew Yang <36414270+erdOne@users.noreply.github.com>
Co-authored-by: Johan Commelin <johan@commelin.net>
Co-authored-by: Mauricio Collares <mauricio@collares.org>
alexkeizer pushed a commit that referenced this pull request Nov 21, 2023
Fixed `AlgebraicGeometry/AffineSchemes.lean`, `AlgebraicGeometry/Morphisms/QuasiSeparated.lean` and  `AlgebraicGeometry/Morphisms/RingHomProperties.lean`.



Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Co-authored-by: Andrew Yang <36414270+erdOne@users.noreply.github.com>
Co-authored-by: Johan Commelin <johan@commelin.net>
Co-authored-by: Mauricio Collares <mauricio@collares.org>
grunweg pushed a commit that referenced this pull request Dec 15, 2023
Fixed `AlgebraicGeometry/AffineSchemes.lean`, `AlgebraicGeometry/Morphisms/QuasiSeparated.lean` and  `AlgebraicGeometry/Morphisms/RingHomProperties.lean`.



Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Co-authored-by: Andrew Yang <36414270+erdOne@users.noreply.github.com>
Co-authored-by: Johan Commelin <johan@commelin.net>
Co-authored-by: Mauricio Collares <mauricio@collares.org>
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-algebraic-geometry Algebraic geometry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants