Rectangular permanents and the Binet–Minc identity #
For a matrix b : Matrix m n R with finite row type m and column type n, the rectangular
permanent b.rectPerm is the sum over all injections σ : m ↪ n of ∏ r, b r (σ r)
Forbes, Def. 11. For a set Z of columns, b.rectPermSurj Z keeps only the
injections whose image contains Z Forbes, Def. 20.
The main result is the Binet–Minc identity in permutation form, over any commutative ring:
∑_{σ : m ↪ n} ∏_r b r (σ r) = ∑_{π ∈ Perm m} sgn π ∏_{q ∈ orbits π} ∑_j ∏_{r ∈ q} b r j,
together with its inclusion–exclusion extension to rectPermSurj:
∑_{σ, Z ⊆ im σ} ∏_r b r (σ r) = ∑_π sgn π ∑_{Y ⊆ Z} (-1)^{|Y|} ∏_{q ∈ orbits π} ∑_{j ∉ Y} ∏_{r ∈ q} b r j.
Here orbits π is the quotient of m by Equiv.Perm.SameCycle π, so fixed points of π are
orbits of size one.
Main definitions #
Matrix.rectPerm: the rectangular permanent Forbes, Def. 11.Matrix.rectPermSurj: the permanent restricted to injections whose image contains a given set of columns Forbes, Def. 20.
Main results #
Equiv.Perm.sum_sign_filter_apply_eq: the signed count of the permutations that fix the fibres off : m → nis1iffis injective and0otherwise.Matrix.prod_quotient_sameCycle_sum_eq: expanding the product over the orbits ofπgives the sum over the functions that are constant on those orbits.Matrix.sum_injective_eq_sum_sign_prod_sameCycle: the Binet–Minc identity for injections into a given set of columns.Matrix.rectPerm_eq_sum_sign_prod_sameCycle: the Binet–Minc identity in permutation form.Matrix.rectPermSurj_eq_sum_sign_prod_sameCycle: its inclusion–exclusion extension.Matrix.rectPerm_eq_permanent: on square matricesrectPermis Mathlib'sMatrix.permanent.
Implementation notes #
The rows of b : Matrix m n R are indexed by m and the columns by n, following Mathlib. In
Forbes's notation the matrix is n × m, with rows [n] and columns [m]. The definitions need
no hypothesis card m ≤ card n: without it there are no injections and both sums are 0
(Matrix.rectPerm_eq_zero_of_card_lt). Forbes's Def. 20 requires the image to contain [k]; here
any Z : Finset n is allowed.
Forbes, Thm. 13 states the Binet–Minc identity grouped by set partitions of the rows,
with coefficient (-1)^{n - |F|} ∏_{S ∈ F} (|S| - 1)!. The permutation form proved here groups
the same terms by permutation instead. The grouped form is not proved in this file. The
permutation form, its inclusion–exclusion extension and this proof are original. The proof expands
the product over orbits into a sum over functions constant on orbits, exchanges the two sums, and
evaluates the signed sum over the stabiliser of each function with a sign-reversing involution.
References #
The signed count of the permutations that fix every fibre of f is 1 if f is injective
and 0 otherwise. A transposition of two rows with the same value pairs off the permutations
with opposite signs.
The orbit relation of a permutation of a finite type is decidable, so the type of its orbits
is a Fintype with decidable equality.
The rectangular permanent: the sum over all injections σ : m ↪ n of ∏ r, b r (σ r)
Forbes, Def. 11. It is 0 when card n < card m.
Instances For
The rectangular permanent restricted to the injections whose image contains the columns Z.
Forbes, Def. 20 is the case where Z is the set of the first k columns.
Instances For
The rectangular permanent as a sum over injective functions.
rectPermSurj as a sum over injective functions.
On square matrices the rectangular permanent is Mathlib's Matrix.permanent.
The rectangular permanent vanishes when there are fewer columns than rows.
rectPermSurj Z vanishes when Z has more columns than there are rows.
Expanding the product over the orbits of π of the column sums over T gives the sum over
the functions into T that are constant on the orbits of π.
Binet–Minc identity for injections into T, in permutation form: the sum over the
injective functions f : m → n with values in T of ∏ r, b r (f r) is the signed sum over
permutations π of m of the product over the orbits q of π of ∑_{j ∈ T} ∏_{r ∈ q} b r j.
Original; Forbes, Thm. 13 states the case T = univ grouped by set partitions.
Binet–Minc identity, in permutation form: the rectangular permanent is the signed sum
over permutations π of the rows of the product over the orbits q of π of
∑_j ∏_{r ∈ q} b r j. Original form; Forbes, Thm. 13 states the identity grouped
by set partitions of the rows.
Binet–Minc identity with inclusion–exclusion (original): the sum over the injections whose
image contains Z is the signed sum over permutations π of the rows of
∑_{Y ⊆ Z} (-1)^{|Y|} ∏_{q ∈ orbits π} ∑_{j ∉ Y} ∏_{r ∈ q} b r j. For Z = ∅ this is
Matrix.rectPerm_eq_sum_sign_prod_sameCycle.