{
  "abstract": "A Lean proof that the least k with \u03c6_k(n) = 1 has normal order \u03b1 log n for a constant 1 / log 3 \u2264 \u03b1 \u2264 1 / log 2, with mean-square error O(x (log x)\u00b2 / (log log x)\u2075). This answers the first two questions of Erd\u0151s Problem 408. The proof formalizes extensions of Theorems 3.1 and 6.1 of OpenAI's The Poisson-Dirichlet law for prime predecessors, and uses vendored Lean proofs of the zero-free half-plane re s > 7/8 for Dirichlet L-functions (openai/math) and of the weighted dilation graph results (Yao Xu's totient-fibers-lean4).",
  "authors": [
    {
      "name": "Jacob Parish"
    }
  ],
  "challenge_render": {
    "artifact_path": "renders/PALOMAR-2026-10-19-000009-v1/0a818f6e4a3922c63625fed43fe8b715364579e20a831528b4a6dc8be96ff638/",
    "artifact_tree_sha256": "0a818f6e4a3922c63625fed43fe8b715364579e20a831528b4a6dc8be96ff638",
    "bwrap_source_tag": "v0.12.0",
    "entrypoint": "Challenge/index.html",
    "format": "verso-html",
    "rendered_at": "2026-10-19T07:20:16Z",
    "renderer_commit": "d4e41c1d5b0d114c4859e6e5831dc6d3ad1d0d44",
    "verso_commit": "8fc7a297f14d5adc1a551b5b4ecf283c08bd691f"
  },
  "classification": {
    "arxiv": [
      "math.NT"
    ],
    "msc2020": [
      "11A25",
      "11N37",
      "11N64"
    ]
  },
  "first_registered_on": "2026-10-19",
  "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-rc3",
    "permitted_axioms": [
      "propext",
      "Quot.sound",
      "Classical.choice"
    ],
    "project_dependencies": [
      {
        "name": "mathlib",
        "repository": "leanprover-community/mathlib4",
        "revision": "c55e6e786f49471c72fbddbec5415808896aec1e"
      },
      {
        "name": "plausible",
        "repository": "leanprover-community/plausible",
        "revision": "fb13df72ecefd8ddbf9291021d7f33a8673eb57b"
      },
      {
        "name": "LeanSearchClient",
        "repository": "leanprover-community/LeanSearchClient",
        "revision": "29ff470276c725ae01505d55b17148c18fc7dfd3"
      },
      {
        "name": "importGraph",
        "repository": "leanprover-community/import-graph",
        "revision": "7e81a29bda33a6b257bd37557a6aa6aebe175d96"
      },
      {
        "name": "proofwidgets",
        "repository": "leanprover-community/ProofWidgets4",
        "revision": "c643bbb3c24f8a25f9c14e3a6b1ceb13d01f3de1"
      },
      {
        "name": "aesop",
        "repository": "leanprover-community/aesop",
        "revision": "a90fbf7b02ff06a0deebf74088dff9e5fe02c9ea"
      },
      {
        "name": "Qq",
        "repository": "leanprover-community/quote4",
        "revision": "37b0ba0b26109cf9f9c541f0f9557e50cfa1a3b9"
      },
      {
        "name": "batteries",
        "repository": "leanprover-community/batteries",
        "revision": "3b7c8101932390d60e92a3f3d917901d5b5a773b"
      },
      {
        "name": "Cli",
        "repository": "leanprover/lean4-cli",
        "revision": "843844fa601dd56767b1eb22b7ada5b64d5e567a"
      }
    ],
    "solution_path": "Solution.lean",
    "theorem_names": [
      "Erdos408.normal_order_rate",
      "Erdos408.erdos_408.parts.i",
      "Erdos408.erdos_408.parts.ii"
    ]
  },
  "id": "PALOMAR-2026-10-19-000009",
  "preservation": {
    "archive_owner": "PalomarArchive",
    "archived_at": "2026-10-19T07:20:50Z",
    "receipt_sha256": "e3c59403019e17d4e8dfc581556bffc638a3ec95b23d7afa4c25ed36d698654a",
    "repositories": [
      {
        "commit": "a90fbf7b02ff06a0deebf74088dff9e5fe02c9ea",
        "fork_repository": "PalomarArchive/leanprover-community--aesop--01b46b609077",
        "ref": "refs/tags/palomar/PALOMAR-2026-10-19-000009-v1/a90fbf7b02ff06a0deebf74088dff9e5fe02c9ea",
        "source_repository": "leanprover-community/aesop"
      },
      {
        "commit": "3b7c8101932390d60e92a3f3d917901d5b5a773b",
        "fork_repository": "PalomarArchive/leanprover-community--batteries--1b4c776305c9",
        "ref": "refs/tags/palomar/PALOMAR-2026-10-19-000009-v1/3b7c8101932390d60e92a3f3d917901d5b5a773b",
        "source_repository": "leanprover-community/batteries"
      },
      {
        "commit": "7e81a29bda33a6b257bd37557a6aa6aebe175d96",
        "fork_repository": "PalomarArchive/leanprover-community--import-graph--e0a79261b05a",
        "ref": "refs/tags/palomar/PALOMAR-2026-10-19-000009-v1/7e81a29bda33a6b257bd37557a6aa6aebe175d96",
        "source_repository": "leanprover-community/import-graph"
      },
      {
        "commit": "29ff470276c725ae01505d55b17148c18fc7dfd3",
        "fork_repository": "PalomarArchive/leanprover-community--LeanSearchClient--9de355ab5f53",
        "ref": "refs/tags/palomar/PALOMAR-2026-10-19-000009-v1/29ff470276c725ae01505d55b17148c18fc7dfd3",
        "source_repository": "leanprover-community/LeanSearchClient"
      },
      {
        "commit": "c55e6e786f49471c72fbddbec5415808896aec1e",
        "fork_repository": "PalomarArchive/leanprover-community--mathlib4--67b3d817d8a2",
        "ref": "refs/tags/palomar/PALOMAR-2026-10-19-000009-v1/c55e6e786f49471c72fbddbec5415808896aec1e",
        "source_repository": "leanprover-community/mathlib4"
      },
      {
        "commit": "fb13df72ecefd8ddbf9291021d7f33a8673eb57b",
        "fork_repository": "PalomarArchive/leanprover-community--plausible--fb632f6f7bf4",
        "ref": "refs/tags/palomar/PALOMAR-2026-10-19-000009-v1/fb13df72ecefd8ddbf9291021d7f33a8673eb57b",
        "source_repository": "leanprover-community/plausible"
      },
      {
        "commit": "c643bbb3c24f8a25f9c14e3a6b1ceb13d01f3de1",
        "fork_repository": "PalomarArchive/leanprover-community--ProofWidgets4--26014acbbaff",
        "ref": "refs/tags/palomar/PALOMAR-2026-10-19-000009-v1/c643bbb3c24f8a25f9c14e3a6b1ceb13d01f3de1",
        "source_repository": "leanprover-community/ProofWidgets4"
      },
      {
        "commit": "37b0ba0b26109cf9f9c541f0f9557e50cfa1a3b9",
        "fork_repository": "PalomarArchive/leanprover-community--quote4--90d31d153685",
        "ref": "refs/tags/palomar/PALOMAR-2026-10-19-000009-v1/37b0ba0b26109cf9f9c541f0f9557e50cfa1a3b9",
        "source_repository": "leanprover-community/quote4"
      },
      {
        "commit": "843844fa601dd56767b1eb22b7ada5b64d5e567a",
        "fork_repository": "PalomarArchive/leanprover--lean4-cli--df175a7fc790",
        "ref": "refs/tags/palomar/PALOMAR-2026-10-19-000009-v1/843844fa601dd56767b1eb22b7ada5b64d5e567a",
        "source_repository": "leanprover/lean4-cli"
      },
      {
        "commit": "4ea44bf911f8668aec10ec25c4b309e8ed476666",
        "fork_repository": "PalomarArchive/plasma-ai--erdos-408--545e2755076e",
        "ref": "refs/tags/palomar/PALOMAR-2026-10-19-000009-v1/4ea44bf911f8668aec10ec25c4b309e8ed476666",
        "source_repository": "plasma-ai/erdos-408"
      }
    ]
  },
  "provenance": {
    "mathematical_sources": [
      {
        "authors": [
          {
            "name": "Thomas F. Bloom"
          }
        ],
        "identifier": "https://www.erdosproblems.com/408",
        "relationship": "background",
        "title": "Erd\u0151s Problem #408"
      },
      {
        "authors": [
          {
            "name": "The Formal Conjectures Authors"
          }
        ],
        "identifier": "https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/ErdosProblems/408.lean",
        "relationship": "background",
        "title": "Formal Conjectures: ErdosProblems/408.lean"
      },
      {
        "authors": [
          {
            "name": "Plasma AI"
          }
        ],
        "identifier": "https://github.com/plasma-ai/erdos-408/blob/main/paper/totient_iterates.pdf",
        "relationship": "formalizes",
        "title": "The normal order of the number of iterations of Euler's function",
        "type": "paper"
      },
      {
        "authors": [
          {
            "name": "P. Erd\u0151s"
          },
          {
            "name": "A. Granville"
          },
          {
            "name": "C. Pomerance"
          },
          {
            "name": "C. Spiro"
          }
        ],
        "identifier": "Analytic number theory (Allerton Park, IL, 1989), Progr. Math. 85 (1990), 165\u2013204",
        "relationship": "adapts",
        "title": "On the normal behavior of the iterates of some arithmetic functions",
        "type": "paper"
      },
      {
        "authors": [
          {
            "name": "OpenAI"
          }
        ],
        "identifier": "https://github.com/openai/math/blob/main/preprints/The-Poisson-Dirichlet-Law-for-Prime-Predecessors-September-24-2026/paper.pdf",
        "relationship": "formalizes",
        "title": "The Poisson-Dirichlet law for prime predecessors",
        "type": "paper"
      },
      {
        "authors": [
          {
            "name": "OpenAI"
          }
        ],
        "identifier": "https://github.com/openai/math/blob/main/preprints/Weighted-Dilation-Graphs-Smooth-Shifted-Primes-and-Totient-Fibers-September-24-2026/paper.pdf",
        "relationship": "background",
        "title": "Weighted dilation graphs, smooth shifted primes and totient fibers",
        "type": "paper"
      },
      {
        "authors": [
          {
            "name": "OpenAI"
          }
        ],
        "identifier": "https://github.com/openai/math/blob/main/preprints/The-Quasi-Riemann-Hypothesis-September-30-2026/paper.pdf",
        "relationship": "background",
        "title": "The Quasi-Riemann Hypothesis: A Zero-Free Half-Plane Re(s) > 7/8",
        "type": "paper"
      },
      {
        "authors": [
          {
            "name": "Alex Kontorovich"
          },
          {
            "name": "Terence Tao"
          },
          {
            "name": "and contributors"
          }
        ],
        "identifier": "https://github.com/AlexKontorovich/PrimeNumberTheoremAnd",
        "relationship": "adapts",
        "title": "PrimeNumberTheoremAnd"
      },
      {
        "authors": [
          {
            "name": "Yao Xu"
          }
        ],
        "identifier": "https://github.com/cadamcat/totient-fibers-lean4",
        "relationship": "adapts",
        "title": "totient-fibers-lean4"
      },
      {
        "authors": [
          {
            "name": "Adam Benenson"
          }
        ],
        "identifier": "https://github.com/abenenson/rellich-kondrachov",
        "relationship": "adapts",
        "title": "rellich-kondrachov"
      }
    ],
    "related_formalizations": [],
    "repository_role": "substantive-development",
    "responsible_maintainers": [
      {
        "name": "Jacob Parish"
      },
      {
        "name": "Andrew Turner"
      }
    ],
    "result_origin": "source-based"
  },
  "registered_at": "2026-10-19T07:20:28Z",
  "review": {
    "outcome": "neutral",
    "policy_commit": "96b034cc31a72a63d4f4041911dce337a85c9a04",
    "report": {
      "sha256": "50372edf9587daf9d69921311e94b863a4d652f768f9704517764f0ce04443e5"
    },
    "reviewed_at": "2026-10-19T05:05:56Z",
    "reviewer_models": [
      "codex:gpt-6-sol"
    ],
    "warnings": []
  },
  "schema_version": 5,
  "source": {
    "commit": "4ea44bf911f8668aec10ec25c4b309e8ed476666",
    "license": {
      "declared_identifier": "Apache-2.0",
      "detected_identifier": "Apache-2.0",
      "path": "LICENSE",
      "sha256": "b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1"
    },
    "repository": "plasma-ai/erdos-408",
    "repository_url": "https://github.com/plasma-ai/erdos-408",
    "tree_url": "https://github.com/plasma-ai/erdos-408/tree/4ea44bf911f8668aec10ec25c4b309e8ed476666"
  },
  "status": "registered",
  "submission": {
    "authorization": {
      "relationship": "maintainer"
    },
    "submission_id": "129c7iq3llpp"
  },
  "title": "Erd\u0151s Problem 408: distribution of iterated totient heights",
  "trust": {
    "challenge_bytes": 4258,
    "challenge_dependencies": [
      {
        "provenance": "allowlisted",
        "repository": "leanprover-community/mathlib4"
      }
    ],
    "challenge_imports": [
      "Mathlib.Analysis.SpecialFunctions.Pow.Real",
      "Mathlib.Data.Nat.Totient",
      "Mathlib.Data.Set.Card",
      "Mathlib.Topology.Instances.Real.Lemmas"
    ],
    "challenge_lines": 97,
    "level": "high",
    "reasons": []
  },
  "verification": {
    "bwrap_source_tag": "v0.12.0",
    "challenge_sha256": "70c94e9a3201c85f8bb26afef367790cca8a742c94d2f063c015b382c5e03cb4",
    "evidence_path": "evidence/PALOMAR-2026-10-19-000009-v1/fb02fde73948dd607953cc494200aee5ac3fa7628a0fac8f9b657afb52fc8b4e/",
    "evidence_tree_sha256": "fb02fde73948dd607953cc494200aee5ac3fa7628a0fac8f9b657afb52fc8b4e",
    "kernels": [
      {
        "argv": [
          "/home/runner/.elan/toolchains/leanprover--lean4---v4.35.0-rc3/bin/nanoda_bin"
        ],
        "name": "nanoda"
      },
      {
        "argv": [
          "/home/runner/.elan/toolchains/leanprover--lean4---v4.35.0-rc3/bin/con-ron",
          "--jobs=2"
        ],
        "name": "con-ron"
      }
    ],
    "mechanical_report_sha256": "a40fb210a47e2845afe0f77239b64c37330e3ac9e6380e3b29175ebd7373ea72",
    "protected_config_sha256": "ce05952387e27a6951dc2cbeebbe03360534090eb504bdbb4152fc704b551a5c",
    "repository": "PalomarRegistry/PalomarSubmission",
    "run_id": 39195414479,
    "solution_sha256": "36b7d55370cf5e71088d7c4dddfd7273f98f468bec7343dcda893e2b4f32dcf0",
    "tool_digests": {
      "bwrap": "08d3ea79019a4fbea2e7982dfca92722bcae12a830e5c2d4979b6b830ab762ed",
      "con-ron": "4e5616d94374cae37324dad2594f6230c2bb2297240249fc78ff508f3bc5acef",
      "lake": "8ba83c98f76562d03b8dbc33f1057151ba6cbb121679dde76b2260ccc90495e1",
      "lean": "bf8d54e4714cc4b03d3f6bb34c83b7202b87e49c8bfcbff6895c085bb90ceb38",
      "leanchecker": "9e36e955a251b1313c8eb5b7fa101282d51df109d34d8bb7c1cfdf51985aba29",
      "leanexport": "c5bc1a10a21e22cbb3671d65987cdef2076833b14182d823ccb2153adf2fa954",
      "nanoda_bin": "8241c5e6baa29490aa118d382f97961b208ae730fdb96545c2abed74c9ece5a8"
    },
    "toolchain_commit": "470d5ce1400764999581fd26d5d72b00d990b0f4",
    "verified_at": "2026-10-19T04:46:55Z",
    "workflow_commit": "d4e41c1d5b0d114c4859e6e5831dc6d3ad1d0d44",
    "workflow_path": ".github/workflows/submission.yml",
    "workflow_run_attempt": 1,
    "workflow_url": "https://github.com/PalomarRegistry/PalomarSubmission/actions/runs/39195414479"
  },
  "version": 1
}
