This is a Lean formalization of Qi-Yang Zheng's square-root lower bound for the number of odd values of the partition function, the appendix to Ono and Swaminathan's Parity of the partition function in quadratic progressions.
Write N_odd(X) for #{0 ≤ n ≤ X : p(n) is odd}. Assuming the odd half of
Ono–Swaminathan's parity theorem, and nothing else:
liminf_{X → ∞} N_odd(X) / √X ≥ 243 / (64 √6 π⁵), the limit inferior over realX.- Equivalently, for every
ε > 0the ratioN_odd(X) / √Xis eventually at least243 / (64 √6 π⁵) - ε.
The class-number average the proof rests on is proved here, not assumed.
See §Formal Challenge for a formal certificate.
This depends on Mathlib.
A formal challenge file certifying that this repository does formalize the results
claimed above is located at Challenge/Basic.lean. This file only
depends on the dependency above. It contains formal statements of
§Main Results with sorry as proof.
This repository can be verified against the formal challenge with the Lean
comparator on a Linux machine. First, follow the instructions in
https://github.com/leanprover/comparator to install comparator. Then, run the following command:
lake env comparator Comparator/comparator.json
This repository has been locally verified with the comparator.