pith:G3TA4ONP
A formal proof of the Ramanujan--Nagell theorem in Lean 4
A complete Lean 4 formalization establishes that x squared plus 7 equals 2 to the n only for the five listed solution pairs.
arxiv:2604.09808 v2 · 2026-04-10 · math.NT · cs.LO
Add to your LaTeX paper
\usepackage{pith}
\pithnumber{G3TA4ONPJBQAFWVDTMCUHA2RUV}
Prints a linked badge after your title and injects PDF metadata. Compiles on arXiv. Learn more · Embed verified badge
Record completeness
Claims
the only integer solutions to the Diophantine equation x^2 + 7 = 2^n are (n,x) in {(3,±1),(4,±3),(5,±5),(7,±11),(15,±181)}
The Lean formalization accurately captures the mathematical content of the textbook proof without omissions or errors in the encoding of algebraic number theory concepts such as the ring of integers, class number, and unit group.
A complete Lean 4 formalization proves the Ramanujan-Nagell theorem: the only integer solutions to x^2 + 7 = 2^n are the five listed pairs.
Receipt and verification
| First computed | 2026-06-02T03:05:05.461384Z |
|---|---|
| Builder | pith-number-builder-2026-05-17-v1 |
| Signature | Pith Ed25519
(pith-v1-2026-05) · public key |
| Schema | pith-number/v1.0 |
Canonical hash
36e60e39af486002daa39b05438351a5765f8347ef06da40fdeda0567d1a22ee
Aliases
· · · · ·Agent API
Verify this Pith Number yourself
curl -sH 'Accept: application/ld+json' https://pith.science/pith/G3TA4ONPJBQAFWVDTMCUHA2RUV \
| jq -c '.canonical_record' \
| python3 -c "import sys,json,hashlib; b=json.dumps(json.loads(sys.stdin.read()), sort_keys=True, separators=(',',':'), ensure_ascii=False).encode(); print(hashlib.sha256(b).hexdigest())"
# expect: 36e60e39af486002daa39b05438351a5765f8347ef06da40fdeda0567d1a22ee
Canonical record JSON
{
"metadata": {
"abstract_canon_sha256": "082d1768416fc47a4b8db4b1c7d11f9a900de12120282a0cddbcb1c1cdb3ec9c",
"cross_cats_sorted": [
"cs.LO"
],
"license": "http://arxiv.org/licenses/nonexclusive-distrib/1.0/",
"primary_cat": "math.NT",
"submitted_at": "2026-04-10T18:32:19Z",
"title_canon_sha256": "0329556da7a82069f2eb0c4cd80bdaca627db7081b24722be83a623294e6005d"
},
"schema_version": "1.0",
"source": {
"id": "2604.09808",
"kind": "arxiv",
"version": 2
}
}