Skip to content

Research: count-preserving cipher encodings, sparse-polynomial eligibility and AES census - #17

Merged
patrickdugan merged 11 commits into
research/cryptomania-assumptions-20261027from
research/eth-crypto-encodings-20261027
Oct 28, 2026
Merged

patrickdugan merged 11 commits into
research/cryptomania-assumptions-20261027from
research/eth-crypto-encodings-20261027

Conversation

@patrickdugan

Copy link
Copy Markdown
Contributor

CA-02: ETH counting meets cryptographic encodings

Stacked on CA-01 PR #14. This remains separate from the upstream proof-fidelity PRs #10/#11, and modifies no ECDLP/Semaev branches.

Exact implementation

  • Truth-table Tseitin encoder for AND/XOR/XNOR circuits and exact one-to-one gate-wire witnesses.
  • Symbolic elimination of XOR/XNOR wires into affine forms over GF(2), leaving inputs and nonlinear AND variables with quadratic equations; independent finite #CNF and polynomial-zero oracles.
  • Direct fixed-locality output predicate -> bounded-width CNF over original inputs, preserving preimage count.
  • Synthetic sparse polynomial inventory matching pinned October 25 manuscript lemma assumptions: a <= cN, <=ceil(log2 N)^c listed monomials per equation, fixed degree k.
  • Positive control: 24-input parity yields one 25-term equation, meets k=c=2; negative: 12-by-12 parity product gives a 145-term quadratic equation, violating the same monomial budget.
  • NIST-sourced AES-128 variable-key SLP census (6,400 AND, 21,356 XOR, 844 XNOR, 28,600 gates), upper-bound 28,728-variable/108,128-clause Tseitin encoding and unverified 6,528-coordinate XOR elimination ceiling. No AES attack claimed.
  • 10 locally passing pytest functions and 13 locally passing exact receipt checks; standalone scoped CI re-executes these and uploads source-hashed evidence.

Theoretical scope

A subexponential fixed-width CNF counter would give 2^o(b) inversion for linear-size circuit families or constant-locality output functions via witness self-reduction. This is conditional on the theorem claim; it does not contradict polynomial-time OWF existence. The full sparse-polynomial lemma and fixed-density improvement are manuscript-only, while the upstream Lean statement uses the weaker loglog-squared exponent. The quoted AES exponents are unit-coefficient scale proxies, never finite runtime predictions.

Reproduce

PYTHONPATH=src python -m pytest -q tests/test_crypto_encoding_bridge.py
PYTHONPATH=src python scripts/verify_crypto_encoding_bridge.py --output /tmp/crypto_bridge.json

Review gates

Independent verification of theorem applicability and a concrete AES SLP replay to measure the actual post-elimination polynomial monomial histogram. Then compare hybrid elimination choices, fixed-c sparsity compliance, wall-clock/memory with controlled toy instances.

Draft; no merge, spending or deployment requested.

@patrickdugan
patrickdugan marked this pull request as ready for review October 28, 2026 09:16
@patrickdugan
patrickdugan merged commit e9d47f9 into research/cryptomania-assumptions-20261027 Oct 28, 2026
8 checks passed
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.

1 participant