MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch17.GumbelGaps

theorem MindFormal.GumbelComparison.gumbel_singleton {s : ℝ} (hs : 0 < s) (z : ℝ) :
(gumbel s) {z} = 0

The common-scale Gumbel has no atoms; this follows from the exponential change of variables on its probability-one positive support.

The two-option fixed-priority choice is exactly the closed logistic half-line. Ties are included and then proved null separately.

noncomputable def MindFormal.GumbelComparison.logistic (s x : ℝ) :
Equations
Instances For
    theorem MindFormal.GumbelComparison.gap_cdf {s : ℝ} (hs : 0 < s) (x : ℝ) :
    ((gumbel s).prod (gumbel s)).real {p : ℝ × ℝ | p.2 - p.1 ≤ x} = logistic s x
    theorem MindFormal.GumbelComparison.gap_atom {s : ℝ} (hs : 0 < s) (x : ℝ) :
    ((gumbel s).prod (gumbel s)).real {p : ℝ × ℝ | p.2 - p.1 = x} = 0
    theorem MindFormal.GumbelComparison.gap_strict_cdf {s : ℝ} (hs : 0 < s) (x : ℝ) :
    ((gumbel s).prod (gumbel s)).real {p : ℝ × ℝ | p.2 - p.1 < x} = logistic s x
    theorem MindFormal.GumbelComparison.logistic_deriv {s : ℝ} (hs : 0 < s) (x : ℝ) :
    HasDerivAt (logistic s) (Real.exp (-x / s) / (s * (1 + Real.exp (-x / s)) ^ 2)) x

    The exact logistic derivative, obtained from the two-option law.

    theorem MindFormal.GumbelComparison.logistic_lipschitz {s : ℝ} (hs : 0 < s) (x y : ℝ) :
    |logistic s y - logistic s x| ≤ 1 / (4 * s) * |y - x|
    theorem MindFormal.GumbelComparison.pair_strip {s ε : ℝ} (hs : 0 < s) (hε : 0 ≤ ε) (center : ℝ) :
    ((gumbel s).prod (gumbel s)).real {p : ℝ × ℝ | |p.2 - p.1 - center| ≤ 2 * ε} ≤ ε / s

    A pair strip of width four epsilon has mass at most epsilon/scale, including its boundary and at every center.

    theorem MindFormal.GumbelComparison.pair_law {A : Type u_1} [Fintype A] (s : ℝ) {i j : A} (hij : i ≠ j) :
    MeasureTheory.Measure.map (fun (e : A → ℝ) => (e i, e j)) (MeasureTheory.Measure.pi fun (x : A) => gumbel s) = (gumbel s).prod (gumbel s)

    Distinct coordinates of the calibrated finite product retain their unconditional two-coordinate product law.

    def MindFormal.GumbelComparison.nearTie {A : Type u_1} [LinearOrder A] (b e : A → ℝ) (ε : ℝ) :

    The finite unordered-pair danger event used in (3.6).

    Equations
    Instances For
      theorem MindFormal.GumbelComparison.nearTie_measurable {A : Type u_1} [Finite A] [LinearOrder A] (b : A → ℝ) (ε : ℝ) :
      MeasurableSet {e : A → ℝ | nearTie b e ε}
      theorem MindFormal.GumbelComparison.coordinate_strip {A : Type u_1} [Fintype A] [LinearOrder A] {s ε : ℝ} (hs : 0 < s) (hε : 0 ≤ ε) (b : A → ℝ) {i j : A} (hij : i ≠ j) :
      (MeasureTheory.Measure.pi fun (x : A) => gumbel s).real {e : A → ℝ | |b i + e i - (b j + e j)| ≤ 2 * ε} ≤ ε / s
      theorem MindFormal.GumbelComparison.nearTie_probability {A : Type u_1} [Fintype A] [LinearOrder A] {s ε : ℝ} (hs : 0 < s) (hε : 0 ≤ ε) (b : A → ℝ) :
      (MeasureTheory.Measure.pi fun (x : A) => gumbel s).real {e : A → ℝ | nearTie b e ε} ≤ ↑(Fintype.card A) * (↑(Fintype.card A) - 1) / 2 * (ε / s)

      Summing the sharp strip price over all unordered pairs gives the exact J(J-1)/2 coefficient, without conditioning on native enclosure success.

      theorem MindFormal.GumbelComparison.logit_finite {N : ℕ} [Nonempty (Fin N)] {s : ℝ} (hs : 0 < s) (b : Fin N → ℝ) (i : Fin N) :
      Quantal.response (MeasureTheory.Measure.pi fun (x : Fin N) => gumbel s) b i = Real.exp (b i / s) / ∑ j : Fin N, Real.exp (b j / s)

      Formula (3.5) with an arbitrary nonempty finite index size.

      theorem MindFormal.GumbelComparison.strict_gap {A : Type u_1} [Fintype A] [Nonempty A] [LinearOrder A] {b e : A → ℝ} {ε : ℝ} (h : ¬nearTie b e ε) (j : A) (hj : j ≠ Quantal.winner fun (a : A) => b a + e a) :
      2 * ε < b (Quantal.winner fun (a : A) => b a + e a) + e (Quantal.winner fun (a : A) => b a + e a) - (b j + e j)

      Outside the pair strips the computed maximum has a strict 2-epsilon gap against every competitor, so the native margin is derived.