Phases of Muoncompanion
Section SH · Large-batch drift for a general spectrum
Proved in Lean
Lemma SH.6 (Elementary integrals)
One has
\[ \int_0^1\frac{\sqrt y\,\dif y}{(1+y)^2}=\frac\pi4-\frac12,\qquad \int_1^\infty\frac{\sqrt y\,\dif y}{(1+y)^2}=\frac\pi4+\frac12,\qquad \int_0^1\frac{y\,\dif y}{(1+y)^2}=\log2-\frac12 . \]
In particular \(\varpi\) is a probability density on \((0,\infty)\), and for \(\mu>0\)
\[ \frac{\sqrt2}{\pi}\,\mu\int_0^\infty\frac{\sqrt c\,\dif c}{(c+\mu)^2}=\sqrt{\mu/2}. \]
Proof.
The first two integrals have the antiderivative \(\arctan\sqrt y-\sqrt y/(1+y)\). Its derivative is
\[ \frac{1}{2\sqrt y\,(1+y)}-\frac{1-y}{2\sqrt y\,(1+y)^2}=\frac{\sqrt y}{(1+y)^2}, \]
and it takes the values \(0\), \(\pi/4-1/2\) and \(\pi/2\) at \(y=0\), \(y=1\) and \(y=\infty\). The third integral uses \(y(1+y)^{-2}=(1+y)^{-1}-(1+y)^{-2}\). The sum of the first two is \(\pi/2\), which is the normalization of \(\varpi\). The last identity is the substitution \(c=\mu y\) together with \(\int_0^\infty\sqrt y\,(1+y)^{-2}\,\dif y=\pi/2\).

Used by

Lean

Proved in Lean
Muon.Oversampled.lem_app_os_integrals_i source
theorem lem_app_os_integrals_i
 :
    ∫ y in Icc (0 : ℝ) 1, Real.sqrt y / (1 + y) ^ 2 = Real.pi / 4 - 1 / 2 := by
Muon.Oversampled.lem_app_os_integrals_ii source
theorem lem_app_os_integrals_ii
 :
    ∫ y in Ioi (1 : ℝ), Real.sqrt y / (1 + y) ^ 2 = Real.pi / 4 + 1 / 2 := by
Muon.Oversampled.lem_app_os_integrals_iii source
theorem lem_app_os_integrals_iii
 :
    ∫ y in Icc (0 : ℝ) 1, y / (1 + y) ^ 2 = Real.log 2 - 1 / 2 := by
Muon.Oversampled.lem_app_os_integrals_iv source
theorem lem_app_os_integrals_iv
 :
    (∀ y : ℝ, 0 < y → 0 ≤ varpi y) ∧ ∫ y in Ioi (0 : ℝ), varpi y = 1 := by
Muon.Oversampled.lem_app_os_integrals_v source
theorem lem_app_os_integrals_v
    {mu : ℝ} (hmu : 0 < mu) :
    Real.sqrt 2 / Real.pi * mu * ∫ c in Ioi (0 : ℝ), Real.sqrt c / (c + mu) ^ 2
      = Real.sqrt (mu / 2) := by
Muon.Oversampled.varpiMeasure source
def varpiMeasure : Measure ℝ :=
Muon.Oversampled.varpiMeasure_univ source
theorem varpiMeasure_univ : varpiMeasure Set.univ = 1 := by
Muon.Oversampled.varpiMeasure_isProbabilityMeasure source
instance varpiMeasure_isProbabilityMeasure : IsProbabilityMeasure varpiMeasure :=