Strict and weak local-order images of doubly sorted binary strips

Start with a binary array of \(n+1\) rows and \(k+1\) columns, where \(n,k\ge1\). Its rows, read from left to right, are in lexicographically nondecreasing order from top to bottom. Its columns, read from top to bottom, are in the same order from left to right. Here \(0<1\), and the first unequal bit decides the order. Each adjacent \(2\times2\) block gives one bit of an \(n\times k\) image. The strict rule marks the block if its top row is lexicographically smaller than its bottom row and its left column is lexicographically smaller than its right column. The weak rule allows equality in both comparisons. Under either rule, a distinct image is counted once, however many arrays produce it. Hardin's two tables ask when these image counts agree with the printed polynomials at widths one to five. For the strict rule, all five polynomials hold, with earliest positive lengths \(1,1,1,1,4\), respectively. This includes the wider formulas A227087 and A227088. The exact Barker fractions and recurrences at widths two and three were already established by Lean proofs. A227089, polynomial columns 1–5 and companions A227085–A227088 · A227085, width-two Lean proof · A227086, width-three Lean proof For the weak rule, all five polynomials hold, with earliest positive lengths \(1,2,4,9,19\). The width-five formula therefore holds from \(n=19\), sharpening its printed condition \(n>30\). The width-two Barker fraction and recurrence were established previously, and the widths three to five give the exact onsets for A227253–A227255. A227256, polynomial columns 1–5 and companions A227252–A227255 · A227252, earlier width-two proof For every fixed width \(k\ge1\), put \(B=2^{k-1}\) and \(d=3B-1\). Both counts are eventually polynomials of degree \(d\). The leading coefficients are \(1/d!\) under the strict rule and \(2^{\lfloor B/2\rfloor}/d!\) under the weak rule, where \(\lfloor B/2\rfloor\) is the integer part of \(B/2\). Thus the ratio of weak to strict counts tends to \(2^{\lfloor B/2\rfloor}\) as \(n\) grows at fixed \(k\). At width one the counts are already \(1+n+\binom n2\) and \(1+\binom n2\) for every positive \(n\), respectively. A strict image at that width has at most two ones in arbitrary positions. A weak image is all ones or has a single interval of zeros contained in positions \(2,\ldots,n\). An exact construction gives the counts at any length and specifies all ten native polynomials in a binomial basis. After reading an image prefix, keep the set of all compatible states \((a,U)\), where \(a\) is the last hidden row and \(U\subseteq\{1,\ldots,k\}\) consists of the adjacent column pairs that still agree in every hidden row read so far. The initial set contains every first row \(a\) with \(a_j\le a_{j+1}\) for every \(j\), with \(U=\{j:a_j=a_{j+1}\}\). From \((a,U)\), try every row \(b\) with \(a\le_{\rm lex}b\). Keep it if \(b_j\le b_{j+1}\) for every \(j\in U\), and update \(U\) to \(\{j\in U:b_j=b_{j+1}\}\). Label the transition by the mask obtained from the adjacent blocks between \(a\) and \(b\), using the chosen local rule. For a proposed mask, take the union of all successors with that label. Discard empty unions. Each nonempty union is a single state of the counting procedure, so each accepted mask word contributes once. To count efficiently, start with weight one on the initial set and transfer each set's weight once per mask with a nonempty successor, adding weights when successors coincide. The sum of weights after \(m\) steps is the image count \(A_m\). For the formulas below, use \(A_m=0\) for \(m\le0\) as a convention for the series indexed by positive lengths. In the table, \(R\) is the denominator exponent, \(s\) is the earliest positive polynomial length and \(T\) is the numerator degree. The two triples in each row give \((s,T,c_T)\) under the respective rules. Width \(k\)Polynomial degree\(R\)Strict \((s,T,c_T)\)Weak \((s,T,c_T)\)123\((1,3,1)\)\((1,3,1)\)256\((1,6,-1)\)\((2,7,1)\)31112\((1,12,-1)\)\((4,15,-2)\)42324\((1,24,-1)\)\((9,32,-3)\)54748\((4,51,-27)\)\((19,66,-3)\) For each entry, compute \(A_1,\ldots,A_T\) by the state construction and set \[c_j=\sum_{i=0}^{\min(j,R)}(-1)^i\binom Ri A_{j-i}\quad(0\le j\le T),\qquad \sum_{m\ge1} A_m x^m=\frac{\sum_{j=0}^{T}c_jx^j}{(1-x)^R}. \] Here \(x\) is a formal variable. The full polynomial for that entry is \[P(n)=\sum_{j=0}^{T}c_j\frac{\prod_{u=1}^{R-1}(n-j+u)}{(R-1)!},\qquad A_n=P(n)\quad(n\ge s). \] The fraction also gives exact counts at positive lengths below \(s\) by coefficient extraction. At strict widths two and three these fractions have denominators \((1-x)^6\) and \((1-x)^{12}\), with their full numerators specified by the same finite formula. At weak width two the fraction is \(x(2-9x+21x^2-26x^3+20x^4-7x^5+x^6)/(1-x)^6\). Barker's recurrence in each case is \(A_n=\sum_{i=1}^{R}(-1)^{i+1}\binom Ri A_{n-i}\), with sharp starts \(n=7,13\) for the two strict widths and \(n=8\) for weak width two. The leading terms come from different features of the images. Split the ordered hidden row ranks into \(B\) blocks by their leading \(k-1\) bits. Each block has four trailing ranks \(0,1,2,3\), representing \(00,01,10,11\). Under the strict rule a repeated row emits an all-zero mask. The only marked local two-bit row transitions are \(00\to01\), \(01\to10\) and \(01\to11\). An image can have at most \(d\) nonzero mask rows, and the ordered word of nonzero masks at that maximum is unique. To generate it, take ranks \(0,1,2\) in each block in order and emit the masks between successive rows, including across blocks. Repeating witness rows places this word at any \(d\) of the \(n\) positions, giving exactly \(\binom nd\) images at the maximum. Under the weak rule, repeating row \(a\) emits the mask with bit \(j\) equal to \(\mathbf1\{a_j\le a_{j+1}\}\), where \(\mathbf1\) is one when the condition holds and zero otherwise. In each block, ranks 0 and 1 have the same repetition mask, and their connecting transition emits that mask too. The leading contribution comes from three variable-length groups in each block, one from rank 0 or 1 or both, followed by ranks 2 and 3. Their masks have last bits \(1,0,1\). In a block whose prefix represents an odd binary integer, choosing rank 0 gives an isolated mask between the first two long runs, whereas choosing rank 1 makes the connecting mask part of the first run. For even or empty prefixes the connecting mask is absorbed into a run with either choice. Each subset of odd-prefix blocks can therefore be selected by using rank 0 precisely in those blocks and rank 1 in the others, retaining ranks 2 and 3 throughout and repeating the selected rows. These are legal sorted witnesses. The isolated masks distinguish \(2^{\lfloor B/2\rfloor}\) types, and each type has \(3B\) variable run lengths subject to one total-length constraint. Each contributes the leading coefficient \(1/d!\), which accounts for the larger weak leading term at widths \(k\ge2\).

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-03
DOI
https://doi.org/10.5281/zenodo.24797008
Primary Topic
Advanced Combinatorial Mathematics
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Strict and weak local-order images of doubly sorted binary strips

Zixuan He
Zenodo (CERN European Organization for Nuclear Research)
Advanced Combinatorial Mathematics
preprint

Strict and weak local-order images of doubly sorted binary strips

Zixuan He
preprint en

Abstract

Start with a binary array of \(n+1\) rows and \(k+1\) columns, where \(n,k\ge1\). Its rows, read from left to right, are in lexicographically nondecreasing order from top to bottom. Its columns, read from top to bottom, are in the same order from left to right. Here \(0<1\), and the first unequal bit decides the order. Each adjacent \(2\times2\) block gives one bit of an \(n\times k\) image. The strict rule marks the block if its top row is lexicographically smaller than its bottom row and its left column is lexicographically smaller than its right column. The weak rule allows equality in both comparisons. Under either rule, a distinct image is counted once, however many arrays produce it. Hardin's two tables ask when these image counts agree with the printed polynomials at widths one to five. For the strict rule, all five polynomials hold, with earliest positive lengths \(1,1,1,1,4\), respectively. This includes the wider formulas A227087 and A227088. The exact Barker fractions and recurrences at widths two and three were already established by Lean proofs. A227089, polynomial columns 1–5 and companions A227085–A227088 · A227085, width-two Lean proof · A227086, width-three Lean proof For the weak rule, all five polynomials hold, with earliest positive lengths \(1,2,4,9,19\). The width-five formula therefore holds from \(n=19\), sharpening its printed condition \(n>30\). The width-two Barker fraction and recurrence were established previously, and the widths three to five give the exact onsets for A227253–A227255. A227256, polynomial columns 1–5 and companions A227252–A227255 · A227252, earlier width-two proof For every fixed width \(k\ge1\), put \(B=2^{k-1}\) and \(d=3B-1\). Both counts are eventually polynomials of degree \(d\). The leading coefficients are \(1/d!\) under the strict rule and \(2^{\lfloor B/2\rfloor}/d!\) under the weak rule, where \(\lfloor B/2\rfloor\) is the integer part of \(B/2\). Thus the ratio of weak to strict counts tends to \(2^{\lfloor B/2\rfloor}\) as \(n\) grows at fixed \(k\). At width one the counts are already \(1+n+\binom n2\) and \(1+\binom n2\) for every positive \(n\), respectively. A strict image at that width has at most two ones in arbitrary positions. A weak image is all ones or has a single interval of zeros contained in positions \(2,\ldots,n\). An exact construction gives the counts at any length and specifies all ten native polynomials in a binomial basis. After reading an image prefix, keep the set of all compatible states \((a,U)\), where \(a\) is the last hidden row and \(U\subseteq\{1,\ldots,k\}\) consists of the adjacent column pairs that still agree in every hidden row read so far. The initial set contains every first row \(a\) with \(a_j\le a_{j+1}\) for every \(j\), with \(U=\{j:a_j=a_{j+1}\}\). From \((a,U)\), try every row \(b\) with \(a\le_{\rm lex}b\). Keep it if \(b_j\le b_{j+1}\) for every \(j\in U\), and update \(U\) to \(\{j\in U:b_j=b_{j+1}\}\). Label the transition by the mask obtained from the adjacent blocks between \(a\) and \(b\), using the chosen local rule. For a proposed mask, take the union of all successors with that label. Discard empty unions. Each nonempty union is a single state of the counting procedure, so each accepted mask word contributes once. To count efficiently, start with weight one on the initial set and transfer each set's weight once per mask with a nonempty successor, adding weights when successors coincide. The sum of weights after \(m\) steps is the image count \(A_m\). For the formulas below, use \(A_m=0\) for \(m\le0\) as a convention for the series indexed by positive lengths. In the table, \(R\) is the denominator exponent, \(s\) is the earliest positive polynomial length and \(T\) is the numerator degree. The two triples in each row give \((s,T,c_T)\) under the respective rules. Width \(k\)Polynomial degree\(R\)Strict \((s,T,c_T)\)Weak \((s,T,c_T)\)123\((1,3,1)\)\((1,3,1)\)256\((1,6,-1)\)\((2,7,1)\)31112\((1,12,-1)\)\((4,15,-2)\)42324\((1,24,-1)\)\((9,32,-3)\)54748\((4,51,-27)\)\((19,66,-3)\) For each entry, compute \(A_1,\ldots,A_T\) by the state construction and set \[c_j=\sum_{i=0}^{\min(j,R)}(-1)^i\binom Ri A_{j-i}\quad(0\le j\le T),\qquad \sum_{m\ge1} A_m x^m=\frac{\sum_{j=0}^{T}c_jx^j}{(1-x)^R}. \] Here \(x\) is a formal variable. The full polynomial for that entry is \[P(n)=\sum_{j=0}^{T}c_j\frac{\prod_{u=1}^{R-1}(n-j+u)}{(R-1)!},\qquad A_n=P(n)\quad(n\ge s). \] The fraction also gives exact counts at positive lengths below \(s\) by coefficient extraction. At strict widths two and three these fractions have denominators \((1-x)^6\) and \((1-x)^{12}\), with their full numerators specified by the same finite formula. At weak width two the fraction is \(x(2-9x+21x^2-26x^3+20x^4-7x^5+x^6)/(1-x)^6\). Barker's recurrence in each case is \(A_n=\sum_{i=1}^{R}(-1)^{i+1}\binom Ri A_{n-i}\), with sharp starts \(n=7,13\) for the two strict widths and \(n=8\) for weak width two. The leading terms come from different features of the images. Split the ordered hidden row ranks into \(B\) blocks by their leading \(k-1\) bits. Each block has four trailing ranks \(0,1,2,3\), representing \(00,01,10,11\). Under the strict rule a repeated row emits an all-zero mask. The only marked local two-bit row transitions are \(00\to01\), \(01\to10\) and \(01\to11\). An image can have at most \(d\) nonzero mask rows, and the ordered word of nonzero masks at that maximum is unique. To generate it, take ranks \(0,1,2\) in each block in order and emit the masks between successive rows, including across blocks. Repeating witness rows places this word at any \(d\) of the \(n\) positions, giving exactly \(\binom nd\) images at the maximum. Under the weak rule, repeating row \(a\) emits the mask with bit \(j\) equal to \(\mathbf1\{a_j\le a_{j+1}\}\), where \(\mathbf1\) is one when the condition holds and zero otherwise. In each block, ranks 0 and 1 have the same repetition mask, and their connecting transition emits that mask too. The leading contribution comes from three variable-length groups in each block, one from rank 0 or 1 or both, followed by ranks 2 and 3. Their masks have last bits \(1,0,1\). In a block whose prefix represents an odd binary integer, choosing rank 0 gives an isolated mask between the first two long runs, whereas choosing rank 1 makes the connecting mask part of the first run. For even or empty prefixes the connecting mask is absorbed into a run with either choice. Each subset of odd-prefix blocks can therefore be selected by using rank 0 precisely in those blocks and rank 1 in the others, retaining ranks 2 and 3 throughout and repeating the selected rows. These are legal sorted witnesses. The isolated masks distinguish \(2^{\lfloor B/2\rfloor}\) types, and each type has \(3B\) variable run lengths subject to one total-length constraint. Each contributes the leading coefficient \(1/d!\), which accounts for the larger weak leading term at widths \(k\ge2\).

Zenodo (CERN European Organization for Nuclear Research)
University of Glasgow (GB)
Advanced Combinatorial Mathematics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon