{
  "schema_version": "gcy-v1",
  "paper_id": "gcy-zk-poseidon2-bounty-audit-v3",
  "paper_number": 135,
  "slug": "gcy-zk-poseidon2-bounty-audit-v3",
  "title": "GCY Exact Finite-Field Algebraic and GRS Subspace-Trail Audit of Upstream-Pinned Poseidon2 Permutations (v3)",
  "short_title": "Poseidon2 Exact Finite-Field & GRS Subspace-Trail Audit (v3, 6 Pinned Configs)",
  "author": "Sonny",
  "theorem_range": "Standalone Deposit under The GCY Standard (/t/poseidon2-v3)",
  "track": "standalone-gcy2",
  "verified_utc": "2026-12-05T15:58:54Z",
  "date_published": "2026-12-05",
  "date_modified": "2026-12-05",
  "toolchain": "Lean 4.34.1 (zero Mathlib, trustLevel = 0)",
  "plain_summary": "v3 pure-stdlib zero-float finite-field algebraic audit of six upstream-pinned Poseidon2 configurations (Plonky3 BabyBear t=16 d=7, KoalaBear t=16 d=3, Goldilocks t=8/12 d=7; HorizenLabs BN254 t=3 d=5; AztecProtocol BN254 t=4 d=5) plus a constructive colliding-diagonal witness over BabyBear. Certifies Bezout S-box bijectivity, Cayley-Hamilton, exact Rabin irreducibility, GRS coprimality, Krylov rank t/t, pinned external MDS matrices, round-degree brackets, 12/12 planted faults, and zero-Mathlib Lean 4.34.1 VerifyAll (exit 0).",
  "abstract": "`v3` pure-stdlib zero-float finite-field algebraic audit across six upstream-pinned Poseidon2 configurations: `Plonky3@0d803737b681` (BabyBear `t=16, d=7, R_P=13`; KoalaBear `t=16, d=3, R_P=20`; Goldilocks `t=8/12, d=7, R_P=22`), `HorizenLabs@055bde3f4782` (BN254 `t=3, d=5`), and `AztecProtocol@10ed5e21d887` (BN254 `t=4, d=5`), alongside a constructive colliding-diagonal BabyBear witness.\n\n**1. Exact finite-field & subspace checks (`COMPUTED`):** Certifies Bezout S-box bijectivity, Cayley–Hamilton identity, exact characteristic polynomial factorization with pure-stdlib Rabin irreducibility, GRS coprimality, full Krylov rank `t/t`, pinned external MDS matrix & minor checks (`4x4 MDSMat4 circ(2,3,1,1)` for Plonky3; full `3x3` circulant and `4x4 M4` for BN254), integer round-degree brackets, and `12/12` planted fault rejections.\n\n**2. Lean core & open boundary (`PROVED` / `OPEN`):** Zero-Mathlib Lean 4.34.1 (`VerifyAll`, `leanchecker` exit `0`) certifies all `4` S-box bijections and round-degree bounds (incl. BN254 `5^64 >= 2^148`) while `PlantedFault.lean` rejects BabyBear `d=3`. Round-reduced non-linear algebraic cryptanalysis remains **`OPEN`**.",
  "lanes": [
    "Zero-Knowledge Primitives & Finite-Field Algebra"
  ],
  "evidence_tags": [
    "PROVED",
    "COMPUTED",
    "CITED",
    "OPEN"
  ],
  "prior_authors": [
    "L. Grassi, D. Khovratovich & M. Schofnegger (Poseidon2, IACR ePrint 2023/323)",
    "Grassi, Hao, Rechberger, Schofnegger & Walch (GRS subspace trails)",
    "Plonky3, HorizenLabs & AztecProtocol upstream maintainers"
  ],
  "open_questions": [
    "Reduced-round non-linear algebraic cryptanalysis and full Groebner-basis attacks remain OPEN.",
    "Matrix Rabin irreducibility and Krylov rank checks run in verified Python stdlib (COMPUTED); Lean 4 covers the S-box bijectivity and round-degree bounds."
  ],
  "open_boundaries": [
    {
      "id": "gcy-zk-poseidon2-bounty-audit-v3-open-1",
      "label": "Reduced-round non-linear algebraic cryptanalysis and full Groebner-basis attacks remain OPEN.",
      "status": "OPEN",
      "item": "Reduced-round non-linear algebraic cryptanalysis and full Groebner-basis attacks remain OPEN.",
      "why": "Audits linear-layer GRS/MDS subspace trails and S-box bijectivity across 6 pinned configs rather than full algebraic solving attacks."
    },
    {
      "id": "gcy-zk-poseidon2-bounty-audit-v3-open-2",
      "label": "Rabin irreducibility and Krylov rank checks run in Python stdlib rather than inside Lean 4.",
      "status": "OPEN",
      "item": "Rabin irreducibility and Krylov rank checks run in Python stdlib rather than inside Lean 4.",
      "why": "Poseidon2Spec.lean formalizes S-box Bezout identities and round-degree inequalities while Python stdlib checks linear-layer matrices."
    }
  ],
  "verify_command": "cd gcy-zk-poseidon2-bounty-audit-v3 && python3 -B -O -I scripts/verify_bundle.py",
  "standing": {
    "standing_tier": "frontier_1",
    "standing_label": "Frontier Candidate (Unrefereed)",
    "projected_rank_label": "Poseidon2 Exact Finite-Field & GRS Subspace-Trail Audit (v3, 6 Pinned Configs)",
    "baseline_compared": "See cited literature"
  },
  "verification": {
    "tier": 5,
    "tier_label": "Tier 5: Kernel Replay (trustLevel=0) + Zero-Axiom Core + Planted Controls + Dual Replay",
    "trust_level_zero": true,
    "lean_modules": 2,
    "target_declarations": 12,
    "zero_axiom_declarations": 12,
    "planted_controls_lean": 1,
    "planted_controls_python": 12,
    "planted_controls_breakdown": "1 Lean + 12 Python",
    "planted_controls_total": 13,
    "planted_controls_rejected": 13,
    "sha256_manifest_files": 14,
    "dual_independent_checker": true,
    "value_notes": {
      "zero_axiom_declarations": "Count 12 sums theorem/lemma/def declarations across Poseidon2Spec.lean (7) and VerifyAll.lean (5); PlantedFault.lean fails to compile as expected."
    }
  },
  "venues": [
    {
      "name": "Zenodo",
      "status": "published",
      "url": "https://doi.org/10.5281/zenodo.24867457",
      "concept_doi": "10.5281/zenodo.24867456",
      "record_url": "https://zenodo.org/records/24867457",
      "version": "3.0.0",
      "note": "Zenodo v3.0.0 live (Go Check Yourself community): gcy-zk-poseidon2-bounty-audit-v3.zip"
    }
  ],
  "archive_sha256": "08fc41675755587c9112645802ad041e240d91ecea87b90c7be4a1d490617173",
  "archive": {
    "version": "3.0.0",
    "doi": "10.5281/zenodo.24867457",
    "concept_doi": "10.5281/zenodo.24867456",
    "file_name": "gcy-zk-poseidon2-bounty-audit-v3.zip",
    "bytes": 119222,
    "sha256": "08fc41675755587c9112645802ad041e240d91ecea87b90c7be4a1d490617173",
    "md5": "559cdac2bad787e42e8810580b442247"
  },
  "routes": {
    "experts": "/reports/gcy-zk-poseidon2-bounty-audit-v3/",
    "everyone": "/reports/gcy-zk-poseidon2-bounty-audit-v3/everyone/",
    "tag": "/t/poseidon2-v3/"
  },
  "sha256_manifest_count": 14,
  "does_not_claim": [
    "Reduced-round non-linear algebraic cryptanalysis and full Groebner-basis attacks remain OPEN."
  ],
  "depends_on": [],
  "used_by": [],
  "changelog": [
    {
      "version": "3.0.0",
      "doi": "10.5281/zenodo.24867457",
      "date": "2026-12-05",
      "sha256": "08fc41675755587c9112645802ad041e240d91ecea87b90c7be4a1d490617173",
      "kind": [
        "bug_fix",
        "faults_extended",
        "citation_fix"
      ],
      "summary": "Switches Plonky3 BabyBear/KoalaBear/Goldilocks external linear layers to MDSMat4 = circ(2,3,1,1) with upstream Rust file pins and EXPECTED_EXTERNAL_MATRICES, removes float()/round() from scripts/verify_bundle.py, updates VerifyAll.lean to check all 4 S-box bijections and 4 round-degree bounds (extending negative controls to 12/12), and fixes the GRS FSE/ToSC 2021(2) citation."
    },
    {
      "version": "2.0.0",
      "doi": null,
      "date": "2026-12-05",
      "sha256": "d45818c9945f07352b1fecd2f7cf45ddd9c1f07a04c1861d60032b4b641f8ad7",
      "kind": [
        "scope_widened",
        "faults_extended"
      ],
      "summary": "Expands coverage from four to six upstream-pinned Poseidon2 configurations by adding HorizenLabs BN254 t=3 and Aztec Barretenberg BN254 t=4, adds the constructive colliding-diagonal counterexample BabyBear_t16_WEAK_COLLISION, and extends Lean S-box/round-degree checks and negative controls to 11/11.",
      "deposited": false
    },
    {
      "version": "1.0.0",
      "doi": null,
      "date": "2026-12-05",
      "sha256": "7986d101caadfc39b3d5abc86d80cb548946382e6a93ee31d9e1615ab617d6ee",
      "kind": [
        "packaging"
      ],
      "summary": "Initial pre-Zenodo archive covering exact finite-field and GRS subspace-trail checks for BabyBear, KoalaBear, Goldilocks, and BN254 Poseidon2 permutations.",
      "deposited": false
    }
  ]
}
