[Merged by Bors] - fix(Translate): beta reduce proof before translation#37756
[Merged by Bors] - fix(Translate): beta reduce proof before translation#37756JovanGerb wants to merge 1 commit intoleanprover-community:masterfrom
Conversation
PR summary fcdb939818Import changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diff
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
|
Some tactics may generate proofs terms containing beta expanded terms. Such terms are annoying for the `to_additive`/`to_dual` heuristic, because then the heuristic sees a variable rather than the term that it is actually supposed to look at. The fix is to beta reduce such proof terms.
|
Pull request successfully merged into master. Build succeeded: |
|
It seems like this PR may have caused some horrible performance drop?? !bench |
|
Benchmark results for 6b38c8e against fcdb939 are in. Significant changes detected! @JovanGerb
Large changes (15✅, 4🟥)
Medium changes (10✅)
Small changes (7✅, 2🟥)
and 1 hidden |
|
Oh wow this really does seem to be true! On commit The problem is |
|
Wow, I should have remembered to run |
|
I've made an attempt at fixing this in #37776 |
This PR does the fix of #37756 without actually beta reducing any terms. It turns out that sometimes beta reducing can be very expensive. (I knew that this is true in theory, but I'm surprised that it's also true in practice)
Some tactics may generate proofs terms containing beta expanded terms. Such terms are annoying for the
to_additive/to_dualheuristic, because then the heuristic sees a variable rather than the term that it is actually supposed to look at. The fix is to beta reduce such proof terms.