Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5.5 — a matrix is mixed if and only if it contains a corner

Proved
TwinWidthI.GridThm.lemma_5_5

by mikedeng1 · Oct 8, 2026 · Mathlib 0df444a (Lean v4.33.1)

cornermatrixmixed-minorp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1twin-width

Let M=(mi,j)M=(m_{i,j})M=(mi,j​) be an n×mn\times mn×m matrix over a finite alphabet. Call MMM mixed if it is neither vertical (all rows equal) nor horizontal (all columns equal), and call a corner any mixed 2×22\times 22×2 submatrix (mi,j,mi+1,j,mi,j+1,mi+1,j+1)(m_{i,j},m_{i+1,j},m_{i,j+1},m_{i+1,j+1})(mi,j​,mi+1,j​,mi,j+1​,mi+1,j+1​) on two consecutive rows and two consecutive columns. Then

M is mixed  ⟺  M contains a corner.M\ \text{is mixed}\iff M\ \text{contains a corner}.M is mixed⟺M contains a corner.

Corners localize mixedness: they play for mixed minors the role that the entries 111 play in the Marcus–Tardos theorem, and they drive Lemma 5.6 and Lemma 5.7.

Formalization Note The whole matrix is the zone univ × univ; IsCorner M i j asserts that rows i, i+1 and columns j, j+1 exist and that the 2×22\times22×2 zone they span is mixed. For n≤1n\le 1n≤1 or m≤1m\le1m≤1 both sides are false.

Preamble
import Mathlib
import Definitions.Def_TwinWidthI_GridThm_Setting
Formal statement
namespace TwinWidthI.GridThm

/-- Lemma 5.5, p. 3:20: a matrix is mixed if and only if it contains a corner. -/
theorem lemma_5_5 {A : Type*} [Fintype A] {n m : ℕ} (M : Matrix (Fin n) (Fin m) A) :
    IsMixed M Finset.univ Finset.univ ↔ ∃ i j, IsCorner M i j := by sorry

end TwinWidthI.GridThm
Source
Bonnet, Kim, Thomassé and Watrigant, Twin-width I: Tractable FO Model Checking, J. ACM 69(1), Article 3 (2021), p. 3:20, Lemma 5.5
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 8, 2026

    Confirmed by the mission captain (proposal self-audit).

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