[{"data":1,"prerenderedAt":4},["ShallowReactive",2],{"n8dtZqYfIp":3},"# Robin1984\n\n[![CI](https://github.com/kimihiro64/Robin1984/actions/workflows/ci.yml/badge.svg)](https://github.com/kimihiro64/Robin1984/actions/workflows/ci.yml)\n\nRobin1984 gives arithmetic criteria for the critical-line location of\nzeros and for their multiplicities. It includes the classical Robin and\nLagarias equivalences, corrected ideal-divisor criteria for Dirichlet\nGRH and Dedekind ERH, and triangular prime-power criteria for standard\nautomorphic $L$-functions. The concrete Lean automorphic construction\ncovers every unitary Hecke character of every number field.\n\n## Headline equivalences\n\nLet $\\sigma(n)=\\sum_{d\\mid n}d$, let $\\gamma$ be the Euler–Mascheroni\nconstant, and let $H_n=\\sum_{k=1}^n k^{-1}$. RH means that every zero of\n$\\zeta(s)$ in $0\u003C\\Re s\u003C1$ has real part $1/2$.\n\n1. **Robin.** RH holds if and only if\n   $\\sigma(n)\u003Ce^\\gamma n\\log\\log n$ for every integer $n>5040$.\n2. **Colossally abundant Robin.** RH holds if and only if the same\n   strict inequality holds for every colossally abundant integer\n   $n>5040$. Here $n>1$ is colossally abundant if some $\\varepsilon>0$\n   satisfies $\\sigma(k)/k^{1+\\varepsilon}\\leq\n   \\sigma(n)/n^{1+\\varepsilon}$ for every integer $k>1$.\n3. **Lagarias.** RH holds if and only if\n   $\\sigma(n)\\leq H_n+e^{H_n}\\log H_n$ for every integer $n\\geq1$.\n4. **Dirichlet GRH.** The critical-line condition for all Dirichlet\n   $L$-functions is equivalent to the corrected ideal Robin bound in every\n   cyclotomic field.\n5. **Dedekind ERH.** The critical-line condition for all Dedekind zeta\n   functions is equivalent to the same bound in every number field.\n6. **Standard automorphic critical-line criterion.** The standard family\n   satisfies the critical-line condition if and only if each test in the\n   family satisfies the triangular square-root bound below. Lean supplies\n   the unconditional analytic construction for the standard rank-one family.\n\nThe [Mathlib-only Challenge](Challenge.lean) and the [Solution](Solution.lean)\ngive the six location equivalences and the four multiplicity equivalences.\nThe [Comparator manifest](comparator.json) specifies the exact declarations.\n\n## Dirichlet GRH, Dedekind ERH, and Grand RH\n\n### The corrected ideal Robin inequality\n\nLet $K$ be a number field with ring of integers $\\mathcal O_K$ and\ndiscriminant $D_K$. Write $\\kappa_K=\\mathrm{Res}_{s=1}\\zeta_K(s)$\nfor the residue of its Dedekind zeta function, and let $\\gamma$ be the\nEuler–Mascheroni constant. For a nonzero integral ideal $\\mathfrak a$,\nthe absolute norm and the ideal divisor sum are\n\n```math\nN\\mathfrak a=\\#(\\mathcal O_K/\\mathfrak a),\n\\qquad\n\\sigma_K(\\mathfrak a)=\n  \\sum_{\\substack{\\mathfrak d\\mid\\mathfrak a\\\\\n                   \\mathfrak d\\ \\mathrm{integral}}}N\\mathfrak d.\n```\n\nThe corrected inequality for $K$ asks for an integer cutoff $A_K$\nsuch that every nonzero integral ideal $\\mathfrak a$ with\n$N\\mathfrak a\\ge A_K$ satisfies\n\n```math\n\\frac{\\sigma_K(\\mathfrak a)}{N\\mathfrak a}\n\\ \\le\\\ne^\\gamma\\kappa_K\n\\left(\n  \\log\\log N\\mathfrak a+\n  \\frac{12+3\\log|D_K|}{\\sqrt{\\log N\\mathfrak a}}\n\\right).\n```\n\nAll logarithms are natural. The cutoff can depend on $K$.\n\n- **Dirichlet GRH.** For every integer $m\\ge1$ and every Dirichlet character\n  $\\chi$ modulo $m$, every zero of $L(s,\\chi)$ in $0\u003C\\Re s\u003C1$ lies on\n  $\\Re s=1/2$ if and only if the corrected ideal Robin inequality holds\n  in every cyclotomic field $K=\\mathbb Q(\\zeta_m)$, where $\\zeta_m$ is a\n  primitive $m$-th root of unity.\n- **Dedekind ERH.** For every number field $K$, every zero of $\\zeta_K(s)$\n  in $0\u003C\\Re s\u003C1$ lies on $\\Re s=1/2$ if and only if the corrected ideal\n  Robin inequality holds in every number field $K$.\n\n### Grand RH and the triangular prime-power inequality\n\nGrand RH is the assertion that every nontrivial zero of every\nautomorphic $L$-function has real part $1/2$. The equivalence below\nconcerns its restriction to the standard $L(s,\\pi)$ of unitary\ncuspidal representations of $\\mathrm{GL}_n(\\mathbb A_K)$ for all $n\\ge1$\nand all number fields $K$. In this family the nontrivial zeros are the\nzeros of the pole-cleared completed functions.\n\nFor each $K$, include the test $Z=\\zeta_K$. For every $\\pi$ other than a\npure norm character $|\\cdot|_{\\mathbb A_K}^{it}$ of $\\mathrm{GL}_1$,\ninclude the paired test $Z=L(s,\\pi)L(s,\\widetilde\\pi)$, where\n$\\widetilde\\pi$ is the contragredient of $\\pi$. The $Z=\\zeta_K$ test\ncovers the pure norm characters because their standard functions are\n$\\zeta_K(s+it)$.\n\nFor a nonzero prime ideal $\\mathfrak p$ write $q=N\\mathfrak p$.\nThe real coefficients $b_{\\mathfrak p,j}(Z)$ for integers $j\\ge1$\nare those of the logarithmic derivative\n\n```math\n-\\frac{Z'(s)}{Z(s)}\n =\\sum_{\\mathfrak p}\\sum_{j\\ge1}b_{\\mathfrak p,j}(Z)q^{-js},\n\\qquad \\Re s>1.\n```\n\nFor $Z=\\zeta_K$, $b_{\\mathfrak p,j}(Z)=\\log q$. For a pair, write\n$L_{\\mathfrak p}(s,\\pi)=\\prod_{k=1}^n(1-\\alpha_{\\mathfrak p,k}q^{-s})^{-1}$,\nusing zero parameters as needed at ramified primes. Then\n\n```math\nb_{\\mathfrak p,j}(Z)=2\\log q\\,\n    \\Re\\!\\left(\\sum_{k=1}^n\\alpha_{\\mathfrak p,k}^{\\,j}\\right).\n```\n\nLet $m_Z$ be the pole order of $Z$ at $1$, equal to $1$ for the\nDedekind test and $0$ for a paired test. The critical-line condition for\nthis standard family is equivalent to the following bound for every test $Z$.\n\n```math\nR_Z(x)\n =\\frac{m_Z x}{2}\n  -\\sum_{\\substack{\\mathfrak p,\\ j\\ge1\\\\ q^j\\le x}}\n    b_{\\mathfrak p,j}(Z)\\left(1-\\frac{q^j}{x}\\right)\n \\ \\le\\ C_Z\\sqrt{x}\n\\qquad (x\\ge X_Z).\n```\n\nEach $Z$ has its own constants $C_Z\\in\\mathbb R$ and $X_Z\\ge1$, and\nthe bound holds for every real $x\\ge X_Z$. For $Z=\\zeta_K$, the triangular\nbound and the corrected ideal Robin inequality are equivalent for that\nfield. Taking all fields gives Dedekind ERH. Taking all cyclotomic fields\ngives Dirichlet GRH.\n\n### The verified standard rank-one family\n\nA unitary Hecke character of $K$ is a continuous character\n$\\chi:\\mathbb A_K^\\times/K^\\times\\to S^1$. At an unramified prime\n$\\mathfrak p$, its Euler parameter $\\alpha_\\chi(\\mathfrak p)$ is the\nlocal character evaluated at a uniformizer. At a ramified prime set\n$\\alpha_\\chi(\\mathfrak p)=0$. With $q=N\\mathfrak p$, the paired\ncoefficients are\n\n```math\nb_{\\mathfrak p,j}(L_\\chi L_{\\chi^{-1}})\n   =2\\log q\\,\\Re\\bigl(\\alpha_\\chi(\\mathfrak p)^j\\bigr).\n```\n\nThe characters that are trivial on the norm-one idele classes are the\nnorm characters $`\\chi_t=|\\cdot|_{\\mathbb A_K}^{it}`$. Their completed\nfunctions are the pole-cleared Dedekind completion evaluated at\n$s+it$. Thus the single test $Z=\\zeta_K$ covers all norm characters of\n$K$. For all remaining characters use $Z=L_\\chi L_{\\chi^{-1}}$ and\n$m_Z=0$. Over each number field the joint critical-line condition is\nequivalent to the Dedekind bound and all these paired Hecke bounds.\nThe Lean construction supplies the actual Euler products, completions,\nand analytic estimates for this family.\n[Rank-one equivalences](Robin1984/GRH/HeckeStandardRankOne.lean).\n\n### Higher-rank formalization cutoff\n\nThe [paper](paper/robin1984-formalization.tex) proves the equivalence\nfor the standard $L(s,\\pi)$ in every rank using the cited analytic\ntheorems. The concrete Lean construction for this release stops at\n$\\mathrm{GL}_1$. The Lean theorem for a supplied family uses\n`HasStandardAutomorphicAnalytics` and the corresponding multiplicity\ntheorem uses `HasStandardMultiplicityAnalytics`.\n\nFor the spherical higher-rank construction, Lean proves the finite\nand archimedean local Euler integrals and the product-test continuation\nand functional equation **given** a measurable finite-volume reduction\nset and the stated square-integrability and cuspidal cancellation.\n[Conditional product-test continuation](Robin1984/GRH/GodementJacquetCuspidalProductTestContinuation.lean).\n\n- A compact finite-adelic projection meets every rational orbit in the\n  determinant-norm-one group. At infinity, a determinant-bounded\n  Iwasawa Siegel region with lower bounds on the successive diagonal\n  log gaps and bounded upper entries has finite Haar volume.\n  [Finite reduction](Robin1984/GRH/GodementJacquetFiniteAdelicReduction.lean),\n  [archimedean volume](Robin1984/GRH/GodementJacquetArchimedeanSiegelVolume.lean).\n- The short-row selection and integral matrix denominator bounds are\n  proved. The next step is to apply them to the embedded integral\n  number-field lattice and use integral row changes to put a\n  representative of every orbit into the same archimedean region,\n  with a compact finite-adelic projection.\n  [Short rows](Robin1984/GRH/GodementJacquetShortFieldLatticeRows.lean),\n  [integral matrix inverse](Robin1984/GRH/GodementJacquetIntegralMatrixInverse.lean).\n- The global construction still needs the cuspidal decay and quotient\n  integrability on that reduction set, followed by identification of\n  the normalized completed functions with the actual standard family.\n  General local data at ramified and nonspherical places belong to the\n  extension beyond the spherical construction.\n\n## Critical-line zeros and multiplicity\n\nFor a carrier $F$, let $A_F(w,R,\\eta)$ be the planar area of\n$\\{z : |z-w|\u003CR,\\ |F(z)|\\le \\eta\\}$. The local test for a prescribed\nmaximum order $B\\ge 0$ is\n\n```math\n\\mathrm{ord}_w F\\le B\n\\quad\\Longleftrightarrow\\quad\n\\exists R>0,\\quad A_F(w,R,\\varepsilon^{B+1})=o(\\varepsilon^2)\n\\quad(\\varepsilon\\downarrow0).\n```\n\nUse $B=0$ off the critical line. On the line, for a holomorphic\nfactorization $F=U\\prod_j F_j^{e_j}$ with $U$ nowhere zero, use\n$B=\\sum_j e_j b_j(w)$ for specified lower bounds $b_j(w)$ on the factor\norders. The basic choice counts one per factor vanishing at $w$, with its\nexponent $e_j$. This tests for no excess order in the factors and counts\nshared zeros with their weights. The Robin or triangular criterion can\nsupply the location condition instead, so the area test only needs points\non the line.\n\nThe arithmetic carriers are $L(s,\\chi)/L(s+1,\\chi)$,\n$\\zeta_K(s)/\\zeta_K(s+1)$, and $Z_\\pi(s)/L(s+1,\\pi)$ with the individual\npole-cleared completion $Z_\\pi$. The first two have the coefficients\n$\\chi(n)\\varphi(n)/n$ and $\\varphi_K(\\mathfrak a)/N\\mathfrak a$ in their\nDirichlet series, where $\\varphi_K(\\mathfrak a)=N\\mathfrak a\\prod_{\\mathfrak p\\mid\\mathfrak a}(1-(N\\mathfrak p)^{-1})$.\nThe [paper](paper/robin1984-formalization.tex) gives the automorphic local factors,\nthe holomorphy requirement for a full Artin factorization, and the treatment of\nintrinsic central zeros. This extension is a mathematical criterion.\n\nThe same triangular remainder $R_Z$ also supplies an arithmetic\nmultiplicity test. Once the square-root bound holds, put\n$w=\\tfrac12+i\\gamma$, $s=w+\\delta$. The order of the pole-cleared\nfunction in the triangular Mellin formula is the limit, as\n$\\delta\\downarrow0$, of\n\n```math\nD_Z(w,\\delta)=\\delta\\,s(s+1)\\int_1^\\infty R_Z(x)x^{-s-1}\\,dx.\n```\n\nThis order is at most $B$ exactly when $\\Re D_Z(w,\\delta)\\le B+\\tfrac12$\nfor every sufficiently small $\\delta>0$. The paper gives the completion\nfactor correction when that factor has nonzero order at $w$.\n\n### Global multiplicity test\n\nUse the **individual** Euler coefficients for the multiplicity of an\nindividual function. For $\\zeta$ take $K=\\mathbb Q$ and $b_{p,j}=\\log p$.\nFor $\\zeta_K$ take $b_{\\mathfrak p,j}=\\log N\\mathfrak p$. For a Dirichlet\ncharacter $\\chi$ modulo $m$ use $b_{p,j}=\\chi(p^j)\\log p$, with $\\chi$\nextended by zero off the units modulo $m$. The pole order at $1$ is one\nfor the zeta functions and for a principal Dirichlet character.\nFor a pole-free Hecke function use\n$b_{\\mathfrak p,j}=\\alpha_\\chi(\\mathfrak p)^j\\log N\\mathfrak p$ and pole\norder zero. For an individual standard $L(s,\\pi)$ use\n$b_{\\mathfrak p,j}=\\log N\\mathfrak p\\sum_k\\alpha_{\\mathfrak p,k}^{\\,j}$,\nwith the completion and pole clearing in the chosen normalization.\n\nFor these coefficients form $R(x)$ by the same triangular formula and\nput $A(t)=e^{-t/2}R(e^t)$ for $t\\geq0$, and $A(t)=0$ for $t\u003C0$.\nFor $a=1,2$ set\n\n```math\ng_a(t)=\\frac{e^{-t^2/(4a)}}{\\sqrt{4\\pi a}},\\qquad\nH_a=\\bigl((\\partial_t+\\tfrac12)(\\partial_t+\\tfrac32)g_a\\bigr)*A,\\qquad\nc_a(u)=\\lim_{T\\to\\infty}\\frac1T\\int_0^T H_a(t)e^{-iut}\\,dt .\n```\n\nHere $*$ denotes convolution on $\\mathbb R$. Let $E$ be the finite set\nof ordinates exempted from simplicity, $J$ the finite set of ordinates\nwith specified orders, and $d:J\\to\\mathbb Z_{\\geq0}$ the desired orders.\nSet $\\widetilde H_a(t)=H_a(t)-\\sum_{u\\in E}c_a(u)e^{iut}$. The test is\n\n```math\n\\underbrace{\\limsup_{T\\to\\infty}\\frac1T\\int_0^T|\\widetilde H_1(t)|^2\\,dt}_{\\mathcal E}\n+\\underbrace{\\sum_{u\\in J}|c_1(u)-d(u)e^{-u^2}|^2}_{\\mathcal P}\n\\ \\le\\\n\\underbrace{\\limsup_{t\\to\\infty}\\Re\\widetilde H_2(t)}_{\\mathcal S}.\n```\n\nUnder the critical-line hypothesis, the mean square has a limit, and\n$c_a(u)=m_u e^{-au^2}$ where $m_u$ is the zero order at $1/2+iu$.\nConsequently $\\mathcal E-\\mathcal S$ is the sum of\n$m_u(m_u-1)e^{-2u^2}$ over retained ordinates. Each summand is nonnegative.\nWith $E=J=\\varnothing$ the inequality detects simple zeros. With\nexceptions it also forces $m_u=d(u)$ at each $u\\in J$.\n\n### Four conditional headline equivalences\n\nAssume the corresponding location hypothesis in each statement.\nWrite $\\mathcal E$ for the global mean-square limit and $\\mathcal S$\nfor the limit superior defined above.\n\n| Hypothesis | Multiplicity requirement equivalent to the global inequality |\n| --- | --- |\n| RH | All nontrivial zeros of $\\zeta$ are simple iff $\\mathcal E\\le\\mathcal S$ for $\\zeta$. |\n| Dirichlet GRH | Each Dirichlet $L$-function has simple nontrivial zeros iff $\\mathcal E\\le\\mathcal S$ for each individual character. |\n| Dedekind ERH | All nontrivial zeros of $\\zeta_K$ are simple iff $\\mathcal E\\le\\mathcal S$ for the prime-ideal powers of $K$. This applies to every number field. |\n| Grand RH | Every individual standard completion has simple zeros outside its prescribed exceptions and the stated exact orders at specified exceptions iff $\\mathcal E+\\mathcal P\\le\\mathcal S$ for each individual representation. The term $\\mathcal P$ is the sum of squared errors in the prescribed orders, weighted by the Gaussian coefficients. |\n\nThe [research paper](paper/robin1984-formalization.tex) gives the proofs.\nThe [Challenge](Challenge.lean) and [Solution](Solution.lean) contain the\nfollowing multiplicity equivalences.\n\n| Hypothesis | Lean declaration |\n| --- | --- |\n| RH | `riemannRH_iff_globalPrimePowerMultiplicityInequality` |\n| Dirichlet GRH | `dirichletGRH_iff_globalPrimePowerMultiplicityInequality` |\n| Dedekind ERH | `dedekindERH_iff_globalPrimePowerMultiplicityInequality` |\n| Grand RH for a supplied standard family | `grandRH_iff_globalPrimePowerMultiplicityInequality` |\n\nThe Dedekind test uses $A_K(t)=e^{-t/2}R_{\\zeta_K}(e^t)$ for $t\\ge0$\nand $A_K(t)=0$ for $t\u003C0$, with the prime-ideal remainder defined above.\nFor a positive holomorphic factorization $\\zeta_K=U_K\\prod_j L_{K,j}^{e_{K,j}}$,\nthe factorwise criterion equates the forced orders\n$`\\mathrm{ord}_w\\zeta_K=\\sum_{j:L_{K,j}(w)=0}e_{K,j}`$\nwith $\\sum_j e_{K,j}\\mathcal E_j\\le\\sum_j e_{K,j}\\mathcal S_j$.\n\nFor the concrete standard $\\mathrm{GL}_1$ family, the prescribed-order\ntest is the conjunction of the Dedekind test and the individual\npole-free Hecke tests. For the norm twist with parameter $t$, the\nDedekind order at $1/2+iu$ is the twist order at $1/2+i(u-t)$.\nTranslate the Dedekind exceptional and prescribed ordinates by the same\namount. The normalized Dedekind completion and its norm twists\ntherefore share one arithmetic test.\n[Standard rank-one multiplicity theorem](Robin1984/GRH/HeckeStandardRankOne.lean).\n\n## Mathematical organization\n\nThe proof development is organized by mathematical role:\n\n- `Robin1984/Arithmetic/` defines Robin's inequality and elementary divisor\n  and logarithmic bounds.\n- `Robin1984/ColossallyAbundant/` develops marginal prime-power events,\n  colossally abundant threshold profiles, and the reduction to CA integers.\n- `Robin1984/Finite/` contains the exact startup proof, rational tangent rows,\n  and kernel-checked finite certificates.\n- `Robin1984/Lagarias/` proves the harmonic comparison, finite range, and the\n  forward and converse bridges for Lagarias's elementary criterion.\n- `Robin1984/Analytic/` proves the explicit Mertens, prime-power and\n  large-height estimates used under RH.\n- `Robin1984/NicolasLandau/` reconstructs Nicolas's oscillation argument and\n  Landau's positive-transform principle, including the weighted explicit\n  formula and multiplicity-aware xi-zero sums.\n- `Robin1984/Equivalence/` assembles the finite and analytic implications into\n  the public equivalence theorem.\n- `Robin1984/Helpers/` contains reusable event, threshold, state and\n  prime-tower lemmas.\n- `Robin1984/Mathlib/` contains project-independent modules maintained in their\n  proposed upstream namespaces and source format.\n\nThe finite proof has three visible parts. Exact prime factorizations cover\n`5041 \u003C= n \u003C 7560`; a common colossally abundant tangent covers\n`7560 \u003C= n \u003C 720720`; and 36 rational log-height rows cover the remaining\nfinite range through `log n = 74500`. The final retained row uses 105 bounded\nprime-product blocks, each recomputed with `decide +kernel`.\n\n## Mathlib candidate layer\n\n[`MATHLIB_PORTING.md`](MATHLIB_PORTING.md) inventories the reusable modules\nmaintained for possible upstreaming. The current candidate layer contains nine\nmodules covering Abel identities, `Nat.lcmUpto` support, finite Mertens\nproducts, exact rational logarithm bounds, one-sided Omega transfer, absolute\ntail reweighting, nonnegative-MGF continuation, and positive-real zeta\nnonvanishing. Each uses its proposed upstream namespace at a path mirroring\nits intended Mathlib destination. Existing project declarations and the\nadvertised downstream API retain their original names.\n\nThe import audit enforces a one-way boundary: candidates may depend only on\nnarrow Mathlib-family modules or other candidates, never on Robin1984 proof\ncode or third-party project libraries. It also checks Mathlib source headers,\nabsence of the project namespace from candidate bodies, one manifest row per\ncandidate, and a recognized readiness state. All nine candidates build\ndirectly against the pinned Mathlib revision before the complete project.\n\n## Provenance\n\nEvery project-specific Lean file has two separate module headers:\n\n1. a content-reviewed provenance designation identifying whether the file\n   directly formalizes Robin, Nicolas, Landau or another published source;\n   records a standard mathematical formalization; or is primarily original to\n   this Lean development; and\n2. a human-readable description of the module's definitions, theorems and role\n   in the proof.\n\nMathlib candidate source instead uses Mathlib's upstream-ready copyright,\nlicence, authorship and module-documentation header while retaining an exact\nreviewed entry in the repository provenance ledger.\n\nThe review methodology and category counts are in\n[docs/PROVENANCE.md](docs/PROVENANCE.md). The machine-readable, path-exact\nreview record is [provenance/ledger.json](provenance/ledger.json). Provenance\nwas assigned from the contents and dependency role of each file, not from\nfilename or keyword matching.\n\nPrimary mathematical references include:\n\n- Jeffrey C. Lagarias, [*An Elementary Problem Equivalent to the Riemann\n  Hypothesis*](https://doi.org/10.1080/00029890.2002.11919883), American\n  Mathematical Monthly 109 (2002), 534--543; submitted in 2001.\n- Guy Robin, *Grandes valeurs de la fonction somme des diviseurs et hypothese\n  de Riemann*, Journal de Mathematiques Pures et Appliquees 63 (1984),\n  187--213.\n- Jean-Louis Nicolas, [*Petites valeurs de la fonction\n  d'Euler*](https://doi.org/10.1016/0022-314X(83)90055-0), Journal of Number\n  Theory 17 (1983), 375--388.\n- Edmund Landau, [*Uber einen Satz von\n  Tschebyschef*](https://eudml.org/doc/158244), Mathematische Annalen 61\n  (1905), 527--550.\n- N. Costa Pereira, [*Estimates for the Chebyshev function\n  psi(x)-theta(x)*](https://doi.org/10.2307/2007805), Mathematics of\n  Computation 44 (1985), 211--221, with the 1987 corrigendum.\n\nThe complete structured bibliography and source relationships are recorded in\n[formalization.yaml](formalization.yaml). The accompanying\n[research paper](paper/robin1984-formalization.tex) presents the mathematical\nproof, theorem-by-theorem correspondence, and original references.\n\n## Trust and proof surface\n\nThe Comparator manifest lists ten Challenge/Solution pairs and\npermits the standard Lean axioms `propext`, `Classical.choice`,\nand `Quot.sound`. The deliberate `sorry` placeholders in\n`Challenge.lean` state the theorem targets. The implementation\nproofs live in `Solution.lean` and the project library.\n\nFinite certificates use ordinary `decide +kernel`, exact natural and rational\narithmetic, and proved soundness theorems. Comparator statement checking and\nan independent NanoDa replay are configured as release gates in Linux CI.\n\n## Lean version and dependencies\n\nThe project is pinned to Lean `v4.33.1`; see [lean-toolchain](lean-toolchain)\nand [lake-manifest.json](lake-manifest.json). The proof depends on Mathlib and\n`leancert` at pinned Git revisions. The analytic dependency\n`PrimeNumberTheoremAnd` is fetched from a temporary\n[public compatibility and extension fork](https://github.com/kimihiro64/PrimeNumberTheoremAnd/tree/robin1984-lean-4.33.1)\nat the exact commit recorded in the manifest. That commit is based on upstream\ncommit `47fa48680663df41146704d02a5b092d792bd5b9` and contains the Lean 4.33.1\nproof repairs plus the xi-divisor and Mertens interfaces used here. As of\nSeptember 2026, [upstream `main`](https://github.com/AlexKontorovich/PrimeNumberTheoremAnd/blob/main/lean-toolchain)\nstill declares Lean 4.32.2 and does not contain the required xi-divisor source.\nThe fork can be removed after a compatible upstream revision contains or\nreplaces those interfaces and the full build and Comparator/NanoDa checks pass.\nThe added xi-divisor source retains Matteo Cipollina's authorship and\nApache-2.0 notice. A fresh Lake build reconstructs the dependency from public\nGit history and needs no local or build-time patch step.\n\n## Building\n\nInstall Git and `elan`, then ensure the pinned toolchain can be installed. On\nWindows PowerShell:\n\n```powershell\n./scripts/bootstrap.ps1\nlake exe cache get\nlake build\n```\n\nOn Linux or macOS:\n\n```sh\nlake update\nlake exe cache get\nlake build\n```\n\nThe bare `lake build` command is the complete submission build. Its default\ntargets are `Challenge` and `Solution`; they use Lake's ordinary scheduler, so\nunrelated modules can build concurrently. The memory-intensive Robin and\nLagarias certificate modules encode their order as import-dependency ladders,\nkeeping those\nelaborations sequential in both repository and consumer builds. Each Lean\nprocess is additionally bounded to one internal task thread (`-j1`).\n\nThe finite certificates are deliberately substantial, so a fully uncached\nbuild is dominated by their kernel reductions and can take considerably longer\nthan an incremental replay. It needs several GiB of free disk space and\nadequate memory; no machine-independent cold-build duration is claimed.\n\n## Checks\n\nThe repository's local checks are:\n\n```powershell\n./scripts/check-imports.ps1\n./scripts/check-provenance.ps1\nruby ./scripts/validate-formalization.rb\n```\n\nThe import linter rejects package and Mathlib-category umbrella imports,\nduplicate or unresolved imports, non-canonical header ordering, and local\nimports already supplied transitively by another direct import. It also\nenforces the Mathlib candidate boundary and inventory. The subsequent Lean\nbuild separately verifies that every retained narrow import provides the\nnotation, tactics, instances, and declarations its file actually needs.\n\nOn a Linux host with Git, Lake, Go, Rust/Cargo, Python 3 and Landrun support,\nrun the pinned Comparator and NanoDa toolchain with:\n\n```sh\n./scripts/verify-comparator.sh\n```\n\nThe verifier first runs the repository's sequential default build. Comparator\nthen exports the Challenge and Solution environments separately, compares each\nadvertised theorem statement and the declarations used by that statement,\naudits the Solution proof bodies against the three permitted standard axioms,\nand replays the export through Lean's default kernel. The configuration has no\ndefinition holes and requires a second replay through the independent NanoDa\nkernel. Linux CI passes the completed root `.lake/build` tree from its build job\nto the Comparator job, avoiding a redundant cold build while retaining\nthe same checks on fresh standalone verifiers.\nIt pins the upstream `leanprover/lean4export` v4.33.0 source commit and compiles\nthat source unmodified with this repository's exact Lean v4.33.1 toolchain via\n`ELAN_TOOLCHAIN`. This keeps the exporter compatible with the project's\n`.olean` format without a fork or a machine-local patch.\nThe build job also caches that tree across workflow runs under a key derived\nfrom every Lean source and build-defining file. A source change therefore\nforces a new kernel build, while documentation-only changes can reuse the exact\nLinux `.olean`s.\n\n\nThe same CI run publishes the compiled research paper as the\n`robin1984-research-paper` artifact. Its cached PDF is keyed only by\n[`paper/robin1984-formalization.tex`](paper/robin1984-formalization.tex), so an\nunchanged paper source reuses the same PDF instead of rebuilding it. The build\nuses the source file's last Git change time as `SOURCE_DATE_EPOCH` and checks\nthat the final PDF is nonempty and has resolved references and a positive page\ncount.\n\nSuccessful `main` builds publish an official GitHub release only after every\njob has passed, including Comparator statement matching, NanoDa replay and\nLean's default-kernel replay. The committed [RELEASE_VERSION](RELEASE_VERSION)\nfile supplies the semantic version and must be bumped before a new release;\nCI checks tag collisions before starting the long Lean build. The release\ncontains the paper PDF and a compressed Ubuntu `.lake/build` tree with the\nproject's licensing information. A rerun at an already published commit\nverifies the existing release.\n\n## Production and review disclosure\n\nThe maintainer selected the mathematical goals, source correspondences and\npublic theorem statements. OpenAI Codex agents assisted with Lean proof\ndevelopment, dependency analysis, refactoring, certificate organization,\ndocumentation and mechanical audits. Lean's kernel and the independent\nComparator/NanoDa pipeline are correctness gates; they are not substitutes for\nindependent expert mathematical review. No such expert review is claimed.\n\n## Licence and submission\n\nThe repository's original material is licensed under the\n[Apache License 2.0](LICENSE) by default. The research paper is additionally\navailable under CC-BY-4.0, at the recipient's option. Mathematical provenance,\ncited papers, external dependencies, file-specific exceptions, and generated\nrelease archives are explained in [LICENSING.md](LICENSING.md); the project\nlicence does not relicense third-party material or claim ownership of the\nunderlying mathematical results.\n\nMachine-readable citation information for this formalization is provided in\n[CITATION.cff](CITATION.cff). The canonical source repository is\n[kimihiro64/Robin1984](https://github.com/kimihiro64/Robin1984).\n\nPalomar reviews a fixed commit from a public GitHub repository, identified by\nits full 40-character SHA. See the current\n[submission instructions](https://palomar-registry.org/how-to-submit) and use\nthe [Palomar submission form](https://submit.palomar-registry.org/) only after\nall checks pass and the exact commit has been pushed.\n",1795981078362]