[Merged by Bors] - chore: golf using grind#34423
[Merged by Bors] - chore: golf using grind#34423euprunin wants to merge 6 commits intoleanprover-community:masterfrom
grind#34423Conversation
grind and add grind annotationgrind
PR summary 69cbc416b3Import changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diffNo declarations were harmed in the making of this PR! 🐙 You can run this locally as follows## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>The doc-module for No changes to technical debt.You can run this locally as
|
grindgrind and add grind annotation
|
!bench |
|
Benchmark results for 81f5e3a against 899a433 are in! @euprunin
No significant changes detected. |
|
!bench |
|
Benchmark results for f622b49 against 899a433 are in! @euprunin
Small changes (2✅, 18🟥)
|
|
!bench |
|
Benchmark results for f622b49 against 899a433 are in! @euprunin
Small changes (2✅, 18🟥)
|
|
!bench |
|
Benchmark results for 9b562ac against 899a433 are in! @euprunin
Small changes (1🟥)
|
|
Please make sure when writing PR descriptions that you put it above the |
grind and add grind annotationgrind
|
I am very confused by the radar results here, because the file modified in the PR rather has a +500M change, and I really don’t get how the change here can save -92G. Can you please merge master and re-bench? Other than that, the golf is reasonable IMO, though it does make the proof slightly less explicit. I have no strong opinion on this one and at this point one could grind it more aggressively, with something like |
|
!bench |
|
Benchmark results for ad33bd5 against 8cab065 are in! @euprunin
Small changes (2✅, 1🟥)
|
|
@robin-carlier Thanks for the review! Following your suggestion, I was able to golf the proof down to a single line (from 18 originally) and reduce the number of explicit lemma references to three (from 14). |
chenson2018
left a comment
There was a problem hiding this comment.
I think this makes some good changes, but left a review concerning maintainability.
|
Thanks for the previous review! bors d=@chenson2018 |
|
✌️ chenson2018 can now approve this pull request. To approve and merge a pull request, simply reply with |
|
bors r+ |
The goal of this golfing PR is to decrease the number of times lemmas are called explicitly (replacing calls to lemmas with calls to tactics). Any decrease in compilation time is a welcome side effect, although it is not a primary objective. Trace profiling results (shown if ≥10 ms before or after): * `LucasLehmer.norm_num_ext.sModNat_eq_sMod`: 950 ms before, 758 ms after 🎉 This golfing PR is batched under the following guidelines: * Up to ~5 changed files per PR * Up to ~25 changed declarations per PR * Up to ~100 changed lines per PR
|
Pull request successfully merged into master. Build succeeded: |
grindgrind
The goal of this golfing PR is to decrease the number of times lemmas are called explicitly (replacing calls to lemmas with calls to tactics). Any decrease in compilation time is a welcome side effect, although it is not a primary objective.
Trace profiling results (shown if ≥10 ms before or after):
LucasLehmer.norm_num_ext.sModNat_eq_sMod: 950 ms before, 758 ms after 🎉This golfing PR is batched under the following guidelines: