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(field_theory/primitive_element): declare auxiliary function noncomputable! #14071

Closed
wants to merge 1 commit into from

Conversation

Vierkantor
Copy link
Collaborator

@Vierkantor Vierkantor commented May 11, 2022

The declaration roots_of_min_poly_pi_type is computable and gets compiled by Lean. Unfortunately, compilation takes about 2-3s on my machine and times out under #11759 (with timeouts disabled, it takes about 11s on that branch). Since the parameters are all elements of noncomputable types and its only use is a noncomputable fintype instance, nobody will care if we explicitly make it computable, and it saves a lot of compilation time.

See also this Zulip thread on noncomputable! fixing mysterious timeouts: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Timeout/near/278494746


Open in Gitpod

…computable!`

The declaration `roots_of_min_poly_pi_type` is computable, so it gets compiled. Unfortunately, compilation takes about 2-3s on my machine (and times out under #11759). Since the parameters are all elements of noncomputable types, nobody will care if we explicitly make it computable, and it saves a lot of compilation time.

See also this Zulip thread: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Timeout/near/278494746
@Vierkantor Vierkantor added awaiting-review The author would like community review of the PR awaiting-CI The author would like to see what CI has to say before doing more work. labels May 11, 2022
@github-actions github-actions bot removed the awaiting-CI The author would like to see what CI has to say before doing more work. label May 11, 2022
@robertylewis
Copy link
Member

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels May 13, 2022
bors bot pushed a commit that referenced this pull request May 13, 2022
…computable!` (#14071)

The declaration `roots_of_min_poly_pi_type` is computable and gets compiled by Lean. Unfortunately, compilation takes about 2-3s on my machine and times out under #11759 (with timeouts disabled, it takes about 11s on that branch). Since the parameters are all elements of noncomputable types and its only use is a noncomputable `fintype` instance, nobody will care if we explicitly make it computable, and it saves a lot of compilation time.

See also this Zulip thread on `noncomputable!` fixing mysterious timeouts: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Timeout/near/278494746
@bors
Copy link

bors bot commented May 13, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title perf(field_theory/primitive_element): declare auxiliary function noncomputable! [Merged by Bors] - perf(field_theory/primitive_element): declare auxiliary function noncomputable! May 13, 2022
@bors bors bot closed this May 13, 2022
@bors bors bot deleted the noncomputable-roots_of_min_poly_pi_type branch May 13, 2022 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants