SunConj_Basic: shared definitions
DefinitionSunConj_BasicThis file fixes the special functions and constants shared by every statement of the Sun-conjecture project (Z.-W. Sun, arXiv:2603.29973v3).
Constants.
- (Apéry's constant), as the real series .
- The Kronecker symbol : if , if , if is even.
- . The term is .
- .
Each is the real infinite sum (tsum) of an absolutely convergent series, so it equals the ordinary limit of partial sums.
Gamma quotients (Sun, Conjectures 5.2, 5.3, 5.6, 5.8), defined for every real by
Formalization Note Sun defines on , on , and on . In Lean the formulas are total functions on , using Mathlib's Real.Gamma and real powers. Outside Sun's domain they take whatever value the total operations give (division by zero is ). Every statement evaluates them, or their derivatives, only at integers , where the function near agrees with Sun's. Catalan's constant is not defined here: the statements use Prove2Me's published FCP.Constants.catalanConstant, which is .
import Mathlib.Analysis.SpecialFunctions.Gamma.Basic
import Mathlib.Analysis.SpecialFunctions.Pow.Real
import Mathlib.Topology.Algebra.InfiniteSum.Real
namespace SunConj
noncomputable section
/-- Apéry's constant `ζ(3) = ∑_{n ≥ 1} 1 / n^3`. -/
def zeta3 : ℝ := ∑' n : ℕ, 1 / ((n : ℝ) + 1) ^ 3
/-- The Kronecker symbol `(-8/n)`: `1` for `n ≡ 1, 3 (mod 8)`, `-1` for `n ≡ 5, 7 (mod 8)`,
and `0` for even `n`. -/
def chiNeg8 (n : ℕ) : ℝ :=
if n % 8 = 1 ∨ n % 8 = 3 then 1 else if n % 8 = 5 ∨ n % 8 = 7 then -1 else 0
/-- `L_{-8}(2) = ∑_{n ≥ 1} (-8/n) / n^2` (the `n = 0` term is `0`). -/
def LNeg8Two : ℝ := ∑' n : ℕ, chiNeg8 n / (n : ℝ) ^ 2
/-- `L_{-3}(2) = ∑_{n ≥ 0} (1/(3n+1)^2 - 1/(3n+2)^2)`. -/
def LNeg3Two : ℝ := ∑' n : ℕ, (1 / (3 * (n : ℝ) + 1) ^ 2 - 1 / (3 * (n : ℝ) + 2) ^ 2)
/-- Sun's `g(x)` in Conjecture 5.2 of arXiv:2603.29973v3. -/
def g2 (x : ℝ) : ℝ :=
(74 * x + 7) * Real.Gamma (6 * x + 1) /
((2 * x + 1) * (4096 : ℝ) ^ x * Real.Gamma (3 * x + 1) * Real.Gamma (x + 1) ^ 3)
/-- Sun's `g(x)` in Conjecture 5.3 of arXiv:2603.29973v3. -/
def g3 (x : ℝ) : ℝ :=
(27 * x ^ 2 + 18 * x + 2) * Real.Gamma (3 * x + 1) ^ 2 /
((2 * x + 1) * (729 : ℝ) ^ x * Real.Gamma (x + 1) ^ 4 * Real.Gamma (2 * x + 1))
/-- Sun's `g(x)` in Conjecture 5.6 of arXiv:2603.29973v3. -/
def g6 (x : ℝ) : ℝ :=
(48 * x ^ 2 + 32 * x + 3) * Real.Gamma (4 * x + 1) ^ 2 /
((2 * x + 1) * (4096 : ℝ) ^ x * Real.Gamma (x + 1) ^ 2 * Real.Gamma (2 * x + 1) ^ 3)
/-- Sun's `g(x)` in Conjecture 5.8 of arXiv:2603.29973v3. -/
def g8 (x : ℝ) : ℝ :=
(88 * x ^ 3 + 108 * x ^ 2 + 36 * x + 3) * Real.Gamma (4 * x + 1) ^ 2 /
((3 * x + 1) * (3 * x + 2) * (1024 : ℝ) ^ x * Real.Gamma (x + 1) ^ 3 *
Real.Gamma (2 * x + 1) * Real.Gamma (3 * x + 1))
end
end SunConj
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5-fast
The file defines, in the namespace SunConj, four real constants and four real functions of a real variable. All are noncomputable real-valued definitions; nothing is asserted (no theorem), so the content is purely what each symbol denotes. Throughout, is Mathlib's real Gamma function, which is total: at its poles it takes the junk value . Division is total with . For the real power is (smooth and positive). An infinite sum ("tsum") means the sum of the family if it is (unconditionally) summable, and the junk value otherwise.
1. zeta3.
The family is absolutely summable, so the tsum equals this convergent series (no junk value arises).
2. chiNeg8. For a natural number ,
3. LNeg8Two.
The term is , which is by the division-by-zero convention (and also ). The remaining terms are bounded in absolute value by , so the family is summable and the tsum is the ordinary series .
4. LNeg3Two.
Each bracket is positive and , so the family is summable and the tsum is this convergent series. (Note: summed as a series of paired brackets, indexed from .)
5. g2. For real ,
6. g3. For real ,
7. g6. For real ,
8. g8. For real ,
In each , the whole denominator is a single product, and the whole numerator is divided by it (the code's parenthesization is exactly as displayed). These are total functions on all of : wherever a Gamma argument is a non-positive integer, that Gamma factor is replaced by , and wherever the denominator vanishes (a polynomial factor , , vanishing, or a denominator Gamma at a pole), the value of is . These junk points all lie at negative : the closest one to the origin is for (pole of ), for , for , and for (pole of ; also from and ). On an open neighbourhood of every Gamma factor is finite and positive and every polynomial factor in the denominator is positive, so each coincides there with the genuine smooth (real-analytic) expression, and derivatives of any order computed at points are the classical ones.