The Cauchy–Binet formula #
For a commutative ring R, a matrix A with n rows and a finite linearly ordered column type
ι, and a matrix B with rows ι and n columns, the determinant of the n × n product is the
sum, over the n-element subsets s of ι, of the product of the n × n minors of A and B
on s:
det (A * B) = ∑ s, det (A.submatrix id s) * det (B.submatrix s id).
The subsets are the elements of Set.powersetCard ι n. Each subset s is enumerated in
increasing order by Set.powersetCard.ofFinEmbEquiv.symm s : Fin n ↪o ι. The sum is empty, and
so the determinant vanishes, when ι has fewer than n elements.
The proof writes det (A * B) as the canonical pairing exteriorPower.pairingDual of the
n-fold exterior products of the rows of B, viewed as linear forms, and of the rows of A.
It then expands the second argument in the basis Module.Basis.exteriorPower of the exterior
power of ι → R. The statement, the declaration names and this proof route are taken from
Michel Hua's (@mycaule) closed Mathlib pull request mathlib4#44757; that pull request credits the
exterior-power route to the review of mathlib4#40473 and of its own square case. The proof script
here is rewritten. Neither that pull request nor the earlier closed pull requests mathlib4#40473
and mathlib4#44209 is part of Mathlib at the pinned revision.
Main results #
Matrix.det_mul_eq_sum_powersetCard: the Cauchy–Binet formula forn × ιandι × nmatrices.Matrix.det_mul_eq_sum_powersetCard_of_equiv: the same formula for rows indexed by any finite typeκwith an enumerationκ ≃ Fin n.
The Cauchy–Binet formula. The determinant of the product of an n × ι matrix and an
ι × n matrix is the sum, over the n-element subsets s of ι, of the products of the
n × n minors on the columns s of A and the rows s of B.
The Cauchy–Binet formula for square products indexed by a finite type κ enumerated by
e : κ ≃ Fin n. The n-element subsets s of ι are enumerated as functions κ → ι by
composing e with the increasing enumeration of s.