MathlibAnnex.Piola.cofactorRow
def
Fixes the cofactor convention used in the divergence and determinant identities.
Statement
Let be a real matrix, and fix a row index . Write for the th coordinate vector. The cofactor row is the vector whose th coordinate is the determinant obtained by replacing row of by .
Definition
For a row vector , let denote with only its th row replaced by . Then Equivalently, is the usual cofactor. The row-replacement formula fixes the row and column convention without choosing an inverse.
Assumptions
The matrix is arbitrary: invertibility is not required. The dimension is a natural number, with a specified . When there is no such index, so this indexed definition has no instance to evaluate.
Conclusion
The result is a row in , using the row convention throughout. No transpose or choice of an inverse is part of the definition.
The later row-expansion lemma gives . It is cited as a separate identity, not included as an additional conclusion of this definition.
Main citations
- Exact
declaration and its source —
MathlibAnnex.Piola.cofactorRow - Expansion
along a replaced row —
MathlibAnnex.Piola.det_updateRow_eq_sum_mul_cofactorRow - Coordinate
row —
MathlibAnnex.Piola.basisRow - Entries
of a coordinate row —
MathlibAnnex.Piola.basisRow_apply
Lean source signature (exact)
def cofactorRow {n : ℕ} (A : Matrix (Fin n) (Fin n) ℝ)
(i : Fin n) : (Fin n → ℝ) :=
fun j => (A.updateRow i (basisRow j)).det
| In the source | Mathematical meaning |
|---|---|
{n : ℕ} (A : Matrix (Fin n) (Fin n) ℝ) (i : Fin n) |
An arbitrary real matrix and the fixed row . No invertibility hypothesis occurs; for no row index can be supplied. |
: (Fin n → ℝ) |
The output cofactor row . |
basisRow j |
The coordinate row , in the cited definition. |
| In the source | Mathematical meaning |
|---|---|
A.updateRow i (basisRow j) |
The matrix : is the replaced row and is the output cofactor coordinate. |
fun j => (A.updateRow i (basisRow j)).det |
The entire RHS at each . It does not introduce an inverse or transpose of the resulting row. |
Exact surrounding binder context (separate excerpt)
noncomputable section
open scoped BigOperators
namespace MathlibAnnex
namespace Piola
Read exact source with highlighted declaration · Raw UTF-8 source · Card PDF · Back to Project
Exact content identity
Declaration: MathlibAnnex.Piola.cofactorRow
Accepted content SHA-256: a220df3d27a689052b2bfc3737cc23c6de30b90604fe892b3fbbfeb8231746e0
Accepted source guide SHA-256: 4a162be906ee75996e0b9993387fccc53dd3b30500a67621acd58a1b3cc54ff0
Source commit: 437e6e46228bbb8e91211ebded349d7a30020e73