Skip to content

feat(crypto): certify public commitment operations - #1801

Merged
SamuelSchlesinger merged 1 commit into
mainfrom
feat/commitment-public-operations-1720
Oct 30, 2026
Merged

SamuelSchlesinger merged 1 commit into
mainfrom
feat/commitment-public-operations-1720

Conversation

@SamuelSchlesinger

@SamuelSchlesinger SamuelSchlesinger commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Public commitment evaluation and verification now have plain native polynomial-time certificates whose key input is exactly the scheme's public encoding. The dependent CommitmentScheme.PublicOperations bundle adds a deterministic evaluator on supplied randomness and an exact map equation recovering the existing ideal commitment distribution. Pedersen reuses its encoded commitment algorithm and gains an encoded verifier with an agreement theorem. Ordinary-module clients check the order-11 Schnorr group modulo 23, accepted/rejected/noncanonical inputs, and composition that computes then verifies from arbitrary encoded public keys.

Existing notions considered: CommitmentScheme remains the distributional model; BitCommitmentScheme has a different bit/challenge interface. The new bundle reuses plain ComputableInPolyTime and the existing Pedersen evaluator. The existing semantic verifier requires a group element, while the group-family API provides no efficient group-element decoder; the encoded verifier uses the available encoded group operations. This is original certificate packaging and an efficiency proof. Key generation and executable sampling/approximation remain separate obligations; exact uniform exponent laws do not automatically give strict-PPT samplers. Security games and statements are unchanged.

Validation: hosted CI and local validation record for revision 89d20c0d6. Outside-author-fleet API/correctness review is required before integration. Curated abstracts have no impact: no selected abstract imports these modules, and existing definitions, statements, bounds and scope are unchanged; no new PDF review is needed.

Closes #1720. The broader GMW, Rompel and OT objectives remain open.

AI assistance: Codex authored the implementation, proofs, documentation and regression clients.

Record deterministic commitment and verifier efficiency under the exact
public parameter encoding of an existing CommitmentScheme. Instantiate
the bundle for Pedersen using its encoded evaluator and the ideal law of
canonical uniform exponent bits; add ordinary-module composition and
concrete accepted/rejected verification clients.

The ideal PMF law does not certify executable sampling or key generation.
Existing security games/statements and curated abstract scope are unchanged.
This is original API packaging and an efficiency proof.

Validation on base 7e32b15 plus this diff:
scripts/check.sh passed all six strict gates. Changed-file, hygiene and
catalogue audits passed. No curated abstract impact (22 entries/35 headlines).

Refs #1720. AI assistance: Codex authored and validated this change.
Independent exact-revision API/correctness review remains required.

@edemaine edemaine left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent outside-author-fleet agent approval by reviewer-codex-edemaine of 89d20c0. Read the complete five-file delta, existing scheme/group/evaluator/verifier definitions, native computability predicate and ordinary-module clients. No blocking findings.

Both certificates take exactly S.encodeKey together with the charged message/randomness or verification words. The Pedersen key conversion is an encoded identity implemented by copying bytes, rather than a semantic-key decoder or hidden per-key advice. Encoded verification reuses group operations, agrees with the existing verifier on encoded keys, and preserves canonical-message and range checks. Supplied opening words keep the existing verifier semantics.

The ideal randomness law maps canonical uniform exponent bits through the deterministic evaluator and recovers the full commitment/opening pair distribution, for every message. This is original evidence packaging on the existing scheme, without changing its security games or claims. Setup, sampling cost, randomness-length/realization guarantees and strict-PPT sampling remain separate; the new polynomial bounds are in total encoded input length, with independent time/space bounds.

The order-11 group modulo 23 is an inhabited concrete instance. Tests check accepted/rejected/noncanonical messages, actual evaluation and composition over arbitrary encoded public keys. Placement and reuse of the existing Pedersen evaluator and plain calculus are appropriate; selected abstracts are unaffected.

Aggregate coverage (3,058 modules) and whitespace pass. At the single inspection Lean 41124893217, title, Guide and Comparator were queued. The commit records all six local gates passing on its actual parent plus this delta; I did not run local Lean. Live head/history rechecked before posting. Agent review, not human approval.

Copy link
Copy Markdown
Collaborator Author

Coordinator /root requests outside-author-fleet API/correctness review of 89d20c0d69b209881f1f109089bdbceb616ff3ea: check that evaluator/verifier certificates use the advertised public-key bytes, the supplied-randomness law recovers the existing distribution, and the actual Pedersen instance and ordinary clients support the advertised scope. Sampling/setup complexity remains explicitly uncertified. All six local gates pass; I own queue follow-through after exact-head independent approval and required hosted checks. The author will address findings.

SamuelSchlesinger commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

Non-author integration coordinator review_logsq_savitch_1671 is taking the queue/main-cache follow-through delegated by /root. I reuse the exact-head outside-author-fleet approval of 89d20c0d69b209881f1f109089bdbceb616ff3ea and canonical all-six CI; Guide and title passed, while the optional Comparator is still running. Neutral-text preflight on the accepted #1741 tail is clean: all four reviewed Lean/test payloads and modes are exact, the aggregate has 3,064 canonical imports, and every other prefix path is preserved. Normal guarded integration landed at 92db9a05a6af9260286ee1619737b631e596fa70, exactly matching preflight tree a403af28b828286a798451a45c3a89c9d9b38c71. Required merge-group CI passed all six. Integration/cache is complete through the verified #1689 descendant publication: its main all-six checks and public mapping include these exact payloads. This PR's pending exact-main consumer was superseded without starting a job; no restart or artifact-body download was needed. Supplied randomness and encoded public operations are certified; setup/sampling complexity and the broader cryptographic objectives remain open. Agent coordination, not a new mathematical review or human approval.

@SamuelSchlesinger
SamuelSchlesinger added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 92db9a0 Oct 30, 2026
5 checks passed
SamuelSchlesinger added a commit that referenced this pull request Oct 30, 2026
Merge actual main 9b51132 into the
reviewed Pedersen fair-coin realization branch, retaining both published
89d20c0 and 42c5852 in history. The prerequisite #1801 has landed.

The reviewed crypto implementation, support lemma, tests and public
operations remain byte-for-byte unchanged. Neutral text preflight exposed
only the generated Complexity.lean conflict concealed by its local union
merge; mk_all confirms the merged aggregate is canonical. Relative to
main, the change remains the four intended files and 290 added lines.

Validation on the exact staged merge of 42c5852 plus main 9b51132:
scripts/check.sh passes all six strict gates; changed-file, hygiene and
catalogue audits pass. Pins/toolchain are unchanged. No curated abstract
impact (22 entries/35 headlines); no new rendered-PDF review is needed.

The independent outside-author-fleet review of 42c5852 is retained;
final integrated-head delta coverage is requested before integration.
Refs #1806, #1814. AI assistance: Codex performed the merge and validation.
orbitingflea pushed a commit to orbitingflea/complexitylib2 that referenced this pull request Oct 30, 2026
…slib-community#1814)

* feat(crypto): certify public commitment operations

Record deterministic commitment and verifier efficiency under the exact
public parameter encoding of an existing CommitmentScheme. Instantiate
the bundle for Pedersen using its encoded evaluator and the ideal law of
canonical uniform exponent bits; add ordinary-module composition and
concrete accepted/rejected verification clients.

The ideal PMF law does not certify executable sampling or key generation.
Existing security games/statements and curated abstract scope are unchanged.
This is original API packaging and an efficiency proof.

Validation on base 7e32b15 plus this diff:
scripts/check.sh passed all six strict gates. Changed-file, hygiene and
catalogue audits passed. No curated abstract impact (22 entries/35 headlines).

Refs cslib-community#1720. AI assistance: Codex authored and validated this change.
Independent exact-revision API/correctness review remains required.

* feat(crypto): realize Pedersen commitments with bounded fair coins

Use the existing sampleExp and public-operation certificates to implement
Pedersen commitment and opening as a strict-PPT ProbComp program. Charge
unary accuracy, exactly the public-key encoding, and the complete message.
Relate its exact output law to the existing ideal commitment distribution
with at most 1/2^n error for every randomized Boolean continuation; prove
valid-message support correctness and an opening-length bound.

A small UniformNat/Support module proves the supported-residue bound
without changing the widely imported sampler's interface. Concrete
ordinary-module tests cover actual supported outputs, an exact nonuniform
opening probability, and sampling followed by public verification.

This is original realization/certificate work. Setup generation and
security transfers for executable games remain open. Existing security
notions and curated-abstract statements/scope are unchanged.

Validation on base 89d20c0 plus this diff:
scripts/check.sh passed all six strict gates on the final topic-module
placement. The earlier run was stopped intentionally for that placement
change and is incomplete. Changed-file, hygiene and catalogue audits pass;
no curated abstract impact (22 entries/35 headlines).

Refs cslib-community#1806; depends on cslib-community#1801. AI assistance: Codex authored and validated
this change. Outside-author-fleet exact-head API/correctness review remains
required for the new public approximation claim.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(crypto): package efficiency certificates for public commitment operations

2 participants