Documentation

LeanPool.BeyondBethe.BeyondBethe.NearCase

Near Case #

noncomputable def BeyondBethe.cleanCycleFactors {n : ℕ} (η : ℝ) (P : Matrix (Fin n) (Fin n) ℝ) (h : Equiv.Perm (Fin n)) :

The actual clean two-row factors of the alternating permutation.

Equations
Instances For
    theorem BeyondBethe.cleanCycleFactors_card {n : ℕ} (η : ℝ) (P : Matrix (Fin n) (Fin n) ℝ) (h : Equiv.Perm (Fin n)) :
    theorem BeyondBethe.cleanCycleFactor_property {n : ℕ} {η : ℝ} {P : Matrix (Fin n) (Fin n) ℝ} {h : Equiv.Perm (Fin n)} (c : ↥(cleanCycleFactors η P h)) :
    (↑↑c).support.card = 2 ∧ cycleGoodCount η P h ↑c = 2
    noncomputable def BeyondBethe.cleanCycleRow {n : ℕ} {η : ℝ} {P : Matrix (Fin n) (Fin n) ℝ} {h : Equiv.Perm (Fin n)} (c : ↥(cleanCycleFactors η P h)) :
    Fin 2 → Fin n

    The two rows of a clean factor, in the ambient linear order.

    Equations
    Instances For
      theorem BeyondBethe.cleanCycleRow_mem_support {n : ℕ} {η : ℝ} {P : Matrix (Fin n) (Fin n) ℝ} {h : Equiv.Perm (Fin n)} (c : ↥(cleanCycleFactors η P h)) (k : Fin 2) :
      cleanCycleRow c k ∈ (↑↑c).support
      theorem BeyondBethe.cleanCycleRows_ne {n : ℕ} {η : ℝ} {P : Matrix (Fin n) (Fin n) ℝ} {h : Equiv.Perm (Fin n)} (c : ↥(cleanCycleFactors η P h)) :
      theorem BeyondBethe.cleanCycleRow_mem_goodRows {n : ℕ} {η : ℝ} {P : Matrix (Fin n) (Fin n) ℝ} {h : Equiv.Perm (Fin n)} (c : ↥(cleanCycleFactors η P h)) (k : Fin 2) :
      theorem BeyondBethe.cleanCycle_core_columns {n : ℕ} {f g : Equiv.Perm (Fin n)} {η : ℝ} {P : Matrix (Fin n) (Fin n) ℝ} (c : ↥(cleanCycleFactors η P (alternatingRowPerm f g))) :
      have r := cleanCycleRow c 0; have s := cleanCycleRow c 1; r ≠ s ∧ f r ≠ g r ∧ f r = g s ∧ g r = f s

      On a two-row alternating component, the two perfect matchings cross: the unordered pair of core columns is the same at both rows.

      theorem BeyondBethe.twoMatching_core_mem_heavy_of_good {n : ℕ} {P : Matrix (Fin n) (Fin n) ℝ} (hP : ∀ (i : Fin n), IsStrictProbabilityVector (P i)) {η : ℝ} (f g : Equiv.Perm (Fin n)) (hheavy : ∀ (i j : Fin n), j ∈ heavyCoordinates η (P i) → j = f i ∨ j = g i) {i : Fin n} (hgood : IsGoodRow η (P i)) :
      f i ∈ heavyCoordinates η (P i) ∧ g i ∈ heavyCoordinates η (P i) ∧ f i ≠ g i
      theorem BeyondBethe.univ_sdiff_coreOutside_of_ne {ι : Type u_1} [Fintype ι] [DecidableEq ι] {a b : ι} (_hab : a ≠ b) :
      noncomputable def BeyondBethe.encodedCoreRowTransferCost {n : ℕ} (f g : Equiv.Perm (Fin n)) (P U : Matrix (Fin n) (Fin n) ℝ) (i : Fin n) :

      Computes row i's transfer cost on the two columns selected by f and g, using the complement of their outside set.

      Equations
      Instances For
        noncomputable def BeyondBethe.cleanCycleWeightedCost {n : ℕ} {η : ℝ} {P : Matrix (Fin n) (Fin n) ℝ} {f g : Equiv.Perm (Fin n)} (U : Matrix (Fin n) (Fin n) ℝ) (c : ↥(cleanCycleFactors η P (alternatingRowPerm f g))) :

        Sums the encoded row-transfer costs over the two rows of a clean cycle.

        Equations
        Instances For
          theorem BeyondBethe.cleanCycleWeightedCost_eq_support_sum {n : ℕ} {η : ℝ} {P : Matrix (Fin n) (Fin n) ℝ} {f g : Equiv.Perm (Fin n)} (U : Matrix (Fin n) (Fin n) ℝ) (c : ↥(cleanCycleFactors η P (alternatingRowPerm f g))) :
          cleanCycleWeightedCost U c = ∑ i ∈ (↑↑c).support, encodedCoreRowTransferCost f g P U i
          theorem BeyondBethe.encodedCoreRowTransferCost_nonneg {n : ℕ} {τ : ℝ} (hτ : 0 ≤ τ) {P X : Matrix (Fin n) (Fin n) ℝ} (hP : IsDoublyStochastic P) (hXint : ∀ (i : Fin n), IsInteriorProbabilityVector (X i)) (f g : Equiv.Perm (Fin n)) (i : Fin n) :
          0 ≤ encodedCoreRowTransferCost f g P (fun (a b : Fin n) => transferU τ (X a) b) i
          theorem BeyondBethe.sum_cleanCycleWeightedCost_le_coreTransferCost {n : ℕ} {τ η : ℝ} {P X : Matrix (Fin n) (Fin n) ℝ} (hP : IsDoublyStochastic P) (hτ : 0 ≤ τ) (hXint : ∀ (i : Fin n), IsInteriorProbabilityVector (X i)) (f g : Equiv.Perm (Fin n)) :
          ∑ c : ↥(cleanCycleFactors η P (alternatingRowPerm f g)), cleanCycleWeightedCost (fun (i j : Fin n) => transferU τ (X i) j) c ≤ coreTransferCost (fun (i : Fin n) => coreOutside (f i) (g i)) P fun (i j : Fin n) => transferU τ (X i) j

          Clean factors are vertex-disjoint, so their weighted core costs are bounded by the global core-transfer cost.

          theorem BeyondBethe.cleanCycle_minCost_mul_fourCore {n : ℕ} {τ η : ℝ} {P X : Matrix (Fin n) (Fin n) ℝ} (hP : ∀ (i : Fin n), IsStrictProbabilityVector (P i)) (hτ : 0 ≤ τ) (hXint : ∀ (i : Fin n), IsInteriorProbabilityVector (X i)) (f g : Equiv.Perm (Fin n)) (hheavy : ∀ (i j : Fin n), j ∈ heavyCoordinates η (P i) → j = f i ∨ j = g i) (c : ↥(cleanCycleFactors η P (alternatingRowPerm f g))) :
          (1 / 2 - η) * fourCoreTransferCost τ X (cleanCycleRow c 0) (cleanCycleRow c 1) (f (cleanCycleRow c 0)) (g (cleanCycleRow c 0)) ≤ cleanCycleWeightedCost (fun (i j : Fin n) => transferU τ (X i) j) c
          noncomputable def BeyondBethe.failedCleanCycles {n : ℕ} (κ τ η : ℝ) (P X : Matrix (Fin n) (Fin n) ℝ) (f g : Equiv.Perm (Fin n)) :

          Selects clean cycles whose associated four-core transfer cost exceeds the threshold κ.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            noncomputable def BeyondBethe.successfulCleanCycles {n : ℕ} (κ τ η : ℝ) (P X : Matrix (Fin n) (Fin n) ℝ) (f g : Equiv.Perm (Fin n)) :

            Selects the clean cycles outside the failed-cost set.

            Equations
            Instances For
              theorem BeyondBethe.cleanCycleWeightedCost_nonneg {n : ℕ} {τ η : ℝ} {P X : Matrix (Fin n) (Fin n) ℝ} (hP : IsDoublyStochastic P) (hτ : 0 ≤ τ) (hXint : ∀ (i : Fin n), IsInteriorProbabilityVector (X i)) (f g : Equiv.Perm (Fin n)) (c : ↥(cleanCycleFactors η P (alternatingRowPerm f g))) :
              0 ≤ cleanCycleWeightedCost (fun (i j : Fin n) => transferU τ (X i) j) c
              theorem BeyondBethe.failedCleanCycles_count_mul_le_coreTransferCost {n : ℕ} {κ τ η : ℝ} {P X : Matrix (Fin n) (Fin n) ℝ} (hP : ∀ (i : Fin n), IsStrictProbabilityVector (P i)) (hPds : IsDoublyStochastic P) (hτ : 0 ≤ τ) (hfactor : 0 ≤ 1 / 2 - η) (hXint : ∀ (i : Fin n), IsInteriorProbabilityVector (X i)) (f g : Equiv.Perm (Fin n)) (hheavy : ∀ (i j : Fin n), j ∈ heavyCoordinates η (P i) → j = f i ∨ j = g i) :
              ↑(failedCleanCycles κ τ η P X f g).card * ((1 / 2 - η) * κ) ≤ coreTransferCost (fun (i : Fin n) => coreOutside (f i) (g i)) P fun (i j : Fin n) => transferU τ (X i) j

              The weighted Markov step on the actual clean alternating factors.

              theorem BeyondBethe.failedCleanCycles_count_le {n : ℕ} (hn : 0 < n) {κ τ η εtr : ℝ} {P X : Matrix (Fin n) (Fin n) ℝ} (hP : ∀ (i : Fin n), IsStrictProbabilityVector (P i)) (hPds : IsDoublyStochastic P) (hτ : 0 ≤ τ) (hfactor : 0 ≤ 1 / 2 - η) (hmin : 0 < (1 / 2 - η) * κ) (hXint : ∀ (i : Fin n), IsInteriorProbabilityVector (X i)) (f g : Equiv.Perm (Fin n)) (hheavy : ∀ (i j : Fin n), j ∈ heavyCoordinates η (P i) → j = f i ∨ j = g i) (hcore : (coreTransferCost (fun (i : Fin n) => coreOutside (f i) (g i)) P fun (i j : Fin n) => transferU τ (X i) j) / ↑n ≤ εtr * ((1 / 2 - η) * κ)) :
              ↑(failedCleanCycles κ τ η P X f g).card ≤ εtr * ↑n
              theorem BeyondBethe.successfulCleanCycles_card_add_failed {n : ℕ} (κ τ η : ℝ) (P X : Matrix (Fin n) (Fin n) ℝ) (f g : Equiv.Perm (Fin n)) :
              (successfulCleanCycles κ τ η P X f g).card + (failedCleanCycles κ τ η P X f g).card = cleanCycleCount η P (alternatingRowPerm f g)
              theorem BeyondBethe.successfulCleanCycles_count_ge_threeEighths {n : ℕ} {κ τ η : ℝ} {P X : Matrix (Fin n) (Fin n) ℝ} (hP : ∀ (i : Fin n), IsStrictProbabilityVector (P i)) (f g : Equiv.Perm (Fin n)) (hheavy : ∀ (i j : Fin n), j ∈ heavyCoordinates η (P i) → j = f i ∨ j = g i) (hbad : ↑(badRows η P).card ≤ ↑n / 128) (hlong : ↑(longCycleGoodRows η P (alternatingRowPerm f g)) ≤ ↑n / 16) (hfailed : ↑(failedCleanCycles κ τ η P X f g).card ≤ ↑n / 16) :
              3 * ↑n / 8 ≤ ↑(successfulCleanCycles κ τ η P X f g).card

              The exact clean-pair counting conclusion used in the near case.

              theorem BeyondBethe.successfulCleanCycle_gain {n : ℕ} {κ₀ ξ₀ γ₀ ell ξ τ η : ℝ} (hgain : CleanPairGainGuarantee κ₀ ξ₀ γ₀) (hell : 1 ≤ ell) (hlogn : Real.log ↑n ≤ ell * Real.log 2) (hξ : 0 < ξ) (hξ₀ : ξ ≤ ξ₀) (hτscale : τ = ξ / (4 * ell)) {A P X : Matrix (Fin n) (Fin n) ℝ} (hA : Matrix.Positive A) (hX : IsDoublyStochastic X) (hXint : ∀ (i : Fin n), IsInteriorProbabilityVector (X i)) {R C : Fin n → ℝ} (hKKT : HasLogKKT τ A X R C) (f g : Equiv.Perm (Fin n)) (c : ↥(cleanCycleFactors η P (alternatingRowPerm f g))) (hc : c ∈ successfulCleanCycles κ₀ τ η P X f g) :

              Pointwise form: every successful clean factor receives the uniform gain from Lemma 20.

              theorem BeyondBethe.successfulCleanCycles_gain_sum {n : ℕ} {κ₀ ξ₀ γ₀ ell ξ τ η : ℝ} (hgain : CleanPairGainGuarantee κ₀ ξ₀ γ₀) (hell : 1 ≤ ell) (hlogn : Real.log ↑n ≤ ell * Real.log 2) (hξ : 0 < ξ) (hξ₀ : ξ ≤ ξ₀) (hτscale : τ = ξ / (4 * ell)) {A P X : Matrix (Fin n) (Fin n) ℝ} (hA : Matrix.Positive A) (hX : IsDoublyStochastic X) (hXint : ∀ (i : Fin n), IsInteriorProbabilityVector (X i)) {R C : Fin n → ℝ} (hKKT : HasLogKKT τ A X R C) (f g : Equiv.Perm (Fin n)) :
              ↑(successfulCleanCycles κ₀ τ η P X f g).card * γ₀ ≤ ∑ c ∈ successfulCleanCycles κ₀ τ η P X f g, Real.log (pairGain A X (cleanCycleRow c 0) (cleanCycleRow c 1))

              Summed form of the preceding pointwise gain.

              @[reducible, inline]

              An unordered pair of distinct rows. The ambient order gives it a canonical orientation whenever a formula such as pairGain expects one.

              Equations
              Instances For
                def BeyondBethe.rowPairRow {n : ℕ} (q : RowPair n) :
                Fin 2 → Fin n

                Enumerates the two rows of a row pair through their increasing finite-set order isomorphism.

                Equations
                Instances For

                  Requires distinct selected row pairs to have disjoint underlying row sets.

                  Equations
                  Instances For
                    noncomputable def BeyondBethe.rowPairWeight {n : ℕ} (A X : Matrix (Fin n) (Fin n) ℝ) (q : RowPair n) :

                    Assigns a row pair the nonnegative part of its logarithmic pair gain.

                    Equations
                    Instances For
                      noncomputable def BeyondBethe.rowMatchingWeight {n : ℕ} (A X : Matrix (Fin n) (Fin n) ℝ) (M : Finset (RowPair n)) :

                      Sums the row-pair weights over a selected matching.

                      Equations
                      Instances For
                        noncomputable def BeyondBethe.allRowMatchings (n : ℕ) :

                        Enumerates all finite sets of row pairs satisfying pairwise disjointness.

                        Equations
                        Instances For
                          noncomputable def BeyondBethe.maximumMatchingGain {n : ℕ} (A X : Matrix (Fin n) (Fin n) ℝ) :

                          Takes the maximum total row-pair weight over all row matchings.

                          Equations
                          Instances For
                            noncomputable def BeyondBethe.positiveRowPairs {n : ℕ} (A X : Matrix (Fin n) (Fin n) ℝ) (M : Finset (RowPair n)) :

                            Delete the zero-weight pairs from a matching. Since the matching weights are positive parts of logarithmic gains, this preserves the objective and leaves only pairs whose multiplicative gain is strictly larger than one.

                            Equations
                            Instances For
                              theorem BeyondBethe.positiveRowPairs_subset {n : ℕ} (A X : Matrix (Fin n) (Fin n) ℝ) (M : Finset (RowPair n)) :
                              positiveRowPairs A X M ⊆ M
                              theorem BeyondBethe.positiveRowPairs_logGain_pos {n : ℕ} {A X : Matrix (Fin n) (Fin n) ℝ} {M : Finset (RowPair n)} {q : RowPair n} (hq : q ∈ positiveRowPairs A X M) :
                              noncomputable def BeyondBethe.cleanCycleRowPair {n : ℕ} {η : ℝ} {P : Matrix (Fin n) (Fin n) ℝ} {f g : Equiv.Perm (Fin n)} (c : ↥(cleanCycleFactors η P (alternatingRowPerm f g))) :

                              Uses a clean two-cycle's support as its two-element row pair.

                              Equations
                              Instances For
                                noncomputable def BeyondBethe.successfulRowPairs {n : ℕ} (κ τ η : ℝ) (P X : Matrix (Fin n) (Fin n) ℝ) (f g : Equiv.Perm (Fin n)) :

                                Maps successful clean cycles to their underlying row pairs.

                                Equations
                                Instances For
                                  theorem BeyondBethe.successfulRowPairs_isRowMatching {n : ℕ} (κ τ η : ℝ) (P X : Matrix (Fin n) (Fin n) ℝ) (f g : Equiv.Perm (Fin n)) :
                                  theorem BeyondBethe.successfulRowPairs_weight_eq {n : ℕ} {κ τ η : ℝ} {A P X : Matrix (Fin n) (Fin n) ℝ} (f g : Equiv.Perm (Fin n)) (hpositive : ∀ c ∈ successfulCleanCycles κ τ η P X f g, 0 ≤ Real.log (pairGain A X (cleanCycleRow c 0) (cleanCycleRow c 1))) :
                                  rowMatchingWeight A X (successfulRowPairs κ τ η P X f g) = ∑ c ∈ successfulCleanCycles κ τ η P X f g, Real.log (pairGain A X (cleanCycleRow c 0) (cleanCycleRow c 1))
                                  theorem BeyondBethe.maximumMatchingGain_ge_successfulCleanCycles {n : ℕ} {κ τ η γ : ℝ} {A P X : Matrix (Fin n) (Fin n) ℝ} (f g : Equiv.Perm (Fin n)) (hγ : 0 ≤ γ) (hpoint : ∀ c ∈ successfulCleanCycles κ τ η P X f g, γ ≤ Real.log (pairGain A X (cleanCycleRow c 0) (cleanCycleRow c 1))) :
                                  ↑(successfulCleanCycles κ τ η P X f g).card * γ ≤ maximumMatchingGain A X

                                  The computable maximum-weight matching dominates the disjoint successful clean pairs used only in the analysis.

                                  theorem BeyondBethe.maximumMatchingGain_ge_threeEighths_of_structuralBounds {n : ℕ} (hn : 0 < n) {κ₀ ξ₀ γ₀ ell ξ τ η : ℝ} (hgain : CleanPairGainGuarantee κ₀ ξ₀ γ₀) (hκ₀ : 0 < κ₀) (hγ₀ : 0 ≤ γ₀) (hell : 1 ≤ ell) (hlogn : Real.log ↑n ≤ ell * Real.log 2) (hξ : 0 < ξ) (hξ₀ : ξ ≤ ξ₀) (hτscale : τ = ξ / (4 * ell)) {A P X : Matrix (Fin n) (Fin n) ℝ} (hA : Matrix.Positive A) (hP : ∀ (i : Fin n), IsStrictProbabilityVector (P i)) (hPds : IsDoublyStochastic P) (hX : IsDoublyStochastic X) (hXint : ∀ (i : Fin n), IsInteriorProbabilityVector (X i)) {R C : Fin n → ℝ} (hKKT : HasLogKKT τ A X R C) (f g : Equiv.Perm (Fin n)) (hheavy : ∀ (i j : Fin n), j ∈ heavyCoordinates η (P i) → j = f i ∨ j = g i) (hηhalf : η < 1 / 2) (hbad : ↑(badRows η P).card ≤ ↑n / 128) (hlong : ↑(longCycleGoodRows η P (alternatingRowPerm f g)) ≤ ↑n / 16) (hcore : (coreTransferCost (fun (i : Fin n) => coreOutside (f i) (g i)) P fun (i j : Fin n) => transferU τ (X i) j) / ↑n ≤ 1 / 16 * ((1 / 2 - η) * κ₀)) :
                                  3 * γ₀ / 8 * ↑n ≤ maximumMatchingGain A X

                                  Once the three exceptional sets have the advertised sizes, the clean pair lemma and disjointness give the full near-case matching gain.

                                  theorem BeyondBethe.nearCase_successfulCleanCycles_count_ge_threeEighths (hrowInequality : AnariRezaeiRowInequality) {n : ℕ} (hn : 2 ≤ n) {κ₀ ell ξ τ η δ : ℝ} (hκ₀ : 0 < κ₀) (hell : 1 ≤ ell) (hlogn : Real.log ↑n ≤ ell * Real.log 2) (hξ : 0 < ξ) (hτscale : τ = ξ / (4 * ell)) (hη : 0 < η) (hηtenth : η ≤ 1 / 10) (hrowSmall : δ / (η / 3074) ^ 4 ≤ 1 / 128) (hcycleSmall : 6 / Real.log 2 * (δ + (1 + Real.log 2 / 2) * (δ / (η / 3074) ^ 4) + goodRowOmega η) ≤ 1 / 16) (htransferSmall : δ + 2 * ξ + binaryEntropy η + η + (1 + Real.log 2) * (δ / (η / 3074) ^ 4) ≤ 1 / 16 * ((1 / 2 - η) * κ₀)) {A X : Matrix (Fin n) (Fin n) ℝ} (hA : Matrix.Positive A) (hX : IsDoublyStochastic X) (hXint : ∀ (i : Fin n), IsInteriorProbabilityVector (X i)) {R C : Fin n → ℝ} (hKKT : HasLogKKT τ A X R C) (hnear : betheSlack n (betheLogValue A) (Real.log A.permanent) < δ * ↑n) :
                                  ∃ (f : Equiv.Perm (Fin n)) (g : Equiv.Perm (Fin n)), 3 * ↑n / 8 ≤ ↑(successfulCleanCycles κ₀ τ η (assignmentMarginal A) X f g).card

                                  The structural content of the near case, separated from the choice of matching algorithm. It produces two perfect matchings whose alternating permutation contains at least 3n/8 successful clean two-cycles.

                                  theorem BeyondBethe.nearCase_maximumMatchingGain_ge_threeEighths (hrowInequality : AnariRezaeiRowInequality) {n : ℕ} (hn : 2 ≤ n) {κ₀ ξ₀ γ₀ ell ξ τ η δ : ℝ} (hgain : CleanPairGainGuarantee κ₀ ξ₀ γ₀) (hκ₀ : 0 < κ₀) (hγ₀ : 0 ≤ γ₀) (hell : 1 ≤ ell) (hlogn : Real.log ↑n ≤ ell * Real.log 2) (hξ : 0 < ξ) (hξ₀ : ξ ≤ ξ₀) (hτscale : τ = ξ / (4 * ell)) (hη : 0 < η) (hηtenth : η ≤ 1 / 10) (hrowSmall : δ / (η / 3074) ^ 4 ≤ 1 / 128) (hcycleSmall : 6 / Real.log 2 * (δ + (1 + Real.log 2 / 2) * (δ / (η / 3074) ^ 4) + goodRowOmega η) ≤ 1 / 16) (htransferSmall : δ + 2 * ξ + binaryEntropy η + η + (1 + Real.log 2) * (δ / (η / 3074) ^ 4) ≤ 1 / 16 * ((1 / 2 - η) * κ₀)) {A X : Matrix (Fin n) (Fin n) ℝ} (hA : Matrix.Positive A) (hX : IsDoublyStochastic X) (hXint : ∀ (i : Fin n), IsInteriorProbabilityVector (X i)) {R C : Fin n → ℝ} (hKKT : HasLogKKT τ A X R C) (hnear : betheSlack n (betheLogValue A) (Real.log A.permanent) < δ * ↑n) :
                                  3 * γ₀ / 8 * ↑n ≤ maximumMatchingGain A X

                                  Full structural near case for a positive matrix. The three displayed smallness hypotheses are exactly the row, long-cycle, and transfer choices in the paper's completion section.

                                  theorem BeyondBethe.rowPairRow_mem {n : ℕ} (q : RowPair n) (k : Fin 2) :
                                  rowPairRow q k ∈ ↑q
                                  noncomputable def BeyondBethe.matchingRows {n : ℕ} (M : Finset (RowPair n)) :

                                  Takes the union of all rows occurring in the selected row pairs.

                                  Equations
                                  Instances For
                                    @[reducible, inline]

                                    The subtype of rows absent from all selected row pairs.

                                    Equations
                                    Instances For
                                      @[reducible, inline]

                                      A cluster is either a selected row pair or one unmatched row.

                                      Equations
                                      Instances For

                                        Assigns size two to a matched pair cluster and size one to an unmatched-row cluster.

                                        Equations
                                        Instances For
                                          noncomputable def BeyondBethe.matchingRowMap {n : ℕ} (M : Finset (RowPair n)) :

                                          Maps a cluster and its local position back to the corresponding original matrix row.

                                          Equations
                                          Instances For
                                            noncomputable def BeyondBethe.matchingRowsEquiv {n : ℕ} (M : Finset (RowPair n)) (hM : IsRowMatching M) :

                                            The row-labeling equivalence, written with an explicit forward map so its action on a cluster is transparent to subsequent proofs.

                                            Equations
                                            Instances For

                                              Convert a disjoint row matching into the singleton/pair clustering used by the paired-certificate theorem.

                                              Equations
                                              • One or more equations did not get rendered due to their size.
                                              Instances For
                                                theorem BeyondBethe.pairCertificateValue_nonneg {n : ℕ} {A X : Matrix (Fin n) (Fin n) ℝ} (hA : A.Nonnegative) (hX : IsDoublyStochastic X) {r s : Fin n} (hrs : r ≠ s) :
                                                theorem BeyondBethe.pairCertificateValue_eq_pairGain_mul_singletons {n : ℕ} {A X : Matrix (Fin n) (Fin n) ℝ} (hcard : 2 ≤ n) (hA : Matrix.Positive A) (hX : IsDoublyStochastic X) (hXpos : ∀ (i j : Fin n), 0 < X i j) (r s : Fin n) :

                                                Algebraic meaning of the gain ratio: a pair factor is its gain times the two singleton factors that it replaces.

                                                theorem BeyondBethe.pairCertificateValue_eq_exp_logGain_mul_singletons {n : ℕ} {A X : Matrix (Fin n) (Fin n) ℝ} (hcard : 2 ≤ n) (hA : Matrix.Positive A) (hX : IsDoublyStochastic X) (hXpos : ∀ (i j : Fin n), 0 < X i j) (r s : Fin n) (hrs : r ≠ s) (hgain : 0 < Real.log (pairGain A X r s)) :
                                                noncomputable def BeyondBethe.matchingClusterLogGain {n : ℕ} (A X : Matrix (Fin n) (Fin n) ℝ) {M : Finset (RowPair n)} :

                                                Assigns a matched pair cluster its logarithmic pair gain and an unmatched-row cluster zero gain.

                                                Equations
                                                Instances For
                                                  theorem BeyondBethe.sum_matchingClusterLogGain_eq_rowMatchingWeight {n : ℕ} {A X : Matrix (Fin n) (Fin n) ℝ} {M : Finset (RowPair n)} (hpositive : ∀ q ∈ M, 0 < Real.log (pairGain A X (rowPairRow q 0) (rowPairRow q 1))) :
                                                  theorem BeyondBethe.paperClusterFactor_rowClusteringOfMatching {n : ℕ} {A X : Matrix (Fin n) (Fin n) ℝ} {M : Finset (RowPair n)} (hM : IsRowMatching M) (hcard : 2 ≤ n) (hA : Matrix.Positive A) (hX : IsDoublyStochastic X) (hXpos : ∀ (i j : Fin n), 0 < X i j) (hpositive : ∀ q ∈ M, 0 < Real.log (pairGain A X (rowPairRow q 0) (rowPairRow q 1))) (c : MatchingCluster M) :
                                                  theorem BeyondBethe.prod_paperClusterFactor_rowClusteringOfMatching {n : ℕ} {A X : Matrix (Fin n) (Fin n) ℝ} {M : Finset (RowPair n)} (hM : IsRowMatching M) (hcard : 2 ≤ n) (hA : Matrix.Positive A) (hX : IsDoublyStochastic X) (hXpos : ∀ (i j : Fin n), 0 < X i j) (hpositive : ∀ q ∈ M, 0 < Real.log (pairGain A X (rowPairRow q 0) (rowPairRow q 1))) :
                                                  theorem BeyondBethe.exp_betheObjective_add_rowMatchingWeight_le_permanent {n : ℕ} (stableCoefficient : AnariOveisGharanStableCoefficient) {A X : Matrix (Fin n) (Fin n) ℝ} {M : Finset (RowPair n)} (hM : IsRowMatching M) (hcard : 2 ≤ n) (hA : Matrix.Positive A) (hX : IsDoublyStochastic X) (hXpos : ∀ (i j : Fin n), 0 < X i j) (hpositive : ∀ q ∈ M, 0 < Real.log (pairGain A X (rowPairRow q 0) (rowPairRow q 1))) :

                                                  Every positive-gain row matching produces a certified lower bound.

                                                  theorem BeyondBethe.exp_betheObjective_add_maximumMatchingGain_le_permanent {n : ℕ} (stableCoefficient : AnariOveisGharanStableCoefficient) {A X : Matrix (Fin n) (Fin n) ℝ} (hcard : 2 ≤ n) (hA : Matrix.Positive A) (hX : IsDoublyStochastic X) (hXpos : ∀ (i j : Fin n), 0 < X i j) :

                                                  The output based on a maximum-weight row matching remains below the permanent. Zero-gain edges are deleted before applying the cluster theorem.

                                                  theorem BeyondBethe.positiveMatrix_logApproximation (stableCoefficient : AnariOveisGharanStableCoefficient) {n : ℕ} (hn : 2 ≤ n) {κ₀ ξ₀ γ₀ ell ξ τ η δ : ℝ} (hgain : CleanPairGainGuarantee κ₀ ξ₀ γ₀) (hκ₀ : 0 < κ₀) (hγ₀ : 0 < γ₀) (hell : 1 ≤ ell) (hlogn : Real.log ↑n ≤ ell * Real.log 2) (hξ : 0 < ξ) (hξ₀ : ξ ≤ ξ₀) (hτscale : τ = ξ / (4 * ell)) (hη : 0 < η) (hηtenth : η ≤ 1 / 10) (hrowSmall : δ / (η / 3074) ^ 4 ≤ 1 / 128) (hcycleSmall : 6 / Real.log 2 * (δ + (1 + Real.log 2 / 2) * (δ / (η / 3074) ^ 4) + goodRowOmega η) ≤ 1 / 16) (htransferSmall : δ + 2 * ξ + binaryEntropy η + η + (1 + Real.log 2) * (δ / (η / 3074) ^ 4) ≤ 1 / 16 * ((1 / 2 - η) * κ₀)) (hξδ : ξ < δ) (hξγ : ξ < 3 * γ₀ / 8) (A : Matrix (Fin n) (Fin n) ℝ) (hA : Matrix.Positive A) :

                                                  Positive-matrix form of Proposition 21. Vontobel's concavity theorem, the sharp row inequality, and the upper Bethe bound are proved internally.

                                                  theorem BeyondBethe.exists_completion_scales {κ₀ ξ₀ γ₀ : ℝ} (hκ₀ : 0 < κ₀) (hξ₀ : 0 < ξ₀) (hγ₀ : 0 < γ₀) :
                                                  ∃ (η : ℝ) (δ : ℝ) (ξ : ℝ), 0 < η ∧ η ≤ 1 / 10 ∧ 0 < δ ∧ 0 < ξ ∧ ξ ≤ ξ₀ ∧ δ / (η / 3074) ^ 4 ≤ 1 / 128 ∧ 6 / Real.log 2 * (δ + (1 + Real.log 2 / 2) * (δ / (η / 3074) ^ 4) + goodRowOmega η) ≤ 1 / 16 ∧ δ + 2 * ξ + binaryEntropy η + η + (1 + Real.log 2) * (δ / (η / 3074) ^ 4) ≤ 1 / 16 * ((1 / 2 - η) * κ₀) ∧ ξ < δ ∧ ξ < 3 * γ₀ / 8

                                                  The hierarchy of absolute scales used in the completion exists. We parameterize δ as a small multiple of (η/3074)^4; this makes the apparent singularity in the row-error ratio disappear.

                                                  noncomputable def BeyondBethe.paperScaleEll (n : ℕ) :

                                                  The real paper scale max 1 (log n / log 2).

                                                  Equations
                                                  Instances For

                                                    Exact positive-matrix certificate property at logarithmic improvement epsilon. This is the mathematical core of Theorem 1 before smoothing and finite-precision evaluation.

                                                    Equations
                                                    • One or more equations did not get rendered due to their size.
                                                    Instances For

                                                      Absolute positive-matrix approximation theorem, with all constants chosen internally. This is the mathematical core of Theorem 1 before the standard smoothing and finite-precision wrapper.