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] - chore(AlgebraicGeometry.Morphisms.RingHomProperties): speedups #8299

Closed
wants to merge 2 commits into from

Conversation

collares
Copy link
Collaborator

@collares collares commented Nov 9, 2023

I don't really understand this file, but I was bothered by the sole declaration requiring more than a million heartbeats. I noticed strategically adding a few convs can make sourceAffineLocally_of_source_open_cover_aux not require a bump.


Open in Gitpod

@collares collares added the awaiting-review The author would like community review of the PR label Nov 9, 2023
@collares
Copy link
Collaborator Author

!bench

@leanprover-bot
Copy link
Collaborator

Here are the benchmark results for commit 604fc77.
There were significant changes against commit e8a32f1:

  Benchmark                                                Metric             Change
  ==================================================================================
+ build                                                    maxrss             -19.6%
+ build                                                    tactic execution    -5.3%
+ ~Mathlib.AlgebraicGeometry.Morphisms.RingHomProperties   instructions       -64.6%

@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
I don't really understand this file, but I was bothered by the sole declaration requiring more than a million heartbeats. I noticed strategically adding a few `conv`s can make `sourceAffineLocally_of_source_open_cover_aux` not require a bump.
@mathlib-bors
Copy link

mathlib-bors bot commented Nov 12, 2023

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore(AlgebraicGeometry.Morphisms.RingHomProperties): speedups [Merged by Bors] - chore(AlgebraicGeometry.Morphisms.RingHomProperties): speedups Nov 12, 2023
@mathlib-bors mathlib-bors bot closed this Nov 12, 2023
@mathlib-bors mathlib-bors bot deleted the collares/ringhomprops branch November 12, 2023 10:23
Comment on lines -268 to 270
set_option maxHeartbeats 4000000 in
theorem sourceAffineLocally_of_source_open_cover_aux (h₁ : RingHom.RespectsIso @P)
(h₃ : RingHom.OfLocalizationSpanTarget @P) {X Y : Scheme} (f : X ⟶ Y) (U : X.affineOpens)
(s : Set (X.presheaf.obj (op U.1))) (hs : Ideal.span s = ⊤)
Copy link
Contributor

Choose a reason for hiding this comment

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

In #7747 by the original author @erdOne this was golfed (apparently using just one new lemma introduced).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, I wish I knew that beforehand :( I'd be happy to have my hacky proof replaced by a proper one, of course.

alexkeizer pushed a commit that referenced this pull request Nov 17, 2023
I don't really understand this file, but I was bothered by the sole declaration requiring more than a million heartbeats. I noticed strategically adding a few `conv`s can make `sourceAffineLocally_of_source_open_cover_aux` not require a bump.
alexkeizer pushed a commit that referenced this pull request Nov 21, 2023
I don't really understand this file, but I was bothered by the sole declaration requiring more than a million heartbeats. I noticed strategically adding a few `conv`s can make `sourceAffineLocally_of_source_open_cover_aux` not require a bump.
grunweg pushed a commit that referenced this pull request Dec 15, 2023
I don't really understand this file, but I was bothered by the sole declaration requiring more than a million heartbeats. I noticed strategically adding a few `conv`s can make `sourceAffineLocally_of_source_open_cover_aux` not require a bump.
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.

None yet

4 participants