module public import ConditionalGoldbach.Proofs.VariableQuadratic public import ConditionalGoldbach.Proofs.ComponentNormBounds public section set_option autoImplicit false noncomputable section open Set namespace ConditionalGoldbach lemma spectralScale_div_sqrt_width_eq (N : ℕ) (h : ℕ → ℝ) (hN : 0<(N:ℝ)) (hS : 0.mpr apply hbound.trans apply (le_div_iff₀ (by positivity : 0<2*Real.sqrt (η*(1-η)))).mpr apply (sq_le_sq₀ (by positivity) hδ.le).mp have hsqrt : Real.sqrt (η*(1-η))^2=η*(1-η) := Real.sq_sqrt (mul_pos hη (by linarith)).le have he : (C*Real.log N^2)^2*4*η=spectralScale N^2/4 := by rw [spectralScale_sq N hn hSp.le hln.le] dsimp [η] field_simp; ring calc _ = (C*Real.log N^2)^2*4*Real.sqrt (η*(1-η))^2 := by ring _ = ((C*Real.log N^2)^2*4*η)*(1-η) := by rw [hsqrt]; ring _ = (spectralScale N^2/4)*(1-η) := by rw [he] _ ≤ spectralScale N^2 := by nlinarith [sq_nonneg (spectralScale N)] end ConditionalGoldbach