Documentation

CslibFrontier.Foundations.Combinatorics.Bregman

Brégman's theorem (Minc's conjecture) #

The permanent of an n × n 0/1 matrix with row sums r i is at most ∏ i, (r i)! ^ (1 / r i) [Bre73]. Equivalently, a bipartite graph whose left vertices have degrees d a has at most ∏ a, (d a)! ^ (1 / d a) perfect matchings. The bound is attained by disjoint unions of complete bipartite graphs K_{d,d}, that is, by block-diagonal all-ones matrices.

A bipartite graph is a relation R : α → β → Prop between finite types, and its perfect matchings are the bijections e : α ≃ β with R a (e a) for every a. The permanent of a 0/1 matrix A counts the perfect matchings of fun i j => A i j = 1 (Matrix.permanent_eq_card_filter_of_le_one in CslibFrontier.Foundations.Data.Matrix.Permanent.ZeroOne).

The proof is Schrijver's induction on n [Sch78b]: the log-sum inequality (Real.sum_mul_log_div_card_le) bounds the number of matchings through the edges at one vertex, the induction hypothesis bounds the matchings of each graph with an edge's two endpoints deleted, and averaging over all left vertices turns the deleted-column counts into the identity log d + (d - 1) log (d - 1)! / (d - 1) + (n - d) log d! / d = n log d! / d. Radhakrishnan's entropy proof [Rad97] and the random-ordering proof in [AS16] (The Probabilistic Lens: Brégman's Theorem, after Chapter 2) are alternative proofs of the same bound.

A vertex of degree 0 contributes the factor 0! ^ (1 / 0) = 1 with Mathlib's Real.rpow convention x ^ (1 / 0) = x ^ 0 = 1; the graph then has no perfect matching, so the bound holds for every relation and every 0/1 matrix, without positivity hypotheses.

Main results #

References #

theorem Equiv.log_card_filter_forall_rel_le_sum {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] [DecidableEq α] [DecidableEq β] (R : α → β → Prop) [DecidableRel R] :
Real.log ↑{e : α ≃ β | ∀ (a : α), R a (e a)}.card ≤ ∑ a : α, Real.log ↑{b : β | R a b}.card.factorial / ↑{b : β | R a b}.card

Brégman's theorem (Minc's conjecture), logarithmic form: the number of bijections e : α ≃ β with R a (e a) for every a has logarithm at most ∑ a, log (d a)! / d a, where d a = #{b | R a b}. A vertex with d a = 0 contributes 0.

theorem Equiv.card_filter_forall_rel_le_prod_factorial_rpow {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] [DecidableEq α] [DecidableEq β] (R : α → β → Prop) [DecidableRel R] :
↑{e : α ≃ β | ∀ (a : α), R a (e a)}.card ≤ ∏ a : α, ↑{b : β | R a b}.card.factorial ^ (1 / ↑{b : β | R a b}.card)

Brégman's theorem (Minc's conjecture) for bipartite perfect matchings: the number of bijections e : α ≃ β with R a (e a) for every a is at most ∏ a, (d a)! ^ (1 / d a), where d a = #{b | R a b} is the degree of the left vertex a. A vertex with d a = 0 contributes the factor 0! ^ (1 / 0) = 1; then there is no such bijection.

theorem Equiv.card_filter_forall_eq_eq_prod_factorial_rpow {α : Type u_1} [Fintype α] [DecidableEq α] {ι : Type u_3} [DecidableEq ι] (f : α → ι) :
↑{e : α ≃ α | ∀ (a : α), f a = f (e a)}.card = ∏ a : α, ↑{b : α | f a = f b}.card.factorial ^ (1 / ↑{b : α | f a = f b}.card)

Equality in Brégman's theorem for disjoint unions of complete bipartite graphs: when a and b are adjacent exactly if f a = f b, the bound of card_filter_forall_rel_le_prod_factorial_rpow is attained. Each fiber of f of size d is a block K_{d,d} contributing d! matchings.

theorem Matrix.permanent_le_prod_factorial_rpow {n : Type u_1} [Fintype n] [DecidableEq n] {A : Matrix n n ℕ} (hA : ∀ (i j : n), A i j ≤ 1) :
↑A.permanent ≤ ∏ i : n, ↑(∑ j : n, A i j).factorial ^ (1 / ↑(∑ j : n, A i j))

Brégman's theorem (Minc's conjecture): the permanent of an n × n 0/1 matrix with row sums r i is at most ∏ i, (r i)! ^ (1 / r i). A zero row makes both the permanent 0 and its factor 0! ^ (1 / 0) = 1.

theorem Matrix.permanent_le_factorial_rpow_card_div {n : Type u_1} [Fintype n] [DecidableEq n] {A : Matrix n n ℕ} (hA : ∀ (i j : n), A i j ≤ 1) {d : ℕ} (hd : ∀ (i : n), ∑ j : n, A i j = d) :
↑A.permanent ≤ ↑d.factorial ^ (↑(Fintype.card n) / ↑d)

Brégman's theorem for regular 0/1 matrices: if every row sum is d, then per A ≤ d! ^ (n / d). For d = 0 and nonempty n the two sides are 0 and 1.

theorem Matrix.permanent_eq_prod_factorial_rpow_of_eq_ite {n : Type u_1} [Fintype n] [DecidableEq n] {A : Matrix n n ℕ} {ι : Type u_2} [DecidableEq ι] (f : n → ι) (hA : ∀ (i j : n), A i j = if f i = f j then 1 else 0) :
↑A.permanent = ∏ i : n, ↑(∑ j : n, A i j).factorial ^ (1 / ↑(∑ j : n, A i j))

Equality in Brégman's theorem: a 0/1 matrix whose one-entries form diagonal all-ones blocks (A i j = 1 exactly when f i = f j) attains the bound of permanent_le_prod_factorial_rpow.