{
  "abstract": "For every prime p and every integer sequence a_2, a_3, ..., let J be the partial Bell substitution matrix with entries J(i, j) = B_{i,j}(1, a_2, a_3, ...), and let J_n be its leading n x n block. Set d = C(p, 2) + 2 = p(p - 1)/2 + 2. This Lean 4 + Mathlib formalization proves that J_d^p = I_d (mod p), that J_{d+1}^p agrees with I_{d+1} modulo p outside entry (d, 1), and that J_{d+1}^p = I_{d+1} (mod p) if and only if p divides a_2 a_p, with exact corner residue h! (-1/2)^h a_2^{h+1} a_p^h (mod p) for odd p = 2h + 1 and 2 a_3 + 3 a_2^2 = a_2 (mod 2) for p = 2. It also proves the unitriangular exp/log p-integrality criterion, the exact p-adic pole threshold d for general Julia series and the Stirling iterative logarithm of e^x - 1, and the Stirling cutoff S_n^p = I_n (mod p) iff n <= d. Companion paper and verification archive: https://mathdiscoveries.org/results/every-integer-substitution-matrix-has-p-th-power",
  "authors": [
    {
      "name": "Tyler B. Hughes"
    }
  ],
  "challenge_render": {
    "artifact_path": "renders/PALOMAR-2026-12-03-000083-v1/201cfde6826c6eebf894634427795ee5b2918513f166c9b3c5017b66abe6658f/",
    "artifact_tree_sha256": "201cfde6826c6eebf894634427795ee5b2918513f166c9b3c5017b66abe6658f",
    "bwrap_source_tag": "v0.12.0",
    "entrypoint": "Challenge/index.html",
    "format": "verso-html",
    "rendered_at": "2026-12-03T15:37:36Z",
    "renderer_commit": "351a8fde2398f75215fc3e4ada37061d0ef4f151",
    "verso_commit": "304b8561790c50222551c937ce02928df0d5b445"
  },
  "classification": {
    "arxiv": [
      "math.NT",
      "math.CO",
      "math.AC"
    ],
    "msc2020": [
      "11B73",
      "05A18",
      "13F25",
      "15B36"
    ]
  },
  "first_registered_on": "2026-12-03",
  "formalization": {
    "challenge_path": "Challenge.lean",
    "comparator_config_path": "comparator.json",
    "definition_names": [],
    "formalization_metadata_path": "formalization.yaml",
    "lakefile_path": "lakefile.toml",
    "lean_toolchain": "leanprover/lean4:v4.35.0",
    "permitted_axioms": [
      "propext",
      "Quot.sound",
      "Classical.choice"
    ],
    "project_dependencies": [
      {
        "name": "mathlib",
        "repository": "leanprover-community/mathlib4",
        "revision": "56a005855ea17e0b0958f73ec801ae140b0a1679"
      },
      {
        "name": "plausible",
        "repository": "leanprover-community/plausible",
        "revision": "dfa4f38190d07c37e315953e08b90fe2d95b3c24"
      },
      {
        "name": "LeanSearchClient",
        "repository": "leanprover-community/LeanSearchClient",
        "revision": "d6b4c7be5be75ec4917c873ac50c756dc1436372"
      },
      {
        "name": "importGraph",
        "repository": "leanprover-community/import-graph",
        "revision": "a41f0e9a4dea23188ea9cc1c41ac9f8bbafe0b93"
      },
      {
        "name": "proofwidgets",
        "repository": "leanprover-community/ProofWidgets4",
        "revision": "df72b022e558978a1c50264cfc4d7fec86fa8e04"
      },
      {
        "name": "aesop",
        "repository": "leanprover-community/aesop",
        "revision": "4a174c490d8707121c4a9290800489f105d85e07"
      },
      {
        "name": "Qq",
        "repository": "leanprover-community/quote4",
        "revision": "dce0ad79c486cb1fb504af04f953c3466b0c6db8"
      },
      {
        "name": "batteries",
        "repository": "leanprover-community/batteries",
        "revision": "66e469188fe07963e5cf666c7d4433f45b8131c5"
      },
      {
        "name": "Cli",
        "repository": "leanprover/lean4-cli",
        "revision": "c24fe6078c630e89b489bffe59b3e20ac30d12c8"
      }
    ],
    "solution_path": "Solution.lean",
    "theorem_names": [
      "EveryIntegerSubstitutionMatrixHasPThPower.substMatrix_pow_prime_eq_one",
      "EveryIntegerSubstitutionMatrixHasPThPower.substMatrix_succ_pow_prime_off_corner",
      "EveryIntegerSubstitutionMatrixHasPThPower.substMatrix_succ_pow_prime_eq_one_iff",
      "EveryIntegerSubstitutionMatrixHasPThPower.substMatrix_succ_pow_prime_corner_odd",
      "EveryIntegerSubstitutionMatrixHasPThPower.substMatrix_four_sq_corner",
      "EveryIntegerSubstitutionMatrixHasPThPower.substMatrix_four_sq_corner_mod_two",
      "EveryIntegerSubstitutionMatrixHasPThPower.stirlingMatrix_pow_prime_eq_one_iff",
      "EveryIntegerSubstitutionMatrixHasPThPower.orderOf_stirlingMatrix",
      "EveryIntegerSubstitutionMatrixHasPThPower.orderOf_stirlingMatrix_of_le_two",
      "EveryIntegerSubstitutionMatrixHasPThPower.stirlingMatrix_succ_pow_prime_corner_odd",
      "EveryIntegerSubstitutionMatrixHasPThPower.stirlingMatrix_four_sq_corner_mod_two",
      "EveryIntegerSubstitutionMatrixHasPThPower.unitriangular_pow_eq_one_iff_matrixLog",
      "EveryIntegerSubstitutionMatrixHasPThPower.juliaSeries_coeff_padic",
      "EveryIntegerSubstitutionMatrixHasPThPower.stirling_iterativeLog_padic"
    ]
  },
  "id": "PALOMAR-2026-12-03-000083",
  "preservation": {
    "archive_owner": "PalomarArchive",
    "archived_at": "2026-12-03T16:00:47Z",
    "receipt_sha256": "8c2d774178460d843c576260539d2a7002d8d47e2b8ed44351db2a983ff4c931",
    "repositories": [
      {
        "commit": "4a174c490d8707121c4a9290800489f105d85e07",
        "fork_repository": "PalomarArchive/leanprover-community--aesop--01b46b609077",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000083-v1/4a174c490d8707121c4a9290800489f105d85e07",
        "source_repository": "leanprover-community/aesop"
      },
      {
        "commit": "66e469188fe07963e5cf666c7d4433f45b8131c5",
        "fork_repository": "PalomarArchive/leanprover-community--batteries--1b4c776305c9",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000083-v1/66e469188fe07963e5cf666c7d4433f45b8131c5",
        "source_repository": "leanprover-community/batteries"
      },
      {
        "commit": "a41f0e9a4dea23188ea9cc1c41ac9f8bbafe0b93",
        "fork_repository": "PalomarArchive/leanprover-community--import-graph--e0a79261b05a",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000083-v1/a41f0e9a4dea23188ea9cc1c41ac9f8bbafe0b93",
        "source_repository": "leanprover-community/import-graph"
      },
      {
        "commit": "d6b4c7be5be75ec4917c873ac50c756dc1436372",
        "fork_repository": "PalomarArchive/leanprover-community--LeanSearchClient--9de355ab5f53",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000083-v1/d6b4c7be5be75ec4917c873ac50c756dc1436372",
        "source_repository": "leanprover-community/LeanSearchClient"
      },
      {
        "commit": "56a005855ea17e0b0958f73ec801ae140b0a1679",
        "fork_repository": "PalomarArchive/leanprover-community--mathlib4--67b3d817d8a2",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000083-v1/56a005855ea17e0b0958f73ec801ae140b0a1679",
        "source_repository": "leanprover-community/mathlib4"
      },
      {
        "commit": "dfa4f38190d07c37e315953e08b90fe2d95b3c24",
        "fork_repository": "PalomarArchive/leanprover-community--plausible--fb632f6f7bf4",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000083-v1/dfa4f38190d07c37e315953e08b90fe2d95b3c24",
        "source_repository": "leanprover-community/plausible"
      },
      {
        "commit": "df72b022e558978a1c50264cfc4d7fec86fa8e04",
        "fork_repository": "PalomarArchive/leanprover-community--ProofWidgets4--26014acbbaff",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000083-v1/df72b022e558978a1c50264cfc4d7fec86fa8e04",
        "source_repository": "leanprover-community/ProofWidgets4"
      },
      {
        "commit": "dce0ad79c486cb1fb504af04f953c3466b0c6db8",
        "fork_repository": "PalomarArchive/leanprover-community--quote4--90d31d153685",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000083-v1/dce0ad79c486cb1fb504af04f953c3466b0c6db8",
        "source_repository": "leanprover-community/quote4"
      },
      {
        "commit": "c24fe6078c630e89b489bffe59b3e20ac30d12c8",
        "fork_repository": "PalomarArchive/leanprover--lean4-cli--df175a7fc790",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000083-v1/c24fe6078c630e89b489bffe59b3e20ac30d12c8",
        "source_repository": "leanprover/lean4-cli"
      },
      {
        "commit": "a469c950ef461cfe19ac860780a0a930714bf9b5",
        "fork_repository": "PalomarArchive/mathdiscoveries--every-integer-substitution-matrix-has-p-th-power--5f3cd046f3a3",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000083-v1/a469c950ef461cfe19ac860780a0a930714bf9b5",
        "source_repository": "mathdiscoveries/every-integer-substitution-matrix-has-p-th-power"
      }
    ]
  },
  "provenance": {
    "mathematical_sources": [
      {
        "author_endorsement": "participated",
        "authors": [
          {
            "name": "Tyler B. Hughes"
          }
        ],
        "identifier": "https://doi.org/10.5281/zenodo.24726898",
        "location": "https://doi.org/10.5281/zenodo.24726898",
        "relationship": "formalizes",
        "title": "Every integer substitution matrix has p-th power I modulo p up to size C(p,2)+2, and one size further iff p | a_2 a_p",
        "type": "paper"
      }
    ],
    "related_formalizations": [],
    "repository_role": "substantive-development",
    "responsible_maintainers": [
      {
        "name": "Tyler B. Hughes"
      }
    ],
    "result_origin": "source-based"
  },
  "registered_at": "2026-12-03T16:00:18Z",
  "review": {
    "outcome": "neutral",
    "policy_commit": "4edd8c6c26840049501177ee876baa45d4cb998b",
    "report": {
      "sha256": "54d71d6544fad16fe79a9079babbab3cb45d346323c29ce48b0fd207ec257438"
    },
    "reviewed_at": "2026-12-03T15:42:42Z",
    "reviewer_models": [
      "codex:gpt-6-sol"
    ],
    "warnings": []
  },
  "schema_version": 5,
  "source": {
    "commit": "a469c950ef461cfe19ac860780a0a930714bf9b5",
    "license": {
      "declared_identifier": "Apache-2.0",
      "detected_identifier": "Apache-2.0",
      "path": "LICENSE",
      "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4"
    },
    "repository": "mathdiscoveries/every-integer-substitution-matrix-has-p-th-power",
    "repository_url": "https://github.com/mathdiscoveries/every-integer-substitution-matrix-has-p-th-power",
    "tree_url": "https://github.com/mathdiscoveries/every-integer-substitution-matrix-has-p-th-power/tree/a469c950ef461cfe19ac860780a0a930714bf9b5"
  },
  "status": "registered",
  "submission": {
    "authorization": {
      "relationship": "maintainer"
    },
    "submission_id": "d6qnmy86bfpy"
  },
  "title": "Every integer substitution matrix has p-th power I modulo p up to size C(p,2)+2, and one size further iff p | a_2 a_p",
  "trust": {
    "challenge_bytes": 9042,
    "challenge_dependencies": [
      {
        "provenance": "allowlisted",
        "repository": "leanprover-community/mathlib4"
      }
    ],
    "challenge_imports": [
      "Mathlib"
    ],
    "challenge_lines": 161,
    "level": "high",
    "reasons": []
  },
  "verification": {
    "bwrap_source_tag": "v0.12.0",
    "challenge_sha256": "85fe36d69199bc7a23d1585cf34621126cbad00996a140efc6271fea9efc91d0",
    "evidence_path": "evidence/PALOMAR-2026-12-03-000083-v1/09c8054da4910db81f8ef0aedb065d94a6f9de2d897bef2de57f85abc4da27be/",
    "evidence_tree_sha256": "09c8054da4910db81f8ef0aedb065d94a6f9de2d897bef2de57f85abc4da27be",
    "kernels": [
      {
        "argv": [
          "/home/runner/.elan/toolchains/leanprover--lean4---v4.35.0/bin/nanoda_bin"
        ],
        "name": "nanoda"
      },
      {
        "argv": [
          "/home/runner/work/_temp/palomar/trusted-checker-update/con-ron",
          "--jobs=2",
          "--verified"
        ],
        "name": "con-ron"
      }
    ],
    "mechanical_report_sha256": "9ca2989fede7a95ea2a6ccb320baad253cf45aeb253612d0984563deae230bf1",
    "protected_config_sha256": "957b8cfe11f418e99604f45bf989e75b9d6819c3531b24da2c9cba537c18a23d",
    "repository": "PalomarRegistry/PalomarSubmission",
    "run_id": 47128303724,
    "solution_sha256": "604776724cd7d964ed10a26da9b978f80725d32509ba5a58de513b30c3e988cb",
    "tool_digests": {
      "bwrap": "9fb2428d80d46187f59bf4f4d81c67ad8ed7aa5c81742e4039462d65f74aaf2d",
      "con-ron": "4e5616d94374cae37324dad2594f6230c2bb2297240249fc78ff508f3bc5acef",
      "lake": "8ba83c98f76562d03b8dbc33f1057151ba6cbb121679dde76b2260ccc90495e1",
      "lean": "bf8d54e4714cc4b03d3f6bb34c83b7202b87e49c8bfcbff6895c085bb90ceb38",
      "leanchecker": "12c38901cdbfab178f1bf6145dd30012e9a3b2c11ca695292a5884fa3cbaddb6",
      "leanexport": "f6a6483d518a11b323c28b9bac176d2220df0e9fc3230833815db9586669c074",
      "nanoda_bin": "cbf13950fc4a48f635a0beceeb5ed32dd82568b870cfd081b6391c1f2cf02ba5"
    },
    "toolchain_commit": "eb6cafb7290e8bd5f2937522d8d804f58f02bafc",
    "verified_at": "2026-12-03T14:39:21Z",
    "workflow_commit": "351a8fde2398f75215fc3e4ada37061d0ef4f151",
    "workflow_path": ".github/workflows/submission.yml",
    "workflow_run_attempt": 1,
    "workflow_url": "https://github.com/PalomarRegistry/PalomarSubmission/actions/runs/47128303724"
  },
  "version": 1
}
