Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Basic solution carried by a nonsingular square subsystem

Proved
SmaleNinth.exists_square_subsystem

by carlok · Sep 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

computational-complexitylinear-algebralinear-optimization

Every consistent linear system has a basic solution carried by a nonsingular square subsystem.

Let A∈Rm×nA\in\mathbb{R}^{m\times n}A∈Rm×n, b∈Rmb\in\mathbb{R}^mb∈Rm, let III be a set of row indices, and suppose the subsystem Aix=bi (i∈I)A_i x = b_i\ (i\in I)Ai​x=bi​ (i∈I) has a solution. Then there are an integer r≤nr\le nr≤n, a solution yyy of the same subsystem, and selections of rrr rows and rrr columns such that

  1. the r×rr\times rr×r submatrix A[rows,cols]A[\text{rows},\text{cols}]A[rows,cols] is nonsingular;
  2. the restricted vector (yc1,…,ycr)(y_{c_1},\dots,y_{c_r})(yc1​​,…,ycr​​) solves that square system against the corresponding entries of bbb;
  3. yyy vanishes at every coordinate outside the chosen columns.

What it is for. This is the structural half of every size estimate in linear programming. A general consistent system says nothing about how large its solutions must be, but a square nonsingular system is governed by Cramer's rule, and over integer data that immediately bounds the solution. This lemma is what reduces the former to the latter; the arithmetic is then SmaleNinth.cramer_solution_bound.

The argument. Among all solutions of the subsystem, choose one, yyy, whose set of zero coordinates is as large as possible; this is possible because that set is a subset of a finite index set. Let TTT be the support of yyy.

The columns of AIA_IAI​ indexed by TTT are then linearly independent. Otherwise some nonzero vvv supported in TTT satisfies AIv=0A_I v = 0AI​v=0; then y+tvy + tvy+tv solves the subsystem for every ttt, and choosing ttt to cancel one of the nonzero coordinates of yyy produces a solution with a strictly larger zero set, contradicting the choice of yyy. (When TTT is empty the statement holds with r=0r=0r=0.)

Write r=∣T∣≤nr=|T|\le nr=∣T∣≤n. Since the rrr selected columns are independent, the matrix AI[ ⋅ ,T]A_I[\,\cdot\,,T]AI​[⋅,T] has rank rrr; as row rank equals column rank, its rows span Rr\mathbb{R}^{r}Rr, so rrr of them form a basis. Selecting those rows gives an r×rr\times rr×r submatrix whose rows are linearly independent, hence invertible, hence of nonzero determinant. Restricting the identity AIy=bIA_I y = b_IAI​y=bI​ to those rows, and using that yyy vanishes off TTT, gives exactly the square system in (2).

Preamble
import Mathlib
import Definitions.Def_Polyhedron

open Matrix LinearOptimization
Formal statement
theorem SmaleNinth.exists_square_subsystem {m n : ℕ}
    (A : Matrix (Fin m) (Fin n) ℝ) (b : Fin m → ℝ) (I : Finset (Fin m))
    (x : Fin n → ℝ) (hx : ∀ i ∈ I, A.mulVec x i = b i) :
    ∃ (r : ℕ) (y : Fin n → ℝ) (row : Fin r → Fin m) (col : Fin r → Fin n),
      (∀ i ∈ I, A.mulVec y i = b i) ∧
      r ≤ n ∧
      (A.submatrix row col).det ≠ 0 ∧
      (A.submatrix row col).mulVec (fun k => y (col k)) = (fun k => b (row k)) ∧
      (∀ j, j ∉ Set.range col → y j = 0) := by sorry
Source
D. Bertsimas, J. N. Tsitsiklis, Introduction to Linear Optimization, Athena Scientific 1997, Section 2.2 (basic solutions) and Section 8.4 (size of solutions); B. Korte, J. Vygen, Combinatorial Optimization, 6th ed., Springer 2018, Section 4.1, proof of Theorem 4.4.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me