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(linarith): don't repeat nonneg proofs for nat-to-int casts #3226

Closed
wants to merge 8 commits into from

Conversation

robertylewis
Copy link
Member

This performance issue showed up particularly when using nlinarith over nats. Proofs that (n : int) >= 0 were being repeated many times, which led to quadratic blowup in the nlinarith preprocessing.


@robertylewis robertylewis added the awaiting-review The author would like community review of the PR label Jun 29, 2020
again, linarith improvements find unneeded hypotheses in the trig file
@robertylewis
Copy link
Member Author

I have absolutely no idea why this changed the behavior in the trig functions file. It should only be about nat preprocessing, and there are no nats there.

@robertylewis
Copy link
Member Author

Thanks Kevin -- I was just blindly following the linter when I fixed those, but yes, those and more can go. I've changed those here. But maybe we need a full review of that file (in another PR?).

@semorrison
Copy link
Collaborator

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 Jun 30, 2020
bors bot pushed a commit that referenced this pull request Jun 30, 2020
This performance issue showed up particularly when using `nlinarith` over `nat`s. Proofs that `(n : int) >= 0` were being repeated many times, which led to quadratic blowup in the `nlinarith` preprocessing.



Co-authored-by: Rob Lewis <rob.y.lewis@gmail.com>
@bors
Copy link

bors bot commented Jun 30, 2020

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title perf(linarith): don't repeat nonneg proofs for nat-to-int casts [Merged by Bors] - perf(linarith): don't repeat nonneg proofs for nat-to-int casts Jun 30, 2020
@bors bors bot closed this Jun 30, 2020
@bors bors bot deleted the linarith-sets branch June 30, 2020 04:15
cipher1024 pushed a commit to cipher1024/mathlib that referenced this pull request Mar 15, 2022
…prover-community#3226)

This performance issue showed up particularly when using `nlinarith` over `nat`s. Proofs that `(n : int) >= 0` were being repeated many times, which led to quadratic blowup in the `nlinarith` preprocessing.



Co-authored-by: Rob Lewis <rob.y.lewis@gmail.com>
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

3 participants