Pallas projective msm - #3
Draft
martyall wants to merge 6 commits into
Draft
Conversation
added 6 commits
September 10, 2026 00:26
Complete Renes-Costello-Batina projective addition, its completeness (threading hy0 and 2 != 0), the affine bridge toAffine/ofAffine, and the binary smulFast ladder proven equal to n . p -- all generic over [Field F] for any y^2 = x^3 + 5 curve. Vesta and Pallas instantiate this in Projective.lean. Claude-Session: https://claude.ai/code/session_01Y4Wf3zPJYCwXzHDgdBUytv
PVes := Core.PPoint Fq; padd/toAffine/ofAffine/smulFast and their lemmas delegate to the field-generic Core, fed Vesta's facts (curve A=0, B=5, 2!=0, 5!=0, no_onCurve_y_zero). The internal RCB certificates now live once in Core. paddFast/padd_eq_paddFast stay Vesta-local. MsmProj: drop three toAffine_pid simp args now redundant (toAffine is a reducible abbrev). Claude-Session: https://claude.ai/code/session_01Y4Wf3zPJYCwXzHDgdBUytv
namespace Pallas mirrors the flat Vesta decls: PPal := Core.PPoint Fp, G := SWPoint Pallas.curve, and padd/toAffine/ofAffine/smulFast with their lemmas delegating to the generic Core fed Pallas's facts (curve A=0, B=5, 2!=0, 5!=0, Pallas.no_onCurve_y_zero). smulFast_eq gives the projective fast ladder = n . p over Pallas. Claude-Session: https://claude.ai/code/session_01Y4Wf3zPJYCwXzHDgdBUytv
The windowed Pippenger MSM run entirely in projective coordinates (basic, single-pass-scatter, and windows-parallel paths), generic over the Core.PPoint projective core for any y^2 = x^3 + 5 curve, proving pippengerProj_eq_msm = the naive MSM for c >= 1. Vesta and Pallas instantiate it. Claude-Session: https://claude.ai/code/session_01Y4Wf3zPJYCwXzHDgdBUytv
MsmProj's projective-Pippenger decls delegate to MsmProj.Core at Vesta (commit_lagrange wrappers stay Vesta-local: coeffs in VestaScalarField). ProjectiveMontEquiv tracks the refactor: PVes.mk.injEq -> Core.PPoint.mk.injEq (from the Projective PVes abbrev) and Core.* names added to the scatter simp-normal-forms. Claude-Session: https://claude.ai/code/session_01Y4Wf3zPJYCwXzHDgdBUytv
The Pallas instantiation of MsmProj.Core: basic, scatter, and parallel pippengerProj variants, each proven equal to the naive MSM. This is the fast Pallas MSM the snarky verifier's 2^15-point sg-check needs. Claude-Session: https://claude.ai/code/session_01Y4Wf3zPJYCwXzHDgdBUytv
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.
No description provided.