A Lean 4 Formalization of Zakharov's Theorem on Sums of Two Palindromes (Ben Green's Open Problem 95)

Technical note (version 2) and Lean 4 source: a kernel-checked formalization in Lean 4 with Mathlib of D. Zakharov's theorem (2024) that for every base g ≥ 2 the number of n < X that are sums of two base-g palindromes is at most X/(log X)^c for some c > 0 and all large X. This answers a question of Cilleruelo, Luca and Baxter that also appears as Problem 95 in Ben Green's list of open problems. The note covers the formal-conjectures declarations green_95 and green_95.variants.zakharov (the other targets of the upstream file, three palindromes and the lower bound, are not covered). The mathematics is Zakharov's (arXiv:2402.10808). The contribution is the formalization. Not the first public Lean proof: open-math-agents pull requests #3689 (green_95.variants.zakharov) and #3699 (green_95), by another contributor, were merged at 2:01 and 2:04 AM ET on 2026-11-27, before the public timestamp of this work; those proofs were not compiled or compared with ours. The upstream formal-conjectures file still has these declarations as sorry with no formal_proof link as of 2026-11-27. Verification receipt (Lean 4.33.1, Mathlib 0df444a): the single published file (2,240 lines; the note describes the 2,168-line standalone development from which it is assembled together with the upstream bridge) compiles with exit code 0, giving only style-linter warnings; every declaration depends only on propext, Classical.choice, Quot.sound; type_of% bridges to the upstream statements pass. AI disclosure: the Lean file and a first draft of the note were produced by AI agents operated by Avon Labs (Gemini-based lead and worker agents); the note was revised with AI assistance (Claude Sonnet 5.5) and audited by a second AI model (Claude Opus 5.5) acting as lead editor, including an independent recompile. No claim is made that a human has read the Lean source line by line. It has not been refereed. No human mathematician has reviewed the mathematics or the Lean sources. All mathematics belongs to the cited original authors. Files: the note (PDF, version 2, SHA-256 18172e0a814b34a1f27d425b7c990783adc2a0d8184f5f611714ca1c9cfd5239) and a zip of the Lean file with the receipts, identical to the files in GitHub release v1.2.0-green95. Licence: this deposit is tagged Apache-2.0, the licence the GitHub repository declares for everything it contains (Lean sources, receipts and paper files). The upstream statement definitions come from google-deepmind/formal-conjectures (Apache-2.0).

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-27
DOI
https://doi.org/10.5281/zenodo.24609043
Citations
1
Primary Topic
Analytic Number Theory Research
Type
article
Field-Weighted Citation Impact
2.08
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

A Lean 4 Formalization of Zakharov's Theorem on Sums of Two Palindromes (Ben Green's Open Problem 95)

Ronak Patel
1 citations
Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
2.08
article

A Lean 4 Formalization of Zakharov's Theorem on Sums of Two Palindromes (Ben Green's Open Problem 95)

Ronak Patel
article en
1 citations

Abstract

Technical note (version 2) and Lean 4 source: a kernel-checked formalization in Lean 4 with Mathlib of D. Zakharov's theorem (2024) that for every base g ≥ 2 the number of n < X that are sums of two base-g palindromes is at most X/(log X)^c for some c > 0 and all large X. This answers a question of Cilleruelo, Luca and Baxter that also appears as Problem 95 in Ben Green's list of open problems. The note covers the formal-conjectures declarations green_95 and green_95.variants.zakharov (the other targets of the upstream file, three palindromes and the lower bound, are not covered). The mathematics is Zakharov's (arXiv:2402.10808). The contribution is the formalization. Not the first public Lean proof: open-math-agents pull requests #3689 (green_95.variants.zakharov) and #3699 (green_95), by another contributor, were merged at 2:01 and 2:04 AM ET on 2026-11-27, before the public timestamp of this work; those proofs were not compiled or compared with ours. The upstream formal-conjectures file still has these declarations as sorry with no formal_proof link as of 2026-11-27. Verification receipt (Lean 4.33.1, Mathlib 0df444a): the single published file (2,240 lines; the note describes the 2,168-line standalone development from which it is assembled together with the upstream bridge) compiles with exit code 0, giving only style-linter warnings; every declaration depends only on propext, Classical.choice, Quot.sound; type_of% bridges to the upstream statements pass. AI disclosure: the Lean file and a first draft of the note were produced by AI agents operated by Avon Labs (Gemini-based lead and worker agents); the note was revised with AI assistance (Claude Sonnet 5.5) and audited by a second AI model (Claude Opus 5.5) acting as lead editor, including an independent recompile. No claim is made that a human has read the Lean source line by line. It has not been refereed. No human mathematician has reviewed the mathematics or the Lean sources. All mathematics belongs to the cited original authors. Files: the note (PDF, version 2, SHA-256 18172e0a814b34a1f27d425b7c990783adc2a0d8184f5f611714ca1c9cfd5239) and a zip of the Lean file with the receipts, identical to the files in GitHub release v1.2.0-green95. Licence: this deposit is tagged Apache-2.0, the licence the GitHub repository declares for everything it contains (Lean sources, receipts and paper files). The upstream statement definitions come from google-deepmind/formal-conjectures (Apache-2.0).

Zenodo (CERN European Organization for Nuclear Research)
Avon (United States) (US)
Openalex Percentile: Top 21%
Analytic Number Theory Research
2.08
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon