\documentclass[11pt]{article}
\usepackage[a4paper,left=25mm,right=25mm,top=23mm,bottom=24mm]{geometry}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[hidelinks]{hyperref}
\hypersetup{pdftitle={Polynomial Removal for the Ordered Binary Corner},
  pdfauthor={Ziqian Wang},pdfsubject={Ordered induced matrix removal}}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{proposition}[theorem]{Proposition}
\newcommand{\dist}{\operatorname{dist}}
\DeclareMathOperator{\Anc}{Anc}
\setlength{\emergencystretch}{1.5em}
\raggedbottom
\title{Polynomial Removal for the Ordered Binary Corner}
\author{Ziqian Wang\\[3pt]
  \normalsize Xiamen University\\
  \normalsize ORCID \href{https://orcid.org/0009-0008-0082-2502}{0009-0008-0082-2502}\\
  \normalsize\href{mailto:480267967@qq.com}{\texttt{480267967@qq.com}}}
\date{21 November 2026}
\begin{document}
\maketitle
\begin{abstract}
Let \(P\) be the ordered binary pattern with rows \(10\) and \(11\).
If at least \(dn^2\) entries of an \(n\times n\) binary matrix must
change to eliminate \(P\), then the matrix contains at least
\((d/9)^{10}n^4\) induced ordered copies. This settles the last
outstanding case of polynomial removal for a single binary
\(2\times2\) pattern. The proof repairs a sample of columns and
inserts the remaining columns in their original order, while
preserving every constraint imposed by earlier columns. We also
give a bound of \((d/14)^{16}n^4\) for each of the two diagonal
patterns, for which Lupini established polynomial removal.
The bounds for all sixteen patterns are formalized in Lean~4.

\end{abstract}

\section{Introduction}
How many entries of a binary matrix must change to eliminate every
ordered copy of a fixed pattern? A removal bound is polynomial if
a matrix that is far from avoiding the pattern must contain many copies,
with a power-law dependence on the edit distance. Gishboliner and
Shapira discuss this question for ordered matrices
\cite[Section~4.2]{GS}. For larger patterns, obstructions are known of sizes
\(66\times66\) \cite{OAI}, \(4\times4\) \cite{ZW}, and \(3\times3\)
\cite{shea}. At size \(2\times2\), Giraudin \cite{giraudin} identified
the ordered corner as the remaining case. Even when a small set of
entries meets every copy, changing those entries can create new copies.

For a fixed \(2\times2\) pattern \(Q\), let \(N_Q(M)\) count the pairs
of rows \(i<j\) and columns \(c<c'\) on which \(M\) agrees with all
four entries of \(Q\). The indices need not be consecutive.
Let \(D_Q(M)\) be the minimum number of entry changes, in either
direction, that produce a \(Q\)-free matrix with the same row and
column orders. For \(P=\left(\begin{smallmatrix}1&0\\1&1\end{smallmatrix}\right)\),
write \(\rho=N_P(M)/n^4\) and \(d=D_P(M)/n^2\).

\begin{theorem}\label{thm:main}
Every binary \(n\times n\) matrix with \(n\ge2\) satisfies
\[
                        \rho\ \ge\ (d/9)^{10}.
\]
\end{theorem}
Giraudin's construction forces any admissible exponent to be at least
\(9/2\) \cite[Section~7]{giraudin}. Thus the infimum of admissible
exponents lies between \(9/2\) and \(10\). Its exact value remains open.

The key step is Lemma~\ref{lem:insert}. In a \(P\)-free prefix, once two
rows share a one-column, each subsequent one in the lower row forces a one in the upper
row. We fill a missing column by following precisely the constraints
already forced by sampled columns. This preserves all later anchors and
bounds the number of changes in each row.

\newpage
\begin{corollary}[All single binary \(2\times2\) patterns]\label{cor:classification}
Write \(d_Q=D_Q(M)/n^2\) and \(\rho_Q=N_Q(M)/n^4\).
For every \(n\ge2\), each pattern \(Q\) satisfies the indicated bound.
\begin{center}
\normalfont
\begin{tabular}{@{}lcl@{}}
\hline
Pattern type & Number & Lower bound for \(\rho_Q\)\\
\hline
One exceptional entry & 8 & \((d_Q/9)^{10}\)\\
Constant              & 2 & \((d_Q/4)^8\)\\
Two parallel stripes  & 4 & \((d_Q/4)^8\)\\
Identity or anti-identity & 2 & \((d_Q/14)^{16}\)\\
\hline
\end{tabular}
\end{center}
\end{corollary}
\begin{proof}
Complementing every entry, transposing, or reversing either axis of
both \(Q\) and \(M\) preserves counts and edit distances. These
symmetries give the four orbits in the table. The corner orbit
follows from Theorem~\ref{thm:main}. The constant and stripe orbits
have representatives with identical rows, treated in
Proposition~\ref{prop:rows}. Theorem~\ref{thm:identity} treats the
two diagonal patterns.
\end{proof}

For the constant and stripe patterns, polynomial removal already
follows from Alon and Ben-Eliezer's theorem for families closed
under row permutations \cite[Theorem~1.5]{ABE}. For the identity
pattern, Lupini proved polynomial removal \cite[Theorem~5.5]{lupini}.
Together with Shea's \(3\times3\) obstruction \cite{shea},
Corollary~\ref{cor:classification} determines the smallest side length
of a \emph{square} binary pattern for which polynomial removal can
fail. It is three, since a one-entry pattern has copy density equal to
its normalized edit distance.

There is also a simple one-sided test for corner-freeness. Select two
distinct rows and two distinct columns uniformly and independently as
pairs, put each pair in increasing order, and inspect their four
entries. A trial detects \(P\) with probability
\(N_P(M)/\binom n2^2\ge4\rho\). At distance at least \(\varepsilon\),
\(O(\varepsilon^{-10}\log(1/\eta))\) independent trials detect
a corner with probability at least \(1-\eta\) for \(0<\eta\le1/2\).
A \(P\)-free matrix is always accepted.

We also bound the repair cost directly in terms of a set of entries
meeting all the original copies.
\begin{theorem}\label{thm:hit}
If a set \(T\) of \(tn^2\) entries meets every copy of \(P\) in \(M\),
then \(d\le t+3t^{1/3}\le4t^{1/3}\).
\end{theorem}

A \emph{staircase matrix} has its nonzero columns covered by
disjoint classes in each of which the column supports are
nested by inclusion from left to right. Equivalently, each row on each
class is a string of zeros followed by ones. Columns in different classes
can occur in any order. We adapt Giraudin's pivot reduction
\cite[Theorem~11]{giraudin} by recording a set of entries that meets
every newly created copy. This lets us repair a sample of columns and
apply the interpolation lemma in the original order.

Theorem~\ref{thm:hit} also implies polynomial removal by the weak removal
theorem of Alon and Ben-Eliezer \cite[Theorem~1.2]{ABE}. The direct proof
of Theorem~\ref{thm:main} gives the displayed numerical exponent.

\section{Extending a sample of a staircase matrix}
The support of a column is the set of its one-rows. For a prefix \(H\)
of an ordered matrix, put an arc \(u\to v\) whenever \(u<v\) share a
one-column of \(H\). Write \(u\preceq_H v\) for reflexive reachability.
This is a partial order since all arcs increase the row index.
A set \(S\) of rows is an ideal if \(v\in S\) and \(u\preceq_H v\)
imply \(u\in S\). Write \(\Anc_H(v)=\{u:u\preceq_H v\}\).

\begin{lemma}\label{lem:forest}
For a \(P\)-free prefix \(H\), a new last column preserves freeness
exactly when its support is an ideal of \(\preceq_H\).
Every set \(\Anc_H(v)\) is a chain.
\end{lemma}
\begin{proof}
A copy ending in the new column uses an arc \(u\to v\) with \(v\) in its
support and \(u\) outside. Closure under single arcs is equivalent to
closure under reachability.

Suppose rows \(u<v\) share a one-column. Then \(u\) contains the
last one-column of \(v\) in \(H\), since a later one of \(v\) absent
from \(u\) would give a copy. Thus all incoming neighbors of \(v\)
share this last column. If there are any, let \(p\) be the greatest
by row index. Every other incoming neighbor has an arc to \(p\).
Consequently \(\Anc_H(v)=\Anc_H(p)\cup\{v\}\).
If there is no incoming neighbor, \(\Anc_H(v)=\{v\}\).
Induction on \(v\) proves the claim.
\end{proof}

This is the prefix forest structure for the induced
\(\Gamma=\left(\begin{smallmatrix}1&1\\1&0\end{smallmatrix}\right)\)
pattern, in our orientation. Reversing the rows and then transposing
maps \(P\) to \(\Gamma\) and our column sweep to a row sweep. See
Chakraborty and Jo \cite[Theorem~2.1 and Appendix~A.2]{CJ} for the
forest representation and its relation to prefix reachability.

\begin{samepage}
\begin{lemma}[Interpolation]\label{lem:insert}
Let \(A\) be a staircase matrix with \(r\) rows and \(m\) classes.
Keep a subset of its columns, called anchors, such that the anchor
submatrix in its inherited order is \(P\)-free.
If each run of consecutive unanchored positions \emph{in the order of
each class} has length at most \(g\), there is a \(P\)-free matrix
agreeing with all anchors and differing from \(A\) in at most \(mg\)
entries of each row. Initial and final runs are included in this hypothesis.
\end{lemma}
\end{samepage}
\begin{proof}
Sweep through the full column order. Maintain the invariant that the
reachability order of the constructed prefix equals that of the anchor
prefix alone. At an anchor, append its given column. Its support is an
ideal by Lemma~\ref{lem:forest} on the anchor subsequence. It is therefore
legal in the full prefix. Both orders gain the same arcs and their
transitive closures still agree.

At a missing column of a class, let \(S_-\) be the support of the
preceding anchor of this class, or \(\varnothing\) if none exists.
If \(S_-\) is empty, append an empty support. Otherwise let \(v=\max S_-\)
and append \(C=\Anc_H(v)\) for the constructed prefix \(H\).
The anchor containing \(S_-\) ensures \(S_-\subseteq C\).
By Lemma~\ref{lem:forest}, \(C\) is both an ideal and a chain.
It is legal as a new column, and every pair of distinct rows in \(C\)
is already reachable in increasing row order. Thus appending \(C\)
leaves reachability unchanged. Columns outside the classes can be
kept zero. The invariant proves global freeness by induction.

Let \(S_+\) be the support of the next anchor of this class, or the
set of all rows if it has none. Nested supports give \(S_-\subseteq S_+\).
Every later anchor support is an ideal of the current anchor-prefix order
because each prefix arc is still present immediately before that anchor.
It follows that \(S_-\subseteq C\subseteq S_+\), with \(C=\varnothing\)
in the empty case. For each fixed row its anchor bits in the class
are nondecreasing. Put a virtual zero before them and a virtual one
after them. The two brackets force the correct bit outside the unique
gap from the last zero to the first one. That gap contains at most
\(g\) unanchored positions, also when the class has no anchor.
Summing over classes proves the bound.
\end{proof}

\section{Producing the nested column classes}
We give a marked version of the bottom-to-top pivot construction
of \cite[Theorem~11]{giraudin}. For a binary \(n\times n\) matrix \(B\) and a set
\(T\) of marked entries, define \(k_T(i,j)\), for \(i<j\), as follows.
Read the bits of row \(i\) in columns \(c\) with \(B_{jc}=1\)
for which both \((i,c),(j,c)\) are unmarked. Then \(k_T(i,j)\)
is the smallest number of positions whose deletion makes this word
nondecreasing. Let \(h=\max_j\sum_{i<j} k_T(i,j)\).
For two matrices let \(\dist\) denote their Hamming distance.

\begin{lemma}[Pivots with marked entries]\label{lem:pivot}
For every integer \(s\ge1\) there are a staircase matrix \(A\) with
\(m\le n/s\) classes and a set \(E\) disjoint from \(T\) such that
\[
 |E|\le mh,\qquad
 \dist(B,A)\le |T|+|E|+n(s-1).
\]
Every copy of \(P\) in \(A\) avoiding \(T\cup E\) is a copy on the
same four cells in \(B\).
\end{lemma}
\begin{proof}
Initially all columns are unclassified. Visit the rows \(w\) from
bottom to top. Let \(S\) consist of the still unclassified columns
where \(B_{wc}=1\) and \((w,c)\notin T\).
If \(|S|\ge s\), make \(S\) a new class and set row \(w\) to one
on \(S\). For each \(i<w\), fill the entire row on \(S\) by a
nondecreasing word. This can be done with at most \(k_T(i,w)\)
changed unmarked entries. Indeed, restrict an optimal positional
deletion set for \(k_T(i,w)\) to \(S\). The surviving unmarked bits
are nondecreasing, so they extend to a nondecreasing word on all of
\(S\). Include its changed unmarked entries in \(E\).
The entries of rows \(i<w\) on \(S\) were still untouched at this step.
After the possible classification, set all still unclassified entries
of row \(w\) to zero.

Each class consumes at least \(s\) columns. On any new class the
previously processed lower rows are already zero, and the pivot row
is all ones. This proves the staircase property. Unmarked changes
made while filling classes cost at most \(h\) per class. At each row
the final zeroing erases at most \(s-1\) unmarked ones, since any
larger set would have been classified. All changes on marked entries
together cost at most \(|T|\) in Hamming distance.

Outside \(T\cup E\) each changed cell is an erased one in a column
that was still unclassified at that row's final zeroing. Every row
below it was already set to zero in that column and is never revisited
there. In a copy avoiding \(T\cup E\) the three ones therefore come
from \(B\). The upper-right zero has a one below it, so it cannot be
one of these erased cells. This proves the last assertion.
\end{proof}

\section{From the number of copies to an explicit repair}
\begin{lemma}[Covering ordered pairs]\label{lem:word}
In a word, let \(J\) count the pairs in which a specified letter
\(a\) precedes a distinct letter \(b\). A set of at most \(2\sqrt J\)
positions meets every such pair.
\end{lemma}
\begin{proof}
For \(J=0\) take the empty set. Otherwise mark the first
\(s=\lfloor\sqrt J\rfloor\) occurrences of \(a\), or all of them if
fewer occur. If an unmarked \(a\) remains, also mark every \(b\)
after the first such \(a\). Each of these \(b\)'s contributes at
least \(s+1\) pairs, so there are at most \(s\) of them.
\end{proof}

\begin{proof}[Proof of Theorem~\ref{thm:main}]
Write \(N=N_P(M)\). If \(N=0\), then \(d=0\). Otherwise put
\(\lambda=\rho^{1/10}\), so \(0<\lambda\le1\) and
\(\sqrt N=\lambda^5 n^2\).

For each \(i<j\), put \(k(i,j)=k_\varnothing(i,j)\) in \(M\).
The inversions \(1\) before \(0\) in the defining word count exactly
the copies on \(i,j\). For each \(c<d\), read \(M_{id}\) along those
rows \(i\) with \(M_{ic}=1\). The pairs \(0\) before \(1\) count
exactly the copies on \(c,d\). Fix a set \(V_{cd}\) of rows meeting
all these pairs using the word bound. In either projection the pair
counts sum to \(N\). Hence by Cauchy--Schwarz,
\begin{equation}\label{eq:sums}
       \sum_{i<j} k(i,j)\le 2n\sqrt N,\qquad
       \sum_{c<d}|V_{cd}|\le 2n\sqrt N .
\end{equation}

Zero every row \(j\) with \(\sum_{i<j}k(i,j)>\lambda^4 n^2\).
By \eqref{eq:sums} at most \(2n\sqrt N/(\lambda^4n^2)=2\lambda n\)
rows are zeroed, at a cost of at most \(2\lambda n^2\) entries.
Call the result \(B\). Zeroing either row of a pair makes its deletion
cost zero, so \(B\) has \(h\le\lambda^4 n^2\) for \(T=\varnothing\).
Apply Lemma~\ref{lem:pivot} with \(s=\lceil n\lambda\rceil\).
Then \(m\le1/\lambda\), \(|E|\le\lambda^3n^2\), and
\(\dist(B,A)\le(\lambda^3+\lambda)n^2\).
Each copy in \(A\) avoiding \(E\) was already present in \(M\),
since an all-zero row cannot occur in \(P\).

Set \(L=\lceil n\lambda^2\rceil\). Within each class, break the
ordered positions into groups of \(L\) and a final remainder of
length less than \(L\). Independently in each full group select one
uniform anchor. Select none in the remainder. Every column has
selection probability at most \(1/L\). Two distinct columns have
joint selection probability \(1/L^2\) if they lie in different full
groups and zero in all other cases.
Each unanchored run within a class has length at most \(2(L-1)\),
including the run ending in the remainder.

Discard every row containing an anchored cell of \(E\), and also every
row in \(V_{cd}\) for any two selected columns \(c<d\). The expected
number of discarded rows is at most
\[
       \frac{|E|}{L}+\frac{\sum_{c<d}|V_{cd}|}{L^2}
       \ \le\ \lambda n+2\lambda n .
\]
Fix an outcome attaining at most this bound. A copy on surviving
rows and anchors would avoid \(E\), hence would be an original copy
whose two rows both avoid its cover \(V_{cd}\). This proves freeness
of the anchor submatrix. Apply Lemma~\ref{lem:insert} to the surviving
rows, then place an all-zero row at each discarded index. This gives
one globally \(P\)-free matrix. Relative to \(A\) its cost is at most
\(3\lambda n^2+2nm(L-1)\le5\lambda n^2\).
Adding the costs gives \(d\le8\lambda+\lambda^3\le9\lambda\).
Since \(\lambda^{10}=\rho\), this proves the theorem.
\end{proof}

\section{Repair from a transversal}
\begin{proof}[Proof of Theorem~\ref{thm:hit}]
If \(t=0\) the matrix is already free. For \(t>0\) apply
Lemma~\ref{lem:pivot} to \(M,T\) with \(s=\lceil nt^{1/3}\rceil\).
In the word defining \(k_T(i,j)\), any inversion would use four
unmarked cells and give an original copy. Thus \(h=0\) and \(E\)
is empty. We have \(m\le n/s\), \(\dist(M,A)\le |T|+n(s-1)\),
and \(T\) meets every copy in \(A\).

Let \(L=\lceil nt^{2/3}\rceil\). In each class sample all positions
of one uniformly chosen residue modulo \(L\), numbering positions
in class order. Every class column is selected with probability
\(1/L\), and the maximum unanchored run has length \(L-1\).
In expectation at most \(|T|/L\) rows contain a sampled mark.
Choose an outcome with at most this many, and discard these rows.
The remaining anchor matrix is \(P\)-free because every copy would
avoid \(T\). Apply Lemma~\ref{lem:insert} and return the discarded
rows as zeros at their original indices. In normalized units this costs
\[
 d\le t+\frac{s-1}{n}+\frac{tn}{L}+\frac{m(L-1)}{n}
    \le t+3t^{1/3}.
\]
Here \(s-1\le nt^{1/3}\), \(tn/L\le t^{1/3}\), and
\(m(L-1)/n\le(L-1)/s\le t^{1/3}\). These bounds include \(L=1\),
when every class position is an anchor. Since \(0\le t\le1\), also
\(t+3t^{1/3}\le4t^{1/3}\).
\end{proof}

For completeness, the union of a maximal collection of \(\nu\)
entry-disjoint copies is a transversal of size \(4\nu\).
Since \(t=4\nu/n^2\le1\), Theorem~\ref{thm:hit} gives \(\nu/n^2\ge d^3/256\).
Thus if \(u,v>0\) are the fixed-pattern constants in
\cite[Theorem~1.2]{ABE}, its hypothesis gives the independent estimate
\(\rho\ge u(d^3/256)^v\).

\section{Patterns with two identical rows}
\begin{proposition}\label{prop:rows}
If the two rows of \(Q\) coincide, then \(\rho_Q\ge(d_Q/4)^8\).
\end{proposition}
\begin{proof}
Write \(ab\) for the common row. Let \(k_{cc'}\) count the rows
showing \(ab\) in columns \(c<c'\). The total number \(W\) of
occurrences of \(ab\) within rows and the number \(N\) of copies
of \(Q\) satisfy
\[
 W=\sum_{c<c'}k_{cc'},\qquad N=\sum_{c<c'}\binom{k_{cc'}}2.
\]
Since \(k\le1+\sqrt{2\binom{k}{2}}\), Cauchy--Schwarz gives
\(W\le n^2/2+n\sqrt N\).
A row containing \(J\) occurrences of \(ab\) can be made free of
that word with at most \(2\sqrt J\) edits. When \(a\ne b\),
Lemma~\ref{lem:word} leaves a word consisting of \(b\)'s followed
by \(a\)'s after the marked positions are dropped. Fill them to
preserve this order. When \(a=b\), flip all but one occurrence of
\(a\) if there are any. Summing the row costs gives
\(D_Q(M)\le2\sqrt{nW}\). If \(N=0\) the matrix is already free.
Otherwise \(n^{-1}\le\rho_Q^{1/4}\) and
\(\rho_Q^{1/2}\le\rho_Q^{1/4}\), so
\(d_Q\le2\sqrt{1/(2n)+\sqrt{\rho_Q}}\le4\rho_Q^{1/8}\).
\end{proof}

\section{An explicit bound for the ordered identity}\label{sec:identity}

Let \(I=\left(\begin{smallmatrix}1&0\\0&1\end{smallmatrix}\right)\).
Lupini proved polynomial removal for \(I\) in
\cite[Theorem~5.5]{lupini}. We use his idea of repairing a block to
nested row supports while preserving its column sums
\cite[Lemma~3.2]{lupini}. Counting the minority orientation of each
column pair and sampling rows of the repaired blocks give a numerical bound.

\begin{theorem}\label{thm:identity}
For \(Q=I\) or its bitwise complement and every binary \(n\times n\)
matrix \(M\), \(n\ge2\),
\[
  \frac{N_Q(M)}{n^4}\ \ge\
  \left(\frac{D_Q(M)}{14n^2}\right)^{16}.
\]
\end{theorem}

\begin{proof}
It suffices to consider \(I\), since complementing every entry preserves
copy counts and edit costs when the pattern is also complemented.
Write \(N=N_I(M)\), \(D=D_I(M)\). If \(N=0\), then \(D=0\).
Otherwise put \(x=(N/n^4)^{1/16}\), \(L=\lceil nx^2\rceil\), and
\(g=\lceil nx^3\rceil\).

Partition the rows into consecutive blocks of \(L\), with a possibly
shorter last block. For fixed columns \(c<d\), let \(u_b,v_b\) be the
numbers of rows in block \(b\) with entries \(10,01\), respectively.
Set \(w_b=\min(u_b,v_b)\), \(S_{cd}=\sum_b w_b\), and let \(N_{cd}\)
count the copies on these columns. Since \(w_b\le L\) and each
\(10\) in an earlier block forms a copy with each \(01\) in a later
block,
\[
 S_{cd}^2\le L S_{cd}+2\sum_{b<b'}u_bv_{b'}\le L S_{cd}+2N_{cd}.
\]
Thus \((S_{cd}-L)_+^2\le2N_{cd}\), where \(z_+=\max(z,0)\).
Summing over column pairs and applying Cauchy--Schwarz gives
\(W:=\sum_{c<d}S_{cd}\le n^2L+2n\sqrt N\).

In a block of height \(r_b\), order the columns temporarily by increasing
one-count, breaking ties by position. For each pair the number of rows
showing \(10\) in this order is \(w_b\), since the difference of the two
column sums equals the difference of the two orientation counts.
Hence the number of word inversions summed over the rows is
\(W_b:=\sum_{c<d} w_b(c,d)\).
By Lemma~\ref{lem:word}, a row
with \(J\) inversions can be made nondecreasing in at most \(2\sqrt J\)
edits by filling a set meeting all inversions to extend the surviving
nondecreasing word. By Cauchy--Schwarz this takes at most
\(2\sqrt{r_bW_b}\) edits in the block. The resulting row supports are
nested, including after the columns return to their original positions.

Rank the repaired rows by increasing support size. Each column is now
a final segment of these ranks. Resize this segment to its original
one-count. The additional cost in the column is the absolute change
in its sum during the first repair, at most the first repair cost there.
The resulting rows remain nested. For two columns of original weights
\(s_c,s_d\) in this block, the number of rows showing \(10\) is now
\((s_c-s_d)_+\le u_b\), and the number showing \(01\) is at most \(v_b\).

Let \(A\) display the repaired rows in rank order within each block,
and let \(e(i)\) be the display position of original row \(i\). Writing
\((A\circ e)_{ic}=A_{e(i),c}\), the cost at the original indices satisfies
\[
 d_1:=\dist(M,A\circ e)\le4\sum_b\sqrt{r_bW_b}\le4\sqrt{nW}.
\]
No two rows in a block can form \(I\). For fixed columns, the number
of copies across any two blocks is the product of the two relevant
orientation counts. Neither factor increased, so \(N_I(A)\le N\).

For each pair of displayed rows \(i<j\), read the columns of \(A\)
as pairs of bits. A copy on these rows consists of \(10\) followed by
\(01\). The same inversion bound gives column sets \(V_{ij}\) meeting
all such copies, with \(\sum_{i<j}|V_{ij}|\le2n\sqrt N\) by
Cauchy--Schwarz. In each block sample one row independently and
uniformly from each full consecutive group of \(g\) rows, skipping
the final remainder. Two distinct rows are jointly sampled with
probability at most \(g^{-2}\). The union \(Z\) of all \(V_{ij}\) for
sampled pairs therefore satisfies \(|Z|\le2n\sqrt N/g^2\) for some
outcome. Fix this outcome and set the columns in \(Z\) to zero.

Replace each row by the latest sampled row at or before it in its
block, using the zero row before the first sample. The resulting
matrix \(H\) is free. Indeed, rows in a block remain nested, and a
copy across two blocks would give a copy on the two corresponding
sampled rows outside their cover. For each surviving column, its
bits were nondecreasing in each block. They can change only in the
unsampled gap containing the transition to one, including an initial
or final gap. Each gap contains at most \(2(g-1)\) rows. With at most
\(k=\lfloor n/L\rfloor+1\) blocks, we have
\(\dist(A,H)\le n(|Z|+2k(g-1))\).
The matrix \(H\circ e\) is still free because rows in the same block are
comparable in either order, and distinct blocks retain their order.
Since \(\dist(A\circ e,H\circ e)=\dist(A,H)\),
\(D\le d_1+\dist(A,H)\).

Finally \(0<x\le1\), \(nx^4=N^{1/4}\ge1\), and \(\sqrt N=x^8n^2\).
Consequently \(L\le2nx^2\), \(kx^2\le2\), and \(g-1\le nx^3\).
These give \(W\le4x^2n^3\), \(d_1\le8xn^2\),
\(|Z|\le2x^2n\), and \(2k(g-1)\le4xn\). Thus \(D\le14xn^2\).
\end{proof}

\section*{Formal verification}
The accompanying Lean~4 project proves the corner bound, the
transversal and packing estimates, and polynomial removal for
every single ordered binary \(2\times2\) pattern. Its definitions
use strictly increasing row and column indices and minimize Hamming
distance over all free binary matrices of the same size. In particular,
the row permutations used in Section~\ref{sec:identity} are undone
before the editing cost is measured.

In the namespace \texttt{CornerRemoval}, the main theorem is
\texttt{polynomial\_removal}. The declarations
\texttt{Orbit.diagonal\_orbit\_bound} and
\texttt{Orbit.polynomial\_removal\_all\_patterns} give the
diagonal estimate and the classification. The ancillary Lean project
contains proofs for every orbit, the dependency lockfile, and the
kernel report in \texttt{VERIFICATION.txt}. All 34 project
modules were compiled from source and replayed with the Lean~4.33.0
kernel using the pinned mathlib cache. The main results depend only
on \texttt{propext}, \texttt{Classical.choice}, and \texttt{Quot.sound}.
A separate computational check exercises the corner repair on all
\(65{,}536\) binary \(4\times4\) matrices.

\section*{Author contributions and AI disclosure}
Ziqian Wang selected the ordered corner problem, set the research
objective and criteria for a complete solution, and directed the
multi-agent investigation and verification. AI systems developed
the proofs, wrote the Lean formalization, and assisted with drafting
and revising the manuscript. Additional AI-assisted checks examined
the mathematical arguments.

\begin{thebibliography}{9}
\raggedright
\small
\setlength{\itemsep}{2pt plus 1pt}
\bibitem{ABE} N.~Alon and O.~Ben-Eliezer,
\emph{Efficient removal lemmas for matrices}, Order \textbf{37}
(2020), 83--101. \href{https://doi.org/10.1007/s11083-019-09494-3}{doi:10.1007/s11083-019-09494-3}.
\bibitem{CJ} S.~Chakraborty and S.~Jo,
\emph{Optimal labeling schemes for \(\Gamma\)-free matrices},
\href{https://arxiv.org/html/2610.29184v2}{arXiv:2610.29184v2} (2026).
\bibitem{giraudin} D.~N.~Giraudin,
\emph{The ordered \(2\times2\) corner pattern: a removal exponent of at
least \(9/2\), and other partial results},
\href{https://hexagonmath.org/pdf/2611.00720v1}{hexagon:2611.00720v1}
(20 November 2026).
\bibitem{GS} L.~Gishboliner and A.~Shapira,
\emph{Polynomial property testing}, Computer Science Review \textbf{58}
(2025), 100806. \href{https://doi.org/10.1016/j.cosrev.2025.100806}{doi:10.1016/j.cosrev.2025.100806}.
\bibitem{lupini} M.~Lupini,
\emph{Polynomial removal for the ordered two-by-two identity matrix},
Zenodo preprint (2 November 2026).
\href{https://doi.org/10.5281/zenodo.23618367}{doi:10.5281/zenodo.23618367}.
\bibitem{OAI} OpenAI mathematics collection,
\emph{Polynomial removal fails for ordered binary matrices},
manuscript (25 September 2026).
\href{https://github.com/openai/math/blob/4eaee87548250b2682affda7d05d947c05554bae/preprints/Polynomial-removal-fails-for-ordered-binary-matrices-September-25-2026/paper.pdf}{Family 190, manuscript and construction}.
\bibitem{shea} R.~Shea,
\emph{A \(3\times3\) ordered binary matrix removal obstruction},
manuscript (12 October 2026).
\href{https://github.com/shea256/ordered-binary-matrix-removal/blob/527bffa3e3798594738efe3dc1afc22a8ef2ce32/manuscript.md}{Manuscript and construction}.
\bibitem{ZW} Zinan Wang,
\emph{A four-by-four obstruction to polynomial removal for ordered
binary matrices}, \href{https://arxiv.org/abs/2610.15370}{arXiv:2610.15370}
(2026).
\end{thebibliography}
\end{document}
