Documentation

LeanPool.BeyondBethe.BeyondBethe.BetheEpigraphGeometry

Bethe Epigraph Geometry #

Explicit geometry of the truncated Bethe epigraph #

This file supplies the quantitative geometry needed by the rational ellipsoid routine. In particular, it records an ordinary binary-input range bound and exact formulas for one-coordinate perturbations in the flattened Birkhoff affine coordinates.

A polynomially encoded global range for the regularized objective on the Birkhoff polytope of a normalized positive rational matrix.

Equations
Instances For
    theorem BeyondBethe.regularizedBetheObjective_sub_le_rationalRange {n : ℕ} (hn : 1 ≤ n) {τ : ℚ} (hτ0 : 0 ≤ τ) (hτ1 : τ ≤ 1) {A : Matrix (Fin n) (Fin n) ℚ} (hApos : ∀ (i j : Fin n), 0 < A i j) (hAupper : ∀ (i j : Fin n), A i j ≤ 1) {X Z : Matrix (Fin n) (Fin n) ℝ} (hX : IsDoublyStochastic X) (hZ : IsDoublyStochastic Z) :
    regularizedBetheObjective (↑τ) (fun (i j : Fin n) => ↑(A i j)) X - regularizedBetheObjective (↑τ) (fun (i j : Fin n) => ↑(A i j)) Z ≤ ↑(rationalRegularizedObjectiveRange A)

    The displayed rational range bounds the difference between the objective at any two doubly stochastic matrices.

    theorem BeyondBethe.negativeRegularizedBetheObjective_rational_bounds {n : ℕ} (hn : 1 ≤ n) {τ : ℚ} (hτ0 : 0 ≤ τ) (hτ1 : τ ≤ 1) {A : Matrix (Fin n) (Fin n) ℚ} (hApos : ∀ (i j : Fin n), 0 < A i j) (hAupper : ∀ (i j : Fin n), A i j ≤ 1) {X : Matrix (Fin n) (Fin n) ℝ} (hX : IsDoublyStochastic X) :
    ↑(-(2 * ↑n ^ 2)) ≤ -regularizedBetheObjective (↑τ) (fun (i j : Fin n) => ↑(A i j)) X ∧ -regularizedBetheObjective (↑τ) (fun (i j : Fin n) => ↑(A i j)) X ≤ ↑(n * rationalMatrixEntryBitBound A + n)

    Explicit absolute bounds on the negative regularized objective. These give rational endpoints for bisection without evaluating a logarithm.

    def BeyondBethe.coordinateSpike {d : ℕ} {R : Type u_1} [Zero R] (k : Fin d) (r : R) :
    Fin d → R

    A vector with a single nonzero coordinate.

    Equations
    Instances For
      @[simp]
      theorem BeyondBethe.coordinateSpike_apply_self {d : ℕ} {R : Type u_1} [Zero R] (k : Fin d) (r : R) :
      def BeyondBethe.epigraphPoint {d : ℕ} {R : Type u_1} (y : Fin d → R) (s : R) :
      Fin (d + 1) → R

      Package a base vector and a height into one epigraph point.

      Equations
      Instances For
        @[simp]
        theorem BeyondBethe.epigraphBase_epigraphPoint {d : ℕ} {R : Type u_1} (y : Fin d → R) (s : R) :
        @[simp]
        theorem BeyondBethe.epigraphHeight_epigraphPoint {d : ℕ} {R : Type u_1} (y : Fin d → R) (s : R) :
        theorem BeyondBethe.birkhoffAffineMap_vector_spike_abs_sub_le {m : ℕ} (y : Fin (m * m) → ℝ) (k : Fin (m * m)) (r : ℝ) (i j : Fin (m + 1)) :

        Adding one flattened-coordinate spike changes the recovered full matrix by at most the spike magnitude in every entry.

        Real upper-left coordinates of the Birkhoff barycenter.

        Equations
        Instances For

          A one-coordinate affine perturbation of the barycenter remains doubly stochastic as long as its magnitude is at most the uniform entry.

          theorem BeyondBethe.smoothedUniformSpike_properties {m : ℕ} (hm : 0 < m) {τ : ℚ} (hτ0 : 0 ≤ τ) (hτ1 : τ ≤ 1) {A : Matrix (Fin (m + 1)) (Fin (m + 1)) ℚ} (hApos : ∀ (i j : Fin (m + 1)), 0 < A i j) (hAupper : ∀ (i j : Fin (m + 1)), A i j ≤ 1) {X : Matrix (Fin (m + 1)) (Fin (m + 1)) ℝ} (hX : IsDoublyStochastic X) {δ0 : ℝ} (hXfloor : ∀ (i j : Fin (m + 1)), δ0 ≤ X i j) {mix : ℝ} (hmix0 : 0 ≤ mix) (hmix1 : mix ≤ 1) (k : Fin (m * m)) {q : ℝ} (hq : |q| ≤ 1 / (↑m + 1)) :
          have Zbase := vectorToSquareMatrix fun (l : Fin (m * m)) => squareMatrixToVector (uniformAffineCoordinatesReal m) l + coordinateSpike k q l; have Ybase := fun (i j : Fin m) => (1 - mix) * birkhoffAffineCoordinates X i j + mix * Zbase i j; IsDoublyStochastic (birkhoffAffineMap Ybase) ∧ (∀ (i j : Fin (m + 1)), (1 - mix) * δ0 ≤ birkhoffAffineMap Ybase i j) ∧ affineNegativeObjective (↑τ) (fun (i j : Fin (m + 1)) => ↑(A i j)) Ybase ≤ -regularizedBetheObjective (↑τ) (fun (i j : Fin (m + 1)) => ↑(A i j)) X + mix * ↑(rationalRegularizedObjectiveRange A)

          Mixing an exact feasible point with a perturbed barycenter supplies all three facts needed for the epigraph geometry: feasibility, a quantitative entry floor, and an objective upper bound obtained from concavity and the global range.

          noncomputable def BeyondBethe.smoothedUniformAffineBase {m : ℕ} (X : Matrix (Fin (m + 1)) (Fin (m + 1)) ℝ) (mix : ℝ) :
          Matrix (Fin m) (Fin m) ℝ

          The unperturbed affine-coordinate center obtained by mixing X with the Birkhoff barycenter.

          Equations
          Instances For
            theorem BeyondBethe.squareMatrixToVector_smoothedUniformSpike_of_mul {m : ℕ} (X : Matrix (Fin (m + 1)) (Fin (m + 1)) ℝ) (mix : ℝ) (k : Fin (m * m)) (q r : ℝ) (hqr : mix * q = r) :
            have Zbase := vectorToSquareMatrix fun (l : Fin (m * m)) => squareMatrixToVector (uniformAffineCoordinatesReal m) l + coordinateSpike k q l; have Ybase := fun (i j : Fin m) => (1 - mix) * birkhoffAffineCoordinates X i j + mix * Zbase i j; squareMatrixToVector Ybase = fun (l : Fin (m * m)) => squareMatrixToVector (smoothedUniformAffineBase X mix) l + coordinateSpike k r l

            Multiplying a barycenter spike by the mixing weight produces exactly the corresponding spike in the flattened mixed coordinates.

            theorem BeyondBethe.epigraphPoint_add_baseSpike {d : ℕ} (y : Fin d → ℝ) (s : ℝ) (k : Fin d) (r : ℝ) :
            (fun (i : Fin (d + 1)) => epigraphPoint y s i + if i = k.castSucc then r else 0) = epigraphPoint (fun (l : Fin d) => y l + coordinateSpike k r l) s

            A base-coordinate spike leaves the epigraph height unchanged.

            theorem BeyondBethe.epigraphPoint_sub_baseSpike {d : ℕ} (y : Fin d → ℝ) (s : ℝ) (k : Fin d) (r : ℝ) :
            (fun (i : Fin (d + 1)) => epigraphPoint y s i - if i = k.castSucc then r else 0) = epigraphPoint (fun (l : Fin d) => y l - coordinateSpike k r l) s

            A negative base-coordinate spike leaves the epigraph height unchanged.

            theorem BeyondBethe.epigraphPoint_add_heightSpike {d : ℕ} (y : Fin d → ℝ) (s r : ℝ) :
            (fun (i : Fin (d + 1)) => epigraphPoint y s i + if i = Fin.last d then r else 0) = epigraphPoint y (s + r)

            A spike in the last coordinate changes only the epigraph height.

            theorem BeyondBethe.epigraphPoint_sub_heightSpike {d : ℕ} (y : Fin d → ℝ) (s r : ℝ) :
            (fun (i : Fin (d + 1)) => epigraphPoint y s i - if i = Fin.last d then r else 0) = epigraphPoint y (s - r)

            A negative spike in the last coordinate changes only the epigraph height.

            theorem BeyondBethe.smoothedUniformSpike_mem_epigraph {m : ℕ} (hm : 0 < m) {τ : ℚ} (hτ0 : 0 ≤ τ) (hτ1 : τ ≤ 1) {A : Matrix (Fin (m + 1)) (Fin (m + 1)) ℚ} (hApos : ∀ (i j : Fin (m + 1)), 0 < A i j) (hAupper : ∀ (i j : Fin (m + 1)), A i j ≤ 1) {X : Matrix (Fin (m + 1)) (Fin (m + 1)) ℝ} (hX : IsDoublyStochastic X) {δ0 : ℝ} (hXfloor : ∀ (i j : Fin (m + 1)), δ0 ≤ X i j) {mix : ℝ} (hmix0 : 0 ≤ mix) (hmix1 : mix ≤ 1) (k : Fin (m * m)) {q : ℝ} (hq : |q| ≤ 1 / (↑m + 1)) {δ s upper : ℝ} (hδ : δ ≤ (1 - mix) * δ0) (hobjective : -regularizedBetheObjective (↑τ) (fun (i j : Fin (m + 1)) => ↑(A i j)) X + mix * ↑(rationalRegularizedObjectiveRange A) ≤ s) (hsupper : s ≤ upper) :
            have Zbase := vectorToSquareMatrix fun (l : Fin (m * m)) => squareMatrixToVector (uniformAffineCoordinatesReal m) l + coordinateSpike k q l; have Ybase := fun (i j : Fin m) => (1 - mix) * birkhoffAffineCoordinates X i j + mix * Zbase i j; BetheEpigraphTarget (↑τ) (fun (i j : Fin (m + 1)) => ↑(A i j)) δ upper (epigraphPoint (squareMatrixToVector Ybase) s)

            Convert the three smoothing conclusions into membership in a bounded Bethe epigraph at an arbitrary admissible height.

            theorem BeyondBethe.BetheEpigraphTarget_smoothed_inner_cross {m : ℕ} (hm : 0 < m) {τ : ℚ} (hτ0 : 0 ≤ τ) (hτ1 : τ ≤ 1) {A : Matrix (Fin (m + 1)) (Fin (m + 1)) ℚ} (hApos : ∀ (i j : Fin (m + 1)), 0 < A i j) (hAupper : ∀ (i j : Fin (m + 1)), A i j ≤ 1) {X : Matrix (Fin (m + 1)) (Fin (m + 1)) ℝ} (hX : IsDoublyStochastic X) {δ0 : ℝ} (hXfloor : ∀ (i j : Fin (m + 1)), δ0 ≤ X i j) {mix r : ℝ} (hmix0 : 0 < mix) (hmix1 : mix ≤ 1) (hr : 0 ≤ r) (hspike : r / mix ≤ 1 / (↑m + 1)) {δ upper : ℝ} (hδ : δ ≤ (1 - mix) * δ0) (hslack : -regularizedBetheObjective (↑τ) (fun (i j : Fin (m + 1)) => ↑(A i j)) X + mix * ↑(rationalRegularizedObjectiveRange A) + 2 * r ≤ upper) :
            have ycenter := squareMatrixToVector (smoothedUniformAffineBase X mix); have zcenter := epigraphPoint ycenter (upper - r); (∀ (k : Fin (m * m + 1)), BetheEpigraphTarget (↑τ) (fun (i j : Fin (m + 1)) => ↑(A i j)) δ upper fun (i : Fin (m * m + 1)) => zcenter i + if i = k then r else 0) ∧ ∀ (k : Fin (m * m + 1)), BetheEpigraphTarget (↑τ) (fun (i j : Fin (m + 1)) => ↑(A i j)) δ upper fun (i : Fin (m * m + 1)) => zcenter i - if i = k then r else 0

            The truncated epigraph above a threshold with two radii of objective slack contains a full coordinate cross. This is the exact inner-region statement used by the square-root-free ellipsoid termination theorem.

            theorem BeyondBethe.finiteNormSq_le_dimension_sq_of_abs_le {d : ℕ} (hd : 0 < d) {C : ℝ} (_hC : 0 ≤ C) (x : Fin d → ℝ) (hx : ∀ (i : Fin d), |x i| ≤ C) :
            finiteNormSq x ≤ (↑d * C) ^ 2

            A coordinatewise bound controls the Euclidean square norm with a square-root-free radius.

            theorem BeyondBethe.BetheEpigraphTarget_epigraphBase_abs_le_one {m : ℕ} {τ : ℝ} {A : Matrix (Fin (m + 1)) (Fin (m + 1)) ℝ} {δ upper : ℝ} (hδ : 0 ≤ δ) {z : Fin (m * m + 1) → ℝ} (hz : BetheEpigraphTarget τ A δ upper z) (l : Fin (m * m)) :

            Every flattened base coordinate of a nonnegatively truncated epigraph point lies in the unit interval.

            theorem BeyondBethe.BetheEpigraphTarget_inner_cross_outer_zero {m : ℕ} (_hm : 0 < m) {τ : ℝ} {A : Matrix (Fin (m + 1)) (Fin (m + 1)) ℝ} {δ upper r : ℝ} (hδ : 0 ≤ δ) (hr : 0 ≤ r) (ycenter : Fin (m * m) → ℝ) (hplus : ∀ (k : Fin (m * m + 1)), BetheEpigraphTarget τ A δ upper fun (i : Fin (m * m + 1)) => epigraphPoint ycenter (upper - r) i + if i = k then r else 0) (hminus : ∀ (k : Fin (m * m + 1)), BetheEpigraphTarget τ A δ upper fun (i : Fin (m * m + 1)) => epigraphPoint ycenter (upper - r) i - if i = k then r else 0) :
            have C := 1 + |upper| + 2 * r; (∀ (k : Fin (m * m + 1)), (finiteNormSq fun (i : Fin (m * m + 1)) => epigraphPoint ycenter (upper - r) i + if i = k then r else 0) ≤ (↑(m * m + 1) * C) ^ 2) ∧ ∀ (k : Fin (m * m + 1)), (finiteNormSq fun (i : Fin (m * m + 1)) => epigraphPoint ycenter (upper - r) i - if i = k then r else 0) ≤ (↑(m * m + 1) * C) ^ 2

            A coordinate cross in the truncated epigraph is contained in an explicit ball centered at zero. The center of the cross may depend on the exact optimizer, but the containing ball depends only on the rational height and radius supplied to the algorithm.