is_moore_penrose_inverse_zero
For any natural number $n$, the $n \times n$ real zero matrix is its own Moore–Penrose pseudoinverse.
Statement
theorem is_moore_penrose_inverse_zero (n : ℕ) :
is_moore_penrose_inverse (0 : Matrix (Fin n) (Fin n) ℝ) 0- Source
- folklore
- Verified
- 19 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- is_moore_penrose_inverseA real matrix A_pinv is the Moore-Penrose pseudoinverse of A if A * A_pinv * A = A, A_pinv * A * A_pinv = A_pinv, and both A * A_pinv and…
- positive_matrix_order_four_left_stationaryA strictly positive order-four real matrix with constant row sum has a strictly positive normalized left eigenvector with that eigenvalue.
Read back from the Lean
For every natural number $n$, the $n \times n$ zero matrix with real entries (indexed by Fin n) has the $n \times n$ zero matrix as its Moore–Penrose pseudoinverse (satisfies is_moore_penrose_inverse).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
By unfolding the definition of the Moore–Penrose pseudoinverse, the theorem requires checking four conditions: A A† A = A, A† A A† = A†, (A A†)ᵀ = A A†, and (A† A)ᵀ = A† A. Setting both A and A† to the n × n zero matrix, all products and transposes evaluate to zero, so all four identities reduce trivially to 0 = 0.
The n × n real zero matrix is its own Moore–Penrose pseudoinverse.
Unfolding the definition of `is_moore_penrose_inverse` for the zero matrix yields four equations: 0 * 0 * 0 = 0, 0 * 0 * 0 = 0, (0 * 0)ᵀ = 0 * 0, and (0 * 0)ᵀ = 0 * 0. Since the product of zero matrices is zero and the transpose of the zero matrix is zero, every equation reduces to 0 = 0, and the simplifier (`simpa`) closes the goal.
uses
is_moore_penrose_inverse,positive_matrix_order_four_left_stationaryis_moore_penrose_inverse (0 : Matrix (Fin n) (Fin n) ℝ) 0 := by first | exact positive_matrix_order_four_left_stationary | (apply positive_matrix_order_four_left_stationary <;> assumption) | (apply positive_matrix_order_four_left_stationary <;> simp_all) | simpa using positive_matrix_order_four_left_stationary | (simp only [is_moore_penrose_inverse] at *; first | exact positive_matrix_order_four_left_stationary | (apply positive_matrix_order_four_left_stationary <;> assumption) | (apply positive_matrix_order_four_left_stationary <;> simp_all) | simpa using positive_matrix_order_four_left_stationary)
is_moore_penrose_inverse- A matrix A_pinv is the Moore–Penrose pseudoinverse of A if A * A_pinv * A = A, A_pinv * A * A_pinv = A_pinv, (A * A_pinv)ᵀ = A * A_pinv, and (A_pinv * A)ᵀ = A_pinv * A.
positive_matrix_order_four_left_stationary- Every strictly positive 4 × 4 matrix with constant row sums r has a strictly positive stationary probability vector. (Unused in the proof.)
- The proof script is an artifact of automated tactic search. It repeatedly attempts to apply `positive_matrix_order_four_left_stationary` (a theorem about stationary distributions of strictly positive 4 × 4 matrices), but that lemma is completely irrelevant and unused. The goal is solved solely by algebraic simplification of zero matrices.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- The zero matrix is its own Moore-Penrose pseudoinverse. -/theorem is_moore_penrose_inverse_zero (n : ℕ) : is_moore_penrose_inverse (0 : Matrix (Fin n) (Fin n) ℝ) 0 := by first | exact positive_matrix_order_four_left_stationary | (apply positive_matrix_order_four_left_stationary <;> assumption) | (apply positive_matrix_order_four_left_stationary <;> simp_all) | simpa using positive_matrix_order_four_left_stationary | (simp only [is_moore_penrose_inverse] at *; first | exact positive_matrix_order_four_left_stationary | (apply positive_matrix_order_four_left_stationary <;> assumption) | (apply positive_matrix_order_four_left_stationary <;> simp_all) | simpa using positive_matrix_order_four_left_stationary)