Work

Primes at Which Records of OEIS A205531 and A205535 Occur: A Formally Verified Lean 4 Proof of Hasler's Shift Conjecture

Year: 2026
Type: preprint
Abstract: We present a complete, formally verified Lean 4 proof of M. F. Hasler's 2012 conjecture in OEIS A205532: starting from the fifth term 1009, the sequence of record-setting primes for A205531 and A205535 coincides term-by-term with OEIS A102295 shifted by one index, i.e., A205532(n) = A102295(n+1) for all n > 4 (equivalently, Nat.nth IsRecord k = Nat.nth IsA102295 (k + 1) for all k >= 4). Proof architecture: First, a quadratic Frobenius lemma in F_p[X]/(X^2 - cX + 1) shows that for every odd prime p, both polynomial congruences (X+2)^(p+1) = 5 +- 2y (mod p, X^2 -+ yX + 1) hold automatically whenever the Legendre symbol ((y^2 - 4)/p) = -1, collapsing the A205535 test to a pure quadratic nonresidue condition. Second, analyzing y^2 - 4 = (y-2)(y+2) yields a205535(p) = 0 for p = 3 (mod 4), a205535(p) = m(p) - 2 whenever p = 1 (mod 4) and the least quadratic nonresidue m(p) >= 9, and the sharp universal ceiling a205535(p) <= 6 whenever p = 1 (mod 4) and m(p) < 9 (with y = 6 giving 6^2 - 4 = 2^5 when m(p) = 2). Third, kernel-verified Euler-criterion certificates determine the exact prefixes below 242: {2, 13, 61, 109} (4 terms) for A205532 and {3, 5, 17, 73, 241} (5 terms) for A102295. Fourth, these bounds force exact predicate equivalence IsRecord p <-> IsA102295 p for all p >= 242, and a general order-theoretic Nat.nth tail-shift lemma concludes the theorem without requiring Dirichlet's theorem. Verification: The complete 1,212-line Lean 4.33.1 + Mathlib proof (OMA.solution against OMA.S_oeis_a205532.main, PR #185689) contains zero sorry, zero admit, zero axiom, and zero native_decide, independently verified in stdlib-only Python across 303 primes with full quotient-ring polynomial arithmetic (p <= 2,000) and all 85,714 primes up to 1,100,000. Verification, Scope Audit & AI Assistance Disclosure Catalog Tier: Tier 1 — Selected Highlight (Litang Academic Club Curated Archive) (Curated Index · llms.txt) Frozen Third-Party Statement: lean/OMAStatements/S_oeis_a205532.lean (authored by @rantech-za in lefttosolve2/open-math-agents; SHA-256 36bf8f8262325286…, Git blob SHA-1 f4169db0f048e4b8…) Scope & Deviations Audit: Exact match to Hasler's shift conjecture A205532(n) = A102295(n+1) for all n > 4 (0-indexed k >= 4). (Full audit: DEVIATIONS.md) Live Lean 4.33.1 Kernel CI: Continuously typechecked on GitHub-hosted Ubuntu runners against the frozen target statement (runtime audit nonce, zero sorry/axiom/native_decide/metaprogramming tokens, standard axioms propext/Classical.choice/Quot.sound only): lean-verify.yml AI Assistance & Publication Disclosure: Problem exploration, proof decomposition, Lean 4 formalization, and manuscript drafting involved AI/LLM workflows under human curation and verification. Mathematical correctness does not rely on any LLM output and rests strictly on Lean 4.33.1 kernel verification and the independent zero-dependency Python verifier. This open-access Zenodo preprint has not yet undergone traditional journal peer review; linked upstream benchmark PRs on lefttosolve2/open-math-agents are currently open pending maintainer review and cited solely as timestamped provenance.
Language: English
Open Access status: green
OpenAlex ID: W7242524672
Cites:
Cited by:
Related to: