Checking Upstream Poseidon2 Hash Constants for Hidden Weak Subspaces
Exact finite-field tests across six upstream-pinned Poseidon2 configurations plus an explicit colliding-diagonal witness.
Reading Level: Everyone (Plain-English Companion)
The Question
Modern zero-knowledge proof systems hash millions of items using Poseidon2. If a Poseidon2 matrix has colliding diagonal entries or a non-invertible S-box exponent, invariant subspaces or algebraic flaws can arise.
What This Deposit Checks
- Six upstream-pinned setups (
COMPUTED): ChecksBabyBear,KoalaBear,Goldilocks(t=8, 12), andBN254(t=3, 4) pinned directly toPlonky3,HorizenLabs, andAztecProtocolcommits for exact S-box bijectivity, Rabin-verified irreducible characteristic factors, full Krylov rank, and pinnedMDSMat4/M4external MDS determinants. - Constructive failure witness (
COMPUTED): Demonstrates on a deliberately collidedBabyBear t=16matrix how Krylov rank drops to15/16with invariant vectorv = e_1 - e_2. - Lean S-box check (
PROVED): Checks all four S-box bijections and round-degree bounds in Lean4.34.1, rejectsBabyBear d=3, and fails12/12planted corruptions in Python.
What Stays Open
Linear and S-box soundness checks do not settle non-linear Gröbner-basis questions at reduced round counts (OPEN).