Skip to main content
AlexKontorovich/PrimeNumberTheoremAnd
Source indexedtheorem · leanprover/lean4:v4.32.0

integral_evaluation

PrimeNumberTheoremAnd.MediumPNT · PrimeNumberTheoremAnd/MediumPNT.lean:1645 to 1715

Mathematical statement

Exact Lean statement

theorem integral_evaluation (x : ℝ) (T : ℝ) (T_large : 3 < T) :
    ∫ (t : ℝ) in Iic (-T), (‖x + t * I‖ ^ 2)⁻¹ ≤ T⁻¹

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
theorem integral_evaluation (x : ) (T : ) (T_large : 3 < T) :    ∫ (t : ) in Iic (-T), (‖x + t * I‖ ^ 2)⁻¹  T⁻¹ := by  have T00 :  (x t : ), t^2  ‖x + t * I‖^2 := by    intro x t    rw [Complex.norm_add_mul_I x t]    ring_nf    rw [Real.sq_sqrt _]    · simp only [le_add_iff_nonneg_right]; positivity    · positivity   have T0 :  (x t : ), t  0  (‖x + t * I‖^2)⁻¹  (t^2)⁻¹ := by    intro x t hyp    have U0 : 0 < t^2 := by positivity    have U1 : 0 < ‖x + t * I‖^2 := by      rw [Complex.norm_add_mul_I x t,        Real.sq_sqrt _]       · positivity      · positivity    rw [inv_le_inv₀ U1 U0]    exact (T00 x t)   have T1 : (fun (t : )  (‖x + t * I‖^2)⁻¹) ᶠ[ae (volume.restrict (Iic (-T)))] (fun (t : )  (t^2)⁻¹) := by    unfold Filter.EventuallyLE    unfold Filter.Eventually    simp_all only [ne_eq, measurableSet_Iic, ae_restrict_eq]    refine mem_inf_of_left ?_    · refine Filter.mem_sets.mp ?_      · have U :  {x_1 :  | x_1  0}  {x_1 :  | (‖x + x_1 * I‖ ^ 2)⁻¹  (x_1 ^ 2)⁻¹}  := by          rw [Set.setOf_subset_setOf]          intro t hyp_t          exact T0 x t hyp_t        have U1 : {x_1 :  | x_1  0} = (univ \ {0}) := by          apply Set.ext          intro x          simp_all only [ne_eq, setOf_subset_setOf, not_false_eq_true, implies_true,            mem_setOf_eq, Set.mem_sdiff, mem_univ, mem_singleton_iff, true_and]         rw [U1] at U        exact ae_volume_of_contains_compl_singleton_zero _ U   have T3 : Integrable (fun (t : )  (t^2)⁻¹) (volume.restrict (Iic (-T))) := by    have D3 := integrableOn_Ioi_rpow_of_lt (by norm_num : (-2 : ) < -1)      (by linarith : 0 < T) |>.comp_neg    simp only [rpow_neg_ofNat, Int.reduceNeg, zpow_neg, neg_Ioi] at D3    have D4 :=      (integrableOn_Iic_iff_integrableOn_Iio'        (by          refine EReal.coe_ennreal_ne_coe_ennreal_iff.mp ?_          simp_all only [ne_eq, measurableSet_Iic, ae_restrict_eq, measure_singleton,            EReal.coe_ennreal_zero, EReal.coe_ennreal_top, EReal.zero_ne_top, not_false_eq_true])).mpr D3    simp_all only [ne_eq, measurableSet_Iic, ae_restrict_eq]    unfold IntegrableOn at D4    have eq_fun : (fun (x : )  ((-x)^2)⁻¹) = fun x  (x^2)⁻¹ := by      funext x      simp_all only [even_two, Even.neg_pow]    simp_all only [even_two, Even.neg_pow]    norm_cast at D4    simp_all only [even_two, Even.neg_pow]   calc    _  ∫ (t : ) in Iic (-T), (t^2)⁻¹  := by      apply MeasureTheory.integral_mono_of_nonneg _ T3 T1      filter_upwards [] with x      simp    _ = _ := by      rw [ integral_comp_neg_Ioi]      conv => lhs; arg 2; ext x; rw [show ((-x) ^ 2)⁻¹ = x ^ (-2 : ) by simp [zpow_ofNat]]      rw[integral_Ioi_rpow_of_lt (by norm_num) (by linarith)]      ring_nf      rw [rpow_neg_one]