Mean convergence time of alternating lexicographic row and column sorting
Statement
I recently came across this simple looking problem which I can't resolve.
Let be an binary matrix. Define two operations:
• : reorder the rows of into increasing lexicographic order;
• : reorder the columns of into increasing lexicographic order, reading each column from top to bottom.
Starting with , alternate these operations, beginning with the rows:
Let
Thus each complete row sort or column sort counts as one step.
Convergence is automatic: whenever a sort changes the matrix, it strictly decreases the binary word obtained by reading the matrix row by row, in lexicographic order.
The exact deterministic worst case is
for . A short way to see the upper bound is that each nonterminal sort permanently fixes the first not-yet-fixed row or column in the eventual doubly lexicographic ordering; the bound is attained, for , by taking the all-one matrix and putting zeros at
and …
Posed by Arlo · co.combinatorics, pr.probability
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-513971.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-513971.lean
import Mathlib /-! # Mean convergence time of alternating lexicographic row and column sorting Source: https://mathoverflow.net/questions/513971 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_513971 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_513971