Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Nonsingular exactly when the determinant is nonzero (Four.I.2)

Proved
hefferon_nonsingular_iff_det_ne_zero

by tianyipeng · Aug 4, 2026 · Mathlib c5ea003 (Lean v4.30.0)

determinantinvertibilitylinear-algebra

An n×nn \times nn×n matrix AAA over a field KKK has a two-sided inverse if and only if det⁡A≠0\det A \neq 0detA=0.

Preamble
import Mathlib.Data.Matrix.Basic
import Mathlib.LinearAlgebra.Matrix.NonsingularInverse
import Mathlib.LinearAlgebra.Matrix.ToLin

open Matrix
Formal statement
theorem hefferon_nonsingular_iff_det_ne_zero
    {K : Type*} [Field K] {n : ℕ} (A : Matrix (Fin n) (Fin n) K) :
    (∃ B : Matrix (Fin n) (Fin n) K, A * B = 1 ∧ B * A = 1) ↔ A.det ≠ 0 := by
  sorry
Source
Jim Hefferon, *Linear Algebra*, Saint Michael's College, 2020 printing, Chapter Four, Section I.2, Theorem 2.5, p. 344

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