# A uniform range for the boundary-correction conjecture on Miura-ori grids

iis:2612.00720 · by qingzhumengxiao-math · https://isitsolved.com/journal/861176d111ea

**Abstract.** Let E_d(m,n) count rectangular Miura-ori assignments admitting d legal flips, and let s denote the shorter side. We prove Gupta's conjectured degree bound d−s−1 on the boundary correction whenever d ≥ 3s−4. We count turns on the perimeter and repeated switches between adjacent columns. An independent integer transfer calculation then covers all admissible d when s ≤ 6, and all admissible s when d ≤ 13.

Partial result on Conjecture 5.18, with the stated parameter ranges proved. No assertion concerning the remaining central range; no end-to-end Lean verification.

# Definitions and statement

Let $E_d(m,n)$ count integer heights on the $m\times n$ grid with top-left value zero, unit differences across grid edges and exactly $d$ strict grid extrema. A strict extremum is a vertex higher than all its neighbors or lower than all of them, including at the boundary. These heights count the locally foldable Miura-ori assignments with $d$ legal flips. Write $p_d$ for the polynomial agreeing with $E_d$ for $m,n\ge d-1$. Gupta proves that $B_d^{(s)}(n)=E_d(s,n)-p_d(s,n)$ is polynomial for $n\ge d-1$ and conjectures $\deg B_d^{(s)}\le d-s-1$ for $2\le s\le d-2$ [@gupta Conjecture 5.18].

::: {#thm .theorem}
**Theorem 1**. *The conjectured bound holds whenever $d\ge 3s-4$. It also holds for all admissible $d$ when $s\le6$ and for all admissible $s$ when $d\le13$.*
:::

We use the primitive expansion in [@gupta Lemma 5.10]. In a primitive, every row and column contains an extremum. A gap is uniform if the signed steps across it agree throughout its length. Write $a$ for the number of nonuniform row gaps, $c$ for the number of uniform column gaps, $b$ for the other column gaps and $v=b+c+1$ for the number of columns. Separable heights have zero correction. Every nonseparable primitive has $b\ge1$. At short side $s$, a primitive contributes zero unless $a\ge s-1$. For $c>0$ its contribution to the correction has degree at most $c-1$. For $c=0$ it makes no polynomial contribution.

# A charge to perimeter turns

In column gap $j$, a switch occurs when the horizontal increment changes sign between consecutive rows. It reverses the vertical step across the same square. Let $K$ count all switches, $H$ count the gaps with a positive even number of switches, $S$ count interior saddles and $\tau$ count strict turns in the cyclic height walk around the perimeter. Summing the column identities of [@gupta Lemma 5.11] yields $$\begin{equation}
\label{eq:morse}d=K+S+\tfrac12\tau+1.
\end{equation}$$

::: {#per .lemma}
**Lemma 1**. *For any primitive, $\tau/2\ge c-H$. If some column is vertically monotone, $K-a\ge H$, and consequently $a+c+1\le d$.*
:::

::: proof
*Proof.* Group the uniform column gaps into maximal consecutive runs. At two adjacent uniform gaps their signs are opposite: equal signs would give the intervening column two neighbors on opposite sides of its height at every row. Such an adjacency creates two perimeter turns, one at the top and one at the bottom. At a run end adjacent to a gap with an odd number of switches, the top and bottom signs of that gap differ, so exactly one of the two perimeter edges changes direction there. At a run end on a physical side, traverse the side including its two corners, from the top horizontal edge to the bottom horizontal edge. The two horizontal signs are opposite in the orientation of traversal, so this portion has at least one turn. These charges have disjoint locations. A run of $k$ uniform gaps has $k-1$ internal adjacencies and two ends. Each unpaid end abuts a gap counted in $H$, and such a gap abuts at most two ends. Summation gives $\tau\ge 2c-2H$.

After negating the height if necessary, all vertical steps at the monotone reference column equal $+1$. Sweep outwards from that column, separately to each side. At an even nonzero switching gap, switch directions alternate as the row index grows, so at least one current negative vertical step changes to positive. This row gap has already switched in the same outward sweep, since it started positive. Choose one such event for each even nonzero gap. They are distinct; each repeats a row-gap label. There are $a$ different labels among $K$ events, and a first event of each label can be chosen earlier than its selected repeat events. Thus $K-a\ge H$. Equation [\[eq:morse\]](#eq:morse){reference-type="eqref" reference="eq:morse"} and $S\ge0$ finish the proof. ◻
:::

::: {#band .lemma}
**Lemma 2**. *If no column of a nonseparable primitive is vertically monotone and $t=d-c-1$, then $d\le 3t+1$.*
:::

::: proof
*Proof.* Cut at the $b$ nonuniform column gaps to obtain $b+1$ bands. The columns of one band have a common vertical path up to translation. Write $\ell$ for its length and $e_B$ for its total number of extrema minus $\ell$. Every column is occupied, so $e_B\ge0$. A column whose two gaps are uniform tests all path minima or all path maxima, with the test alternating between consecutive such columns. This also holds at a physical end with one uniform gap. A nonmonotone unit-step path has at least three extrema including endpoints, so two adjacent full tests produce at least three extrema.

An interior band with $\ell\ge2$ has $\ell-2$ consecutive full tests, giving $\ell\le2e_B+3$. An outer band with $\ell\ge2$ has $\ell-1$, giving $\ell\le2e_B+2$. Both bounds also hold for a singleton. Set $e=\sum_B e_B=d-v=t-b$. Summing the two outer bounds and $b-1$ interior bounds gives $v\le2e+3b+1$, hence $d=v+e\le3t+1$. ◻
:::

For a term above the proposed cap one must have $c\ge d-s+1$, hence $t\le s-2$. If $d\ge3s-4$, then $d>3t+1$, so Lemma [2](#band){reference-type="ref" reference="band"} supplies a monotone column. Lemma [1](#per){reference-type="ref" reference="per"} then gives $a\le t\le s-2$. The discrepancy-support condition removes this primitive. This proves the first assertion of Theorem [1](#thm){reference-type="ref" reference="thm"} without signed cancellation.

# Finite certificates

Let $u=d-1$, $A_j(h)=\Delta_n^j E_d(h,u)$ and $P_j(h)=\Delta_n^j p_d(h,u)$. Gupta's Theorem 4.9 gives $\deg_h P_j\le d-3-j$ in the range used below, since the homogeneous part in degree $d-2$ contains only pure powers. Gupta's Theorem 5.17 gives $A_j(h)=P_j(h)$ for every $h\ge d-4$ and $j\ge4$. Thus $d-2-j$ consecutive values at $h=d-4,d-3,\ldots$ determine $P_j(s)$. At fixed $s$, only $$d-s\le j\le\min(d-5,d-2-\lfloor s/2\rfloor)$$ require testing in the central range. Each test is an integer equality for the full count. The output of `verify_caps.py` lists both sides and every interpolation sample.

::: center
   $d$   $s$   tested $j$  common values $A_j(s)=P_j(s)$ in increasing $j$
  ----- ----- ------------ -------------------------------------------------
   10     5        5       7950
   11     5        6       9696
   11     6       5,6      119604, 11416
   12     5        7       11728
   12     6       6,7      154188, 13832
   12     7      5,6,7     1799846, 189788, 16032
   13     6       7,8      195240, 16488
   13     7      6,7,8     2425608, 240798, 19120
   13     8      5,6,7     27502076, 3072832, 291452
:::

The original bound covers $s\le4$ and $s\ge d-4$. For $s=5$ the cone covers $d\ge11$; for $s=6$ it covers $d\ge14$. The table fills the gaps and completes Theorem [1](#thm){reference-type="ref" reference="thm"}.

For $d=10$, substituting the published $p_{10}$ (Appendix B.1 in [@gupta]) gives the full correction. With $x=n-9$ and $n\ge9$ it is $$127316+45128\binom x1-55332\binom x2-14372\binom x3+2896\binom x4.$$ The upper bound before our computation is five, so six exact values suffice. The independent three-colour transfer in `row_check.py` checks eleven values.

#### Implementation.

In `height_transfer.c` a column state consists of its vertical step word $w$ and the incoming horizontal offset word $l$. Global negation sets its first incoming step to $+1$, pairing two normalized heights. The outgoing word $r$ can switch on a vertical edge only from $+$ to $-$ when $w$ is positive, or from $-$ to $+$ when $w$ is negative; in either case that step is negated in the next vertical word. A local path minimum in the current column contributes one exactly when $l=-$ and $r=+$ there; maxima use the opposite signs. Endpoint columns omit the absent test. Accumulating the counts by extremum number and discarding degrees above the requested bound is exact, because every transition has nonnegative cost. All unsigned additions check for overflow. Interchanging grid dimensions checks independent transfer runs throughout the overlap. The independent program `ternary_transfer.c` contracts the column transfer one square at a time, avoiding the large table of all pairs of adjacent column states. It also supplies the fourteenth row height required at $d=13$.

::: thebibliography
1 C. Gupta, *Height functions on the $m\times n$ Miura-ori flip graph: degree sequence and diameter*, arXiv:2606.22614v3 (2026). <https://arxiv.org/abs/2606.22614v3>.
:::

Prepared in an OpenAI Codex research session for qingzhumengxiao (GitHub handle).
