perf(number-field): complete core Phase-4 evidence - #9885
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #9664.
Summary
QAdjoin.invscientific ladder, all six PARI inversion pairs, the process-driver overhead probe, and the affected timed-region profileHexNumberFieldtodone_through: 4Performance rationale
runQAdjoinInvLadderuses mode 1 with the independently traced finite-word family proxyn²(n+7), which models the measured bounded-height fixture's cubic limb work plus its quadratic limb-rounding transition. This is deliberately narrower than the SPEC's unchanged conservativeO(n³ log n)worst-case bit-cost contract; the completion rerun is consistent (β = -0.106,cMin = 101.713,cMax = 137.605, worst five-trial spread 1.85%), and the current profile attributes the dominant normalized extended-gcd work to the registered target.Verification
lake build HexNumberField hexnumberfield_benchlake exe hexnumberfield_bench list(13 parametric + 76 fixed = 89)lake exe hexnumberfield_bench verifywith python-flint/PARI available (all 89 pass)runQAdjoinInvLadderscientific runrunPariPolmodOverheadplus all six current Lean/PARI inversion pairs (all hashes agree)runQAdjoinInvLadder n=64profile: calibration, confidence, and ±5 ms sensitivity passlake build HexNumberField.Conformance hexnumberfield_emit_fixturespython3 scripts/check_phase4.pypython3 scripts/check_dag.py