[Merged by Bors] - feat(Tactic): linarith and rify for NNReal #35155
[Merged by Bors] - feat(Tactic): linarith and rify for NNReal #35155DavidLedvinka wants to merge 50 commits intoleanprover-community:masterfrom
linarith and rify for NNReal #35155Conversation
This reverts commit 00f4eb5.
PR summary cde919c85cImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
6916f6c to
f663d26
Compare
|
This pull request has conflicts, please merge |
Co-authored-by: Jovan Gerbscheid <56355248+JovanGerb@users.noreply.github.com>
Co-authored-by: Jovan Gerbscheid <56355248+JovanGerb@users.noreply.github.com>
Co-authored-by: Jovan Gerbscheid <56355248+JovanGerb@users.noreply.github.com>
Co-authored-by: Jovan Gerbscheid <56355248+JovanGerb@users.noreply.github.com>
Co-authored-by: Jovan Gerbscheid <56355248+JovanGerb@users.noreply.github.com>
JovanGerb
left a comment
There was a problem hiding this comment.
For the trick you to do add the preprocessor in a later file, wouldn't it be more natural to have
initialize defaultPreprocessors : IO.Ref (Array GlobalBranchingPreprocessor) ←
IO.mkRef #[filterComparisons, removeNegations, natToInt, strengthenStrictInt,
compWithZero, cancelDenoms]
And then in the later file, you can use initialize to push the NNReal preprocessor onto this array.
This way, the preprocessing can be extended in other ways in the future.
I thought about this but the reason I decided against it was: a) I suspect there won't need to be that many uses of this trick It seems more convenient to see the order of everything up front given any subset is being used rather than make sure we are threading a bunch of preprocessors in separate files correctly. |
|
Aha, I didn't realize that their order was important. In that case I'm happy with the current implementation. Thank you 🎉 maintainer merge |
|
🚀 Pull request has been placed on the maintainer queue by JovanGerb. |
|
bors r+ |
Co-authored-by: David Ledvinka <dledvinka.ledvinka@mail.utoronto.ca>
|
Pull request successfully merged into master. Build succeeded: |
linarith and rify for NNReal linarith and rify for NNReal
…35155) Co-authored-by: David Ledvinka <dledvinka.ledvinka@mail.utoronto.ca>
No description provided.