Documentation

CslibFrontier.Probability.LogisticGrid

Logistic averages on a midpoint grid #

The biases of the one-bias-per-site argument of #8623 are uniform on the n midpoints of equal subintervals of [-M, M] (Cslib.midpointGrid). For an even number n = 2 p of points with 1 ≤ M and 2 M ≤ p, the average of the entropy Real.softplusEntropy over the grid is at least 1 / (8 M) (Cslib.inv_eight_mul_le_expect_softplusEntropy), and the average of the envelope Real.logisticEnvelope is at most 64 (1 / p + 4 / M) (Cslib.expect_logisticEnvelope_le). Both follow from comparing the grid with its spacing M / p: the entropy is at least 1/4 on the ≈ p / M points of [-1, 1] on each side, and the envelope is at most 64 e^{-|t|/4}, whose grid sum is geometric.

Main definitions #

Main results #

noncomputable def Cslib.midpointGrid (n : ℕ) (M : ℝ) (ℓ : Fin n) :

The midpoint of the ℓ-th of n equal subintervals of [-M, M].

theorem Cslib.abs_midpointGrid_le {n : ℕ} {M : ℝ} (hM : 0 ≤ M) (ℓ : Fin n) :

The midpoints of [-M, M] lie in it.

ψ(t) ≤ 64 e^{-|t|/4}.

theorem Cslib.sum_exp_neg_abs_midpointGrid_le {p : ℕ} {M c : ℝ} (hM : 0 < M) (hc : 0 < c) :
∑ ℓ : Fin (2 * p), Real.exp (-(c * |midpointGrid (2 * p) M ℓ|)) ≤ 2 + 2 * ↑p / (c * M)

The grid sum of e^{-c|t|} over 2 p midpoints of [-M, M] is at most 2 + 2 p / (c M).

theorem Cslib.expect_logisticEnvelope_le {p : ℕ} (hp : 0 < p) {M : ℝ} (hM : 0 < M) :
(Finset.univ.expect fun (ℓ : Fin (2 * p)) => (midpointGrid (2 * p) M ℓ).logisticEnvelope) ≤ 64 * (1 / ↑p + 4 / M)

The envelope on the grid. The average of ψ over 2 p midpoints of [-M, M] is at most 64 (1 / p + 4 / M).

theorem Cslib.inv_eight_mul_le_expect_softplusEntropy {p : ℕ} {M : ℝ} (hM : 1 ≤ M) (hp : 2 * M ≤ ↑p) :
1 / (8 * M) ≤ Finset.univ.expect fun (ℓ : Fin (2 * p)) => (midpointGrid (2 * p) M ℓ).softplusEntropy

The entropy on the grid. For 1 ≤ M and 2 M ≤ p, the average of the entropy over 2 p midpoints of [-M, M] is at least 1 / (8 M).