Download lean/OAI/NumberTheory/CubicMoment/Angular/AngularAlgebra.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 4.31 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/NumberTheory/CubicMoment/Angular/AngularAlgebra.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/NumberTheory/CubicMoment/Angular/AngularAlgebra.lean
-
curl -L -o AngularAlgebra.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/NumberTheory/CubicMoment/Angular/AngularAlgebra.lean
4.31 kB
Lean 4 · 16
declarations statementsfull
20The bias constant in the manuscript is strictly positive.
theorem cStar_pos : 0 < cStar := by proof · 2 lines
unfold cStar positivity
25The scale of the first moment is positive beyond one.
theorem firstMomentScale_pos {X : ℝ} (hX : 1 < X) : 0 < firstMomentScale X := by proof · 2 lines
unfold firstMomentScale
exact div_pos (Real.rpow_pos_of_pos (by linarith) _) (Real.log_pos hX)@[simp] theorem theta_zero (a : Eisenstein) : theta 0 a = 1 := by proof · 1 line
simp [theta]
@[simp] theorem theta_one (ℓ : ℤ) : theta ℓ (1 : Eisenstein) = 1 := by proof · 1 line
simp [theta]
@[simp] theorem theta_mul (ℓ : ℤ) (a b : Eisenstein) :
theta ℓ (a * b) = theta ℓ a * theta ℓ b := by proof · 2 lines
simp only [theta, Subalgebra.coe_mul, norm_mul, Complex.ofReal_mul]
rw [mul_div_mul_comm, mul_zpow]@[simp] theorem norm_theta {a : Eisenstein} (ha : a ≠ 0) (ℓ : ℤ) :
‖theta ℓ a‖ = 1 := by proof · 2 lines
have ha' : (a : ℂ) ≠ 0 := fun h => ha (Subtype.ext h)
simp [theta, norm_zpow, ha']@[simp] theorem norm_theta_mul {a : Eisenstein} (ha : a ≠ 0) (ℓ : ℤ) (z : ℂ) :
‖theta ℓ a * z‖ = ‖z‖ := by proof · 1 line
rw [norm_mul, norm_theta ha, one_mul]
@[simp] theorem theta_add (ℓ m : ℤ) {a : Eisenstein} (ha : a ≠ 0) :
theta (ℓ + m) a = theta ℓ a * theta m a := by proof · 2 lines
have ha' : (a : ℂ) ≠ 0 := fun h => ha (Subtype.ext h)
exact zpow_add₀ (div_ne_zero ha' (by exact_mod_cast norm_ne_zero_iff.mpr ha')) _ _@[simp] theorem primeCutoffSum_add (f g : Eisenstein → ℂ) (X : ℝ) :
primeCutoffSum (fun p => f p + g p) X =
primeCutoffSum f X + primeCutoffSum g X := by proof · 1 line
simp only [primeCutoffSum_eq_sum, Finset.sum_add_distrib]@[simp] theorem primeCutoffSum_sub (f g : Eisenstein → ℂ) (X : ℝ) :
primeCutoffSum (fun p => f p - g p) X =
primeCutoffSum f X - primeCutoffSum g X := by proof · 1 line
simp only [primeCutoffSum_eq_sum, Finset.sum_sub_distrib]@[simp] theorem primeCutoffSum_const_mul (z : ℂ) (f : Eisenstein → ℂ) (X : ℝ) :
primeCutoffSum (fun p => z * f p) X = z * primeCutoffSum f X := by proof · 1 line
simp only [primeCutoffSum_eq_sum, Finset.mul_sum]69The elementary prime model in the fixed angular mode
ℓ.
def angularPrimeModel (ℓ : ℤ) (p : Eisenstein) : ℂ := body · 1 line
theta ℓ p * (cStar * norm p ^ (-1 / 6 : ℝ) : ℝ)73The prime Gauss-sum moment in the fixed angular mode
ℓ.
def angularPrimeMoment (ℓ : ℤ) (X : ℝ) : ℂ := body · 1 line
primeCutoffSum (fun p => theta ℓ p * gaussAtPrime p) X77The difference between the Gauss-sum moment and its elementary model.
def angularPrimeDifference (ℓ : ℤ) (X : ℝ) : ℂ := body · 2 lines
primeCutoffSum (fun p => theta ℓ p *
(gaussAtPrime p - (cStar * norm p ^ (-1 / 6 : ℝ) : ℝ))) Xtheorem angularPrimeDifference_eq_sub (ℓ : ℤ) (X : ℝ) :
angularPrimeDifference ℓ X =
angularPrimeMoment ℓ X - primeCutoffSum (angularPrimeModel ℓ) X := by proof · 2 lines
simp only [angularPrimeDifference, angularPrimeMoment, mul_sub, primeCutoffSum_sub] rfl
89Angular comparison and the model prime-number theorem imply angular cancellation by subtraction.
theorem angularCancellation_of_comparison
(hcomparison : AngularComparisonStatement)
(hmodel : ∀ ℓ : ℤ, ℓ ≠ 0 → Asymptotics.IsLittleO Filter.atTop
(primeCutoffSum (angularPrimeModel ℓ)) firstMomentScale) :
AngularCancellationStatement := by proof · 11 lines
intro ℓ hℓ
have h := (hcomparison ℓ).add (hmodel ℓ hℓ)
have heq : (fun X => angularPrimeDifference ℓ X +
primeCutoffSum (angularPrimeModel ℓ) X) = angularPrimeMoment ℓ := by
funext X
rw [angularPrimeDifference_eq_sub, sub_add_cancel]
change Asymptotics.IsLittleO Filter.atTop (angularPrimeMoment ℓ) firstMomentScale
change Asymptotics.IsLittleO Filter.atTop
(fun X => angularPrimeDifference ℓ X + primeCutoffSum (angularPrimeModel ℓ) X)
firstMomentScale at h
rwa [heq] at hOutline
- theorem
cStar_pos20 - theorem
firstMomentScale_pos25 - theorem
theta_zero29 - theorem
theta_one32 - theorem
theta_mul35 - theorem
norm_theta40 - theorem
norm_theta_mul45 - theorem
theta_add49 - theorem
primeCutoffSum_add54 - theorem
primeCutoffSum_sub59 - theorem
primeCutoffSum_const_mul64 - def
angularPrimeModel69 - def
angularPrimeMoment73 - def
angularPrimeDifference77 - theorem
angularPrimeDifference_eq_sub81 - theorem
angularCancellation_of_comparison89