Lean module · Foundations
BanditRLProof.LowerBounds.GaussianMillsRatio
Analytic comparison functions for Chapter 13 Eq. (13.4). Both exact improper-integral bounds compile. Probability rescaling is separate.
Module map
Imports
No project-local imports.
Imported by
BanditRLProof, BanditRLProof.LowerBounds.GaussianHypothesisTesting
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
def
BanditRLProof.LowerBounds.gaussianMillsComparison
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianMillsComparisonReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def gaussianMillsComparison (c x : ℝ) : ℝ
theorem
BanditRLProof.LowerBounds.gaussianMillsComparison_denominator_pos
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianMillsComparison_denominator_posReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianMillsComparison_denominator_pos {c x : ℝ} (hc : 0 < c) : 0 < x + Real.sqrt (x ^ 2 + c)
theorem
BanditRLProof.LowerBounds.hasDerivAt_gaussianMillsComparison
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.hasDerivAt_gaussianMillsComparisonReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem hasDerivAt_gaussianMillsComparison {c x : ℝ} (hc : 0 < c) : HasDerivAt (gaussianMillsComparison c) (-gaussianMillsComparison c x * (2 * x + 1 / Real.sqrt (x ^ 2 + c))) x
theorem
BanditRLProof.LowerBounds.gaussianMillsComparison_lower_derivative_bound
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianMillsComparison_lower_derivative_boundReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianMillsComparison_lower_derivative_bound (x : ℝ) : gaussianMillsComparison 2 x * (2 * x + 1 / Real.sqrt (x ^ 2 + 2)) ≤ Real.exp (-x ^ 2)
theorem
BanditRLProof.LowerBounds.gaussianMillsComparison_pos
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianMillsComparison_posReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianMillsComparison_pos {c : ℝ} (hc : 0 < c) (x : ℝ) : 0 < gaussianMillsComparison c x
theorem
BanditRLProof.LowerBounds.tendsto_gaussianMillsComparison
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.tendsto_gaussianMillsComparisonReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem tendsto_gaussianMillsComparison {c : ℝ} (hc : 0 < c) : Tendsto (gaussianMillsComparison c) atTop (𝓝 0)
theorem
BanditRLProof.LowerBounds.gaussianMills_lower_integral
Compiled
The exact lower half of Lattimore--Szepesvari Eq. (13.4).
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret · Chapter 13: Lower Bounds: Basic Ideas
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianMills_lower_integralReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianMills_lower_integral {x : ℝ} (hx : 0 ≤ x) : Real.exp (-x ^ 2) / (x + Real.sqrt (x ^ 2 + 2)) ≤ ∫ t in Ioi x, Real.exp (-t ^ 2)
theorem
BanditRLProof.LowerBounds.gaussianMills_sign_iff
Compiled
Algebraic sign test for the derivative of the upper comparison error.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianMills_sign_iffReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianMills_sign_iff {c x : ℝ} (hc : 1 < c) (hx : 0 ≤ x) : 0 ≤ x ^ 2 + c - 1 - x * Real.sqrt (x ^ 2 + c) ↔ x ^ 2 * (2 - c) ≤ (c - 1) ^ 2
theorem
BanditRLProof.LowerBounds.gaussianMills_sign_threshold
Compiled
The sign changes at exactly one nonnegative threshold when `1<c<2`.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianMills_sign_thresholdReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianMills_sign_threshold {c x : ℝ} (hc : 1 < c) (hc2 : c < 2) (hx : 0 ≤ x) : 0 ≤ x ^ 2 + c - 1 - x * Real.sqrt (x ^ 2 + c) ↔ x ≤ (c - 1) / Real.sqrt (2 - c)
def
BanditRLProof.LowerBounds.gaussianMillsErrorDerivative
Compiled
The derivative of comparison minus Gaussian tail has this explicit value.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianMillsErrorDerivativeReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def gaussianMillsErrorDerivative (c x : ℝ) : ℝ
theorem
BanditRLProof.LowerBounds.gaussianMillsErrorDerivative_factor
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianMillsErrorDerivative_factorReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianMillsErrorDerivative_factor {c x : ℝ} (hc : 0 < c) : gaussianMillsErrorDerivative c x = Real.exp (-x ^ 2) * (x ^ 2 + c - 1 - x * Real.sqrt (x ^ 2 + c)) / ((x + Real.sqrt (x ^ 2 + c)) * Real.sqrt (x ^ 2 + c))
theorem
BanditRLProof.LowerBounds.gaussianMillsErrorDerivative_nonneg_iff
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianMillsErrorDerivative_nonneg_iffReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianMillsErrorDerivative_nonneg_iff {c x : ℝ} (hc : 1 < c) (hc2 : c < 2) (hx : 0 ≤ x) : 0 ≤ gaussianMillsErrorDerivative c x ↔ x ≤ (c - 1) / Real.sqrt (2 - c)
theorem
BanditRLProof.LowerBounds.gaussianMillsErrorDerivative_source_nonneg_iff
Compiled
Specialization to the exact upper-bound constant in source Eq. (13.4).
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianMillsErrorDerivative_source_nonneg_iffReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianMillsErrorDerivative_source_nonneg_iff {x : ℝ} (hx : 0 ≤ x) : 0 ≤ gaussianMillsErrorDerivative (4 / Real.pi) x ↔ x ≤ (4 / Real.pi - 1) / Real.sqrt (2 - 4 / Real.pi)
def
BanditRLProof.LowerBounds.gaussianMillsError
Compiled
Comparison error expressed using a finite-interval Gaussian integral.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianMillsErrorReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def gaussianMillsError (c x : ℝ) : ℝ
theorem
BanditRLProof.LowerBounds.hasDerivAt_gaussianMillsError
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.hasDerivAt_gaussianMillsErrorReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem hasDerivAt_gaussianMillsError {c x : ℝ} (hc : 0 < c) : HasDerivAt (gaussianMillsError c) (gaussianMillsErrorDerivative c x) x
theorem
BanditRLProof.LowerBounds.gaussianMillsError_source_zero
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianMillsError_source_zeroReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianMillsError_source_zero : gaussianMillsError (4 / Real.pi) 0 = 0
theorem
BanditRLProof.LowerBounds.tendsto_gaussianMillsError
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.tendsto_gaussianMillsErrorReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem tendsto_gaussianMillsError {c : ℝ} (hc : 0 < c) : Tendsto (gaussianMillsError c) atTop (𝓝 0)
theorem
BanditRLProof.LowerBounds.gaussianMillsError_source_nonneg
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianMillsError_source_nonnegReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianMillsError_source_nonneg {x : ℝ} (hx : 0 ≤ x) : 0 ≤ gaussianMillsError (4 / Real.pi) x
theorem
BanditRLProof.LowerBounds.gaussian_integral_split
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussian_integral_splitReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussian_integral_split (x : ℝ) : (∫ t in (0 : ℝ)..x, Real.exp (-t ^ 2)) + (∫ t in Ioi x, Real.exp (-t ^ 2)) = Real.sqrt Real.pi / 2
theorem
BanditRLProof.LowerBounds.gaussianMills_upper_integral
Compiled
The exact upper half of Lattimore--Szepesvari Eq. (13.4).
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret · Chapter 13: Lower Bounds: Basic Ideas
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianMills_upper_integralReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianMills_upper_integral {x : ℝ} (hx : 0 ≤ x) : (∫ t in Ioi x, Real.exp (-t ^ 2)) ≤ Real.exp (-x ^ 2) / (x + Real.sqrt (x ^ 2 + 4 / Real.pi))
theorem
BanditRLProof.LowerBounds.gaussianReal_zero_tail_integral
Compiled
Exact density-integral representation for a centered Gaussian tail.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianReal_zero_tail_integralReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianReal_zero_tail_integral (v : ℝ≥0) (hv : 0 < v) (a : ℝ) : (gaussianReal 0 v).real (Ici a) = (Real.sqrt (2 * Real.pi * (v : ℝ)))⁻¹ * ∫ t in Ioi a, Real.exp (-t ^ 2 / (2 * (v : ℝ)))
theorem
BanditRLProof.LowerBounds.gaussianReal_half_tail_integral
Compiled
The variance-one-half normal law is exactly the normalized source integral.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianReal_half_tail_integralReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianReal_half_tail_integral (a : ℝ) : (gaussianReal 0 (1 / 2 : ℝ≥0)).real (Ici a) = (∫ t in Ioi a, Real.exp (-t ^ 2)) / Real.sqrt Real.pi
theorem
BanditRLProof.LowerBounds.gaussianReal_half_mills_bounds
Compiled
Both exact Mills bounds for the normalized variance-one-half Gaussian.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianReal_half_mills_boundsReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianReal_half_mills_bounds {a : ℝ} (ha : 0 ≤ a) : Real.exp (-a ^ 2) / (a + Real.sqrt (a ^ 2 + 2)) / Real.sqrt Real.pi ≤ (gaussianReal 0 (1 / 2 : ℝ≥0)).real (Ici a) ∧ (gaussianReal 0 (1 / 2 : ℝ≥0)).real (Ici a) ≤ Real.exp (-a ^ 2) / (a + Real.sqrt (a ^ 2 + 4 / Real.pi)) / Real.sqrt Real.pi
theorem
BanditRLProof.LowerBounds.gaussianReal_zero_standardized_tail
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianReal_zero_standardized_tailReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianReal_zero_standardized_tail (v : ℝ≥0) (hv : 0 < v) (a : ℝ) : (gaussianReal 0 v).real (Ici a) = (∫ t in Ioi (a / Real.sqrt (2 * (v : ℝ))), Real.exp (-t ^ 2)) / Real.sqrt Real.pi
theorem
BanditRLProof.LowerBounds.gaussianReal_zero_mills_bounds
Compiled
Exact standardized Mills bounds for every positive Gaussian variance.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianReal_zero_mills_boundsReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianReal_zero_mills_bounds (v : ℝ≥0) (hv : 0 < v) (a : ℝ) (ha : 0 ≤ a) : let z := a / Real.sqrt (2 * (v : ℝ)) Real.exp (-z ^ 2) / (z + Real.sqrt (z ^ 2 + 2)) / Real.sqrt Real.pi ≤ (gaussianReal 0 v).real (Ici a) ∧ (gaussianReal 0 v).real (Ici a) ≤ Real.exp (-z ^ 2) / (z + Real.sqrt (z ^ 2 + 4 / Real.pi)) / Real.sqrt Real.pi
theorem
BanditRLProof.LowerBounds.gaussianMills_expression_rescale
Compiled
Rescale a Mills expression to the square-root denominators in Eq. (13.1).
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.gaussianMills_expression_rescaleReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem gaussianMills_expression_rescale {z c q : ℝ} (hz : 0 ≤ z) (hc : 0 < c) (hq : q = 8 * z ^ 2) : Real.exp (-z ^ 2) / (z + Real.sqrt (z ^ 2 + c)) / Real.sqrt Real.pi = Real.sqrt (8 / Real.pi) * Real.exp (-q / 8) / (Real.sqrt q + Real.sqrt (q + 8 * c))