Documentation

CslibFrontier.Foundations.LinearAlgebra.Matrix.VertexOrientation

Determinant signs across polyhedral vertex pivots #

This module connects the basic feasible vertices of Matrix.IsVertex to matrix determinants and establishes the sign-reversal law across pivot edges used by Shapley's orientation of Lemke–Howson paths [Sha74].

Main definitions #

Main results #

References #

def Matrix.pivotBasisEquiv {κ : Type u_1} {ι : Type u_2} [DecidableEq ι] [DecidableEq κ] {T₁ T₂ : Finset κ} (e₁ : ι ≃ ↥T₁) {l l' : κ} (hl : l ∈ T₁) (hl' : l' ∈ T₂) (herase : T₁.erase l = T₂.erase l') :
ι ≃ ↥T₂

Row-index equivalence for the adjacent basis T₂ obtained by replacing l ∈ T₁ with l' ∈ T₂ in an enumeration e₁ : ι ≃ T₁.

@[simp]
theorem Matrix.coe_pivotBasisEquiv_apply {κ : Type u_1} {ι : Type u_2} [DecidableEq ι] [DecidableEq κ] {T₁ T₂ : Finset κ} (e₁ : ι ≃ ↥T₁) {l l' : κ} (hl : l ∈ T₁) (hl' : l' ∈ T₂) (herase : T₁.erase l = T₂.erase l') (i : ι) :
↑((pivotBasisEquiv e₁ hl hl' herase) i) = if i = e₁.symm ⟨l, hl⟩ then l' else ↑(e₁ i)
theorem Matrix.IsVertex.det_submatrix_ne_zero {κ : Type u_1} {ι : Type u_2} {K : Type u_3} [Field K] [LinearOrder K] [Fintype ι] [DecidableEq ι] [Fintype κ] {A : Matrix κ ι K} {b : κ → K} {x : ι → K} (hx : A.IsVertex b x) (e : ι ≃ ↥(A.tightRows b x)) :
(A.submatrix (fun (i : ι) => ↑(e i)) id).det ≠ 0

Any bijection onto the tight rows of a vertex gives a square basis matrix with nonzero determinant.

theorem Matrix.isVertex_of_det_submatrix_ne_zero {κ : Type u_1} {ι : Type u_2} {K : Type u_3} [Field K] [LinearOrder K] [IsStrictOrderedRing K] [Fintype ι] [DecidableEq ι] [Fintype κ] {A : Matrix κ ι K} {b : κ → K} {x : ι → K} (hle : A.mulVec x ≤ b) {S : Finset κ} (hS : S ⊆ A.tightRows b x) (e : ι ≃ ↥S) (hdet : (A.submatrix (fun (i : ι) => ↑(e i)) id).det ≠ 0) :
A.IsVertex b x

Conversely, a feasible point with a square nonsingular subset of tight rows is a vertex.

theorem Matrix.IsVertex.det_updateRow_pivot_mul_lt_zero {κ : Type u_1} {ι : Type u_2} {K : Type u_3} [Field K] [LinearOrder K] [IsStrictOrderedRing K] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] {A : Matrix κ ι K} {b : κ → K} {x y : ι → K} (hx : A.IsVertex b x) (hy : A.IsVertex b y) (hne : x ≠ y) {l l' : κ} (hl : l ∈ A.tightRows b x) (hl' : l' ∈ A.tightRows b y) (herase : (A.tightRows b x).erase l = (A.tightRows b y).erase l') (e : ι ≃ ↥(A.tightRows b x)) :
have M := A.submatrix (fun (i : ι) => ↑(e i)) id; M.det * (M.updateRow (e.symm ⟨l, hl⟩) (A l')).det < 0

Replacing the leaving tight row l by the entering tight row l' across an adjacent pivot reverses the sign of the square basis determinant.

theorem Matrix.IsVertex.det_submatrix_pivot_mul_lt_zero {κ : Type u_1} {ι : Type u_2} {K : Type u_3} [Field K] [LinearOrder K] [IsStrictOrderedRing K] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] {A : Matrix κ ι K} {b : κ → K} {x y : ι → K} (hx : A.IsVertex b x) (hy : A.IsVertex b y) (hne : x ≠ y) {l l' : κ} (hl : l ∈ A.tightRows b x) (hl' : l' ∈ A.tightRows b y) (herase : (A.tightRows b x).erase l = (A.tightRows b y).erase l') (e₁ : ι ≃ ↥(A.tightRows b x)) (e₂ : ι ≃ ↥(A.tightRows b y)) :
have σ := (pivotBasisEquiv e₁ hl hl' herase).trans e₂.symm; ↑↑(Equiv.Perm.sign σ) * ((A.submatrix (fun (i : ι) => ↑(e₁ i)) id).det * (A.submatrix (fun (i : ι) => ↑(e₂ i)) id).det) < 0

Across an adjacent pivot edge from x to y (l leaving x, l' entering y), the determinant signs with respect to arbitrary row bijections e₁, e₂ satisfy Perm.sign σ * det M₁ * det M₂ < 0, where σ = e₂⁻¹ ∘ pivotBasisEquiv e₁.