Use paired field passes in GLV affine reductions - #165
Draft
ValarDragon wants to merge 3 commits into
Draft
Conversation
ValarDragon
force-pushed
the
agent/msm-fuse-inversion-affine-finish
branch
from
August 23, 2026 12:58
d360c8d to
d6bb501
Compare
ValarDragon
force-pushed
the
wip/msm-pr164-affine-reduction-20260823
branch
2 times, most recently
from
August 23, 2026 13:26
7aa4369 to
0201342
Compare
ValarDragon
force-pushed
the
agent/msm-fuse-inversion-affine-finish
branch
2 times, most recently
from
August 23, 2026 16:05
39102f1 to
b7d69ee
Compare
ValarDragon
force-pushed
the
wip/msm-pr164-affine-reduction-20260823
branch
from
August 23, 2026 16:05
0201342 to
6904892
Compare
ValarDragon
force-pushed
the
agent/msm-fuse-inversion-affine-finish
branch
from
August 23, 2026 17:14
b7d69ee to
b0cccbe
Compare
ValarDragon
force-pushed
the
wip/msm-pr164-affine-reduction-20260823
branch
2 times, most recently
from
August 24, 2026 12:07
08609f1 to
be5bd4c
Compare
ValarDragon
force-pushed
the
agent/msm-fuse-inversion-affine-finish
branch
2 times, most recently
from
August 24, 2026 12:17
6c1ee05 to
e29c2ec
Compare
ValarDragon
force-pushed
the
wip/msm-pr164-affine-reduction-20260823
branch
from
August 24, 2026 12:17
be5bd4c to
d5b647b
Compare
ValarDragon
force-pushed
the
agent/msm-fuse-inversion-affine-finish
branch
from
August 24, 2026 12:21
e29c2ec to
d2ff3ca
Compare
ValarDragon
force-pushed
the
wip/msm-pr164-affine-reduction-20260823
branch
from
August 24, 2026 12:21
d5b647b to
1108ada
Compare
Base automatically changed from
agent/msm-fuse-inversion-affine-finish
to
main
August 24, 2026 12:44
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.
Summary
in contiguous field-element passes;
multiplications by one per reduction level;
AArch64; and
zero denominator reaches the optimized reducer.
This is a draft follow-on to #161. Its Apple field kernels intentionally
overlap with #164, which currently lives on the separate CurveFFT stack. The
shared kernel code should be deduplicated when those stacks meet.
Performance
All figures are geometric centers of control/candidate/candidate/control
brackets with one Rayon worker. Lower is better.
End-to-end screens:
The macOS prover controls drifted from 340.56 ms to 347.14 ms across the
bracket. Its -0.54% geometric result is therefore screening evidence; the
direct MSM and verifier brackets are the stronger Apple measurements.
The verifier runs reused one authenticated corpus of 64 distinct valid proofs
with SHA-256
3230f733d208a9c905e18db8878234b6a3a4f5b56d1fb92a66a4ad7c2b82adb7.Every binary validated the complete corpus before timing. Linux end-to-end
figures were pinned to one VM CPU after unpinned B64 samples showed migration
noise; control and candidate used identical affinity.
Validation
glvfeature;glv,deferredcheck passes;macOS arm64; and
API surface
No downstream public API changes. The Apple-only implementation adds
crate-internal paired multiplication and batch-inversion back-substitution
helpers for
FpandFq, plus field-module wrappers used by the sealed GLVbackend.