module import Mathlib.Data.Rat.Cast.OfScientific public import New.Reduction.PrimeSums import New.Determinant.Twist.LongForms import New.Reduction.ShortAndEnough /-! # The main inequality One covolume, corrected by an index, is bounded from both sides. Write `dim` for the dimension of the target (`targetDim`), `mainAmount` for the main amount and `rem` for the total remainder (`totalRemainder`), weighted sums over primes less their expected values. Theorems A and B give a family of `n ≤ dim` target forms, a bound `V` for the logarithm of the squared covolume of its lifts (`TwistedLattice.CovolumeLe`) and a bound `δ` for its index (`TwistedLattice.IndexLe`). Up to errors, mainAmount ≤ (V + 2 δ) / dim ≤ mainAmount - (n / dim) m rem, where the lower bound is Theorem C. The main amount cancels. Notions from other files: * `Data P`: the data for the parameters `P` (a modulus `q₀` and a prime `d`). They bundle scales `x`, `x₁`, `b` in prescribed ranges (`D.logB = log b`), the number `D.m` of lifts, a set of places of the CM field `D.E`, the `b`-places, which carry the weight `b`, and primes for the levels. `D.a = x b`, and `D.f` is the number of infinite places of `D.E`. * `D.normalizedPoincare g`: the translate `g 𝔭` by `g : D.chosenGL` of a fixed linear map `𝔭` from the source `D.ramifiedSourceForms` to the target `D.targetForms`. * `D.integralRamified`: the source forms that are integral at every `ι : PrimePadicIso`. * `D.errorUnit`: the unit of loss `f a log³ b`. ## The inputs * Theorem A: (a) `span_short_integralRamified_eq_top` (size) and (b) `indexLe_normalizedPoincare` (index), both in `New.Reduction.ShortAndEnough`. * Theorem B: `enough_forms` in `New.Reduction.ShortAndEnough`. * Theorem C: `integral_forms_long` in `New.Determinant.Twist.LongForms`, from a twist for each prime (`TwistedLattice.covolume_add_index_nonneg`) and the height of `Z(1) / Z(ξ_ι)` (`heightLe_chainDeterminant_one_div`). * Hadamard's bound for the covolume: `TwistedLattice.covolumeLe_of_normSqAt_le`. * The sign of the main amount: `mainAmount_nonneg`. ## What cancels, and where * The main amount, between the upper and the lower bound: the comparison step of `star_inequality`. * The gains `∑ gain_l log l` in the size of the chain, against `log c_B`: `span_short_integralRamified_eq_top`. * The constant `c₁ = (logDerivMean d 1 1).re`, between the period and the expected value `a (log (a / κ̄) + c₁)` of the prime sums: `TauCeti.OneSidedBound.jetSize_sub_mainPrimeSum_le`, used in the level estimate below. * The excesses `a log (κ̄ M rd_E / 2π)` of the `m` lifts, against `a log N`, up to `O(a log b)`. Here `κ̄` is the geometric mean of the weights `κ` over the `f` places and `rd_E` is the root discriminant of `E`: `mul_jetSize_sub_mainPrimeSum_sub_le`. * The main terms `log x`, `log x₁` and `c₁` of the prime sums, against their expected value: `totalRemainder_eq`. * A constant that depends on `q₀`, between the two cut-offs: `sum_aPlaces_primeSum`. ## The errors per dimension | source | where | amount | |----------|-------------------|-------------------------------------| | size | Theorem A (a) | `f a log⁴ b` | | index | Theorems A (b), B | `20 log (1 + 2 b²) · f a log³ b` | | covolume | Theorem C | `3 f a log⁴ b` | The table includes both index charges. The chosen forms cover at least seven eighths of the target dimension. The three charges then give `m rem ≤ 56 f a log⁴ b`, and the admissible scale has `56 ≤ log b` by `New.Reduction.Data.Sizes`. ## Relation to the literature Earlier bounds for sums over primes by size against divisibility: Pritsker, The Gelfond–Schnirelman method in prime number theory, 2005; Granville–Stark, ABC implies no Siegel zeros for L-functions of characters with negative discriminant, 2000; Bombieri, Counting points on curves over finite fields, Sém. Bourbaki 430, 1973; van Frankenhuijsen, The Riemann hypothesis for function fields over a finite field, 2008. -/ @[expose] public section namespace New open Real Finset Data Module Submodule /-- **Main inequality.** For the data `D` we have `m rem ≤ f a log⁵ b`. The parameters `P` are a multiple `q₀` of `18480` and a prime `d ≡ q₀/2 - 1 mod q₀`. The scales are integers with `(log b) ^ 100 ≤ x`, `x ^ 1000 ≤ x₁`, `x₁ ^ 100 ≤ b` and `log log b ≥ 100 P.constantBound`. -/ theorem star_inequality {P : Parameters} (D : Data P) : D.m * D.totalRemainder ≤ D.f * D.a * D.logB ^ 5 := by -- Choose many independent images of short integral forms, bound their covolume and index from -- above, and compare with the lower bound `integral_forms_long`. obtain ⟨h_dim_pos, t, h_translate_budget, h_span_dimension⟩ : 0 < D.targetDim ∧ ∃ t : Finset D.chosenGL, #t * finrank ℂ D.ramifiedSourceForms ≤ 5 * D.targetDim * log (1 + 2 * D.b ^ 2) ∧ (1 - 4 / D.b ^ 2) * D.targetDim ≤ finrank ℂ ↥(⨆ g ∈ t, (D.normalizedPoincare g).range) := D.enough_forms let sizeError : ℝ := D.f * D.a * D.logB ^ 4 let logNormBound : ℝ := D.mainAmount - D.m * D.totalRemainder + sizeError let indexBudgetPerDim : ℝ := 10 * log (1 + 2 * D.b ^ 2) * D.errorUnit let short : Set D.ramifiedSourceForms := {φ ∈ D.integralRamified | ∀ (g : D.chosenGL) (σ : ℂ ≃+* ℂ), (D.Θ 1 (D.normalizedPoincare g φ)).normSqAt σ ≤ exp logNormBound} have h_short_span : span ℂ short = ⊤ := D.span_short_integralRamified_eq_top -- A + B: take a basis from the images of short source forms under the chosen translates. obtain ⟨n, y, h_indep, h_near_full_rank, h_image_short⟩ : ∃ (n : ℕ) (y : Fin n → D.targetForms), LinearIndependent ℂ y ∧ (1 - 4 / D.b ^ 2) * D.targetDim ≤ n ∧ ∀ i : Fin n, ∃ g ∈ t, y i ∈ D.normalizedPoincare g '' short := by let images : Set D.targetForms := ⋃ g ∈ t, D.normalizedPoincare g '' short have span_eq : span ℂ images = ⨆ g ∈ t, (D.normalizedPoincare g).range := by simp only [images, span_iUnion₂, span_image, h_short_span, Submodule.map_top] obtain ⟨y, hy_mem, -, h_indep⟩ := exists_fun_fin_finrank_span_eq ℂ images refine ⟨finrank ℂ (span ℂ images), y, h_indep, by rwa [span_eq], fun i ↦ ?_⟩ simpa only [images, Set.mem_iUnion, exists_prop] using hy_mem i have hn_le : (n : ℝ) ≤ D.targetDim := by simpa using h_indep.fintype_card_le_finrank -- Covolume: each form has squared length at most `exp logNormBound`. have h_covolume_upper : D.targetLattice.CovolumeLe y (n * logNormBound) := by refine TwistedLattice.covolumeLe_of_normSqAt_le fun i σ ↦ ?_ obtain ⟨g, -, φ, ⟨-, hφ_short⟩, hφ_eq⟩ := h_image_short i rw [normSqAt_targetLattice, ← hφ_eq] exact hφ_short g σ -- Index: each translate in `t` contributes `2 · errorUnit` per dimension of the source. have h_errorUnit_nonneg : 0 ≤ D.errorUnit := (HasLogBound.pos D).le have h_index_upper : D.targetLattice.IndexLe y (D.targetDim * indexBudgetPerDim) := by have hy_int (i : Fin n) : ∃ g ∈ t, y i ∈ D.normalizedPoincare g '' D.integralRamified := by obtain ⟨g, hg, φ, ⟨hφ_int, -⟩, hφ_eq⟩ := h_image_short i exact ⟨g, hg, φ, hφ_int, hφ_eq⟩ refine (D.indexLe_normalizedPoincare t hy_int).mono ?_ calc #t * finrank ℂ D.ramifiedSourceForms * (2 * D.errorUnit) ≤ 5 * D.targetDim * log (1 + 2 * D.b ^ 2) * (2 * D.errorUnit) := by grw [h_translate_budget] _ = D.targetDim * indexBudgetPerDim := by ring -- C: apply the lower bound to the same family. The index is counted twice (the two Gram -- variables); the nonnegative main amount cancels using `n ≤ targetDim`. have h_volume_index_lower : D.targetDim * (D.mainAmount - 3 * sizeError) ≤ n * logNormBound + 2 * (D.targetDim * indexBudgetPerDim) := integral_forms_long h_indep h_near_full_rank h_index_upper h_covolume_upper have h_size : 0 ≤ sizeError := (HasLogBound.pos D).le have h_share : (7 / 8 : ℝ) * D.targetDim ≤ n := by refine le_trans ?_ h_near_full_rank gcongr linarith [show 4 / D.b ^ 2 ≤ 1 / 8 from D.le_of_hasLogBound] have h_logs : log (1 + 2 * D.b ^ 2) ≤ (9 / 4 : ℝ) * D.logB := (log_le_iff_le_exp (by positivity)).2 D.le_of_hasLogBound have h_index_cost : indexBudgetPerDim ≤ 45 / 2 * sizeError := calc _ ≤ 10 * ((9 / 4) * D.logB) * D.errorUnit := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left h_logs (by norm_num)) h_errorUnit_nonneg _ = _ := by dsimp [sizeError, Data.errorUnit]; ring have hn_pos : 0 < (n : ℝ) := (mul_pos (by norm_num : (0 : ℝ) < 7 / 8) (Nat.cast_pos.mpr h_dim_pos)).trans_le h_share -- The extra factor of log b absorbs the error per covered dimension. have h_budget : 56 * sizeError ≤ D.f * D.a * D.logB ^ 5 := calc _ ≤ D.logB * sizeError := mul_le_mul_of_nonneg_right (show (56 : ℝ) ≤ D.logB from D.le_of_hasLogBound) h_size _ = _ := by dsimp [sizeError]; ring -- Compare the two bounds after multiplying by the number of independent forms. refine le_trans (le_of_mul_le_mul_left ?_ hn_pos) h_budget change n * (D.m * D.totalRemainder) ≤ n * (56 * sizeError) dsimp only [logNormBound] at h_volume_index_lower have h_main_compare := mul_le_mul_of_nonneg_right hn_le (add_nonneg D.mainAmount_nonneg h_size) linarith only [h_volume_index_lower, h_main_compare, mul_le_mul_of_nonneg_left h_index_cost (Nat.cast_nonneg D.targetDim), mul_le_mul_of_nonneg_right h_share (show 0 ≤ 56 * sizeError by positivity)] end New