The permanent of a 0/1 matrix #
The permanent of a matrix A : Matrix n n ℕ whose entries are all at most 1 is the number of
permutations σ with A i (σ i) = 1 for every i, that is, the number of perfect matchings of
the bipartite graph whose edges are the one-entries of A.
Boolean permutation matrices supported in an arbitrary relation are counted by the permutations
respecting that relation (Matrix.card_filter_isPermMatrix).
Main results #
Matrix.permanent_eq_card_filter_of_le_one: the permanent of a 0/1 matrix counts permutations.Matrix.card_filter_isPermMatrix: Boolean permutation matrices supported in a relation are as many as the permutations along it.Matrix.permanent_ne_zero_iff_of_nonneg: a matrix with nonnegative entries has a nonzero permanent exactly when some permutation runs along nonzero entries, that is, when the bipartite graph of its support has a perfect matching.
Boolean permutation matrices count permutations. The Boolean n × n matrices with a
true entry in every row, at most one in every row and column, and true entries only where
r holds, are as many as the permutations σ with r i (σ i) for every i.
The permanent of a 0/1 matrix counts the permutations along its one-entries.
The permanent of a nonnegative matrix is nonzero exactly on its support's matchings. Over
an ordered semiring without zero divisors, a matrix with nonnegative entries has a nonzero
permanent exactly when some permutation σ has A i (σ i) ≠ 0 for every i.