Introduction
We study the complexity of minimizing monochromatic crossings over all edge two-colourings of a fixed complete geometric graph. This models placing the two colour classes on separate layers with the same vertex positions.
The complexity of finding an optimal two-colouring of a fixed straight-line drawing of K N K_N K N was posed as Question 4 at the Crossing Number Workshop in 2019 [15 Section 1.4] and as the first open problem in Section 5 of Aichholzer et al. [2 ] . It was subsequently listed in Dagstuhl Seminar 21293 [10 Section 4.12] and at Geometric Graphs Week 2022 [16 Problem 11] . We prove that the threshold decision version is NP-complete, and hence that exact minimization is NP-hard. All edges may receive either colour; the input has no edge weights or prescribed colours.
Theorem 1.1. The decision problem in Definition 1.2 is NP-complete under deterministic polynomial-time many-one reductions. Consequently, computing OPT ( P ) \operatorname{OPT}(\mathcal{P}) OPT ( P ) exactly is NP-hard. The decision problem remains NP-complete when all coordinates are integers encoded in binary.
Aichholzer, Mulzer, Schnider and Vogtenhuber [3 ] proved NP-completeness of MaxCut on segment intersection graphs. Completing a segment family introduces new colour variables and costs that can depend on the original colours (Proposition 1.4 ). Their result therefore does not settle the complete-graph problem.
The contrast is already visible in convex position. Two-colour crossing minimization for an arbitrary graph drawn on a convex point set is NP-hard, by the fixed-order two-page result of Masuda et al. [13 ] . For a complete graph, however, the optimum is the known two-page crossing number of K N K_N K N [1 ] . Our reduction uses this exact value for two convex background components.
We reduce from MaxCut on permutation graphs, whose NP-completeness proof supplies a permutation representation [8 ] . Classes of chords encode source vertices and amplify the number of uncut source edges. Program points induce costs on these chords using a comparison grid as a colour reference, while the remaining edges contribute a computable baseline and an error smaller than one amplified source unit.
Aichholzer et al. [2 ] give two-colourings of a double-chain bipartite drawing with asymptotic crossing ratio at most 1 / 3 1/3 1/3 (Appendix B, Theorem 6). We prove the corresponding continuous minimum and two-phase stability, then obtain localization for finite rectangles under arbitrary bounded unary perturbations. The stability exponent is not optimized.
Other results concern extremal or approximate versions of the objective. Bounds over all drawings and duplication constructions were developed in [2 ] ; extensions to dense graphs, random points and several colours appear in [9 , 6 , 11 ] . For a fixed complete geometric graph, the crossing graph is dense, and the MaxCut scheme of Arora, Karger and Karpinski [4 ] gives additive approximation on the scale of N 4 N^4 N 4 , as observed in [11 ] . These results do not determine the exact optimum.
Lean proof code and reproducible exact computations are available in the accompanying repository [17 ] .
§ 2 outlines the construction. We then prove the grid estimates in § 3 , realize the crossing relations in § 4 , and analyze the core in § 5 . § 6 completes the proof of Theorem 1.1 .
Preliminaries
Definition 1.2. The input to complete geometric two-colour crossing minimization is a list of pairwise distinct points P ∈ ( Q 2 ) N P \in(\mathbb{Q}^{2})^{N} P ∈ ( Q 2 ) N with no three collinear, together with an integer k t g t k_{\mathrm{tgt}} k tgt in the decision version. Coordinates and k t g t k_{\mathrm{tgt}} k tgt are encoded in binary. Write
E ( P ) = { i j : 0 ≤ i < j < N } , M ( P , χ ) = ∑ { e , f } ⊆ E ( P ) 1 [ e and f cross properly ] 1 [ χ ( e ) = χ ( f ) ] E(\mathcal{P}) = \{ij : 0 \le i < j < N\}, \qquad M(\mathcal{P},\chi) = \sum_{\{e,f\}\subseteq E(\mathcal{P})} \mathbf{1}[e\text{ and }f\text{ cross properly}]\,\mathbf{1}[\chi(e)=\chi(f)] E ( P ) = { ij : 0 ≤ i < j < N } , M ( P , χ ) = { e , f } ⊆ E ( P ) ∑ 1 [ e and f cross properly ] 1 [ χ ( e ) = χ ( f )]
for χ : E ( P ) → { 0 , 1 } \chi: E(\mathcal{P}) \to\{0,1\} χ : E ( P ) → { 0 , 1 } , and put OPT ( P ) = min χ M ( P , χ ) \operatorname{OPT}(\mathcal{P}) = \min_{\chi} M(\mathcal{P},\chi) OPT ( P ) = min χ M ( P , χ ) . The decision question is whether OPT ( P ) ≤ k t g t \operatorname{OPT}(\mathcal{P}) \le k_{\mathrm{tgt}} OPT ( P ) ≤ k tgt .
A proper crossing is an intersection of two open segments with four distinct endpoints. We write e ∼ f e \sim f e ∼ f when edges e e e and f f f cross properly. Several crossing pairs may have the same geometric intersection point; each pair is counted separately. The colouring is unrestricted: it is not a proper edge colouring in the graph-theoretic sense.
The crossing graph Γ ( P ) \Gamma(\mathcal{P}) Γ ( P ) has one vertex for each geometric edge and an adjacency for each proper crossing. Writing cr ( P ) = ∣ E ( Γ ( P ) ) ∣ \operatorname{cr}(\mathcal{P}) = |E(\Gamma(\mathcal{P}))| cr ( P ) = ∣ E ( Γ ( P )) ∣ , we have
OPT ( P ) = cr ( P ) − MaxCut ( Γ ( P ) ) . (1) \operatorname{OPT}(\mathcal{P}) = \operatorname{cr}(\mathcal{P}) - \operatorname{MaxCut}(\Gamma(\mathcal{P})). \tag*{(1)} OPT ( P ) = cr ( P ) − MaxCut ( Γ ( P )) . (1)
Indeed, every crossing is either monochromatic or belongs to the cut induced by the two edge colours. Throughout, graph edges and crossing pairs are unordered unless an order is explicitly specified.
A represented permutation graph G G G on [ n ] = { 1 , … , n } [n] = \{1,\ldots,n\} [ n ] = { 1 , … , n } is specified, after relabelling one order, by a permutation π \pi π , with i j ∈ E ( G ) ij \in E(G) ij ∈ E ( G ) if and only if i < j i < j i < j and π ( i ) > π ( j ) \pi(i) > \pi(j) π ( i ) > π ( j ) . A permutation representation can also be found from the abstract graph in deterministic O ( ∣ V ( G ) ∣ + ∣ E ( G ) ∣ ) O(|V(G)|+|E(G)|) O ( ∣ V ( G ) ∣ + ∣ E ( G ) ∣ ) time [14 pp. 212–213] . Put
g ( G ) = min x : V ( G ) → { 0 , 1 } ∑ u v ∈ E ( G ) 1 [ x ( u ) = x ( v ) ] = ∣ E ( G ) ∣ − MaxCut ( G ) . g(G) = \min_{x:V(G)\to\{0,1\}} \sum_{uv\in E(G)} \mathbf{1}[x(u)=x(v)] = |E(G)|-\operatorname{MaxCut}(G). g ( G ) = x : V ( G ) → { 0 , 1 } min uv ∈ E ( G ) ∑ 1 [ x ( u ) = x ( v )] = ∣ E ( G ) ∣ − MaxCut ( G ) .
A source threshold k s r c k_{\mathrm{src}} k src is thus equivalent to g ( G ) ≤ t g(G) \le t g ( G ) ≤ t , where t = ∣ E ( G ) ∣ − k s r c t = |E(G)| - k_{\mathrm{src}} t = ∣ E ( G ) ∣ − k src . We use N N N for the number of target points and N g N_g N g for the number of comparison-grid vertices, each of which is a target edge.
For nonnegative integers v v v , define
Z ( v ) = 1 4 ⌊ v 2 ⌋ ⌊ v − 1 2 ⌋ ⌊ v − 2 2 ⌋ ⌊ v − 3 2 ⌋ ( v ≥ 3 ) , Z ( 0 ) = Z ( 1 ) = Z ( 2 ) = 0. Z(v) = \frac{1}{4}\left\lfloor\frac{v}{2}\right\rfloor\left\lfloor\frac{v-1}{2}\right\rfloor\left\lfloor\frac{v-2}{2}\right\rfloor\left\lfloor\frac{v-3}{2}\right\rfloor\qquad(v \ge3), \qquad Z(0)=Z(1)=Z(2)=0. Z ( v ) = 4 1 ⌊ 2 v ⌋ ⌊ 2 v − 1 ⌋ ⌊ 2 v − 2 ⌋ ⌊ 2 v − 3 ⌋ ( v ≥ 3 ) , Z ( 0 ) = Z ( 1 ) = Z ( 2 ) = 0.
The theorem of Ábrego et al. [1 Theorem 7] says that Z ( v ) Z(v) Z ( v ) is the optimum for a convex complete geometric graph: a same-page pair of edges in a two-page drawing crosses exactly when its endpoints alternate in the linear order. Boundary edges do not affect this count.
Proposition 1.3. The problem in Definition 1.2 belongs to N P NP N P . Rational and integer coordinate versions are polynomial-time equivalent.
Proof. Let L L L be the input bit length. Normalize the coordinate denominators to be positive and let D D D be their product. Multiplying all coordinates by D D D gives integers of O ( L ) O(L) O ( L ) bits, preserves orientation signs, and takes polynomial time.
Pairwise distinctness and absence of collinear triples can be checked by examining point pairs and the determinants
or ( a , b , c ) = ( b x − a x ) ( c y − a y ) − ( b y − a y ) ( c x − a x ) . \operatorname{or}(a,b,c)=(b_x-a_x)(c_y-a_y)-(b_y-a_y)(c_x-a_x). or ( a , b , c ) = ( b x − a x ) ( c y − a y ) − ( b y − a y ) ( c x − a x ) . These tests determine whether the point set satisfies the conditions in Definition 1.2 . A certificate consists of the ( N 2 ) \binom{N}{2} ( 2 N ) edge colours. For every unordered pair a b ab ab , c d cd c d with four distinct endpoints, a proper crossing is equivalent to
or ( a , b , c ) or ( a , b , d ) < 0 , or ( c , d , a ) or ( c , d , b ) < 0. \operatorname{or}(a,b,c)\operatorname{or}(a,b,d)<0,\qquad\operatorname{or}(c,d,a)\operatorname{or}(c,d,b)<0. or ( a , b , c ) or ( a , b , d ) < 0 , or ( c , d , a ) or ( c , d , b ) < 0. The verifier accepts precisely when the point set satisfies these conditions and the monochromatic crossing count is at most k t g t k_{\mathrm{tgt}} k tgt . The O ( N 4 ) O(N^4) O ( N 4 ) tests use integers of polynomial bit length, so verification takes polynomial time. Scaling reduces rational inputs to integer inputs; the converse inclusion is immediate.
A direct-completion obstruction
Proposition 1.4. Completing a segment family to the complete geometric graph on its endpoints can produce an optimum whose restriction to the original family is not optimal. The minimum contribution of the added edges can also depend on the prescribed source colours.
Proof. Let p i = ( i , i 2 ) p_i=(i,i^2) p i = ( i , i 2 ) , 0 ≤ i < 6 0\le i<6 0 ≤ i < 6 , and abbreviate p i p j p_ip_j p i p j by i j ij ij . The source family { 01 , 24 , 35 } \{01,24,35\} { 01 , 24 , 35 } has only one crossing, between 24 24 24 and 35 35 35 , and therefore has optimum zero.
The complete drawing is convex, so its optimum is Z ( 6 ) = 3 Z(6)=3 Z ( 6 ) = 3 by Ábrego et al. [1, Theorem 7]. Colour 03, 04, 13, 14 blue and every other edge red. The monochromatic pairs are exactly (02, 15), (03, 14), (24, 35), attaining this lower bound. Its source restriction has cost one and is not optimal. Conditional on 24, 35 having the same colour, the minimum added cost is thus two.
Instead colour 14, 15, 24, 25 blue and every other edge red. The monochromatic pairs are (02, 13), (04, 35), (14, 25), again attaining three. Now 24, 35 differ, the source cost is zero, and the minimum added cost is three. Hence the optimum added cost depends on the source colours. □
Overview of the construction
We encode a source cut by colours of selected edges, then control the other edges required by completeness. Line styles in the diagrams distinguish edge roles.
From a source cut to selected chords
Placing the endpoint orders of a permutation representation in early and late blocks on a convex chain, with the second order reversed, gives chords that cross exactly for adjacent source vertices. Their monochromatic crossings count the uncut source edges.
To amplify this cost, replace each chord by q q q nested macro chords. Each macro endpoint becomes a cluster of W W W points; all W 2 W^2 W 2 edges between paired clusters form one bundle. One source vertex is thus represented by q q q bundles, or q W 2 qW^2 q W 2 selected edges (Figure 1 ). Adjacent source vertices give ( q W 2 ) 2 = Δ (qW^2)^2=\Delta ( q W 2 ) 2 = Δ crossing pairs between their classes. If each class is monochromatic, the cost is Δ \Delta Δ when their colours agree and zero otherwise.
Figure 1. Source expansion at illustrative sizes. Each shaded strip in (a) is a W W W -point cluster. Both bundles contain all W 2 W^2 W 2 edges; these are separate local views, not their global positions. In (b), the connector denotes pairwise crossing, not a target edge; nonadjacent classes have no crossings.
Identical inter-class neighbours give a class-monochromatic optimum of value Δ g ( G ) \Delta g(G) Δ g ( G ) for this term (Lemma 5.1 ). Within-bundle crossings and certain short-edge interactions, set aside in the analysis, cost at most 2 S W 4 2SW^4 2 S W 4 to restore (Lemma 5.6 ).
Controlling the completion edges
The original chain P P P contains the endpoint clusters and a middle block of dummy points. The P P PP P P edges form the core C C C . Its selected edges encode the cut, but the other core edges can alter its cost. We add a chain of frame points A A A and program points R R R to control them. The target is complete on P ∪ A ∪ R P\cup A\cup R P ∪ A ∪ R ; notation such as A P AP A P names an edge family (Figure 2 ).
Figure 2. Layout and edge classes (not to scale). The shaded convex region contains P P P , R R R ; A P AP A P interiors lie outside. The same fan crosses the canonical grid at 1; freezing its response gives a core unary cost at 2. Open circles mark crossings; the diagram shows representative edges.
The A P AP A P edges, denoted by X X X , form a rectangular comparison grid with two complementary reference colourings, called phases; position ( i , j ) (i,j) ( i , j ) represents the edge A i P j A_iP_j A i P j . In a free optimum the grid stays close to one phase, even with all external costs. Complementing all colours exchanges the phases and preserves the cost.
Geometric separation prevents A P AP A P –P P PP P P crossings. The R A RA R A edges, called program fans and denoted by T f T_f T f , connect the systems by crossing grid and core edges. Once a fan’s colour is fixed, each core edge it crosses pays one in that colour and zero in the other. This induces a unary cost depending on that edge’s colour.
We analyze the core with the fans fixed to their canonical responses to the grid. Ordinary programs then force a known colouring on the palette edges C p a l C_{\mathrm{pal}} C pal . Rank programs compensate for the palette’s varying bias across each selected bundle; the ordinary programs are calibrated so that only a small residual bias remains there. Short edges and dummy–dummy edges remain free, with their minima accounted for separately. The final argument bounds the cost of fixing the fans while keeping the actual grid colouring unchanged.
All remaining edge families also enter the cost. The A A AA AA edges, denoted by I I I , form an isolated convex component. Separation excludes crossings of A P AP A P with R P RP R P or R R RR R R , and a uniform bound controls all other interactions of Y = R P ∪ R R Y = RP \cup RR Y = R P ∪ R R . The resulting estimate is
K b a s e + Δ g ( G ) − E − ≤ OPT ( P ) ≤ K b a s e + Δ g ( G ) + E + , 4 ( E − + E + ) < Δ . (2) K_{\mathrm{base}} + \Delta_g(G) - E_- \le\operatorname{OPT}(\mathcal{P}) \le K_{\mathrm{base}} + \Delta_g(G) + E_+,\qquad4(E_- + E_+) < \Delta. \tag*{(2)} K base + Δ g ( G ) − E − ≤ OPT ( P ) ≤ K base + Δ g ( G ) + E + , 4 ( E − + E + ) < Δ. (2)
The baseline uses reference colours, unary corrections and known convex optima. Proposition 6.1 proves the bounds by freezing fans and restoring R P ∪ R R RP \cup RR R P ∪ R R . Integrality of g ( G ) g(G) g ( G ) then transfers the source threshold to one complete drawing.
Parameters and their roles
For n ≥ 1 n \ge1 n ≥ 1 fix the following integers:
q = 16 ( n + 1 ) , S = n q , d = S + 1 , H = 2 4200 d 14 , W = H 4 , B = H 5 , D m = 512 S W , o = 2 S W + D m = 514 S W , T = 2 13 o 2 , Λ p a l = 2 13 d T , Δ = q 2 W 4 . (3) \begin{aligned}
q &= 16(n+1),\qquad S = nq,\qquad d = S+1,\qquad H = 2^{4200}d^{14},\\
W &= H^4,\qquad B = H^5,\qquad D_m = 512SW,\qquad o = 2SW + D_m = 514SW,\\
T &= 2^{13}o^2,\qquad\Lambda_{\mathrm{pal}} = 2^{13}dT,\qquad\Delta= q^2W^4. \tag*{(3)}
\end{aligned} q W T = 16 ( n + 1 ) , S = n q , d = S + 1 , H = 2 4200 d 14 , = H 4 , B = H 5 , D m = 512 S W , o = 2 S W + D m = 514 S W , = 2 13 o 2 , Λ pal = 2 13 d T , Δ = q 2 W 4 . (3)
There are S S S selected macro chords, o o o original points and B B B frames. If s s s is the number of program points, the complete drawing has N = B + o + s N = B + o + s N = B + o + s points, whereas the comparison grid has N g = B o N_g = Bo N g = B o vertices. The symbol n n n in the abstract grid J m , n J_{m,n} J m , n is a local dimension; in the construction those dimensions are B , o B,o B , o .
The cluster size W W W amplifies the source signal, while q q q controls the relative local restoration cost. The scale H H H makes the grid perturbations, freezing cost and nonfan interactions small relative to that signal. The frame count B B B controls the grid strength and program weights, and the dummy block makes both selected rank slopes negative. The spacing T T T separates palette preferences, and Λ p a l \Lambda_{\mathrm{pal}} Λ pal dominates adverse core interactions. § 6 verifies these scale requirements. The constants are not optimized, and the resulting instance sizes remain impractical.
Stability of the comparison grid
In the comparison grid (Figure 3 ), two positions are adjacent when both coordinate orders strictly agree (Lemma 4.1 ). Fixing outside colours induces unary costs U i j ( c ) U_{ij}(c) U ij ( c ) : a fixed fan r A k rA_k r A k contributes 1 [ c = t r k ] \mathbf{1}[c=t_{r k}] 1 [ c = t r k ] at each grid edge that it crosses.
Figure 3. The comparison grid represents A P AP A P edges, not geometric points. In the first two panels dark cells have colour 1 and light cells colour 0; the negative phase is the exact complement, including diagonal ties. In the third panel shading denotes neighbours of a rank fan, independently of colour: i < k i<k i < k , j < r 0 j<r_0 j < r 0 or i > k i>k i > k , j ≥ r 0 j\ge r_0 j ≥ r 0 . The last panel shows the diagonal strip and two corner regions containing all errors F F F of a minimizing colouring relative to a phase. The displayed mesh and width are illustrative, not the quantitative theorem’s scales.
For a grid colouring c c c , the cellwise sign function is f c = 2 c − 1 f_c=2c-1 f c = 2 c − 1 . The normalized grid cost Φ J ( c ) / N g 2 \Phi_J(c)/N_g^2 Φ J ( c ) / N g 2 approximates E ( f c ) \mathcal{E}(f_c) E ( f c ) below, with a mesh error. Near-minimal energy gives nearly threshold rows and columns, then a profile close to one of two phases. Single-vertex optimality in a finite grid confines disagreements to a diagonal strip and two corners. Theorem 3.4 also gives a lower bound for any colouring with that localized support. We use this bound after changing the program colours while keeping the grid fixed.
The continuous comparison energy
All integrals in this section use Lebesgue measure. Functions are Borel measurable; the statements also hold for Lebesgue-measurable functions after replacement on a null set. For a sign function f : [ 0 , 1 ] 2 → { − 1 , 1 } f : [0,1]^2 \to\{-1,1\} f : [ 0 , 1 ] 2 → { − 1 , 1 } , put
\mathcal{E}(f)=\iiiint_{\substack{0\le u<u'\le1\\0\le v<v'\le1}}\mathbf{1}\{f(u,v)=f(u',v')\}\,du\,dv\,du'\,dv'. \tag*{(4)}
Each comparable unordered pair occurs once. Define
f ∗ ( u , v ) = { 1 , u + v < 1 , − 1 , u + v ≥ 1. f_*(u,v)=
\begin{cases}
1, & u+v<1,\\
-1, & u+v\ge1.
\end{cases} f ∗ ( u , v ) = { 1 , − 1 , u + v < 1 , u + v ≥ 1.
The diagonal convention has no effect on the continuous integral, but we retain this strict inequality when passing to finite grids.
Theorem 3.1 (Continuous two-phase stability). Every measurable sign function on the unit square has E ( f ) ≥ 1 / 12 \mathcal{E}(f)\ge1/12 E ( f ) ≥ 1/12 . For every ε ≥ 0 \varepsilon\ge0 ε ≥ 0 , if E ( f ) ≤ 1 / 12 + ε \mathcal{E}(f)\le1/12+\varepsilon E ( f ) ≤ 1/12 + ε , then
min σ ∈ { − 1 , 1 } ∥ f − σ f ∗ ∥ L 1 ( [ 0 , 1 ] 2 ) ≤ 4096 ε 1 / 72 . (5) \min_{\sigma\in\{-1,1\}}\lVert f-\sigma f_*\rVert_{L^1([0,1]^2)}\le4096\varepsilon^{1/72}. \tag*{(5)} σ ∈ { − 1 , 1 } min ∥ f − σ f ∗ ∥ L 1 ([ 0 , 1 ] 2 ) ≤ 4096 ε 1/72 . (5)
We first prove two auxiliary estimates, keeping explicit constants for the passage to finite grids. For h : [ 0 , 1 ] → { − 1 , 1 } h:[0,1]\to\{-1,1\} h : [ 0 , 1 ] → { − 1 , 1 } define
( T h ) ( t ) = ∫ 0 1 sgn ( s − t ) h ( s ) d s , D ( h ) = 1 3 − ∥ T h ∥ 2 2 . (Th)(t)=\int_0^1\operatorname{sgn}(s-t)h(s)\,ds,\qquad D(h)=\frac{1}{3}-\lVert Th\rVert_2^2. ( T h ) ( t ) = ∫ 0 1 sgn ( s − t ) h ( s ) d s , D ( h ) = 3 1 − ∥ T h ∥ 2 2 .
Values of the sign kernel on its diagonal are immaterial. A threshold function is a sign function that is constant on each side of a point ξ ∈ [ 0 , 1 ] \xi\in[0,1] ξ ∈ [ 0 , 1 ] , with opposite signs on those two intervals. Both orientations and, through ξ = 0 , 1 \xi=0,1 ξ = 0 , 1 , both constant functions are included.
Lemma 3.2 (One-dimensional stability). For every measurable sign function h h h , one has D ( h ) ≥ 0 D(h)\ge0 D ( h ) ≥ 0 . There is a threshold function b b b such that
∥ h − b ∥ 1 ≤ 4 D ( h ) 1 / 3 . \lVert h-b\rVert_1\le4D(h)^{1/3}. ∥ h − b ∥ 1 ≤ 4 D ( h ) 1/3 .
The bound D ( h ) ≥ 0 D(h)\ge0 D ( h ) ≥ 0 also follows from the sharp generalized Wirtinger inequality of Croce and Dacorogna [7 Theorem 1.1] . The proof below gives an alternation identity from which we obtain the quantitative threshold estimate.
Proof. Let
I ( h ) = ∫ 0 < r < s < t < 1 1 { h ( r ) = h ( t ) ≠ h ( s ) } d r d s d t . I(h)=\int_{0<r<s<t<1}\mathbf{1}\{h(r)=h(t)\ne h(s)\}\,dr\,ds\,dt. I ( h ) = ∫ 0 < r < s < t < 1 1 { h ( r ) = h ( t ) = h ( s )} d r d s d t .
The elementary identity
41 { h ( r ) = h ( t ) ≠ h ( s ) } = 1 + h ( r ) h ( t ) − h ( r ) h ( s ) − h ( s ) h ( t ) 4\mathbf{1}\{h(r)=h(t)\ne h(s)\}=1+h(r)h(t)-h(r)h(s)-h(s)h(t) 4 1 { h ( r ) = h ( t ) = h ( s )} = 1 + h ( r ) h ( t ) − h ( r ) h ( s ) − h ( s ) h ( t )
gives
D ( h ) = 8 I ( h ) . (6) D(h)=8I(h). \tag*{(6)} D ( h ) = 8 I ( h ) . (6)
To check the coefficient, after integrating out the third variable the coefficient of h ( u ) h ( v ) h(u)h(v) h ( u ) h ( v ) , for u < v u<v u < v , in the triple expression is 2 ( v − u ) − 1 2(v-u)-1 2 ( v − u ) − 1 . On the other hand,
∫ 0 1 sgn ( u − t ) sgn ( v − t ) d t = 1 − 2 ∣ u − v ∣ . \int_0^1\operatorname{sgn}(u-t)\operatorname{sgn}(v-t)\,dt=1-2|u-v|. ∫ 0 1 sgn ( u − t ) sgn ( v − t ) d t = 1 − 2∣ u − v ∣.
The constant triple integral is 1 / 6 1/6 1/6 , and the ordered two-variable integral is half the corresponding symmetric integral. These observations give (6) , including its constant term, by Fubini.
Let e e e be the least measure of disagreement with a threshold. For each orientation, disagreement is continuous in its threshold position, and [ 0 , 1 ] [0,1] [ 0 , 1 ] is compact, so the minimum is attained. We claim I ( h ) ≥ e 3 / 64 I(h) \ge e^3/64 I ( h ) ≥ e 3 /64 . There is nothing to prove if e = 0 e=0 e = 0 . Otherwise let p p p be the measure of the positive set. The constant negative threshold shows that p ≥ e p \ge e p ≥ e . By continuity of cumulative positive mass choose a ≤ b a \le b a ≤ b so that the positive mass before a a a and after b b b is e / 4 e/4 e /4 each.
If the negative mass between a a a and b b b is at least e / 4 e/4 e /4 , independently choosing a positive point before a a a , a negative point between a , b a,b a , b , and a positive point after b b b gives I ( h ) ≥ ( e / 4 ) 3 I(h) \ge(e/4)^3 I ( h ) ≥ ( e /4 ) 3 . Otherwise compare with the threshold positive before b b b and negative after b b b . Its disagreement is at least e e e , whereas the negative mass between a , b a,b a , b plus the positive mass after b b b is less than e / 2 e/2 e /2 . Thus the negative mass before a a a is at least e / 2 e/2 e /2 . Comparing with the oppositely oriented threshold at a a a similarly gives negative mass at least e / 2 e/2 e /2 after b b b . The positive mass between a , b a,b a , b is p − e / 2 ≥ e / 2 p-e/2 \ge e/2 p − e /2 ≥ e /2 . Negative–positive–negative triples therefore give the stronger bound I ( h ) ≥ e 3 / 8 I(h) \ge e^3/8 I ( h ) ≥ e 3 /8 . The claim follows. By (6) , e 3 ≤ 8 D ( h ) e^3 \le8D(h) e 3 ≤ 8 D ( h ) ; since the sign-function L 1 L^1 L 1 distance is 2 e 2e 2 e , the asserted bound follows.
Apply T \mathcal{T} T in the two coordinates and write
F u ( u , v ) = ∫ 0 1 sgn ( s − u ) f ( s , v ) d s , F v ( u , v ) = ∫ 0 1 sgn ( s − v ) f ( u , s ) d s , M = ∫ [ 0 , 1 ] 2 f . F_u(u,v)=\int_0^1 \operatorname{sgn}(s-u)f(s,v)\,\mathrm{d}s,\qquad F_v(u,v)=\int_0^1 \operatorname{sgn}(s-v)f(u,s)\,\mathrm{d}s,\qquad M=\int_{[0,1]^2}f. F u ( u , v ) = ∫ 0 1 sgn ( s − u ) f ( s , v ) d s , F v ( u , v ) = ∫ 0 1 sgn ( s − v ) f ( u , s ) d s , M = ∫ [ 0 , 1 ] 2 f .
Away from a null set, the indicator of comparability of ( u , v ) (u,v) ( u , v ) and ( u ′ , v ′ ) (u',v') ( u ′ , v ′ ) is [ 1 + sgn ( u ′ − u ) sgn ( v ′ − v ) ] / 2 [1+\operatorname{sgn}(u'-u)\operatorname{sgn}(v'-v)]/2 [ 1 + sgn ( u ′ − u ) sgn ( v ′ − v )] /2 . The equality indicator is [ 1 + f ( u , v ) f ( u , v ′ ) ] / 2 [1+f(u,v)f(u,v')]/2 [ 1 + f ( u , v ) f ( u , v ′ )] /2 , and the ordered region in (4) is half the comparable region. Expanding their product and using antisymmetry of the sign kernel gives
E ( f ) = 1 + M 2 − ⟨ F u , F v ⟩ 8 . \mathcal{E}(f)=\frac{1+M^2-\langle F_u,F_v\rangle}{8}. E ( f ) = 8 1 + M 2 − ⟨ F u , F v ⟩ .
In particular,
8 ( E ( f ) − 1 / 12 ) = M 2 + 1 2 ∥ F u − F v ∥ 2 2 + 1 2 ( 1 3 − ∥ F u ∥ 2 2 ) + 1 2 ( 1 3 − ∥ F v ∥ 2 2 ) . (7) 8\bigl(\mathcal{E}(f)-1/12\bigr)=M^2+\frac{1}{2}\lVert F_u-F_v\rVert_2^2+\frac{1}{2}\left(\frac{1}{3}-\lVert F_u\rVert_2^2\right)+\frac{1}{2}\left(\frac{1}{3}-\lVert F_v\rVert_2^2\right). \tag*{(7)} 8 ( E ( f ) − 1/12 ) = M 2 + 2 1 ∥ F u − F v ∥ 2 2 + 2 1 ( 3 1 − ∥ F u ∥ 2 2 ) + 2 1 ( 3 1 − ∥ F v ∥ 2 2 ) . (7)
Lemma 3.2 on each row and column makes every term on the right nonnegative. This proves the lower bound in Theorem 3.1 . For f ∗ f_\ast f ∗ the mean vanishes, both slice families are thresholds, and direct integration gives F u = F v F_u=F_v F u = F v . Hence its energy is exactly 1 / 12 1/12 1/12 .
Under an excess bound ε \varepsilon ε , (7) gives
∣ M ∣ ≤ 8 ε , ∥ F u − F v ∥ 2 ≤ 4 ε , ∫ 0 1 D ( f ( ⋅ , v ) ) d v ≤ 16 ε . (8) \lvert M\rvert\le\sqrt{8\varepsilon},\qquad\lVert F_u-F_v\rVert_2\le4\sqrt{\varepsilon},\qquad\int_0^1D(f(\cdot,v))\,\mathrm{d}v\le16\varepsilon. \tag*{(8)} ∣ M ∣ ≤ 8 ε , ∥ F u − F v ∥ 2 ≤ 4 ε , ∫ 0 1 D ( f ( ⋅ , v )) d v ≤ 16 ε . (8)
and the analogous column estimate. Jensen’s inequality and Lemma 3.2 show that the average row distance from a threshold, and also the average column distance, is at most 4 ( 16 ε ) 1 / 3 ≤ 11 ε 1 / 3 4(16\varepsilon)^{1/3}\le11\varepsilon^{1/3} 4 ( 16 ε ) 1/3 ≤ 11 ε 1/3 . These distance functions are measurable: one may take the infimum over rational threshold positions in both orientations, using continuity in the threshold position.
Lemma 3.3 (Approximation by a diagonal profile). Suppose 0 < η s m ≤ 1 0<\eta_{\rm sm}\le1 0 < η sm ≤ 1 and E ( f ) ≤ 1 / 12 + η s m 6 \mathcal{E}(f)\le1/12+\eta_{\rm sm}^6 E ( f ) ≤ 1/12 + η sm 6 . There is a measurable b : [ 0 , 2 ] → { − 1 , 1 } b:[0,2]\to\{-1,1\} b : [ 0 , 2 ] → { − 1 , 1 } such that, for f 1 ( u , v ) = b ( u + v ) f_1(u,v)=b(u+v) f 1 ( u , v ) = b ( u + v ) ,
∥ f − f 1 ∥ 1 ≤ 128 η s m , E ( f 1 ) ≤ 1 / 12 + 257 η s m . \lVert f-f_1\rVert_1\le128\eta_{\rm sm},\qquad\mathcal{E}(f_1)\le1/12+257\eta_{\rm sm}. ∥ f − f 1 ∥ 1 ≤ 128 η sm , E ( f 1 ) ≤ 1/12 + 257 η sm .
Proof. It suffices first to treat η s m < 1 / 8 \eta_{\mathrm{sm}}<1/8 η sm < 1/8 . Extend f f f by zero outside the square. A threshold on [ 0 , 1 ] [0,1] [ 0 , 1 ] , extended by zero, has total variation at most four. Approximating each row by a threshold and applying the triangle inequality shows that translation by r r r in the first coordinate changes the zero extension in L 1 L^1 L 1 by at most 22 ε 1 / 3 + 4 ∣ r ∣ 22\varepsilon^{1/3}+4|r| 22 ε 1/3 + 4∣ r ∣ . The same holds in the second coordinate. The rowwise inequality can be integrated using the measurable infimum described above.
Let f η s m f_{\eta_{\mathrm{sm}}} f η sm be the convolution of the zero extension with the uniform probability density on [ − η s m , η s m ] 2 [-\eta_{\mathrm{sm}},\eta_{\mathrm{sm}}]^2 [ − η sm , η sm ] 2 . Integrating the translation bound and using ε = η s m 6 \varepsilon=\eta_{\mathrm{sm}}^6 ε = η sm 6 yields
∥ f − f η s m ∥ L 1 ( R 2 ) ≤ 44 η s m 2 + 8 η s m ≤ 52 η s m . (9) \|f-f_{\eta_{\mathrm{sm}}}\|_{L^1(\mathbb{R}^2)}\leq44\eta_{\mathrm{sm}}^2+8\eta_{\mathrm{sm}}\leq52\eta_{\mathrm{sm}}. \tag*{(9)} ∥ f − f η sm ∥ L 1 ( R 2 ) ≤ 44 η sm 2 + 8 η sm ≤ 52 η sm . (9)
On the interior square Q η s m = [ η s m , 1 − η s m ] 2 Q_{\eta_{\mathrm{sm}}}=[\eta_{\mathrm{sm}},1-\eta_{\mathrm{sm}}]^2 Q η sm = [ η sm , 1 − η sm ] 2 we also have
∥ ( ∂ u − ∂ v ) f η s m ∥ L 1 ( Q η s m ) ≤ 2 η s m . (10) \|(\partial_u-\partial_v)f_{\eta_{\mathrm{sm}}}\|_{L^1(Q_{\eta_{\mathrm{sm}}})}\leq2\eta_{\mathrm{sm}}. \tag*{(10)} ∥ ( ∂ u − ∂ v ) f η sm ∥ L 1 ( Q η sm ) ≤ 2 η sm . (10)
Indeed, on the open unit square, in the sense of distributions,
( ∂ u − ∂ v ) f = 1 2 ∂ u ∂ v ( F u − F v ) , (\partial_u-\partial_v)f=\frac{1}{2}\partial_u\partial_v(F_u-F_v), ( ∂ u − ∂ v ) f = 2 1 ∂ u ∂ v ( F u − F v ) ,
because ∂ u F u = − 2 f \partial_uF_u=-2f ∂ u F u = − 2 f and ∂ v F v = − 2 f \partial_vF_v=-2f ∂ v F v = − 2 f . The mixed derivative of the uniform averaging kernel is the signed measure at its four corners with total variation η s m 2 \eta_{\mathrm{sm}}^2 η sm 2 . Convolution on Q η s m Q_{\eta_{\mathrm{sm}}} Q η sm therefore gives a bound ∥ F u − F v ∥ 1 / ( 2 η s m ) ≤ 2 η s m \|F_u-F_v\|_1/(2\eta_{\mathrm{sm}})\leq2\eta_{\mathrm{sm}} ∥ F u − F v ∥ 1 / ( 2 η sm ) ≤ 2 η sm by (8) . For almost every centre in Q η s m Q_{\eta_{\mathrm{sm}}} Q η sm , the averaging box is contained in ( 0 , 1 ) 2 (0,1)^2 ( 0 , 1 ) 2 , where the distributional identity above applies. The box average of a bounded function is Lipschitz: translating either coordinate changes the averaging rectangle by area at most a constant times the translation distance. Consequently the weak directional derivative above agrees with its almost-everywhere derivative, and the one-dimensional fundamental theorem applies on almost every diagonal slice.
For each s s s average f η s m ( u , s − u ) f_{\eta_{\mathrm{sm}}}(u,s-u) f η sm ( u , s − u ) over the interval of u u u for which ( u , s − u ) ∈ Q η s m (u,s-u)\in Q_{\eta_{\mathrm{sm}}} ( u , s − u ) ∈ Q η sm , and denote the average by j ( s ) j(s) j ( s ) . Put j ( s ) = 0 j(s)=0 j ( s ) = 0 when that interval is empty. This defines a measurable function with ∣ j ∣ ≤ 1 |j|\leq1 ∣ j ∣ ≤ 1 . On an interval I I I of length ℓ \ell ℓ , an absolutely continuous function g g g satisfies
∫ I ∣ g − g I ∣ ≤ 1 ℓ ∫ I ∫ I ∣ g ( x ) − g ( y ) ∣ d x d y ≤ ℓ ∫ I ∣ g ′ ∣ . \int_I |g-g_I|\leq\frac{1}{\ell}\int_I\int_I |g(x)-g(y)|\,dx\,dy\leq\ell\int_I |g'|. ∫ I ∣ g − g I ∣ ≤ ℓ 1 ∫ I ∫ I ∣ g ( x ) − g ( y ) ∣ d x d y ≤ ℓ ∫ I ∣ g ′ ∣.
The diagonal coordinates ( s , u ) (s,u) ( s , u ) have Jacobian one and their intervals have length at most one. Integrating this inequality and using (10) gives ∥ f η s m − j ( u + v ) ∥ L 1 ( Q η s m ) ≤ 2 η s m \|f_{\eta_{\mathrm{sm}}}-j(u+v)\|_{L^1(Q_{\eta_{\mathrm{sm}}})}\leq2\eta_{\mathrm{sm}} ∥ f η sm − j ( u + v ) ∥ L 1 ( Q η sm ) ≤ 2 η sm . Outside Q η s m Q_{\eta_{\mathrm{sm}}} Q η sm the area is at most 4 η s m 4\eta_{\mathrm{sm}} 4 η sm and the pointwise difference is at most two. Together with (9) , this gives
∥ f − j ( u + v ) ∥ L 1 ( [ 0 , 1 ] 2 ) ≤ 52 η s m + 2 η s m + 8 η s m = 62 η s m . \|f-j(u+v)\|_{L^1([0,1]^2)}\leq52\eta_{\mathrm{sm}}+2\eta_{\mathrm{sm}}+8\eta_{\mathrm{sm}}=62\eta_{\mathrm{sm}}. ∥ f − j ( u + v ) ∥ L 1 ([ 0 , 1 ] 2 ) ≤ 52 η sm + 2 η sm + 8 η sm = 62 η sm .
Round j j j to a sign, with a fixed convention at zero. For a sign z z z and r ∈ [ − 1 , 1 ] r\in[-1,1] r ∈ [ − 1 , 1 ] , ∣ z − sgn ( r ) ∣ ≤ 2 ∣ z − r ∣ |z-\operatorname{sgn}(r)|\leq2|z-r| ∣ z − sgn ( r ) ∣ ≤ 2∣ z − r ∣ . Thus the resulting f 1 f_1 f 1 has distance at most 124 η s m ≤ 128 η s m 124\eta_{\mathrm{sm}}\leq128\eta_{\mathrm{sm}} 124 η sm ≤ 128 η sm .
For any two sign functions f , g f,g f , g , expansion of the equality indicator gives
∣ E ( f ) − E ( g ) ∣ ≤ 1 2 ∫ [ 0 , 1 ] 2 ∣ f − g ∣ ( u v + ( 1 − u ) ( 1 − v ) ) d u d v ≤ ∥ f − g ∥ 1 . (11) |\mathcal{E}(f)-\mathcal{E}(g)|\leq\frac{1}{2}\int_{[0,1]^2}|f-g|(uv+(1-u)(1-v))\,du\,dv\leq\|f-g\|_1. \tag*{(11)} ∣ E ( f ) − E ( g ) ∣ ≤ 2 1 ∫ [ 0 , 1 ] 2 ∣ f − g ∣ ( uv + ( 1 − u ) ( 1 − v )) d u d v ≤ ∥ f − g ∥ 1 . (11)
Hence E ( f 1 ) ≤ 1 / 12 + η s m 6 + 128 η s m ≤ 1 / 12 + 129 η s m \mathcal{E}(f_1)\leq1/12+\eta_{\mathrm{sm}}^6+128\eta_{\mathrm{sm}}\leq1/12+129\eta_{\mathrm{sm}} E ( f 1 ) ≤ 1/12 + η sm 6 + 128 η sm ≤ 1/12 + 129 η sm , which is stronger than the stated bound. If η s m ≥ 1 / 8 \eta_{\mathrm{sm}}\geq1/8 η sm ≥ 1/8 , any fixed diagonal sign function suffices: the distance is at most two, the energy is at most 1 / 4 1/4 1/4 , and both claimed bounds follow.
Proof of Theorem 3.1 . Assume first that ε > 0 \varepsilon> 0 ε > 0 , put η s m = ε 1 / 6 \eta_{\rm sm} = \varepsilon^{1/6} η sm = ε 1/6 , and suppose α = 257 η s m ≤ 1 / 4096 \alpha= 257\eta_{\rm sm} \le1/4096 α = 257 η sm ≤ 1/4096 . Lemma 3.3 gives f 1 ( u , v ) = b ( u + v ) f_1(u,v) = b(u+v) f 1 ( u , v ) = b ( u + v ) with energy excess at most α \alpha α . Let t = α 1 / 4 ≤ 1 / 8 t = \alpha^{1/4} \le1/8 t = α 1/4 ≤ 1/8 . By (8) there is a row at height v ∈ [ t , 2 t ] v \in[t,2t] v ∈ [ t , 2 t ] whose one-dimensional deficit is at most 16 α / t 16\alpha/t 16 α / t . Its sign profile is b b b restricted to [ v , v + 1 ] [v,v+1] [ v , v + 1 ] . By Lemma 3.2 , it has a threshold approximation of error at most 4 ( 16 α / t ) 1 / 3 < 11 α 1 / 4 4(16\alpha/t)^{1/3} < 11\alpha^{1/4} 4 ( 16 α / t ) 1/3 < 11 α 1/4 . Restrict that threshold to [ v , 1 ] [v,1] [ v , 1 ] and extend it to [ 0 , 1 ] [0,1] [ 0 , 1 ] as a threshold. The additional interval has length at most 2 t 2t 2 t and costs at most 4 t 4t 4 t . Thus b b b on [ 0 , 1 ] [0,1] [ 0 , 1 ] is within 15 α 1 / 4 15\alpha^{1/4} 15 α 1/4 of a threshold b 0 b_0 b 0 . Selecting a row with v ∈ [ 1 − 2 t , 1 − t ] v \in[1-2t,1-t] v ∈ [ 1 − 2 t , 1 − t ] in the same way gives a threshold b 1 b_1 b 1 within 15 α 1 / 4 15\alpha^{1/4} 15 α 1/4 of s ↦ b ( 1 + s ) s \mapsto b(1+s) s ↦ b ( 1 + s ) on [ 0 , 1 ] [0,1] [ 0 , 1 ] .
Let b ~ ( s ) = b 0 ( s ) \widetilde b(s)=b_0(s) b ( s ) = b 0 ( s ) for s < 1 s<1 s < 1 and b ~ ( s ) = b 1 ( s − 1 ) \widetilde b(s)=b_1(s-1) b ( s ) = b 1 ( s − 1 ) for s ≥ 1 s\ge1 s ≥ 1 , and put f 2 ( u , v ) = b ~ ( u + v ) f_2(u,v)=\widetilde b(u+v) f 2 ( u , v ) = b ( u + v ) . The density of u + v u+v u + v on the square is s s s for 0 ≤ s ≤ 1 0\le s\le1 0 ≤ s ≤ 1 and 2 − s 2-s 2 − s for 1 ≤ s ≤ 2 1\le s\le2 1 ≤ s ≤ 2 , so it is at most one. Consequently
∥ f 1 − f 2 ∥ 1 ≤ ζ : = 30 α 1 / 4 . (12) \lVert f_1-f_2\rVert_1\le\zeta:=30\alpha^{1/4}. \tag*{(12)} ∥ f 1 − f 2 ∥ 1 ≤ ζ := 30 α 1/4 . (12)
Each coordinate operator T \mathcal{T} T has L 2 L^2 L 2 operator norm at most one, by Cauchy–Schwarz on each unit interval and Fubini. Moreover, ∥ f 1 − f 2 ∥ 2 2 = 2 ∥ f 1 − f 2 ∥ 1 \lVert f_1-f_2\rVert_2^2=2\lVert f_1-f_2\rVert_1 ∥ f 1 − f 2 ∥ 2 2 = 2 ∥ f 1 − f 2 ∥ 1 . Writing D = T u − T v \mathcal{D}=\mathcal{T}_u-\mathcal{T}_v D = T u − T v , the triangle inequality followed by ( x + y ) 2 ≤ 2 x 2 + 2 y 2 (x+y)^2\le2x^2+2y^2 ( x + y ) 2 ≤ 2 x 2 + 2 y 2 gives
∥ D f 2 ∥ 2 2 ≤ 32 α + 16 ζ ≤ 512 α 1 / 4 . (13) \lVert\mathcal{D}f_2\rVert_2^2\le32\alpha+16\zeta\le512\alpha^{1/4}. \tag*{(13)} ∥ D f 2 ∥ 2 2 ≤ 32 α + 16 ζ ≤ 512 α 1/4 . (13)
Set m 0 = ∣ { s ∈ [ 0 , 1 ] : b 0 ( s ) = b 1 ( s ) } ∣ m_0=\lvert\{s\in[0,1]:b_0(s)=b_1(s)\}\rvert m 0 = ∣{ s ∈ [ 0 , 1 ] : b 0 ( s ) = b 1 ( s )}∣ and F ( t ) = ∫ 0 t ( b 0 ( s ) + b 1 ( s ) ) d s F(t)=\int_0^t(b_0(s)+b_1(s))\,ds F ( t ) = ∫ 0 t ( b 0 ( s ) + b 1 ( s )) d s . Directly integrating the two coordinate operators yields
D f 2 ( u , v ) = F ( v ) − F ( u ) , ∥ D f 2 ∥ 2 2 = 2 ∫ 0 1 ( F − F ‾ ) 2 . (14) \mathcal{D}f_2(u,v)=F(v)-F(u),\qquad\lVert\mathcal{D}f_2\rVert_2^2=2\int_0^1(F-\overline F)^2. \tag*{(14)} D f 2 ( u , v ) = F ( v ) − F ( u ) , ∥ D f 2 ∥ 2 2 = 2 ∫ 0 1 ( F − F ) 2 . (14)
Here F ‾ = ∫ 0 1 F ( t ) d t \overline F=\int_0^1F(t)\,dt F = ∫ 0 1 F ( t ) d t is the mean of F F F on [ 0 , 1 ] [0,1] [ 0 , 1 ] . Because b 0 , b 1 b_0,b_1 b 0 , b 1 are thresholds, the nonzero derivative of F F F is supported on at most two intervals, and is constantly 2 2 2 or − 2 -2 − 2 on each. If m 0 > 0 m_0>0 m 0 > 0 , one of those intervals has length ℓ ≥ m 0 / 2 \ell\ge m_0/2 ℓ ≥ m 0 /2 . For any constant c c c , the integral of ( F − c ) 2 (F-c)^2 ( F − c ) 2 on that interval is at least
min d ∫ 0 ℓ ( 2 s − d ) 2 d s = ℓ 3 / 3. \min_d\int_0^\ell(2s-d)^2\,ds=\ell^3/3. d min ∫ 0 ℓ ( 2 s − d ) 2 d s = ℓ 3 /3.
Taking c = F ‾ c=\overline F c = F in (14) and using (13) , we obtain m 0 3 ≤ 6144 α 1 / 4 m_0^3\le6144\alpha^{1/4} m 0 3 ≤ 6144 α 1/4 and hence
m 0 ≤ 19 α 1 / 12 . (15) m_0\le19\alpha^{1/12}. \tag*{(15)} m 0 ≤ 19 α 1/12 . (15)
Replace b 1 b_1 b 1 by − b 0 -b_0 − b 0 and call the resulting diagonal function f 3 f_3 f 3 . Since the diagonal density is at most one, ∥ f 2 − f 3 ∥ 1 ≤ 2 m 0 \lVert f_2-f_3\rVert_1\le2m_0 ∥ f 2 − f 3 ∥ 1 ≤ 2 m 0 . If b 0 b_0 b 0 is positive before ξ \xi ξ and negative after ξ \xi ξ , then
∫ f 3 = ∫ 0 1 ( 2 s − 1 ) b 0 ( s ) d s = − 2 ξ ( 1 − ξ ) . \int f_3=\int_0^1(2s-1)b_0(s)\,ds=-2\xi(1-\xi). ∫ f 3 = ∫ 0 1 ( 2 s − 1 ) b 0 ( s ) d s = − 2 ξ ( 1 − ξ ) .
Reversing the threshold orientation reverses the mean. The distances from f 3 f_3 f 3 to the two canonical phases are 2 ξ 2\xi 2 ξ and 2 ( 1 − ξ ) 2(1-\xi) 2 ( 1 − ξ ) , in some order, since the density weights of the two halves add to one. Thus min { 2 ξ , 2 ( 1 − ξ ) } ≤ 4 ξ ( 1 − ξ ) = 2 ∣ ∫ f 3 ∣ \min\{2\xi,2(1-\xi)\}\le4\xi(1-\xi)=2\left|\int f_3\right| min { 2 ξ , 2 ( 1 − ξ )} ≤ 4 ξ ( 1 − ξ ) = 2 ∫ f 3 . With d = ∥ f − f 2 ∥ 1 d=\lVert f-f_2\rVert_1 d = ∥ f − f 2 ∥ 1 , we have ∣ ∫ f 3 ∣ ≤ ∣ ∫ f ∣ + d + 2 m 0 \left|\int f_3\right|\le\left|\int f\right|+d+2m_0 ∫ f 3 ≤ ∫ f + d + 2 m 0 , so
min σ ∥ f − σ f ∗ ∥ 1 ≤ d + 2 m 0 + 2 ∣ ∫ f 3 ∣ ≤ 3 d + 6 m 0 + 2 ∣ ∫ f ∣ . \min_\sigma\lVert f-\sigma f_\ast\rVert_1\le d+2m_0+2\left|\int f_3\right|\le3d+6m_0+2\left|\int f\right|. σ min ∥ f − σ f ∗ ∥ 1 ≤ d + 2 m 0 + 2 ∫ f 3 ≤ 3 d + 6 m 0 + 2 ∫ f .
Using d ≤ 128 η s m + 30 α 1 / 4 d\le128\eta_{\rm sm}+30\alpha^{1/4} d ≤ 128 η sm + 30 α 1/4 , (15) , and ∣ ∫ f ∣ ≤ 3 η s m 3 \left|\int f\right|\le3\eta_{\rm sm}^3 ∫ f ≤ 3 η sm 3 , the right-hand side is at most
384 η s m + 90 α 1 / 4 + 114 α 1 / 12 + 6 η s m 3 ≤ 594 α 1 / 12 . 384\eta_{\rm sm}+90\alpha^{1/4}+114\alpha^{1/12}+6\eta_{\rm sm}^3\le594\alpha^{1/12}. 384 η sm + 90 α 1/4 + 114 α 1/12 + 6 η sm 3 ≤ 594 α 1/12 .
Here 0 < η s m ≤ 1 0 < \eta_{\mathrm{sm}} \le1 0 < η sm ≤ 1 , α = 257 η s m ≤ 1 \alpha= 257\eta_{\mathrm{sm}} \le1 α = 257 η sm ≤ 1 , and each smaller power term is bounded by the displayed coefficient times α 1 / 12 \alpha^{1/12} α 1/12 . Since 257 1 / 12 ≤ 2 257^{1/12} \le2 25 7 1/12 ≤ 2 , this is at most 1188 η s m 1 / 12 ≤ 4096 ε 1 / 72 1188\eta_{\mathrm{sm}}^{1/12} \le4096\varepsilon^{1/72} 1188 η sm 1/12 ≤ 4096 ε 1/72 .
If 257 η s m > 1 / 4096 257\eta_{\mathrm{sm}} > 1/4096 257 η sm > 1/4096 , the distance between any two sign functions is at most two. The inequality η s m 1 / 12 ≥ 1 / 4 \eta_{\mathrm{sm}}^{1/12} \ge1/4 η sm 1/12 ≥ 1/4 at the cutoff, and monotonicity thereafter, give the asserted estimate immediately. Finally, if ε = 0 \varepsilon= 0 ε = 0 , apply the positive-excess result for every positive excess parameter. The minimum of the distances to the two fixed phases must then be zero. This proves the zero-excess case. □ \square □
Finite rectangular grids with unary costs
For integers m , n ≥ 1 m,n \ge1 m , n ≥ 1 , let J m , n J_{m,n} J m , n have vertex set { 0 , … , m − 1 } × { 0 , … , n − 1 } \{0,\ldots,m-1\} \times\{0,\ldots,n-1\} { 0 , … , m − 1 } × { 0 , … , n − 1 } , where two vertices are adjacent exactly when both coordinate orders strictly agree. Here m , n m,n m , n denote grid dimensions, independently of the source-graph size used elsewhere. Write
V = m n , ρ = 1 m + 1 n , u i = i + 1 / 2 m , v j = j + 1 / 2 n . V = mn,\qquad\rho= \frac{1}{m}+\frac{1}{n},\qquad u_i = \frac{i+1/2}{m},\qquad v_j = \frac{j+1/2}{n}. V = mn , ρ = m 1 + n 1 , u i = m i + 1/2 , v j = n j + 1/2 .
Thus V V V is the number of vertices of the comparison graph, not the number of points of the eventual geometric drawing. Define
c i j + = 1 { u i + v j < 1 } , c i j − = 1 − c i j + , s i j σ = 2 c i j σ − 1. c_{ij}^{+} = 1\{u_i+v_j<1\},\qquad c_{ij}^{-}=1-c_{ij}^{+},\qquad s_{ij}^{\sigma}=2c_{ij}^{\sigma}-1. c ij + = 1 { u i + v j < 1 } , c ij − = 1 − c ij + , s ij σ = 2 c ij σ − 1.
In particular a diagonal cell centre has spin − 1 -1 − 1 in the positive phase. Let U x : { 0 , 1 } → R U_x:\{0,1\}\to\mathbb{R} U x : { 0 , 1 } → R be unary costs, and suppose
∣ U x ( 1 ) − U x ( 0 ) ∣ ≤ α V for all x , α ≥ 0. |U_x(1)-U_x(0)|\le\alpha V\quad\text{for all }x,\qquad\alpha\ge0. ∣ U x ( 1 ) − U x ( 0 ) ∣ ≤ α V for all x , α ≥ 0.
No bound is imposed on their additive constants. Write
E ( c ) = Φ J ( c ) + ∑ x U x ( c x ) , E(c)=\Phi_J(c)+\sum_x U_x(c_x), E ( c ) = Φ J ( c ) + x ∑ U x ( c x ) ,
where Φ J \Phi_J Φ J counts monochromatic edges of J m , n J_{m,n} J m , n . For a set F F F of grid vertices, c ⊕ F c\oplus F c ⊕ F denotes the colouring obtained by flipping exactly F F F . Define the exact finite quantities
d x σ = E ( c σ ⊕ { x } ) − E ( c σ ) , L σ = E ( c σ ) + ∑ x min ( 0 , d x σ ) , L = min ( L + , L − ) . (16) d_x^\sigma=E(c^\sigma\oplus\{x\})-E(c^\sigma),\qquad L_\sigma=E(c^\sigma)+\sum_x\min(0,d_x^\sigma),\qquad L=\min(L_+,L_-). \tag*{(16)} d x σ = E ( c σ ⊕ { x }) − E ( c σ ) , L σ = E ( c σ ) + x ∑ min ( 0 , d x σ ) , L = min ( L + , L − ) . (16)
For w ≥ 0 w\ge0 w ≥ 0 let
D w = { ( i , j ) : ∣ u i + v j − 1 ∣ ≤ w } , C w = { ( i , j ) : u i + v j ≤ w or u i + v j ≥ 2 − w } . D_w=\{(i,j):|u_i+v_j-1|\le w\},\qquad C_w=\{(i,j):u_i+v_j\le w\text{ or }u_i+v_j\ge2-w\}. D w = {( i , j ) : ∣ u i + v j − 1∣ ≤ w } , C w = {( i , j ) : u i + v j ≤ w or u i + v j ≥ 2 − w } .
Theorem 3.4 (Finite-grid localization and energy bounds). Let a a a satisfy α + ρ ≤ a ≤ 2 − 4096 \alpha+\rho\le a\le2^{-4096} α + ρ ≤ a ≤ 2 − 4096 . For every rectangular aspect ratio the following statements hold.
Every minimizer c c c of E E E has a phase σ \sigma σ such that, with F = { x : c x ≠ c x σ } F=\{x:c_x\ne c_x^\sigma\} F = { x : c x = c x σ } ,
∣ F ∣ ≤ 52 a V , F ⊆ D 220 a ∪ C 220 a . |F|\le52aV,\qquad F\subseteq D_{220a}\cup C_{220a}. ∣ F ∣ ≤ 52 aV , F ⊆ D 220 a ∪ C 220 a . The minimum energy belongs to
[ L − 2 32 a 3 V 2 , L + 2 32 a 3 V 2 ] . [L-2^{32}a^3V^2,L+2^{32}a^3V^2]. [ L − 2 32 a 3 V 2 , L + 2 32 a 3 V 2 ] . For either prescribed phase, the explicit set F σ 0 = { x : d x σ < 0 } F_\sigma^0=\{x:d_x^\sigma<0\} F σ 0 = { x : d x σ < 0 } has size at most 52 a V 52aV 52 aV and
E ( c σ ⊕ F σ 0 ) ≤ L σ + 2 32 a 3 V 2 . E(c^\sigma\oplus F_\sigma^0)\le L_\sigma+2^{32}a^3V^2. E ( c σ ⊕ F σ 0 ) ≤ L σ + 2 32 a 3 V 2 .
For every F ⊆ D 220 a ∪ C 220 a F \subseteq D_{220a} \cup C_{220a} F ⊆ D 220 a ∪ C 220 a ,
E ( c σ ⊕ F ) ≥ L σ − 2 32 a 3 V 2 . E(c^\sigma\oplus F) \geq L_\sigma- 2^{32}a^3V^2. E ( c σ ⊕ F ) ≥ L σ − 2 32 a 3 V 2 .
This last conclusion requires no optimality of c σ ⊕ F c^\sigma\oplus F c σ ⊕ F . In fact it holds for arbitrary real unary costs, without their oscillation bound, whenever ρ ≤ a ≤ 1 / 65536 \rho\leq a \leq1/65536 ρ ≤ a ≤ 1/65536 .
For rational unary costs, both L σ L_\sigma L σ and the two prescribed-phase colourings are computable by polynomially many exact arithmetic operations.
Proof. From cells to the continuous objective. Extend a grid colouring to the sign function f c f_c f c constant on its 1 / m 1/m 1/ m by 1 / n 1/n 1/ n cells. Comparable pairs in distinct rows and columns contribute exactly Φ J ( c ) / V 2 \Phi_J(c)/V^2 Φ J ( c ) / V 2 . All other contributions are nonnegative and their total uncoloured measure is
1 4 − ( m 2 ) ( n 2 ) m 2 n 2 = 1 4 m + 1 4 n − 1 4 m n ≤ ρ 4 . \frac{1}{4}-\frac{\binom{m}{2}\binom{n}{2}}{m^2n^2}
=\frac{1}{4m}+\frac{1}{4n}-\frac{1}{4mn}\leq\frac{\rho}{4}. 4 1 − m 2 n 2 ( 2 m ) ( 2 n ) = 4 m 1 + 4 n 1 − 4 mn 1 ≤ 4 ρ .
We will use the weaker bound
0 ≤ E ( f c ) − Φ J ( c ) / V 2 ≤ ρ / 2. (17) 0\leq\mathcal{E}(f_c)-\Phi_J(c)/V^2\leq\rho/2. \tag*{(17)} 0 ≤ E ( f c ) − Φ J ( c ) / V 2 ≤ ρ /2. (17)
The functions f c + f_{c+} f c + and f ∗ f_* f ∗ can disagree only where ∣ u + v − 1 ∣ ≤ ρ / 2 |u+v-1|\leq\rho/2 ∣ u + v − 1∣ ≤ ρ /2 . This band has area at most ρ \rho ρ , whence ∥ f c + − f ∗ ∥ 1 ≤ 2 ρ \|f_{c+}-f_*\|_1\leq2\rho ∥ f c + − f ∗ ∥ 1 ≤ 2 ρ , and the analogous assertion holds for the negative phase. By (11) , E ( f c + ) ≤ 1 / 12 + 2 ρ \mathcal{E}(f_{c+})\leq1/12+2\rho E ( f c + ) ≤ 1/12 + 2 ρ . For a minimizer c c c , comparison with c + c^+ c + gives Φ J ( c ) ≤ Φ J ( c + ) + α V 2 \Phi_J(c)\leq\Phi_J(c^+)+\alpha V^2 Φ J ( c ) ≤ Φ J ( c + ) + α V 2 . Therefore
E ( f c ) ≤ 1 / 12 + α + 5 2 ρ ≤ 1 / 12 + 5 a . \mathcal{E}(f_c)\leq1/12+\alpha+\frac{5}{2}\rho\leq1/12+5a. E ( f c ) ≤ 1/12 + α + 2 5 ρ ≤ 1/12 + 5 a .
Theorem 3.1 and the canonical cell discrepancy give a phase whose disagreement fraction μ = ∣ F ∣ / V \mu=|F|/V μ = ∣ F ∣/ V satisfies
μ ≤ 2048 ( 5 a ) 1 / 72 + ρ ≤ 2 − 20 . (18) \mu\leq2048(5a)^{1/72}+\rho\leq2^{-20}. \tag*{(18)} μ ≤ 2048 ( 5 a ) 1/72 + ρ ≤ 2 − 20 . (18)
For the final numerical bound, use 5 < 8 5<8 5 < 8 , a ≤ 2 − 4096 a\leq2^{-4096} a ≤ 2 − 4096 , and ρ ≤ a \rho\leq a ρ ≤ a ; the first term is less than 2 11 − 4093 / 72 < 2 − 45 2^{11-4093/72}<2^{-45} 2 11 − 4093/72 < 2 − 45 .
Canonical local fields. For p = ( u , v ) p=(u,v) p = ( u , v ) let Q p Q_p Q p be the union of the lower-left and upper-right rectangles comparable to p p p . With s = 1 − u − v s=1-u-v s = 1 − u − v , direct integration gives
∫ Q p f ∗ = − s ( 1 − ∣ s ∣ ) . \int_{Q_p} f_*=-s(1-|s|). ∫ Q p f ∗ = − s ( 1 − ∣ s ∣ ) .
For s ≥ 0 s\geq0 s ≥ 0 , the lower-left rectangle contributes u v uv uv , and the upper-right rectangle contributes s 2 − ( 1 − u ) ( 1 − v ) s^2-(1-u)(1-v) s 2 − ( 1 − u ) ( 1 − v ) ; reflection gives the other case. The union of cells corresponding to the finite neighbours of a cell centre differs from Q p Q_p Q p only in its row and column strips, of total area at most ρ \rho ρ . The sign-function discrepancy contributes at most another 2 ρ 2\rho 2 ρ . A single grid flip changes the cost by minus the vertex spin times its neighbour-spin sum. Consequently, in either canonical phase,
∣ d x g r i d V − ℓ ( u i , v j ) ∣ ≤ 6 ρ , ℓ ( u , v ) = ∣ 1 − u − v ∣ ( 1 − ∣ 1 − u − v ∣ ) . (19) \left|\frac{d_x^{\mathrm{grid}}}{V}-\ell(u_i,v_j)\right|\leq6\rho,\qquad
\ell(u,v)=|1-u-v|(1-|1-u-v|). \tag*{(19)} V d x grid − ℓ ( u i , v j ) ≤ 6 ρ , ℓ ( u , v ) = ∣1 − u − v ∣ ( 1 − ∣1 − u − v ∣ ) . (19)
At a diagonal centre the continuous field is zero, so the strict tie convention causes no change to this bound. Including the unary cost gives
d x σ ≥ V ℓ ( u i , v j ) − 6 a V . (20) d_x^\sigma\geq V\ell(u_i,v_j)-6aV. \tag*{(20)} d x σ ≥ V ℓ ( u i , v j ) − 6 aV . (20)
If t ∈ [ 0 , 1 ] t \in[0,1] t ∈ [ 0 , 1 ] and t ( 1 − t ) ≤ z t(1-t) \le z t ( 1 − t ) ≤ z , then either t ≤ 2 z t \le2z t ≤ 2 z or 1 − t ≤ 2 z 1-t \le2z 1 − t ≤ 2 z , by considering t ≤ 1 / 2 t \le1/2 t ≤ 1/2 and t ≥ 1 / 2 t \ge1/2 t ≥ 1/2 separately. Thus a small value of ℓ \ell ℓ places the vertex in a narrow diagonal strip or in the two corner regions.
Finite strip and corner counts. A rectangle with side lengths r , t r,t r , t contains at most
( m r + 1 ) ( n t + 1 ) ≤ V ( r + ρ ) ( t + ρ ) (mr+1)(nt+1) \le V(r+\rho)(t+\rho) ( m r + 1 ) ( n t + 1 ) ≤ V ( r + ρ ) ( t + ρ )
cell centres. For ρ ≤ w ≤ 1 \rho\le w \le1 ρ ≤ w ≤ 1 , counting by rows gives ∣ D w ∣ ≤ ( 2 w + ρ ) V ≤ 3 w V |D_w| \le(2w+\rho)V \le3wV ∣ D w ∣ ≤ ( 2 w + ρ ) V ≤ 3 w V , and bounding each corner triangle by a square gives ∣ C w ∣ ≤ 8 w 2 V |C_w| \le8w^2V ∣ C w ∣ ≤ 8 w 2 V . Two comparable points of D w D_w D w , ordered coordinatewise, have the sum of their coordinate differences at most 2 w 2w 2 w . For any strip point its strip neighbours therefore lie in two squares of side 2 w 2w 2 w , giving at most 18 w 2 V 18w^2V 18 w 2 V possibilities. Hence for every F ⊆ D w ∪ C w F \subseteq D_w \cup C_w F ⊆ D w ∪ C w ,
deg F ( x ) ≤ 26 w 2 V ( x ∈ D w ) , ∣ E ( J m , n [ F ] ) ∣ ≤ 83 w 3 V 2 . (21) \deg_F(x) \le26w^2V \quad(x \in D_w), \qquad|E(J_{m,n}[F])| \le83w^3V^2. \tag*{(21)} deg F ( x ) ≤ 26 w 2 V ( x ∈ D w ) , ∣ E ( J m , n [ F ]) ∣ ≤ 83 w 3 V 2 . (21)
The degree bound adds the 18 w 2 V 18w^2V 18 w 2 V possible neighbours in D w D_w D w and the at most 8 w 2 V 8w^2V 8 w 2 V vertices of C w C_w C w . For the edge bound, strip–strip, strip–corner, and corner–corner edges contribute at most 27 w 3 V 2 27w^3V^2 27 w 3 V 2 , 24 w 3 V 2 24w^3V^2 24 w 3 V 2 , and 32 w 4 V 2 32w^4V^2 32 w 4 V 2 , respectively. Counting an edge more than once when regions overlap only increases these upper bounds.
Bootstrap from initial stability. For a disagreeing vertex x ∈ F x \in F x ∈ F , changing its colour back in the minimizer has cost change
− d x σ − 2 ∑ y ∈ F : x y ∈ E ( J m , n ) s x σ s y σ ≥ 0. -d_x^\sigma- 2\sum_{y\in F:xy\in E(J_{m,n})}s_x^\sigma s_y^\sigma\ge0. − d x σ − 2 y ∈ F : x y ∈ E ( J m , n ) ∑ s x σ s y σ ≥ 0.
Thus d x σ ≤ 2 deg F ( x ) d_x^\sigma\le2\deg_F(x) d x σ ≤ 2 deg F ( x ) , and (20) yields
ℓ ( u i , v j ) ≤ 6 a + 2 deg F ( x ) / V ( x ∈ F ) . (22) \ell(u_i,v_j) \le6a + 2\deg_F(x)/V \qquad(x \in F). \tag*{(22)} ℓ ( u i , v j ) ≤ 6 a + 2 deg F ( x ) / V ( x ∈ F ) . (22)
Initially deg F ( x ) ≤ μ V \deg_F(x) \le\mu V deg F ( x ) ≤ μ V . The observation following (20) gives
F ⊆ D w ∪ C w , w = 4 μ + 12 a . F \subseteq D_w \cup C_w,\qquad w=4\mu+12a. F ⊆ D w ∪ C w , w = 4 μ + 12 a .
By (18) , ρ ≤ w < 1 / 4 \rho\le w < 1/4 ρ ≤ w < 1/4 . For x ∈ F ∩ D w x \in F \cap D_w x ∈ F ∩ D w , (21) improves (22) to ℓ ≤ 6 a + 52 w 2 \ell\le6a+52w^2 ℓ ≤ 6 a + 52 w 2 . In D w D_w D w we have ℓ ≥ ∣ 1 − u − v ∣ / 2 \ell\ge|1-u-v|/2 ℓ ≥ ∣1 − u − v ∣/2 , so F ∩ D w ⊆ D 12 a + 104 w 2 F \cap D_w \subseteq D_{12a+104w^2} F ∩ D w ⊆ D 12 a + 104 w 2 . The direct row count and the corner count now imply
μ ≤ 25 a + 216 w 2 ≤ 25 a + 6912 μ 2 + 62208 a 2 . \mu\le25a+216w^2 \le25a+6912\mu^2+62208a^2. μ ≤ 25 a + 216 w 2 ≤ 25 a + 6912 μ 2 + 62208 a 2 .
Since μ ≤ 2 − 20 \mu\le2^{-20} μ ≤ 2 − 20 and a ≤ 2 − 4096 a \le2^{-4096} a ≤ 2 − 4096 , we have 6912 μ 2 ≤ μ / 2 6912\mu^2 \le\mu/2 6912 μ 2 ≤ μ /2 and 62208 a 2 ≤ a 62208a^2 \le a 62208 a 2 ≤ a . Absorbing these terms proves μ ≤ 52 a \mu\le52a μ ≤ 52 a . Substitution in the definition of w w w gives w ≤ 220 a w \le220a w ≤ 220 a , establishing the first conclusion.
Exact correction for simultaneous flips. For every flip set F F F and arbitrary real unary costs,
E ( c σ ⊕ F ) − E ( c σ ) = ∑ x ∈ F d x σ + 2 ∑ { x , y } ∈ E ( J m , n [ F ] ) s x σ s y σ . (23) E(c^\sigma\oplus F)-E(c^\sigma)=\sum_{x\in F}d_x^\sigma+2\sum_{\{x,y\}\in E(J_{m,n}[F])}s_x^\sigma s_y^\sigma. \tag*{(23)} E ( c σ ⊕ F ) − E ( c σ ) = x ∈ F ∑ d x σ + 2 { x , y } ∈ E ( J m , n [ F ]) ∑ s x σ s y σ . (23)
Indeed, an edge with both endpoints flipped keeps its equality status, while its two single-flip contributions sum to − 2 s x σ s y σ -2s_x^\sigma s_y^\sigma − 2 s x σ s y σ . The second sum restores exactly this discrepancy; unary terms already add independently.
If F ⊆ D 220 a ∪ C 220 a F \subseteq D_{220a}\cup C_{220a} F ⊆ D 220 a ∪ C 220 a and ρ ≤ a ≤ 1 / 65536 \rho\le a \le1/65536 ρ ≤ a ≤ 1/65536 , (21) bounds the absolute correction by
2 ⋅ 83 ⋅ 220 3 a 3 V 2 < 2 32 a 3 V 2 . 2\cdot83\cdot220^3a^3V^2 < 2^{32}a^3V^2. 2 ⋅ 83 ⋅ 22 0 3 a 3 V 2 < 2 32 a 3 V 2 .
The linear sum is at least ∑ x min ( 0 , d x σ ) \sum_x\min(0,d_x^\sigma) ∑ x min ( 0 , d x σ ) . This proves the third conclusion for arbitrary unary costs. Applying it to the localized minimizer proves the lower bound in the second conclusion.
For the upper bound in a prescribed phase, take exactly F σ 0 = { x : d x σ < 0 } F^0_\sigma=\{x:d^\sigma_x<0\} F σ 0 = { x : d x σ < 0 } . By (20) , this set is contained in D 12 a ∪ C 12 a D_{12a}\cup C_{12a} D 12 a ∪ C 12 a , and its cardinality is at most
( 36 a + 1152 a 2 ) V ≤ 52 a V . (36a+1152a^2)V\le52aV. ( 36 a + 1152 a 2 ) V ≤ 52 aV .
Its linear sum in (23) is the defining sum for L σ L_\sigma L σ , while its correction is bounded by 2 ⋅ 83 ⋅ 123 a 3 V 2 < 2 32 a 3 V 2 2\cdot83\cdot123a^3V^2<2^{32}a^3V^2 2 ⋅ 83 ⋅ 123 a 3 V 2 < 2 32 a 3 V 2 . Choosing the phase with smaller L σ L_\sigma L σ proves the upper bound for the minimum. Finally, all quantities in (16) are finite sums and single-vertex comparisons. They require no search over colourings and can be evaluated exactly in polynomially many operations for rational unary costs.
Freezing probes with the grid colouring fixed
The following proposition applies to any finite simple graph. In the application its vertices are geometric edges and its adjacency relation is proper crossing. Thus its conclusion includes interactions between the probes themselves.
Proposition 3.5 (Probe freezing). Let a finite simple graph have vertex partition X , T , Z X,T,Z X , T , Z , with induced subgraph on X X X equal to J m , n J_{m,n} J m , n . Minimize the number of monochromatic graph edges over all two-colourings of its vertices. Use V = m n V=mn V = mn and ρ = 1 / m + 1 / n \rho=1/m+1/n ρ = 1/ m + 1/ n . Suppose every vertex of X X X has at most α V \alpha V α V neighbours outside X X X , every vertex of T T T has at most β V \beta V β V neighbours outside X X X , and
α , β ≥ 0 , α + ρ ≤ a ≤ 2 − 4096 . \alpha,\beta\ge0,\qquad\alpha+\rho\le a\le2^{-4096}. α , β ≥ 0 , α + ρ ≤ a ≤ 2 − 4096 . For p ∈ T p\in T p ∈ T and σ ∈ { + , − } \sigma\in\{+,-\} σ ∈ { + , − } let
h p σ = ∑ x ∈ N ( p ) ∩ X s x σ . h^\sigma_p=\sum_{x\in N(p)\cap X}s^\sigma_x. h p σ = x ∈ N ( p ) ∩ X ∑ s x σ . This is its colour-1 cost minus its colour-0 cost when the grid is canonical. Choose y p + = 1 y^+_p=1 y p + = 1 when h p + < 0 h^+_p<0 h p + < 0 and y p + = 0 y^+_p=0 y p + = 0 otherwise, and put y p − = 1 − y p + y^-_p=1-y^+_p y p − = 1 − y p + . These are best responses in both phases, including their complemented zero-field tie convention.
Put b = 104 a + β b=104a+\beta b = 104 a + β , and suppose that Q ≥ 0 Q\ge0 Q ≥ 0 satisfies
∣ { p ∈ T : ∣ h p σ ∣ ≤ b V } ∣ ≤ Q ( b + ρ ) V for both phases . (24) \left|\{p\in T:|h^\sigma_p|\le bV\}\right|\le Q(b+\rho)V\quad\text{for both phases}. \tag*{(24)} { p ∈ T : ∣ h p σ ∣ ≤ bV } ≤ Q ( b + ρ ) V for both phases . (24) Then every optimal colouring χ \chi χ has a phase σ \sigma σ and a colouring ψ \psi ψ such that only vertices of T T T are changed, every probe is coloured y p σ y^\sigma_p y p σ , and
0 ≤ Φ ( ψ ) − Φ ( χ ) ≤ E f r : = 2 Q ( b + ρ ) b V 2 . (25) 0\le\Phi(\psi)-\Phi(\chi)\le E_{\mathrm{fr}}:=2Q(b+\rho)bV^2. \tag*{(25)} 0 ≤ Φ ( ψ ) − Φ ( χ ) ≤ E fr := 2 Q ( b + ρ ) b V 2 . (25) The unchanged grid differs from c σ c^\sigma c σ on at most 52 a V 52aV 52 aV vertices, all in D 220 a ∪ C 220 a D_{220a}\cup C_{220a} D 220 a ∪ C 220 a . If O P T f r \mathrm{OPT}_{\mathrm{fr}} OPT fr is the minimum over colourings with the probes in either of the two frozen phases, then
0 ≤ O P T f r − O P T ≤ E f r . 0\le\mathrm{OPT}_{\mathrm{fr}}-\mathrm{OPT}\le E_{\mathrm{fr}}. 0 ≤ OPT fr − OPT ≤ E fr . It suffices for (24) to have the stronger estimate ∣ { p : ∣ h p σ ∣ ≤ t V } ∣ ≤ Q ( t + ρ ) V \left|\{p:|h^\sigma_p|\le tV\}\right|\le Q(t+\rho)V { p : ∣ h p σ ∣ ≤ t V } ≤ Q ( t + ρ ) V for 0 ≤ t ≤ t 0 0\le t\le t_0 0 ≤ t ≤ t 0 , together with b ≤ t 0 b\le t_0 b ≤ t 0 .
Proof. Fix the colours outside X X X in a global optimum. Its restriction to X X X minimizes the resulting grid objective. Each conditional unary oscillation is at most the number of outside neighbours, hence at most α V \alpha V α V . Theorem 3.4 gives a phase σ \sigma σ and a disagreement set F F F with ∣ F ∣ ≤ 52 a V |F|\le52aV ∣ F ∣ ≤ 52 aV and the stated support. Keep this grid colouring fixed for the rest of the proof. For every probe, its field from X X X differs from h p σ h_p^\sigma h p σ by at most 2 ∣ F ∣ ≤ 104 α V 2|F| \le104\alpha V 2∣ F ∣ ≤ 104 α V . Under any colouring of all other vertices, its field from neighbours outside X X X has absolute value at most β V \beta V β V . Thus the full field differs from h p σ h_p^\sigma h p σ by at most b V bV bV . If ∣ h p σ ∣ > b V |h_p^\sigma| > bV ∣ h p σ ∣ > bV , the sign of the full field is the same as the canonical sign, whatever the outside colours are. Single-vertex optimality of χ \chi χ therefore forces this hard probe already to have colour y p σ y_p^\sigma y p σ .
Recolour each remaining, soft probe to y p σ y_p^\sigma y p σ , in any order. At every step the grid remains fixed. The outside field still has absolute value at most β V \beta V β V even after earlier probe changes, since all probe–probe neighbours were included in that degree bound. The cost increase for the current recolouring is at most the magnitude of the current full field, which is bounded by
∣ h p σ ∣ + 104 α V + β V ≤ 2 b V . |h_p^\sigma| + 104\alpha V + \beta V \le2bV. ∣ h p σ ∣ + 104 α V + β V ≤ 2 bV .
There are at most Q ( b + ρ ) V Q(b+\rho)V Q ( b + ρ ) V soft probes by (24) . Summing the sequential cost changes gives the upper bound in (25) . The lower bound follows because χ \chi χ is a global optimum and ψ \psi ψ is a feasible colouring. Only probes were changed, so the same grid and its localization remain.
The frozen feasible set is a subset of the original feasible set and contains the constructed ψ \psi ψ . Its optimum is therefore between Φ ( χ ) \Phi(\chi) Φ ( χ ) and Φ ( ψ ) \Phi(\psi) Φ ( ψ ) , proving the final optimum bound.
Geometric construction and rational coordinates
We realize the originals, frames and programs with the crossing relations outlined in § 2 .
Two convex chains
For rational D ≥ 10 D \ge10 D ≥ 10 , x A ≥ 1 x_A \ge1 x A ≥ 1 , and 0 < κ , κ f ≤ 1 / 100 0 < \kappa,\kappa_f \le1/100 0 < κ , κ f ≤ 1/100 , set
P ( y ) = ( − D − κ y 2 , y ) , A ( t ) = ( x A + κ f t 2 , t ) , − 1 < y , t < 1. (26) P(y)=(-D-\kappa y^2,y), \qquad A(t)=(x_A+\kappa_f t^2,t), \qquad-1<y,t<1. \tag*{(26)} P ( y ) = ( − D − κ y 2 , y ) , A ( t ) = ( x A + κ f t 2 , t ) , − 1 < y , t < 1. (26)
Choose original points P j = P ( y j ) P_j=P(y_j) P j = P ( y j ) in increasing parameter order, and frame points A i = A ( t i ) A_i=A(t_i) A i = A ( t i ) in decreasing parameter order, with 0 ≤ j < o 0 \le j < o 0 ≤ j < o and 0 ≤ i < B 0 \le i < B 0 ≤ i < B .
This is the standard double-chain configuration; see Hurtado, Noy and Urrutia [12 Section 3, p. 341] . We verify its crossing relations for the coordinates above.
Lemma 4.1 (The base drawing). The base points are in general position. The edges A i P j A_iP_j A i P j induce the strict comparison grid:
A i P j ∼ A k P l ⟺ ( i < k and j < l ) or ( k < i and l < j ) . A_iP_j \sim A_kP_l \Longleftrightarrow(i<k \text{ and } j<l) \text{ or } (k<i \text{ and } l<j). A i P j ∼ A k P l ⟺ ( i < k and j < l ) or ( k < i and l < j ) . An edge within either chain does not cross an edge joining the chains.
Proof. For a < b < c a<b<c a < b < c , direct expansion gives
or ( P ( a ) , P ( c ) , A ( t ) ) = − ( c − a ) [ D + x A + κ f t 2 + κ ( ( a + c ) t − a c ) ] < 0 , \operatorname{or}(P(a),P(c),A(t))=-(c-a)\left[D+x_A+\kappa_f t^2+\kappa\left((a+c)t-ac\right)\right]<0, or ( P ( a ) , P ( c ) , A ( t )) = − ( c − a ) [ D + x A + κ f t 2 + κ ( ( a + c ) t − a c ) ] < 0 ,
or ( P ( a ) , P ( c ) , P ( b ) ) = − κ ( c − a ) ( b − a ) ( c − b ) < 0 , \operatorname{or}(P(a),P(c),P(b))=-\kappa(c-a)(b-a)(c-b)<0, or ( P ( a ) , P ( c ) , P ( b )) = − κ ( c − a ) ( b − a ) ( c − b ) < 0 ,
or ( A ( a ) , A ( c ) , P ( y ) ) = ( c − a ) [ D + x A + κ y 2 + κ f ( ( a + c ) y − a c ) ] > 0 , \operatorname{or}(A(a),A(c),P(y))=(c-a)\left[D+x_A+\kappa y^2+\kappa_f\left((a+c)y-ac\right)\right]>0, or ( A ( a ) , A ( c ) , P ( y )) = ( c − a ) [ D + x A + κ y 2 + κ f ( ( a + c ) y − a c ) ] > 0 ,
or ( A ( a ) , A ( c ) , A ( b ) ) = κ f ( c − a ) ( b − a ) ( c − b ) > 0. \operatorname{or}(A(a),A(c),A(b))=\kappa_f(c-a)(b-a)(c-b)>0. or ( A ( a ) , A ( c ) , A ( b )) = κ f ( c − a ) ( b − a ) ( c − b ) > 0.
The brackets are at least D + x A − 3 κ D+x_A-3\kappa D + x A − 3 κ and D + x A − 3 κ f D+x_A-3\kappa_f D + x A − 3 κ f , respectively. These formulas cover every single-chain and mixed triple. With three points on one chain, the middle point lies strictly inside the triangle formed by the other two and any point on the other chain: the displayed chord test and the mixed tests for the two subpairs give its three side tests. This excludes an internal-chain edge crossing a joining edge. Two points on each chain form a convex quadrilateral, since the opposite chain lies strictly on one side of either same-chain chord. Its diagonals give the stated comparison relation, with the two parameter orders reversed.
There are S S S early source endpoint clusters and S S S late clusters, each containing W ≥ 2 W \ge2 W ≥ 2 consecutive originals. Between them lie D m = 512 S W D_m = 512SW D m = 512 S W dummy originals, so o = 514 S W o = 514SW o = 514 S W . Each cluster is an equally spaced interval of parameter diameter τ \tau τ around a macro parameter. Early, dummy, and late parameters lie, respectively, in ( − 3 / 4 , − 5 / 8 ) (-3/4,-5/8) ( − 3/4 , − 5/8 ) , ( − 1 / 2 , 1 / 2 ) (-1/2,1/2) ( − 1/2 , 1/2 ) , and ( 5 / 8 , 3 / 4 ) (5/8,3/4) ( 5/8 , 3/4 ) . A matching pairs the early and late clusters; § 5 specifies it from the source permutation.
Every original chord has direction ( b − a ) ( − κ ( a + b ) , 1 ) (b-a)(-\kappa(a+b),1) ( b − a ) ( − κ ( a + b ) , 1 ) , while an original–frame vector has horizontal component at least D + x A D+x_A D + x A and vertical component of absolute value at most two. These direction cones are separated. Programs will lie in x < − D / 2 x<-D/2 x < − D /2 , ∣ y ∣ < 2 |y|<2 ∣ y ∣ < 2 . The crossing relations below hold for sufficiently small displacements and clone diameter τ \tau τ . We then choose both scales explicitly so that all relations hold simultaneously.
Ordinary programs
Take 8 ∣ B 8\mid B 8 ∣ B and t i = 1 − 2 ( i + 1 ) / ( B + 1 ) t_i=1-2(i+1)/(B+1) t i = 1 − 2 ( i + 1 ) / ( B + 1 ) . The artificial point A ∗ = A ( 0 ) A_* = A(0) A ∗ = A ( 0 ) lies in the strict angular gap between the middle frame rows, as viewed from every original. At a macro point p = P ( a ) p=P(a) p = P ( a ) , an ordinary program has prototype
r = p − μ o ( A ∗ − p ) , μ o > 0. (27) r=p-\mu_o(A_*-p),\qquad\mu_o>0. \tag*{(27)} r = p − μ o ( A ∗ − p ) , μ o > 0. (27)
Lemma 4.2 (Crossings of ordinary program fans). For sufficiently small μ o \mu_o μ o , followed by sufficiently small τ \tau τ , every clone p s p_s p s of the parent satisfies
r A k ∼ p s A i ⟺ { i < k , k < B / 2 , i > k , k ≥ B / 2. (28) rA_k\sim p_sA_i\Longleftrightarrow
\begin{cases}
i<k,\quad k<B/2,\\
i>k,\quad k\ge B/2.
\end{cases} \tag*{(28)} r A k ∼ p s A i ⟺ { i < k , k < B /2 , i > k , k ≥ B /2. (28) Outside the parent block, the program fan has the neighbourhood of a virtual column inserted at that block. A core edge from a parent clone to a different macro or a dummy crosses exactly the first half of the program fans when its other endpoint is later, and exactly the last half when it is earlier. These tables hold on an open neighbourhood of the prototype.
Proof. Put ϵ i = sgn or ( r , p s , A i ) \epsilon_i=\operatorname{sgn}\operatorname{or}(r,p_s,A_i) ϵ i = sgn or ( r , p s , A i ) . The strict central gap gives ϵ i = 1 \epsilon_i=1 ϵ i = 1 on the first half and − 1 -1 − 1 on the last half, uniformly for all clones after choosing τ \tau τ . Both endpoint tests for proper crossing are needed. When i < k i<k i < k , they require ϵ i = ϵ k = 1 \epsilon_i=\epsilon_k=1 ϵ i = ϵ k = 1 ; when i > k i>k i > k , they require ϵ i = ϵ k = − 1 \epsilon_i=\epsilon_k=-1 ϵ i = ϵ k = − 1 . For i = k i=k i = k there is a common endpoint. For i ≠ k i\ne k i = k , the points r r r and p s p_s p s lie strictly on the same side of the line through A i A_i A i and A k A_k A k : for ∣ y ∣ ≤ 2 |y|\le2 ∣ y ∣ ≤ 2 , this line satisfies
x = x A + κ f ( ( t i + t k ) y − t i t k ) ≥ x A − 5 κ f > 0 , x=x_A+\kappa_f\bigl((t_i+t_k)y-t_it_k\bigr)\ge x_A-5\kappa_f>0, x = x A + κ f ( ( t i + t k ) y − t i t k ) ≥ x A − 5 κ f > 0 ,
whereas both points lie in the left strip. This proves (28) . In every nonparent column the nonzero macro determinants persist under displacement and cloning, giving the virtual-column prefix or suffix.
For the core table, let w = P ( b ) w=P(b) w = P ( b ) with b ≠ a b\ne a b = a . Then or ( p , w , r ) = − μ o or ( p , w , A ∗ ) \operatorname{or}(p,w,r)=-\mu_o\operatorname{or}(p,w,A_*) or ( p , w , r ) = − μ o or ( p , w , A ∗ ) , so r r r and every frame point lie on opposite sides of p w pw pw . The other test compares the signs of or ( r , A k , p ) \operatorname{or}(r,A_k,p) or ( r , A k , p ) and or ( r , A k , w ) \operatorname{or}(r,A_k,w) or ( r , A k , w ) . The former is negative on the first half and positive on the last; at zero displacement the latter has the sign of b − a b-a b − a , and this strict sign persists. This gives the claimed halves for the actual clones. All signs have positive margins, hence hold on an open neighbourhood. For short edges within the parent cluster, the fan-induced unary costs are evaluated directly in § 5 . ∎
Figure 4 compares the ordinary and rank constructions.
Figure 4. Program fans acting on core edges. Left: the half-frame rule, with b > a b>a b > a in different macros. Right: T s , t ( y L ) T_{s,t}(y_L) T s , t ( y L ) is the x x x -coordinate where the chord P ( a s ) P ( b t ) P(a_s)P(b_t) P ( a s ) P ( b t ) meets y = y L y=y_L y = y L ; s , t s,t s , t are the early/late clone ranks. Each range covers all late ranks; the gap selects s > ℓ s>\ell s > ℓ . The displacement and endpoint-side conditions are those of Lemmas 4.3 and 4.7 .
Rank programs
For a selected macro chord P ( a ) P ( b ) P(a)P(b) P ( a ) P ( b ) , a < b a<b a < b , write d 0 = b − a d_0=b-a d 0 = b − a and let a s , b t a_s,b_t a s , b t , 1 ≤ s , t ≤ W 1\le s,t\le W 1 ≤ s , t ≤ W , be its clone parameters. The selected-chord gap estimates use
0 < μ r < 1 100 W , 0 < τ ≤ μ r d 0 100 , y L = a + μ r d 0 , y R = b − μ r d 0 . 0<\mu_r<\frac{1}{100W},\qquad0<\tau\le\frac{\mu_r d_0}{100},\qquad y_L=a+\mu_r d_0,\qquad y_R=b-\mu_r d_0. 0 < μ r < 100 W 1 , 0 < τ ≤ 100 μ r d 0 , y L = a + μ r d 0 , y R = b − μ r d 0 .
The supporting horizontal coordinate of an actual selected chord at height y y y is
T s , t ( y ) = − D − κ ( ( a s + b t ) y − a s b t ) . (29) T_{s,t}(y)=-D-\kappa\bigl((a_s+b_t)y-a_sb_t\bigr). \tag*{(29)} T s , t ( y ) = − D − κ ( ( a s + b t ) y − a s b t ) . (29)
Lemma 4.3 (Crossings of rank program fans). *Fix all macro and dummy parameters, the selected pairing, the frame points, and W ≥ 2 W\ge2 W ≥ 2 . There exists μ 0 > 0 \mu_0>0 μ 0 > 0 , depending on these fixed data, such that for every 0 < μ r < μ 0 0<\mu_r<\mu_0 0 < μ r < μ 0 there exists τ 0 ( μ r ) > 0 \tau_0(\mu_r)>0 τ 0 ( μ r ) > 0 for which the following statements hold whenever 0 < τ ≤ τ 0 ( μ r ) 0<\tau\le\tau_0(\mu_r) 0 < τ ≤ τ 0 ( μ r ) . We choose μ 0 ≤ 1 / ( 100 W ) \mu_0\le1/(100W) μ 0 ≤ 1/ ( 100 W ) small enough that μ 0 ( b − a ) ≤ ∣ c − d ∣ / 4 \mu_0(b-a)\le|c-d|/4 μ 0 ( b − a ) ≤ ∣ c − d ∣/4 for every selected pair a < b a<b a < b and every pair of distinct macro or dummy parameters c , d c,d c , d , and choose 100 τ 0 ( μ r ) ≤ μ r ( b − a ) 100\tau_0(\mu_r)\le\mu_r(b-a) 100 τ 0 ( μ r ) ≤ μ r ( b − a ) for every selected pair.
At each internal gap 1 ≤ ℓ < W 1\le\ell<W 1 ≤ ℓ < W there are open regions for left and right programs. Every left program fan crosses precisely the selected edges with s > ℓ s>\ell s > ℓ ; every right fan crosses precisely those with t ≤ ℓ t\le\ell t ≤ ℓ . The test is independent of the opposite clone rank.
The grid neighbourhood is the exact virtual column after the entire early parent block, or before the entire late parent block, independently of ℓ \ell ℓ . On an incident nonselected core edge to P ( w ) P(w) P ( w ) , every fan crosses if a < w < b a<w<b a < w < b , and none crosses otherwise.*
Proof. At the unsteered centre r 0 = ( 1 − θ ) P ( a ) + θ P ( b ) r_0=(1-\theta)P(a)+\theta P(b) r 0 = ( 1 − θ ) P ( a ) + θ P ( b ) , where θ = μ r \theta=\mu_r θ = μ r or 1 − μ r 1-\mu_r 1 − μ r ,
or ( r 0 , A , P ( a ) ) = θ or ( P ( a ) , P ( b ) , A ) < 0 , or ( r 0 , A , P ( b ) ) = ( 1 − θ ) or ( P ( a ) , A , P ( b ) ) > 0. \operatorname{or}(r_0,A,P(a))=\theta\operatorname{or}(P(a),P(b),A)<0,\qquad
\operatorname{or}(r_0,A,P(b))=(1-\theta)\operatorname{or}(P(a),A,P(b))>0. or ( r 0 , A , P ( a )) = θ or ( P ( a ) , P ( b ) , A ) < 0 , or ( r 0 , A , P ( b )) = ( 1 − θ ) or ( P ( a ) , A , P ( b )) > 0.
Cloning and sufficiently small horizontal steering preserve these opposite endpoint signs for every frame point. The remaining crossing test is exactly
r A ∼ P ( a s ) P ( b t ) ⟺ x r < T s , t ( y r ) . (30) r_A\sim P(a_s)P(b_t)\Longleftrightarrow x_r<T_{s,t}(y_r). \tag*{(30)} r A ∼ P ( a s ) P ( b t ) ⟺ x r < T s , t ( y r ) . (30)
Thus this is an internal segment crossing, not merely a support-line intersection.
At y L y_L y L , the support increases in s s s and decreases in t t t . The full ranges over the opposite rank satisfy
G L , ℓ = T ℓ + 1 , W ( y L ) − T ℓ , 1 ( y L ) = κ [ ( a ℓ + 1 − a ℓ ) ( b W − y L ) − ( y L − a ℓ ) ( b W − b 1 ) ] ≥ κ τ d 0 2 W > 0. (31) G_{L,\ell}=T_{\ell+1,W}(y_L)-T_{\ell,1}(y_L)
=\kappa\left[(a_{\ell+1}-a_\ell)(b_W-y_L)-(y_L-a_\ell)(b_W-b_1)\right]\ge\frac{\kappa\tau d_0}{2W}>0. \tag*{(31)} G L , ℓ = T ℓ + 1 , W ( y L ) − T ℓ , 1 ( y L ) = κ [ ( a ℓ + 1 − a ℓ ) ( b W − y L ) − ( y L − a ℓ ) ( b W − b 1 ) ] ≥ 2 W κ τ d 0 > 0. (31)
Indeed a ℓ + 1 − a ℓ ≥ τ / W a_{\ell+1}-a_\ell\ge\tau/W a ℓ + 1 − a ℓ ≥ τ / W , b W − y L ≥ 0.98 d 0 b_W-y_L\ge0.98d_0 b W − y L ≥ 0.98 d 0 , and y L − a ℓ ≤ 1.005 μ r d 0 < 0.011 d 0 / W y_L-a_\ell\le1.005\mu_r d_0<0.011d_0/W y L − a ℓ ≤ 1.005 μ r d 0 < 0.011 d 0 / W . Thus choose
x L , ℓ = 1 2 ( T ℓ , 1 ( y L ) + T ℓ + 1 , W ( y L ) ) . x_{L,\ell}=\frac{1}{2}\left(T_{\ell,1}(y_L)+T_{\ell+1,W}(y_L)\right). x L , ℓ = 2 1 ( T ℓ , 1 ( y L ) + T ℓ + 1 , W ( y L ) ) .
At y R y_R y R , reflection and rank reversal give T 1 , ℓ ( y R ) − T W , ℓ + 1 ( y R ) ≥ κ τ d 0 / ( 2 W ) T_{1,\ell}(y_R)-T_{W,\ell+1}(y_R)\ge\kappa\tau d_0/(2W) T 1 , ℓ ( y R ) − T W , ℓ + 1 ( y R ) ≥ κ τ d 0 / ( 2 W ) , so
x R , ℓ = 1 2 ( T W , ℓ + 1 ( y R ) + T 1 , ℓ ( y R ) ) x_{R,\ell}=\frac{1}{2}\left(T_{W,\ell+1}(y_R)+T_{1,\ell}(y_R)\right) x R , ℓ = 2 1 ( T W , ℓ + 1 ( y R ) + T 1 , ℓ ( y R ) )
gives exactly t ≤ ℓ t\le\ell t ≤ ℓ . These prototypes tend to the unsteered centres as τ → 0 \tau\to0 τ → 0 , retaining the endpoint tests above.
For grid neighbours, marker-to-parent directions remain in the original-chord cone, outside the entire frame cone. The sign ϵ i \epsilon_i ϵ i in the preceding proof is now constant over frame rows, positive for an original before the marker and negative for one after it. Consequently
r A k ∼ P j A i ⟺ { i < k , P j precedes the marker , i > k , P j follows it . rA_k\sim P_jA_i\Longleftrightarrow
\begin{cases}
i<k, & P_j\text{ precedes the marker},\\
i>k, & P_j\text{ follows it}.
\end{cases} r A k ∼ P j A i ⟺ { i < k , i > k , P j precedes the marker , P j follows it .
The left marker is above its whole parent block and the right marker below its whole parent block. First choose μ 0 \mu_0 μ 0 using the minimum of all macro gaps, so that the displacements μ r ( b − a ) \mu_r(b-a) μ r ( b − a ) do not pass another macro and all nonparent macro ray signs persist. Once μ r \mu_r μ r is fixed, choose τ 0 ( μ r ) \tau_0(\mu_r) τ 0 ( μ r ) so that cloning and steering preserve these strict signs. The two selected-chord bounds alone do not control the nonparent rays.
For a nonselected incident chord, put L a , w ( y ) = − D − κ ( ( a + w ) y − a w ) L_{a,w}(y)=-D-\kappa((a+w)y-aw) L a , w ( y ) = − D − κ (( a + w ) y − a w ) . At the left unsteered centre,
( r 0 ) x − L a , w ( ( r 0 ) y ) = − κ μ r ( b − a ) ( b − w ) . (r_0)_x-L_{a,w}((r_0)_y)=-\kappa\mu_r(b-a)(b-w). ( r 0 ) x − L a , w (( r 0 ) y ) = − κ μ r ( b − a ) ( b − w ) .
The support-side test excludes w > b w>b w > b . For w < b w<b w < b , the other endpoint test excludes w < a w<a w < a , since its sign at P ( w ) P(w) P ( w ) tends to the sign of w − a w-a w − a , while the near-endpoint sign is negative. Thus precisely a < w < b a<w<b a < w < b remains. The right support difference is κ μ r ( b − a ) ( a − w ) \kappa\mu_r(b-a)(a-w) κ μ r ( b − a ) ( a − w ) ; the orientation sign at its parent endpoint P ( b ) P(b) P ( b ) is positive and the other endpoint sign is negative precisely for w < b w<b w < b , giving the same interval. For each fixed μ r \mu_r μ r , all these support and ray signs are strict at τ = 0 \tau=0 τ = 0 ; the finite minimum of their allowed neighbourhoods gives a common positive upper bound on τ 0 ( μ r ) \tau_0(\mu_r) τ 0 ( μ r ) . Parent-cluster short edges and the selected partner are excluded from this last table. Lemma 4.7 gives a simultaneous rational choice, with the ray, partner, and curvature bounds in (41) –(43) . □
Lemma 4.4 (Nonincident exclusion). A program fan does not cross a core edge whose endpoints both avoid its parent block.
Proof. For endpoints in different nonparent blocks, the fan at the parent macro is noncrossing by Lemma 4.1 , with nonzero macro determinants. Small displacement and then cloning preserve the exclusion. For a short edge in one nonparent block, the macro fan has positive distance from that block’s centre. Sufficiently small displacement and clone neighbourhoods therefore keep the entire short edge disjoint from the fan. □
Canonical response fields
Let N g = B o N_g=Bo N g = B o , ρ = 1 / B + 1 / o \rho=1/B+1/o ρ = 1/ B + 1/ o , u k = ( k + 1 / 2 ) / B u_k=(k+1/2)/B u k = ( k + 1/2 ) / B , and v j = ( j + 1 / 2 ) / o v_j=(j+1/2)/o v j = ( j + 1/2 ) / o . The canonical grid spins are the positive-phase spins of J B , o J_{B,o} J B , o , namely σ k j = s k j + = 21 u k + v j < 1 − 1 \sigma_{kj}=s^+_{kj}=2\mathbf{1}_{u_k+v_j<1}-1 σ k j = s k j + = 2 1 u k + v j < 1 − 1 . The field of a fan is its grid cost in colour one minus its grid cost in colour zero. Its canonical response minimizes this cost, with colour zero at a tie. For a virtual column after r 0 r_0 r 0 originals, put v = r 0 / o v=r_0/o v = r 0 / o ; its exact field is
H k = ∑ j < r 0 i < k σ i j + ∑ j ≥ r 0 i ≥ k σ i j , H_k=\sum_{\substack{j<r_0\\i<k}}\sigma_{ij}+\sum_{\substack{j\ge r_0\\i\ge k}}\sigma_{ij}, H k = j < r 0 i < k ∑ σ ij + j ≥ r 0 i ≥ k ∑ σ ij ,
H k + 1 − H k = ∑ j < r 0 σ k j − ∑ j ≥ r 0 σ k + 1 , j . (32) H_{k+1}-H_k=\sum_{j<r_0}\sigma_{kj}-\sum_{j\ge r_0}\sigma_{k+1,j}. \tag*{(32)} H k + 1 − H k = j < r 0 ∑ σ k j − j ≥ r 0 ∑ σ k + 1 , j . (32)
There is no contribution from row k k k , whose fan shares a frame endpoint.
Lemma 4.5 (Field and soft-row bounds). Write s k = 1 − u k − v s_k=1-u_k-v s k = 1 − u k − v . Then
∣ H k + 1 − H k − o ( 1 − 2 ∣ s k ∣ ) ∣ ≤ 2 + 2 o / B , \left|H_{k+1}-H_k-o(1-2|s_k|)\right|\le2+2o/B, ∣ H k + 1 − H k − o ( 1 − 2∣ s k ∣ ) ∣ ≤ 2 + 2 o / B , ∣ H k / N g + s k ( 1 − ∣ s k ∣ ) ∣ ≤ 6 ρ . (33) \left|H_k/N_g+s_k(1-|s_k|)\right|\le6\rho. \tag*{(33)} ∣ H k / N g + s k ( 1 − ∣ s k ∣ ) ∣ ≤ 6 ρ . (33)
A rank program has field g k = H k g_k=H_k g k = H k . For an ordinary program , choose a virtual position at a parent-block boundary . Then ∣ g k − H k ∣ ≤ 2 B W |g_k-H_k|\le2BW ∣ g k − H k ∣ ≤ 2 B W , and away from the central ordinary switch the increment error is at most 2 W 2W 2 W .
Suppose B ≥ o ≥ 1000 B\ge o\ge1000 B ≥ o ≥ 1000 , 8 ∣ B 8\mid B 8 ∣ B , and W / o ≤ 1 / 514 W/o\le1/514 W / o ≤ 1/514 . For either program type and 0 ≤ z ≤ 1 / 100 0\le z\le1/100 0 ≤ z ≤ 1/100 ,
∣ { k : ∣ g k ∣ ≤ z B o } ∣ ≤ 12 B z + 3. (34) |\{k:|g_k|\le zBo\}|\le12Bz+3. \tag*{(34)} ∣ { k : ∣ g k ∣ ≤ z B o } ∣ ≤ 12 B z + 3. (34)
An early program has response spin + 1 +1 + 1 on the middle 3 B / 4 3B/4 3 B /4 rows; a late program has spin − 1 -1 − 1 there. Each early half-frame sum is at least B / 4 B/4 B /4 and its full sum at least B / 2 B/2 B /2 ; the late sums have the opposite bounds. For s s s programs the total soft count is at most Q ( z + ρ ) N g Q(z+\rho)N_g Q ( z + ρ ) N g , where Q = 12 s / o Q=12s/o Q = 12 s / o .
Proof. For f u ( y ) = 21 y < 1 − u − 1 f_u(y)=2\mathbf{1}_{y<1-u}-1 f u ( y ) = 2 1 y < 1 − u − 1 , any midpoint sum over a prefix or suffix of column cells differs from o o o times the integral by at most one: only the threshold cell matters, including a midpoint tie. Also changing u u u by 1 / B 1/B 1/ B changes a suffix integral by at most 2 / B 2/B 2/ B . Since
∫ 0 v f u ( y ) d y − ∫ v 1 f u ( y ) d y = 1 − 2 ∣ 1 − u − v ∣ , \int_0^v f_u(y)\,\mathrm{d}y-\int_v^1 f_u(y)\,\mathrm{d}y=1-2|1-u-v|, ∫ 0 v f u ( y ) d y − ∫ v 1 f u ( y ) d y = 1 − 2∣1 − u − v ∣ ,
the first estimate follows from (32) . The two rectangles [ 0 , u k ] × [ 0 , v ] [0,u_k]\times[0,v] [ 0 , u k ] × [ 0 , v ] and [ u k , 1 ] × [ v , 1 ] [u_k,1]\times[v,1] [ u k , 1 ] × [ v , 1 ] differ from the actual cell union only in row k k k , of area 1 / B 1/B 1/ B . The cellwise canonical function differs from 21 x + y < 1 − 1 2\mathbf{1}_{x+y<1}-1 2 1 x + y < 1 − 1 in L 1 L^1 L 1 by at most 2 ρ 2\rho 2 ρ . Integrating the latter function over the rectangles gives − s k ( 1 − ∣ s k ∣ ) -s_k(1-|s_k|) − s k ( 1 − ∣ s k ∣ ) , proving even the bound 3 ρ 3\rho 3 ρ . Only the W W W parent columns differ for an ordinary program. Each prefix or suffix has absolute sum at most B B B and changes by at most one away from its switch. This proves its two error bounds.
For early programs v ≤ 1 / 514 v\le1/514 v ≤ 1/514 , and for late programs v ≥ 1 − 1 / 514 v\ge1-1/514 v ≥ 1 − 1/514 . First apply the global field bound ∣ g k − H k ∣ ≤ 2 B W |g_k-H_k|\le2BW ∣ g k − H k ∣ ≤ 2 B W , which holds also at the ordinary switch. A soft row therefore satisfies
∣ s k ∣ ( 1 − ∣ s k ∣ ) ≤ z + 2 W / o + 6 ρ < 0.042 < 7 / 64. |s_k|(1-|s_k|)\le z+2W/o+6\rho<0.042<7/64. ∣ s k ∣ ( 1 − ∣ s k ∣ ) ≤ z + 2 W / o + 6 ρ < 0.042 < 7/64.
Thus every soft row belongs to one of the three intervals ∣ s k ∣ ≤ 1 / 8 |s_k|\le1/8 ∣ s k ∣ ≤ 1/8 , s k ≥ 7 / 8 s_k\ge7/8 s k ≥ 7/8 , or s k ≤ − 7 / 8 s_k\le-7/8 s k ≤ − 7/8 . For early programs these intervals lie in u ≤ 1 / 8 u\le1/8 u ≤ 1/8 or u ≥ 3 / 4 u\ge3/4 u ≥ 3/4 ; for late programs they lie in u ≤ 1 / 4 u\le1/4 u ≤ 1/4 or u ≥ 7 / 8 u\ge7/8 u ≥ 7/8 . They are therefore separated from the ordinary switch between rows B / 2 − 1 B/2-1 B /2 − 1 and B / 2 B/2 B /2 , at u = 1 / 2 u=1/2 u = 1/2 . Within each of these three intervals we may now apply the ordinary increment error bound 2 W 2W 2 W . The main increment o ( 1 − 2 ∣ s k ∣ ) o(1-2|s_k|) o ( 1 − 2∣ s k ∣ ) has constant sign and magnitude at least 3 o / 4 3o/4 3 o /4 there. The total increment error is at most 2 + 2 o / B + 2 W ≤ 6 + 2 W 2+2o/B+2W \le6+2W 2 + 2 o / B + 2 W ≤ 6 + 2 W , leaving magnitude at least o / 2 o/2 o /2 . Hence a field interval of length 2 z B o 2zBo 2 z B o contains at most 4 B z + 1 4Bz+1 4 B z + 1 rows in each of the three intervals, giving (34) .
On u k ∈ [ 1 / 8 , 7 / 8 ] u_k \in[1/8,7/8] u k ∈ [ 1/8 , 7/8 ] , an early rank has 1 / 9 < s k < 8 / 9 1/9<s_k<8/9 1/9 < s k < 8/9 , so s k ( 1 − s k ) ≥ 8 / 81 s_k(1-s_k)\ge8/81 s k ( 1 − s k ) ≥ 8/81 . The error 2 / 514 + 12 / o < 0.016 2/514+12/o<0.016 2/514 + 12/ o < 0.016 cannot change the negative field sign, hence the response colour is one. The late case reverses the sign. Each half-frame has 3 B / 8 3B/8 3 B /8 controlled and at most B / 8 B/8 B /8 other rows, giving the claimed sums. Finally 12 s B z + 3 s ≤ ( 12 s / o ) ( z + ρ ) N g 12sBz+3s\le(12s/o)(z+\rho)N_g 12 s B z + 3 s ≤ ( 12 s / o ) ( z + ρ ) N g .
The full rank weights lie in [ B / 2 , B ] ⊆ [ B / 4 , B ] [B/2,B]\subseteq[B/4,B] [ B /2 , B ] ⊆ [ B /4 , B ] . All internal gaps at an endpoint have the same response sequence, preserved throughout each open prototype region independently of other programs.
All remaining edge classes
Partition the complete graph into X X X (original–frame), T f T_f T f (program–frame), C C C (original–original), Y Y Y (program–original or program–program), and I I I (frame–frame).
Lemma 4.6 (Convex separation). The programs can all be placed strictly inside H = { ( x , y ) : ϕ ( x , y ) ≤ 0 } \mathcal{H}=\{(x,y):\phi(x,y)\le0\} H = {( x , y ) : ϕ ( x , y ) ≤ 0 } , where ϕ ( x , y ) = x + D + κ y 2 \phi(x,y)=x+D+\kappa y^2 ϕ ( x , y ) = x + D + κ y 2 . Every open X X X segment lies outside H \mathcal{H} H . Consequently X X X has no crossing with C C C or Y Y Y . The frame class I I I has no crossing-graph neighbour outside itself.
Proof. The set H \mathcal{H} H is convex. For z λ = ( 1 − λ ) P ( a ) + λ A ( t ) z_\lambda=(1-\lambda)P(a)+\lambda A(t) z λ = ( 1 − λ ) P ( a ) + λ A ( t ) ,
ϕ ( z λ ) = λ [ D + x A + κ f t 2 + κ ( 2 a t − a 2 ) ] + κ λ 2 ( t − a ) 2 . (35) \phi(z_\lambda)=\lambda[D+x_A+\kappa_f t^2+\kappa(2at-a^2)]+\kappa\lambda^2(t-a)^2. \tag*{(35)} ϕ ( z λ ) = λ [ D + x A + κ f t 2 + κ ( 2 a t − a 2 )] + κ λ 2 ( t − a ) 2 . (35)
Its bracket is positive, so every open grid segment is outside. Substituting λ = − μ o \lambda=-\mu_o λ = − μ o gives, for 0 < μ o ≤ 1 0<\mu_o\le1 0 < μ o ≤ 1 , ϕ ( r ) ≤ − μ o ( D + x A − 7 κ ) < 0 \phi(r)\le-\mu_o(D+x_A-7\kappa)<0 ϕ ( r ) ≤ − μ o ( D + x A − 7 κ ) < 0 at an ordinary prototype. At a rank height, a s < y r < b t a_s<y_r<b_t a s < y r < b t and
ϕ ( T s , t ( y r ) , y r ) = − κ ( y r − a s ) ( b t − y r ) < 0. \phi(T_{s,t}(y_r),y_r)=-\kappa(y_r-a_s)(b_t-y_r)<0. ϕ ( T s , t ( y r ) , y r ) = − κ ( y r − a s ) ( b t − y r ) < 0.
Its steered horizontal coordinate is a midpoint of two such supports; ϕ \phi ϕ is affine in x x x , so the actual prototype is inside. If η c a p = min r ( − ϕ ( r ) ) > 0 \eta_{\mathrm{cap}}=\min_r(-\phi(r))>0 η cap = min r ( − ϕ ( r )) > 0 , perturbation by at most δ ≤ min ( 1 / 4 , η c a p / 8 ) \delta\le\min(1/4,\eta_{\mathrm{cap}}/8) δ ≤ min ( 1/4 , η cap /8 ) in both coordinates changes ϕ \phi ϕ by less than 2 δ 2\delta 2 δ on ∣ y ∣ ≤ 2 |y|\le2 ∣ y ∣ ≤ 2 . Hence every final program remains inside. All C , Y C,Y C , Y endpoints lie in H \mathcal{H} H , so convexity excludes their crossing with X X X .
For the frame component put ψ ( x , y ) = x A + κ f y 2 − x \psi(x,y)=x_A+\kappa_fy^2-x ψ ( x , y ) = x A + κ f y 2 − x and use H f = { ( x , y ) : ψ ( x , y ) ≤ 0 } \mathcal{H}_f=\{(x,y):\psi(x,y)\le0\} H f = {( x , y ) : ψ ( x , y ) ≤ 0 } . It contains all I I I segments. Every nonframe point r r r has x r ≤ − D x_r\le-D x r ≤ − D , ∣ y r ∣ ≤ 2 |y_r|\le2 ∣ y r ∣ ≤ 2 , and along a frame fan
ψ ( ( 1 − λ ) A ( t ) + λ r ) = λ [ x A − x r + κ f ( 2 t y r − t 2 ) ] + κ f λ 2 ( y r − t ) 2 > 0 \psi((1-\lambda)A(t)+\lambda r)=\lambda[x_A-x_r+\kappa_f(2ty_r-t^2)]+\kappa_f\lambda^2(y_r-t)^2>0 ψ (( 1 − λ ) A ( t ) + λ r ) = λ [ x A − x r + κ f ( 2 t y r − t 2 )] + κ f λ 2 ( y r − t ) 2 > 0
for 0 < λ ≤ 1 0<\lambda\le1 0 < λ ≤ 1 , since the bracket is at least D + x A − 5 κ f D+x_A-5\kappa_f D + x A − 5 κ f . Thus no fan crosses I I I . The remaining C , Y C,Y C , Y segments lie in x ≤ − D x\le-D x ≤ − D , disjoint from H f ⊆ { x ≥ x A } \mathcal{H}_f\subseteq\{x\ge x_A\} H f ⊆ { x ≥ x A } .
The isolated component I I I contributes Z ( B ) Z(B) Z ( B ) to the optimum. Besides I I I –I I I , the only possible crossing types are
X : X , X : T f , T f : T f , C : C , C : T f , Y : T f , Y : C , Y : Y . X:X,\quad X:T_f,\quad T_f:T_f,\quad C:C,\quad C:T_f,\quad Y:T_f,\quad Y:C,\quad Y:Y. X : X , X : T f , T f : T f , C : C , C : T f , Y : T f , Y : C , Y : Y .
Let G 0 G_0 G 0 be the crossing graph after deleting Y Y Y , and set
p = B s , m C = ( o 2 ) , h = o s + ( s 2 ) , R Y = h ( p + m C ) + ( h 2 ) . (36) p=Bs,\qquad m_C=\binom{o}{2},\qquad h=os+\binom{s}{2},\qquad R_Y=h(p+m_C)+\binom{h}{2}. \tag*{(36)} p = B s , m C = ( 2 o ) , h = os + ( 2 s ) , R Y = h ( p + m C ) + ( 2 h ) . (36)
Deletion removes only the last three crossing types, so
OPT ( G 0 ) ≤ OPT ( P ) ≤ OPT ( G 0 ) + R Y . (37) \operatorname{OPT}(G_0) \le\operatorname{OPT}(P) \le\operatorname{OPT}(G_0) + R_Y. \tag*{(37)} OPT ( G 0 ) ≤ OPT ( P ) ≤ OPT ( G 0 ) + R Y . (37)
The upper bound extends any colouring of G 0 G_0 G 0 by arbitrary colours on Y Y Y , charging at most one per deleted constraint.
A deterministic rational realization
Fix D = 10 D = 10 D = 10 , x A = 1 x_A = 1 x A = 1 , and κ = κ f = 1 / 100 \kappa= \kappa_f = 1/100 κ = κ f = 1/100 . Having fixed the integer counts and source pairing, choose the early macros, physically ordered late macros, dummies, and frames by
a j = − 3 4 + j 8 ( S + 1 ) , b l = 5 8 + l 8 ( S + 1 ) , z v = − 1 4 + v 2 ( D m + 1 ) , t i = 1 − 2 ( i + 1 ) B + 1 . (38) a_j = -\frac{3}{4} + \frac{j}{8(S+1)}, \qquad b_l = \frac{5}{8} + \frac{l}{8(S+1)}, \qquad z_v = -\frac{1}{4} + \frac{v}{2(D_m+1)}, \qquad t_i = 1 - \frac{2(i+1)}{B+1}. \tag*{(38)} a j = − 4 3 + 8 ( S + 1 ) j , b l = 8 5 + 8 ( S + 1 ) l , z v = − 4 1 + 2 ( D m + 1 ) v , t i = 1 − B + 1 2 ( i + 1 ) . (38)
Here 1 ≤ j , l ≤ S 1 \le j,l \le S 1 ≤ j , l ≤ S , 1 ≤ v ≤ D m 1 \le v \le D_m 1 ≤ v ≤ D m , and 0 ≤ i < B 0 \le i < B 0 ≤ i < B . Let A \mathcal{A} A be the set of early and late macro parameters and all dummy parameters; frame parameters are not included. Define
η s e p = min ( { 1 } ∪ { ∣ a − c ∣ : a , c ∈ A , a ≠ c } ) , μ = η s e p 2 10000 ( W + 1 ) , τ = μ η s e p 2 1000 ( B + 1 ) . (39) \eta_{\mathrm{sep}} = \min\left(\{1\} \cup\{|a-c| : a,c \in\mathcal{A},\ a \ne c\}\right), \qquad\mu= \frac{\eta_{\mathrm{sep}}^2}{10000(W+1)}, \qquad\tau= \frac{\mu\eta_{\mathrm{sep}}^2}{1000(B+1)}. \tag*{(39)} η sep = min ( { 1 } ∪ { ∣ a − c ∣ : a , c ∈ A , a = c } ) , μ = 10000 ( W + 1 ) η sep 2 , τ = 1000 ( B + 1 ) μ η sep 2 . (39)
For W ≥ 2 W \ge2 W ≥ 2 , use μ o = μ r = μ \mu_o = \mu_r = \mu μ o = μ r = μ and clone parameters a r = a + τ ϑ r a_r = a+\tau\vartheta_r a r = a + τ ϑ r , where ϑ r = ( 2 r − W − 1 ) / ( 2 ( W − 1 ) ) \vartheta_r = (2r-W-1)/(2(W-1)) ϑ r = ( 2 r − W − 1 ) / ( 2 ( W − 1 )) . Expand each early and late macro into its W W W clones, retain each dummy as one original, and enumerate all resulting parameters in increasing order as y 0 , … , y o − 1 y_0,\ldots,y_{o-1} y 0 , … , y o − 1 . There are 2 S W 2SW 2 S W candidate prototypes: 2 S 2S 2 S ordinary prototypes and 2 S ( W − 1 ) 2S(W-1) 2 S ( W − 1 ) internal rank prototypes, including those assigned zero copies later. The rank prototypes use the midpoint formulas of Lemma 4.3 .
Lemma 4.7 (Simultaneous quantitative margins). The choices (4.14) give all the crossing relations above for the actual clones and every candidate program. These scales are fixed by the base configuration before the program multiplicities are chosen.
Proof. The set A \mathcal{A} A is finite with distinct parameters, so 0 < η s e p ≤ 1 0 < \eta_{\mathrm{sep}} \le1 0 < η sep ≤ 1 . Direct substitution gives
0 < μ ≤ 1 / 10000 , 100 W μ < 1 , 10000 μ ≤ η s e p 2 , 4800 μ < η s e p 2 , 0 < \mu\le1/10000,\qquad100W\mu< 1,\qquad10000\mu\le\eta_{\mathrm{sep}}^2,\qquad4800\mu< \eta_{\mathrm{sep}}^2, 0 < μ ≤ 1/10000 , 100 W μ < 1 , 10000 μ ≤ η sep 2 , 4800 μ < η sep 2 ,
0 < τ ≤ η s e p / 1000 , 1000 τ ≤ μ η s e p 2 , 3 ( B + 1 ) τ 2 ≤ μ , 100 τ ≤ μ ( b − a ) (40) 0 < \tau\le\eta_{\mathrm{sep}}/1000,\qquad1000\tau\le\mu\eta_{\mathrm{sep}}^2,\qquad\frac{3(B+1)\tau}{2} \le\mu,\qquad100\tau\le\mu(b-a) \tag*{(40)} 0 < τ ≤ η sep /1000 , 1000 τ ≤ μ η sep 2 , 2 3 ( B + 1 ) τ ≤ μ , 100 τ ≤ μ ( b − a ) (40)
for any selected a < b a < b a < b , since b − a ≥ η s e p b-a \ge\eta_{\mathrm{sep}} b − a ≥ η sep . Every clone remains in ( − 1 , 1 ) (-1,1) ( − 1 , 1 ) and within τ / 2 \tau/2 τ /2 of its macro. A nonparent original parameter z z z remains on the same side of the parent macro a a a as its own macro and obeys ∣ z − a ∣ ≥ η s e p / 2 |z-a| \ge\eta_{\mathrm{sep}}/2 ∣ z − a ∣ ≥ η sep /2 . Consequently
5 μ ≤ ∣ z − a ∣ , 2 μ ( b − a ) ≤ ∣ z − a ∣ . (41) 5\mu\le|z-a|,\qquad2\mu(b-a) \le|z-a|. \tag*{(41)} 5 μ ≤ ∣ z − a ∣ , 2 μ ( b − a ) ≤ ∣ z − a ∣. (41)
If z z z also avoids the selected partner macro b b b , then ∣ b − z ∣ ≥ η s e p / 2 |b-z| \ge\eta_{\mathrm{sep}}/2 ∣ b − z ∣ ≥ η sep /2 and
20 τ ≤ μ ( b − a ) ∣ b − z ∣ . (42) 20\tau\le\mu(b-a)|b-z|. \tag*{(42)} 20 τ ≤ μ ( b − a ) ∣ b − z ∣. (42)
For two nonparent actual parameters z , v z,v z , v , even when they are clones of the same macro, their distances to a a a are each at least η s e p / 2 \eta_{\mathrm{sep}}/2 η sep /2 . Thus
1200 μ < ∣ z − a ∣ ∣ v − a ∣ , 200 μ ( b − a ) < ∣ z − a ∣ ∣ v − a ∣ . (43) 1200\mu< |z-a||v-a|,\qquad200\mu(b-a) < |z-a||v-a|. \tag*{(43)} 1200 μ < ∣ z − a ∣∣ v − a ∣ , 200 μ ( b − a ) < ∣ z − a ∣∣ v − a ∣. (43)
The second inequality uses b − a ≤ 2 b-a \le2 b − a ≤ 2 . We check both endpoint-side tests for each crossing. In the ordinary own-column test, the unperturbed parent determinant has magnitude at least 10 μ ∣ t i ∣ ≥ 10 μ / ( B + 1 ) 10\mu|t_i| \ge10\mu/(B+1) 10 μ ∣ t i ∣ ≥ 10 μ / ( B + 1 ) . Moving its original parameter from a a a to a clone c c c changes it by at most 25 ∣ c − a ∣ 25|c-a| 25∣ c − a ∣ . The bound 3 ( B + 1 ) ∣ c − a ∣ ≤ μ 3(B+1)|c-a| \le\mu 3 ( B + 1 ) ∣ c − a ∣ ≤ μ therefore preserves its sign. To obtain the constant 25, expand the determinant difference:
or ( r , P ( c ) , A ( t ) ) − or ( r , P ( a ) , A ( t ) ) = ( c − a ) ( r x − A ( t ) x − ( a + c ) ( t − r y ) / 100 ) ; \operatorname{or}(r,P(c),A(t))-\operatorname{or}(r,P(a),A(t))=(c-a)\left(r_x-A(t)_x-(a+c)(t-r_y)/100\right); or ( r , P ( c ) , A ( t )) − or ( r , P ( a ) , A ( t )) = ( c − a ) ( r x − A ( t ) x − ( a + c ) ( t − r y ) /100 ) ;
here ∣ r x ∣ ≤ 22 |r_x|\le22 ∣ r x ∣ ≤ 22 , ∣ r y ∣ ≤ 2 |r_y|\le2 ∣ r y ∣ ≤ 2 . For a nonparent ray, ordinary displacement changes the determinant by at most 36 μ 36\mu 36 μ , while its macro magnitude is at least 10 ∣ z − a ∣ 10|z-a| 10∣ z − a ∣ . Inequality (41) preserves that sign. These bounds establish the full ordinary grid table, including its central switch.
For a core support L c , z ( y ) = − 10 − ( ( c + z ) y − c z ) / 100 L_{c,z}(y)=-10-((c+z)y-cz)/100 L c , z ( y ) = − 10 − (( c + z ) y − cz ) /100 , the ordinary offset is exactly
r x − L c , z ( r y ) = − ( a − c ) ( a − z ) 100 − μ C ( a , c , z ) , C ( a , c , z ) = 11 + a 2 − a c − a z 100 , r_x-L_{c,z}(r_y)=-\frac{(a-c)(a-z)}{100}-\mu C(a,c,z),\qquad C(a,c,z)=11+\frac{a^2-ac-az}{100}, r x − L c , z ( r y ) = − 100 ( a − c ) ( a − z ) − μ C ( a , c , z ) , C ( a , c , z ) = 11 + 100 a 2 − a c − a z ,
with 10 ≤ C ( a , c , z ) ≤ 12 10\le C(a,c,z)\le12 10 ≤ C ( a , c , z ) ≤ 12 for parameters in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] . When c c c is a parent clone, the first term has absolute value at most τ / 100 \tau/100 τ /100 ; the second is strictly negative and dominates it. Combining with the parent and nonparent ray signs gives the ordinary core half-frame table. For two nonparent endpoints, the product margin (43) preserves the macro support sign when the parent lies between them; if they are on one side, both ray signs agree. In either case the fan is disjoint from the core edge, including a short edge in a different cluster.
For rank programs, the last inequality of (40) and 100 W μ < 1 100W\mu<1 100 W μ < 1 are exactly the full-range gap hypotheses in (31) . The midpoint has horizontal steering from its unsteered macro-chord support at most τ / 50 \tau/50 τ /50 , obtained by expanding (29) with endpoint deviations at most τ / 2 \tau/2 τ /2 . Its L ∞ L^\infty L ∞ displacement from its parent is at most μ ( b − a ) \mu(b-a) μ ( b − a ) . For either actual selected endpoint c c c , the height gap is at least τ \tau τ and
∣ x r − P ( c ) x ∣ ≤ ∣ y r − c ∣ / 10. |x_r-P(c)_x|\le|y_r-c|/10. ∣ x r − P ( c ) x ∣ ≤ ∣ y r − c ∣/10.
Indeed for a support through parameters u , v u,v u , v ,
L u , v ( y ) − P ( c ) x = ( c − u ) ( c − v ) − ( u + v ) ( y − c ) 100 ; L_{u,v}(y)-P(c)_x=\frac{(c-u)(c-v)-(u+v)(y-c)}{100}; L u , v ( y ) − P ( c ) x = 100 ( c − u ) ( c − v ) − ( u + v ) ( y − c ) ;
one endpoint differs from c c c by at most τ \tau τ , ∣ c − u ∣ , ∣ c − v ∣ , ∣ u + v ∣ ≤ 2 |c-u|,|c-v|,|u+v|\le2 ∣ c − u ∣ , ∣ c − v ∣ , ∣ u + v ∣ ≤ 2 , and averaging preserves the bound. The horizontal distance to every frame point is at least 11, while its vertical distance is at most two. The endpoint determinant thus has the strict sign prescribed by whether c < y r c<y_r c < y r or c > y r c>y_r c > y r . This proves the endpoint-side test in (30) uniformly over both ranks.
A rank displacement bounded by δ r = μ ( b − a ) \delta_r=\mu(b-a) δ r = μ ( b − a ) changes a nonparent ray determinant by at most 14 δ r 14\delta_r 14 δ r , compared with macro magnitude at least 10 ∣ z − a ∣ 10|z-a| 10∣ z − a ∣ ; use (41) . For a nonselected incident edge from parent clone c c c to actual z z z , the left support offset has the explicit error bound
∣ r x − L c , z ( r y ) + μ ( b − a ) ( b − z ) 100 ∣ ≤ 3 τ 100 . \left|r_x-L_{c,z}(r_y)+\frac{\mu(b-a)(b-z)}{100}\right|\le\frac{3\tau}{100}. r x − L c , z ( r y ) + 100 μ ( b − a ) ( b − z ) ≤ 100 3 τ .
It is the steering error τ / 50 \tau/50 τ /50 plus clone error at most τ / 100 \tau/100 τ /100 . Inequality (42) preserves its sign, so the ray and support tests together give exactly a < z < b a<z<b a < z < b . The right statement follows by reflection. Finally any rank displacement of size δ r \delta_r δ r changes a nonincident chord offset by at most 2 δ r 2\delta_r 2 δ r , whereas its initial curvature offset is ∣ ( a − z ) ( a − v ) ∣ / 100 |(a-z)(a-v)|/100 ∣ ( a − z ) ( a − v ) ∣/100 . Inequality (43) again preserves the sign. Endpoints on the same side give equal ray signs, and endpoints straddling the parent put program and frame on the same side of their chord. This proves rank nonincidence in all cases.
The strict inwardness formulas in Lemma 4.6 apply directly to these ordinary and steered rank prototypes. Their heights have absolute value below two. Thus all prototypes are valid simultaneously. The argument uses only fixed base data and the candidate gap index.
Table 1 collects the crossing tests used in the construction. For a rank program, d 0 = b − a d_0=b-a d 0 = b − a ; all quantities in the last column use the common scales (39) . Short edges in nonparent clusters are included in the nonincident row.
Table 1. Crossing relations, strict certificates, and the bounds that preserve them.
Compute each candidate’s exact grid neighbours and response sequence. These determine the ordinary and rank weights. The greedy and ceiling rules of § 5 then determine the multiplicities and hence s s s , with the base coordinates and scales fixed.
Let B \mathcal{B} B be the set of all fixed original and frame points, and R \mathcal{R} R the finite set of used prototypes. Define positive rational margins
η o r = min { { 1 } ∪ { ∣ or ( u , v , r ) ∣ : u , v ∈ B , r ∈ R , or ( u , v , r ) ≠ 0 } } , \eta_{\mathrm{or}}=\min\bigl\{\{1\}\cup\{|\operatorname{or}(u,v,r)|:u,v\in\mathcal{B},\ r\in\mathcal{R},\ \operatorname{or}(u,v,r)\ne0\}\bigr\}, η or = min { { 1 } ∪ { ∣ or ( u , v , r ) ∣ : u , v ∈ B , r ∈ R , or ( u , v , r ) = 0 } } ,
η c a p = min { { 1 } ∪ { − ϕ ( r ) : r ∈ R } } , \eta_{\mathrm{cap}}=\min\bigl\{\{1\}\cup\{-\phi(r):r\in\mathcal{R}\}\bigr\}, η cap = min { { 1 } ∪ { − ϕ ( r ) : r ∈ R } } ,
η h t = min { { 1 } ∪ { 2 − ∣ r y ∣ : r ∈ R } } , \eta_{\mathrm{ht}}=\min\bigl\{\{1\}\cup\{2-|r_y|:r\in\mathcal{R}\}\bigr\}, η ht = min { { 1 } ∪ { 2 − ∣ r y ∣ : r ∈ R } } ,
L B = 1 + 2 ∑ u ∈ B ( ∣ u x ∣ + ∣ u y ∣ ) , L_{\mathcal{B}}=1+2\sum_{u\in\mathcal{B}}(|u_x|+|u_y|), L B = 1 + 2 u ∈ B ∑ ( ∣ u x ∣ + ∣ u y ∣ ) ,
δ = min { 1 / 4 , η c a p / 8 , η h t , η o r / ( 8 L B ) } . \delta=\min\{1/4,\eta_{\mathrm{cap}}/8,\eta_{\mathrm{ht}},\eta_{\mathrm{or}}/(8L_{\mathcal{B}})\}. δ = min { 1/4 , η cap /8 , η ht , η or / ( 8 L B )} .
Every nonzero one-program determinant retains its sign under a coordinate change at most δ \delta δ : its change is bounded by δ ( ∣ u x − v x ∣ + ∣ u y − v y ∣ ) < L B δ ≤ η o r / 8 \delta(|u_x-v_x|+|u_y-v_y|)<L_{\mathcal{B}}\delta\le\eta_{\mathrm{or}}/8 δ ( ∣ u x − v x ∣ + ∣ u y − v y ∣ ) < L B δ ≤ η or /8 . At the insertion points below the displacement is less than δ / 2 \delta/2 δ /2 per coordinate. Hence the cap and height bounds are preserved as well.
An unused zero determinant need not retain its value. Every prescribed crossing has four strict determinant tests. A pair sharing a base endpoint remains noncrossing by definition; each other prescribed exclusion has either a strict same-side support pair or strict same-side fan rays. The quantitative proof above supplies these certificates, including parent-cluster short edges, whose two fan rays have the same nonzero sign. Thus preserving the nonzero determinants suffices. Let N = B + o + s N = B + o + s N = B + o + s be the final total point count. Set m = N 2 + N + 2 m = N^2 + N + 2 m = N 2 + N + 2 . For each required copy of prototype r r r , test in lexicographic order the m 2 m^2 m 2 rational candidates
r + δ ( i m + 1 − 1 2 , j m + 1 − 1 2 ) , 1 ≤ i , j ≤ m . (44) r + \delta\left(\frac{i}{m+1}-\frac{1}{2},\frac{j}{m+1}-\frac{1}{2}\right), \qquad1 \le i,j \le m. \tag*{(44)} r + δ ( m + 1 i − 2 1 , m + 1 j − 2 1 ) , 1 ≤ i , j ≤ m . (44)
Reject coincidences with existing points and collinearity with any existing pair. At most ( N 2 ) \binom{N}{2} ( 2 N ) forbidden lines each meet this grid in at most m m m points, and at most N N N further points are forbidden. Since ( N 2 ) m + N < m 2 \binom{N}{2}m+N<m^2 ( 2 N ) m + N < m 2 , some candidate survives. Induction gives distinct points in general position. The same radius and denominator are used throughout. All required one-program tables and response colours persist; actual fan–fan crossings and short-edge unary costs are evaluated after insertion, while program nonfans are covered by (36) .
Proposition 4.8 (Effective realization). The construction is a deterministic polynomial-time algorithm with rational coordinates of polynomial binary length. It preserves all the stated crossing relations simultaneously and yields general position. A common positive scaling yields integer coordinates of polynomial binary length with the same crossing relation.
Proof. Proposition 5.8 bounds the actual program count, and there are 2 S W 2SW 2 S W candidate prototypes. Both quantities, as well as B B B and o o o , are bounded by fixed polynomials in the source size n n n . The base coordinates have O ( log ( B + 1 ) + log ( W + 1 ) + log ( S + 1 ) + log ( D m + 1 ) + 1 ) O(\log(B+1)+\log(W+1)+\log(S+1)+\log(D_m+1)+1) O ( log ( B + 1 ) + log ( W + 1 ) + log ( S + 1 ) + log ( D m + 1 ) + 1 ) bits. Since the formulas for η s e p \eta_{\mathrm{sep}} η sep , μ \mu μ , τ \tau τ use a bounded number of rational operations, and the internal rank gaps use explicit midpoint formulas, the prototype coordinates and determinant margins also have polynomial bit length. Taking a finite minimum preserves this bound. The sum defining L B L_B L B has polynomially many terms of polynomial bit length; a common denominator has bit length at most the sum of their denominator bit lengths. Consequently both L B L_B L B and δ \delta δ have polynomial bit length.
The integer greedy recurrence is evaluated with cached cumulative weights. Inserting at most N N N programs tests O ( N 4 ) O(N^4) O ( N 4 ) candidates per insertion, each against O ( N 2 ) O(N^2) O ( N 2 ) exact equations and determinants, for O ( N 7 ) O(N^7) O ( N 7 ) rational operations. All intermediate bit lengths are polynomial; standard integer arithmetic therefore implements the whole algorithm in polynomial bit time. Earlier inserted points only reject candidates and never redefine later scales. Finally the product of the positive coordinate denominators has bit length at most their sum. Scaling by this product preserves strict determinant signs and gives integer coordinates with polynomial bit length.
Encoding the source graph in the core
We minimize the original–original edge cost with the program fans T f T_f T f fixed to their canonical grid responses t + t^+ t + . The palette colours follow from this minimization.
Source matching and amplification
Let G G G and g ( G ) g(G) g ( G ) be as in the preliminaries. Place its two endpoint orders in consecutive blocks of the original cap, reversing one order. The resulting chords alternate exactly for adjacent source vertices. Replace each source chord by q q q macro copies, ordered forward at the early endpoint and backward at the late endpoint. Copies of a vertex are nested; two distinct source classes have either all q 2 q^2 q 2 crossings or none. Write S = n q S=nq S = n q and label the selected macro chords p j q j p_jq_j p j q j , 1 ≤ j ≤ S 1 \le j \le S 1 ≤ j ≤ S , by early endpoint order.
Each macro endpoint is replaced by W W W consecutive originals, denoted p j , r , q j , t p_{j,r},q_{j,t} p j , r , q j , t , 1 ≤ r , t ≤ W 1 \le r,t \le W 1 ≤ r , t ≤ W . Both clone ranks increase with the parameter; the early rank r r r is the index s s s in Lemma 4.3 . There are D m = 512 S W D_m = 512SW D m = 512 S W dummy points between the endpoint blocks. All original points are in convex position on the same cap, so their chords cross precisely when their endpoints alternate. Partition the core C C C into selected edges
S = ⋃ j = 1 S S j , S j = { p j , r q j , t : 1 ≤ r , t ≤ W } , \mathcal{S} = \bigcup_{j=1}^{S} S_j,\qquad S_j = \{p_{j,r}q_{j,t}: 1 \le r,t \le W\}, S = j = 1 ⋃ S S j , S j = { p j , r q j , t : 1 ≤ r , t ≤ W } ,
short edges U \mathcal{U} U within one endpoint cluster, dummy–dummy edges D \mathcal{D} D , and the remaining palette edges C p a l C_{\mathrm{pal}} C pal . Define the proposed palette by
χ p a l ( e ) = { 0 , e joins two early clusters or an early cluster to a dummy , 1 , e joins two late clusters or a dummy to a late cluster , 1 j < k , e = p j , r q k , t , j ≠ k . (45) \chi_{\mathrm{pal}}(e) =
\begin{cases}
0, & e\text{ joins two early clusters or an early cluster to a dummy},\\
1, & e\text{ joins two late clusters or a dummy to a late cluster},\\
1_{j<k}, & e = p_{j,r}q_{k,t},\ j \ne k.
\end{cases} \tag*{(45)} χ pal ( e ) = ⎩ ⎨ ⎧ 0 , 1 , 1 j < k , e joins two early clusters or an early cluster to a dummy , e joins two late clusters or a dummy to a late cluster , e = p j , r q k , t , j = k . (45)
Every palette edge falls in exactly one case.
Lemma 5.1 (Independent source amplification). After deleting the crossing constraints internal to each S j S_j S j , the graph induced on S \mathcal{S} S is the independent q W 2 qW^2 q W 2 -fold blowup of G G G . Its minimum monochromatic count is Δ g ( G ) \Delta g(G) Δ g ( G ) , where Δ = q 2 W 4 \Delta= q^2W^4 Δ = q 2 W 4 .
Proof. Consecutive endpoint clusters preserve all crossings between different macro chords. The q q q macro copies of one vertex remain pairwise noncrossing, and the deletion makes each individual bundle independent. Thus each source vertex becomes an independent class of q W 2 qW^2 q W 2 variables with identical neighbours; source adjacency gives a complete join.
The normalized MaxCut value is invariant under independent blowups [5 p. 268] . Thus an m m m -fold blowup multiplies both the edge count and MaxCut by m 2 m^2 m 2 , and hence also multiplies g ( G ) g(G) g ( G ) by m 2 m^2 m 2 . Taking m = q W 2 m = qW^2 m = q W 2 gives the claimed value.
Unary costs from frozen fans
Every unary coefficient means cost in colour one minus cost in colour zero; a frozen neighbour of colour a a a contributes 2 a − 1 2a - 1 2 a − 1 . Define
E C ( x ; t + ) = ∑ { e , f } ⊆ C e ∼ f 1 x e = x f + ∑ e ∈ C , f ∈ T f e ∼ f 1 x e = t f , M C = min x : C → { 0 , 1 } E C ( x ; t + ) . (46) EC(x;t^+) = \sum_{\substack{\{e,f\}\subseteq C\\ e\sim f}} \mathbf{1}_{x_e=x_f} + \sum_{\substack{e\in C,\ f\in T_f\\ e\sim f}} \mathbf{1}_{x_e=t_f}, \qquad
M_C = \min_{x:C\to\{0,1\}} EC(x;t^+). \tag*{(46)} E C ( x ; t + ) = { e , f } ⊆ C e ∼ f ∑ 1 x e = x f + e ∈ C , f ∈ T f e ∼ f ∑ 1 x e = t f , M C = x : C → { 0 , 1 } min E C ( x ; t + ) . (46)
Lemmas 4.2–4.5 give ordinary half-frame weights in [ B / 4 , B ] [B/4,B] [ B /4 , B ] on incident nonshort edges, positive at early endpoints and negative at late endpoints. Rank programs add w ℓ ∈ [ B / 4 , B ] w_\ell\in[B/4,B] w ℓ ∈ [ B /4 , B ] on the early suffix r > ℓ r > \ell r > ℓ or − w ℓ -w_\ell − w ℓ on the late prefix t ≤ ℓ t \le\ell t ≤ ℓ . Nonincident edges receive no contribution; short-edge unaries are computed directly. Each response weight depends only on its prototype and the base grid, independently of other multiplicities and core colours.
Lemma 5.2 (Affine palette field). The palette contribution to a selected edge is
∑ f ∈ C p a l f ∼ p j , r q j , t ( 2 χ p a l ( f ) − 1 ) = β j + γ j , L ( r − 1 ) + γ j , R ( t − 1 ) , (47) \sum_{\substack{f\in C_{\mathrm{pal}}\\ f\sim p_{j,r}q_{j,t}}} (2\chi_{\mathrm{pal}}(f)-1)
= \beta_j + \gamma_{j,L}(r-1) + \gamma_{j,R}(t-1), \tag*{(47)} f ∈ C pal f ∼ p j , r q j , t ∑ ( 2 χ pal ( f ) − 1 ) = β j + γ j , L ( r − 1 ) + γ j , R ( t − 1 ) , (47) where the integer coefficients are computable by crossing counts and obey ∣ β j ∣ ≤ o 2 |\beta_j| \le o^2 ∣ β j ∣ ≤ o 2 and − o ≤ γ j , L , γ j , R < 0 -o \le\gamma_{j,L},\gamma_{j,R} < 0 − o ≤ γ j , L , γ j , R < 0 .
Proof. A palette edge avoiding both parent clusters contributes independently of r , t r,t r , t . One with an endpoint in the early parent crosses according to whether that endpoint precedes or follows r r r . Its other endpoint avoids the late parent, and its colour is constant over the early cluster; its sum is affine in r r r alone. The late cluster similarly gives a function of t t t . An edge between the two parent clusters is selected, and one inside a cluster is short, so neither contributes a mixed term to the palette field.
The dummy neighbours give exactly
− D m ( r − 1 ) + D m ( W − t ) . -D_m(r-1)+D_m(W-t). − D m ( r − 1 ) + D m ( W − t ) .
The early–dummy edges have colour zero and cross when their parent rank is below r r r ; the dummy–late edges have colour one and cross when their parent rank is above t t t . Changing either rank changes at most one contribution for each nondummy endpoint, of which there are at most 2 S W 2SW 2 S W . Thus either slope lies in [ − D m − 2 S W , − D m + 2 S W ] ⊆ [ − o , 0 ) [-D_m-2SW,-D_m+2SW]\subseteq[-o,0) [ − D m − 2 S W , − D m + 2 S W ] ⊆ [ − o , 0 ) . Finally the number of possible palette neighbours is less than o 2 o^2 o 2 , proving the intercept bound.
Lemma 5.3 (Greedy rank correction). Each slope in Lemma 5.2 can be corrected with at most 4 o W / B + 4 4oW/B+4 4 o W / B + 4 rank programs at that endpoint. After correction the field on bundle j j j is
β j c o r r + ε j , L ( r ) + ε j , R ( t ) , 0 ≤ ε j , L ( r ) , ε j , R ( t ) < B , ∣ β j c o r r ∣ ≤ 4 o 2 . (48) \beta^{\mathrm{corr}}_j+\varepsilon_{j,L}(r)+\varepsilon_{j,R}(t),\qquad0\leq\varepsilon_{j,L}(r),\varepsilon_{j,R}(t)<B,\qquad\lvert\beta^{\mathrm{corr}}_j\rvert\leq4o^2. \tag*{(48)} β j corr + ε j , L ( r ) + ε j , R ( t ) , 0 ≤ ε j , L ( r ) , ε j , R ( t ) < B , ∣ β j corr ∣ ≤ 4 o 2 . (48) Proof. For γ < 0 \gamma<0 γ < 0 , let f ( r ) = − γ ( r − 1 ) f(r)=-\gamma(r-1) f ( r ) = − γ ( r − 1 ) , so f ( 1 ) = 0 f(1)=0 f ( 1 ) = 0 and f ( W ) ≤ o W f(W)\leq oW f ( W ) ≤ o W . Starting with R ( 1 ) = 0 R(1)=0 R ( 1 ) = 0 , at gap r − 1 r-1 r − 1 add the least nonnegative number of its weight-w r − 1 w_{r-1} w r − 1 programs that makes the new cumulative weight R ( r ) R(r) R ( r ) at least f ( r ) f(r) f ( r ) . Inductively
f ( r ) ≤ R ( r ) < f ( r ) + B . (49) f(r)\leq R(r)<f(r)+B. \tag*{(49)} f ( r ) ≤ R ( r ) < f ( r ) + B . (49) If copies are added, the final overshoot is smaller than the last weight, at most B B B . If none is added, the preceding overshoot remains below B B B because the target increased. Each copy weighs at least B / 4 B/4 B /4 , while R ( W ) < o W + B R(W)<oW+B R ( W ) < o W + B , giving the stated count.
At the early endpoint the coefficient is R ( r ) R(r) R ( r ) , which cancels the slope with error in [ 0 , B ) [0,B) [ 0 , B ) . At the late endpoint the negative prefixes give − R ( W ) + R ( t ) -R(W)+R(t) − R ( W ) + R ( t ) . Their initial offset must be retained: β j c o r r = β j − R j , R ( W ) \beta^{\mathrm{corr}}_j=\beta_j-R_{j,R}(W) β j corr = β j − R j , R ( W ) . Since W ≤ o W\leq o W ≤ o and B ≤ o 2 / 1024 B\leq o^2/1024 B ≤ o 2 /1024 , ∣ β j c o r r ∣ ≤ o 2 + o W + B ≤ 4 o 2 \lvert\beta^{\mathrm{corr}}_j\rvert\leq o^2+oW+B\leq4o^2 ∣ β j corr ∣ ≤ o 2 + o W + B ≤ 4 o 2 . Only the W − 1 W-1 W − 1 internal gaps are used.
Forcing the palette inside the core
Use the scales in (3) and put θ j = ( j − 1 ) T \theta_j=(j-1)T θ j = ( j − 1 ) T for 1 ≤ j ≤ S 1\leq j\leq S 1 ≤ j ≤ S . For early–late edges let u L , j u_{L,j} u L , j be the ordinary positive half-frame weight at early endpoint j j j , and u R , j u_{R,j} u R , j the magnitude of the negative weight at its late partner. Choose
C L , j = ⌈ Λ p a l + θ j − β j c o r r u L , j ⌉ , C R , j = ⌈ Λ p a l + θ j u R , j ⌉ . (50) C_{L,j}=\left\lceil\frac{\Lambda_{\mathrm{pal}}+\theta_j-\beta^{\mathrm{corr}}_j}{u_{L,j}}\right\rceil,\qquad C_{R,j}=\left\lceil\frac{\Lambda_{\mathrm{pal}}+\theta_j}{u_{R,j}}\right\rceil. \tag*{(50)} C L , j = ⌈ u L , j Λ pal + θ j − β j corr ⌉ , C R , j = ⌈ u R , j Λ pal + θ j ⌉ . (50)
Both targets are positive. The rounding errors e L , j , e R , j e_{L,j},e_{R,j} e L , j , e R , j in Table 2 lie in [ 0 , B ) [0,B) [ 0 , B ) ; the cumulative weights R j , L , R j , R R_{j,L},R_{j,R} R j , L , R j , R are those of Lemma 5.3 .
Table 2.
Lemma 5.4 (Palette forcing and selected residuals). Every minimizer defining M C M_C M C agrees with χ p a l \chi_{\mathrm{pal}} χ pal on C p a l C_{\mathrm{pal}} C pal . Once the palette and fans are fixed, the fixed palette and fan neighbours of each selected edge give a unary coefficient r e r_e r e with ∣ r e ∣ < 4 B \lvert r_e\rvert<4B ∣ r e ∣ < 4 B ; in particular ∣ r e ∣ ≤ 10 B \lvert r_e\rvert\leq10B ∣ r e ∣ ≤ 10 B , the bound used in Proposition 5.7 .
caption: Cancellation on a selected edge, with the palette fixed to χ p a l \chi_{\mathrm{pal}} χ pal . The late rank offset is included in β j c o r r = β j − R j , R ( W ) \beta_j^{\mathrm{corr}}=\beta_j-R_{j,R}(W) β j corr = β j − R j , R ( W ) .
:::
Proof. For a nonselected early-j j j –late-k k k edge, j ≠ k j\ne k j = k , the ordinary coefficient is
θ j − θ k − β j c o r r + e L , j − e R , k . \theta_j-\theta_k-\beta_j^{\mathrm{corr}}+e_{L,j}-e_{R,k}. θ j − θ k − β j corr + e L , j − e R , k .
The first term has absolute value at least T T T . All adverse terms, including arbitrary remaining core colours, have magnitude at most
∣ β j c o r r ∣ + 2 B + 2 ( 4 o W / B + 4 ) B + ( o − 2 2 ) ≤ 9 2 o 2 + 8 o W + 10 B < 5 o 2 < T . \begin{aligned}
\lvert\beta_j^{\mathrm{corr}}\rvert+2B+2(4oW/B+4)B+\binom{o-2}{2}\le\frac{9}{2}o^2+8oW+10B \\
&<5o^2<T.
\end{aligned} ∣ β j corr ∣ + 2 B + 2 ( 4 o W / B + 4 ) B + ( 2 o − 2 ) ≤ 2 9 o 2 + 8 o W + 10 B < 5 o 2 < T .
The last strict bound uses o ≥ 514 W o\ge514W o ≥ 514 W and B ≤ o 2 / 1024 B\le o^2/1024 B ≤ o 2 /1024 . The rank term counts both incident endpoint families; nonincident programs contribute nothing. The binomial term bounds the full core crossing degree, without assuming any other palette colour. A wrong colour can therefore be improved by a single flip. The preferred colour is zero for j > k j>k j > k and one for j < k j<k j < k .
For an edge on one side, the two ordinary fields have the same sign. Each ordinary multiplicity is at least Λ p a l / ( 2 B ) \Lambda_{\mathrm{pal}}/(2B) Λ pal / ( 2 B ) because its target is at least Λ p a l − 4 o 2 \Lambda_{\mathrm{pal}}-4o^2 Λ pal − 4 o 2 . Either half-frame then contributes magnitude at least Λ p a l / 8 \Lambda_{\mathrm{pal}}/8 Λ pal /8 from each parent. A side–dummy edge has one such contribution. All adverse rank and core terms have magnitude at most
8 o W + 8 B + ( o − 2 2 ) < o 2 < Λ p a l / 8. 8oW+8B+\binom{o-2}{2}<o^2<\Lambda_{\mathrm{pal}}/8. 8 o W + 8 B + ( 2 o − 2 ) < o 2 < Λ pal /8.
Thus early-side edges prefer zero and late-side edges prefer one. This covers the palette simultaneously.
For the selected edge p j , r q j , t p_{j,r}q_{j,t} p j , r q j , t , the ordinary counts cancel β j c o r r \beta_j^{\mathrm{corr}} β j corr in (48) , leaving exactly
r e = ε j , L ( r ) + ε j , R ( t ) + e L , j − e R , j . (51) r_e=\varepsilon_{j,L}(r)+\varepsilon_{j,R}(t)+e_{L,j}-e_{R,j}. \tag*{(51)} r e = ε j , L ( r ) + ε j , R ( t ) + e L , j − e R , j . (51)
All four errors have magnitude below B B B , proving the residual bound.
Palette forcing applies to (46) . The full-drawing lower bound uses only that the post-freezing core energy is at least M C M_C M C .
Dummy edges and local constraints
Lemma 5.5 (Exact dummy elimination). With the palette fixed, the optimized dummy-edge contribution, including its palette interactions, is
Z ( D m ) + S W ( D m 3 ) , (52) Z(D_m)+SW\binom{D_m}{3}, \tag*{(52)} Z ( D m ) + S W ( 3 D m ) , (52) independently of all selected and short-edge colours.
Proof. A dummy chord with ranks a < b a < b a < b crosses no early–late selected chord and no endpoint-cluster short edge. Its palette neighbours are exactly the side–dummy edges whose dummy endpoint is strictly between a , b a,b a , b . It has S W ( b − a − 1 ) SW(b-a-1) S W ( b − a − 1 ) such neighbours of each colour. Its palette cost is consequently the constant S W ( b − a − 1 ) SW(b-a-1) S W ( b − a − 1 ) in either colour. There are no program-fan neighbours by Lemma 4.4 . Summing over a < b a < b a < b gives S W ( D m 3 ) SW\binom{D_m}{3} S W ( 3 D m ) . What remains is the full convex drawing on D m D_m D m points, with optimum Z ( D m ) Z(D_m) Z ( D m ) by the two-page complete-graph theorem [1 ] . Its endpoint-alternation predicate agrees with that of convex straight-line chords.
Let Q l o c Q_{\mathrm{loc}} Q loc be the crossing constraints internal to one selected bundle, between selected and short edges, and between two short edges. These are crossing-graph constraints, not removed geometric edges.
Lemma 5.6 (Conservative local budget).
∣ Q l o c ∣ ≤ 2 S W 4 . (53) |Q_{\mathrm{loc}}| \le2SW^4. \tag*{(53)} ∣ Q loc ∣ ≤ 2 S W 4 . (53) After deleting these constraints and fixing the palette, every short edge has only unary costs. The dummy subsystem remains independent, and the remaining selected-edge graph is that of Lemma 5.1 .
Proof. In one selected bundle, an internal crossing is specified by two early and two late ranks, giving at most W 4 / 4 W^4/4 W 4 /4 choices. For a source–short crossing, the short chord belongs to one of that source’s two endpoint clusters and its endpoints surround the source endpoint. An upper bound, even without this surrounding condition, is 2 ( W 2 ) W 2 ≤ W 4 2\binom{W}{2}W^2 \le W^4 2 ( 2 W ) W 2 ≤ W 4 per bundle. A short–short crossing must lie in one cluster; the two clusters contribute at most 2 ( W 2 ) 2 ≤ W 4 / 2 2\binom{W}{2}^2 \le W^4/2 2 ( 2 W ) 2 ≤ W 4 /2 . The sum is at most 7 W 4 / 4 ≤ 2 W 4 7W^4/4 \le2W^4 7 W 4 /4 ≤ 2 W 4 .
A short edge cannot cross a selected bundle avoiding its cluster, since the cluster is consecutive in cap order; short edges in distinct clusters cannot alternate. Thus the listed types exhaust its unfixed neighbours, except for dummy edges, which are noncrossing with it by Lemma 5.5 . The remaining fixed neighbours give unary costs. Removing internal bundle crossings leaves exactly the source graph already identified.
A computable core baseline
Delete Q l o c Q_{\mathrm{loc}} Q loc from (46) . Fix the palette, set all selected colours to zero, independently minimize each short unary, and insert the dummy optimum (52) . Call this integer C 0 C_0 C 0 , and define
K C = C 0 − Δ ∣ E ( G ) ∣ + ∑ e ∈ S min { 0 , r e } . (54) K_C = C_0 - \Delta|E(G)| + \sum_{e\in S} \min\{0,r_e\}. \tag*{(54)} K C = C 0 − Δ∣ E ( G ) ∣ + e ∈ S ∑ min { 0 , r e } . (54)
Crossing tests, finite sums and minima of two integers compute K C K_C K C directly from the drawing. Let Φ m a i n ( x ) \Phi_{\mathrm{main}}(x) Φ main ( x ) count the monochromatic crossings between selected edges belonging to different source classes, after deleting Q l o c Q_{\mathrm{loc}} Q loc . For a fixed selected colouring x x x , let Ψ ( x ) \Psi(x) Ψ ( x ) be the minimum of the energy after deleting Q l o c Q_{\mathrm{loc}} Q loc over the short and dummy variables, with the palette and fans fixed. The exact identity is
Ψ ( x ) = C 0 − Δ ∣ E ( G ) ∣ + Φ m a i n ( x ) + ∑ e ∈ S r e x e = K C + Φ m a i n ( x ) + ∑ e ∈ S ( r e x e − min { 0 , r e } ) . (55) \begin{aligned}
\Psi(x) &= C_0 - \Delta|E(G)| + \Phi_{\mathrm{main}}(x) + \sum_{e\in S} r_e x_e \\
&= K_C + \Phi_{\mathrm{main}}(x) + \sum_{e\in S}\bigl(r_e x_e-\min\{0,r_e\}\bigr). \tag*{(55)}
\end{aligned} Ψ ( x ) = C 0 − Δ∣ E ( G ) ∣ + Φ main ( x ) + e ∈ S ∑ r e x e = K C + Φ main ( x ) + e ∈ S ∑ ( r e x e − min { 0 , r e } ) . (55)
Indeed, the short minima and dummy value are independent of x x x after deletion. All remaining source-dependent fixed-neighbour costs have coefficient r e r_e r e . The term Δ ∣ E ( G ) ∣ \Delta|E(G)| Δ∣ E ( G ) ∣ is the main crossing count of the all-zero selected colouring used to define the baseline.
Proposition 5.7 (Core encoding). The baseline K C K_C K C is computable in polynomial time, and
K C + Δ g ( G ) ≤ M C ≤ K C + Δ g ( G ) + 10 B S W 2 + 2 S W 4 . (56) K_C + \Delta_g(G) \le M_C \le K_C + \Delta_g(G) + 10BSW^2 + 2SW^4. \tag*{(56)} K C + Δ g ( G ) ≤ M C ≤ K C + Δ g ( G ) + 10 B S W 2 + 2 S W 4 . (56) Proof. Every core minimizer has the palette by Lemma 5.4 . Deleting nonnegative local terms and applying (55) gives the lower bound, since Φ m a i n ( x ) ≥ Δ g ( G ) \Phi_{\mathrm{main}}(x) \ge\Delta_g(G) Φ main ( x ) ≥ Δ g ( G ) and each residual excess is nonnegative.
For the upper bound take a class-uniform selected colouring attaining Δ g ( G ) \Delta_g(G) Δ g ( G ) , independently minimize every short unary, and choose an optimal dummy colouring. These choices coexist in one complete core colouring. Each selected unary exceeds its separate minimum by at most ∣ r e ∣ ≤ 10 B |r_e| \le10B ∣ r e ∣ ≤ 10 B , and ∣ S ∣ = S W 2 |S| = SW^2 ∣ S ∣ = S W 2 . Restoring all local constraints costs at most 2 S W 4 2SW^4 2 S W 4 by Lemma 5.6 . The formula (54) proves computability with polynomially many exact operations.
Proposition 5.8 (Program count). The number of required program points satisfies
s ≤ 16 S Λ p a l B + 8 S o W B + 10 S ≤ 2 80 ( S + 1 ) 4 H 3 . (57) s \le\frac{16S\Lambda_{\mathrm{pal}}}{B} + \frac{8SoW}{B} + 10S \le2^{80}(S+1)^4H^3. \tag*{(57)} s ≤ B 16 S Λ pal + B 8 S o W + 10 S ≤ 2 80 ( S + 1 ) 4 H 3 . (57) In particular s ≤ o s \le o s ≤ o . All multiplicities are computable before final general-position insertion.
Proof. Each target in (50) is at most Λ p a l + S T + 4 o 2 < 2 Λ p a l \Lambda_{\mathrm{pal}} + ST + 4o^2 < 2\Lambda_{\mathrm{pal}} Λ pal + S T + 4 o 2 < 2 Λ pal . A weight is at least B / 4 B/4 B /4 , so each endpoint uses at most 8 Λ p a l / B + 1 8\Lambda_{\mathrm{pal}}/B + 1 8 Λ pal / B + 1 ordinary programs. Lemma 5.3 uses at most 4 o W / B + 4 4oW/B + 4 4 o W / B + 4 rank programs per endpoint. Multiplication by 2 S 2S 2 S gives the first bound.
For d = S + 1 d = S + 1 d = S + 1 , o = 514 S H 4 < 2 10 d H 4 o = 514SH^4 < 2^{10}dH^4 o = 514 S H 4 < 2 10 d H 4 and Λ p a l = 2 26 d o 2 < 2 46 d 3 H 8 \Lambda_{\mathrm{pal}} = 2^{26}do^2 < 2^{46}d^3H^8 Λ pal = 2 26 d o 2 < 2 46 d 3 H 8 . Thus the first two terms are below 2 50 d 4 H 3 2^{50}d^4H^3 2 50 d 4 H 3 and 2 13 d 2 H 3 2^{13}d^2H^3 2 13 d 2 H 3 , respectively, and 10 S 10S 10 S is smaller still. Their sum is below 2 80 d 4 H 3 2^{80}d^4H^3 2 80 d 4 H 3 . Since H = 2 4200 d 14 H = 2^{4200}d^{14} H = 2 4200 d 14 , this is smaller than 514 S H 4 = o 514SH^4 = o 514 S H 4 = o for S ≥ 1 S \ge1 S ≥ 1 . Each step uses only the individually known response weights; placing the resulting number of copies in their open neighbourhoods preserves those weights.
The complete drawing and the decision reduction
We use the final drawing from Proposition 4.8 . For distinct crossing-graph vertex classes A A A , B B B , let Φ A B \Phi_{AB} Φ A B count their monochromatic constraints; Φ A \Phi_A Φ A counts those within A A A .
A common computable background
Let G 0 G_0 G 0 be the crossing graph with Y Y Y deleted. Its remaining constraints are precisely
X : X , X : T f , T f : T f , C : C , C : T f , I : I . X:X,\quad X:T_f,\quad T_f:T_f,\quad C:C,\quad C:T_f,\quad I:I. X : X , X : T f , T f : T f , C : C , C : T f , I : I .
Write c + c^{+} c + for the canonical grid colouring and t + t^{+} t + for the independently computed program-fan responses, with colour zero at a zero field. Define
E X ( x ; t + ) = Φ X ( x ) + Φ X T f ( x , t + ) , d v = E X ( c + ⊕ { v } ; t + ) − E X ( c + ; t + ) , L + = E X ( c + ; t + ) + ∑ v ∈ X min { 0 , d v } , K 0 = Z ( B ) + Φ T f ( t + ) . (58) \begin{aligned}
E_X(x;t^{+})&=\Phi_X(x)+\Phi_{X T_f}(x,t^{+}),\\
d_v&=E_X(c^{+}\oplus\{v\};t^{+})-E_X(c^{+};t^{+}),\\
L_{+}&=E_X(c^{+};t^{+})+\sum_{v\in X}\min\{0,d_v\},\\
K_0&=Z(B)+\Phi_{T_f}(t^{+}). \tag*{(58)}
\end{aligned} E X ( x ; t + ) d v L + K 0 = Φ X ( x ) + Φ X T f ( x , t + ) , = E X ( c + ⊕ { v } ; t + ) − E X ( c + ; t + ) , = E X ( c + ; t + ) + v ∈ X ∑ min { 0 , d v } , = Z ( B ) + Φ T f ( t + ) . (58)
The fan–fan term is evaluated after insertion, including every crossing that changed during program placement. Evaluating the canonical colours and their single-flip differences determines K 0 K_0 K 0 and L + L_{+} L + explicitly.
Proposition 6.1 (Decoupling with the grid fixed). Suppose the hypotheses of Theorem 3.4 and Proposition 3.5 hold with grid dimensions B , o B,o B , o , grid size N g = B o N_g=Bo N g = B o ,
ρ = 1 / B + 1 / o , a = α + ρ ≤ 2 − 4096 , Q = 12 s / o , b = 104 a + β ≤ 1 / 100. \rho=1/B+1/o,\qquad a=\alpha+\rho\le2^{-4096},\qquad Q=12s/o,\qquad b=104a+\beta\le1/100. ρ = 1/ B + 1/ o , a = α + ρ ≤ 2 − 4096 , Q = 12 s / o , b = 104 a + β ≤ 1/100. Set E g = 2 32 N g 2 a 3 E_g=2^{32}N_g^2a^3 E g = 2 32 N g 2 a 3 and E f r = 2 Q ( b + ρ ) b N g 2 E_{\mathrm{fr}}=2Q(b+\rho)bN_g^2 E fr = 2 Q ( b + ρ ) b N g 2 . Then
K 0 + L + + M C − E f r − E g ≤ OPT ( G 0 ) ≤ K 0 + L + + M C + E g , (59) K_0+L_{+}+M_C-E_{\mathrm{fr}}-E_g\le\operatorname{OPT}(G_0)\le K_0+L_{+}+M_C+E_g, \tag*{(59)} K 0 + L + + M C − E fr − E g ≤ OPT ( G 0 ) ≤ K 0 + L + + M C + E g , (59) K 0 + L + + M C − E f r − E g ≤ OPT ( P ) ≤ K 0 + L + + M C + E g + R Y . (60) K_0+L_{+}+M_C-E_{\mathrm{fr}}-E_g\le\operatorname{OPT}(P)\le K_0+L_{+}+M_C+E_g+R_Y. \tag*{(60)} K 0 + L + + M C − E fr − E g ≤ OPT ( P ) ≤ K 0 + L + + M C + E g + R Y . (60)
Proof. Figure Figure 5 summarizes the two bounds. Take an optimum of G 0 G_0 G 0 . Conditional on every other colour, its grid minimizes a unary-perturbed comparison energy with unary differences bounded by α N g \alpha N_g α N g . Theorem 3.4 supplies a canonical phase and a localized flip set of size at most 52 a N g 52aN_g 52 a N g . If necessary complement every colour in the whole graph to make the phase positive; this preserves every monochromatic count.
Figure 5. Two-sided bounds for G 0 G_0 G 0 (with objective E 0 E_0 E 0 ) and P \mathcal{P} P . For the lower bound, only fans of a free optimum χ ∗ \chi^* χ ∗ are frozen; Theorem 3.4 (3) applies to the unchanged localized grid support. Compatible witnesses give χ + \chi^+ χ + for the upper bound, with restoration of Y Y Y costing at most R Y R_Y R Y .
Keep this grid unchanged. By Lemma 4.5 , the probe soft-count hypothesis holds. Proposition 3.5 changes only the program fans to t + t^{+} t + , with cost increase at most E f r E_{\mathrm{fr}} E fr . The grid retains its localized flip set, so the localized lower estimate in Theorem 3.4 , now for the frozen unary energy in (58) , gives at least L + − E g L_{+}-E_g L + − E g . The current core colouring costs at least M C M_C M C , irrespective of whether its palette was forced before the fans were frozen. The frame class costs at least Z ( B ) Z(B) Z ( B ) , and the fan–fan cost is exactly Φ T f ( t + ) \Phi_{T_f}(t^{+}) Φ T f ( t + ) . These terms exhaust G 0 G_0 G 0 . Thus the altered colouring has cost at least K 0 + L + + M C − E g K_0+L_{+}+M_C-E_g K 0 + L + + M C − E g but at most OPT ( G 0 ) + E f r \operatorname{OPT}(G_0)+E_{\mathrm{fr}} OPT ( G 0 ) + E fr , proving the lower bound.
For the upper bound, use the same t + t^{+} t + , the grid colouring c + ⊕ { v : d v < 0 } c^{+}\oplus\{v:d_v<0\} c + ⊕ { v : d v < 0 } , a core minimizer, and a convex frame optimum. The prescribed-phase upper witness in Theorem 3.4 has grid cost at most L + + E g L_{+}+E_g L + + E g . With the fans fixed, the grid, core and frame classes have no crossing constraints between them, so these colourings combine into a witness for the upper bound in (59) . Restoring Y Y Y via (37) then gives (60) .
Parameter estimates
Use the parameters in (3) . Take
α = β = 2 84 d 4 H , a = α + ρ ≤ 2 85 d 4 H , b = 104 a + β . (61) \alpha=\beta=\frac{2^{84}d^4}{H},\qquad a=\alpha+\rho\le\frac{2^{85}d^4}{H},\qquad b=104a+\beta. \tag*{(61)} α = β = H 2 84 d 4 , a = α + ρ ≤ H 2 85 d 4 , b = 104 a + β . (61)
Proposition 5.8 gives s ≤ o s\le o s ≤ o and the convenient bounds
N g ≤ 2 10 d H 9 , p = B s ≤ 2 8 d 4 H 8 , m C ≤ 2 19 d 2 H 8 , h ≤ 2 o s ≤ 2 91 d 5 H 7 . (62) N_g\le2^{10}dH^9,\qquad p=Bs\le2^{8}d^4H^8,\qquad m_C\le2^{19}d^2H^8,\qquad h\le2os\le2^{91}d^5H^7. \tag*{(62)} N g ≤ 2 10 d H 9 , p = B s ≤ 2 8 d 4 H 8 , m C ≤ 2 19 d 2 H 8 , h ≤ 2 os ≤ 2 91 d 5 H 7 . (62)
Also B ≥ 2 o B \ge2o B ≥ 2 o , B ≤ o 2 / 1024 B \le o^2/1024 B ≤ o 2 /1024 , o ≥ 1000 o \ge1000 o ≥ 1000 , 8 ∣ B 8 \mid B 8 ∣ B , and W / o ≤ 1 / 514 W/o \le1/514 W / o ≤ 1/514 . These verify the geometric and core hypotheses. Each follows directly by substituting W = H 4 W = H^4 W = H 4 and B = H 5 B = H^5 B = H 5 and using H = 2 4200 d 14 H = 2^{4200}d^{14} H = 2 4200 d 14 , d ≥ 1 d \ge1 d ≥ 1 , S ≥ 1 S \ge1 S ≥ 1 .
In G 0 G_0 G 0 , a grid vertex has at most p p p outside neighbours: it has no neighbours in C C C or I I I . A program fan has at most p + m C p+m_C p + m C neighbours outside X X X , since I I I is isolated. Thus
p / N g = s / o ≤ α , ( p + m C ) / N g ≤ β , Q = 12 s / o ≤ α ≤ a . p/N_g = s/o \le\alpha,\qquad(p+m_C)/N_g \le\beta,\qquad Q = 12s/o \le\alpha\le a. p / N g = s / o ≤ α , ( p + m C ) / N g ≤ β , Q = 12 s / o ≤ α ≤ a .
For the second inequality, m C / N g < o / ( 2 B ) m_C/N_g < o/(2B) m C / N g < o / ( 2 B ) and the spare factor in 2 84 2^{84} 2 84 dominates this term together with s / o s/o s / o . The mesh satisfies ρ ≤ α \rho\le\alpha ρ ≤ α . Finally the scale of H H H gives a < 2 − 4096 a < 2^{-4096} a < 2 − 4096 and b < 1 / 100 b < 1/100 b < 1/100 . Thus the drawing satisfies the hypotheses of Proposition 6.1 .
Substitution in the error bounds gives
E g ≤ 2 307 d 14 H 15 , E f r ≤ 2 290 d 14 H 15 , R Y ≤ 2 182 d 10 H 15 . (63) E_g \le2^{307}d^{14}H^{15},\qquad E_{\mathrm{fr}} \le2^{290}d^{14}H^{15},\qquad R_Y \le2^{182}d^{10}H^{15}. \tag*{(63)} E g ≤ 2 307 d 14 H 15 , E fr ≤ 2 290 d 14 H 15 , R Y ≤ 2 182 d 10 H 15 . (63)
For the freezing term, Q ≤ a Q \le a Q ≤ a , b ≤ 10 5 a b \le10^5a b ≤ 1 0 5 a , and b + ρ ≤ 10 6 a b+\rho\le10^6a b + ρ ≤ 1 0 6 a , whence E f r ≤ 2 ⋅ 10 5 ⋅ 10 6 N g 2 a 3 < 2 15 N g 2 a 3 E_{\mathrm{fr}} \le2\cdot10^5\cdot10^6N_g^2a^3 < 2^{15}N_g^2a^3 E fr ≤ 2 ⋅ 1 0 5 ⋅ 1 0 6 N g 2 a 3 < 2 15 N g 2 a 3 . For R Y R_Y R Y , use p + m C ≤ 2 81 d 4 H 8 p+m_C \le2^{81}d^4H^8 p + m C ≤ 2 81 d 4 H 8 and (62) . The resulting product is at most 2 172 d 9 H 15 2^{172}d^9H^{15} 2 172 d 9 H 15 , and h 2 / 2 ≤ 2 181 d 10 H 14 h^2/2 \le2^{181}d^{10}H^{14} h 2 /2 ≤ 2 181 d 10 H 14 , both covered by the stated bound. Consequently
E f r + 2 E g + R Y < 2 310 d 14 H 15 . (64) E_{\mathrm{fr}} + 2E_g + R_Y < 2^{310}d^{14}H^{15}. \tag*{(64)} E fr + 2 E g + R Y < 2 310 d 14 H 15 . (64)
Quantitative reduction and threshold
Theorem 6.2 (Bounds for the target optimum). Given a represented permutation graph G G G with n ≥ 1 n \ge1 n ≥ 1 , the construction computes a general-position rational point set P P P , a baseline K b a s e K_{\mathrm{base}} K base , and a positive integer Δ = q 2 H 16 \Delta= q^2H^{16} Δ = q 2 H 16 , with explicit nonnegative errors such that
K b a s e + Δ g ( G ) − E − ≤ OPT ( P ) ≤ K b a s e + Δ g ( G ) + E + , 4 ( E − + E + ) < Δ . (65) K_{\mathrm{base}} + \Delta g(G) - E_- \le\operatorname{OPT}(P) \le K_{\mathrm{base}} + \Delta g(G) + E_+,\qquad4(E_- + E_+) < \Delta. \tag*{(65)} K base + Δ g ( G ) − E − ≤ OPT ( P ) ≤ K base + Δ g ( G ) + E + , 4 ( E − + E + ) < Δ. (65) All output data and threshold constants have polynomial binary length and are computable in deterministic polynomial time. The points can instead be returned with integer coordinates.
Proof. Put
K b a s e = K 0 + L + + K C , E − = E f r + E g , E + = E g + R Y + 10 B S W 2 + 2 S W 4 . (66) \begin{aligned}
K_{\mathrm{base}} &= K_0 + L_+ + K_C,\\
E_- &= E_{\mathrm{fr}} + E_g,\\
E_+ &= E_g + R_Y + 10BSW^2 + 2SW^4. \tag*{(66)}
\end{aligned} K base E − E + = K 0 + L + + K C , = E fr + E g , = E g + R Y + 10 B S W 2 + 2 S W 4 . (66)
The core bound (56) and Proposition 6.1 give the two-sided interval. Dividing the total error by Δ = q 2 H 16 \Delta= q^2H^{16} Δ = q 2 H 16 gives the following estimates.
E f r + 2 E g + R Y Δ < 2 310 d 14 q 2 H = 2 − 3890 q 2 < 2 − 40 , \frac{E_{\mathrm{fr}}+2E_g+R_Y}{\Delta}
< \frac{2^{310}d^{14}}{q^2H}
= \frac{2^{-3890}}{q^2}
< 2^{-40}, Δ E fr + 2 E g + R Y < q 2 H 2 310 d 14 = q 2 2 − 3890 < 2 − 40 ,
10 B S W 2 Δ = 10 n q H 3 < 2 − 40 , \frac{10BSW^2}{\Delta}
= \frac{10n}{qH^3}
< 2^{-40}, Δ 10 B S W 2 = q H 3 10 n < 2 − 40 ,
2 S W 4 Δ = 2 n q < 1 8 . \frac{2SW^4}{\Delta}
= \frac{2n}{q}
< \frac{1}{8}. Δ 2 S W 4 = q 2 n < 8 1 .
The first inequality uses (64) and H = 2 4200 d 14 H = 2^{4200}d^{14} H = 2 4200 d 14 . Hence the total is less than 1 / 8 + 2 − 39 < 1 / 4 1/8 + 2^{-39} < 1/4 1/8 + 2 − 39 < 1/4 , which proves the strict error bound in (65) .
Evaluate (58) and (54) by exact crossing tests on the final coordinates. Their ingredients are canonical colours, single-flip and unary differences, and known convex optima. These finite sums and minima of two integers compute K b a s e K_{\mathrm{base}} K base without a source optimum.
Since d = 16 n ( n + 1 ) + 1 ≤ 2 5 ( n + 1 ) 2 d = 16n(n + 1) + 1 \le2^5(n + 1)^2 d = 16 n ( n + 1 ) + 1 ≤ 2 5 ( n + 1 ) 2 , we have H ≤ H max ( n ) : = 2 4270 ( n + 1 ) 28 H \le H_{\max}(n) := 2^{4270}(n + 1)^{28} H ≤ H m a x ( n ) := 2 4270 ( n + 1 ) 28 and N = B + o + s ≤ 3 H 5 ≤ 3 H max ( n ) 5 N = B + o + s \le3H^5 \le3H_{\max}(n)^5 N = B + o + s ≤ 3 H 5 ≤ 3 H m a x ( n ) 5 , a point bound of degree 140 in n n n . Proposition 4.8 proves polynomial coordinate bit length and construction time, and gives integer coordinates by a common positive scaling.
For the threshold bit bound, the baseline formulas (58) and (54) combine fixed colouring costs with at most N 2 N^2 N 2 single-edge unary corrections, each bounded by a fixed multiple of N 2 N^2 N 2 . Also Δ ∣ E ( G ) ∣ ≤ N 4 \Delta|E(G)| \le N^4 Δ∣ E ( G ) ∣ ≤ N 4 , as it counts the all-zero main crossings. Hence
∣ K b a s e ∣ ≤ 16 N 6 . |K_{\mathrm{base}}| \le16N^6. ∣ K base ∣ ≤ 16 N 6 .
Since q , H ≤ N q, H \le N q , H ≤ N , we have Δ ≤ N 18 \Delta\le N^{18} Δ ≤ N 18 , and ∣ E ( G ) ∣ ≤ N 2 |E(G)| \le N^2 ∣ E ( G ) ∣ ≤ N 2 .
For a source MaxCut threshold k s r c ∈ Z k_{\mathrm{src}} \in\mathbb{Z} k src ∈ Z , put t = ∣ E ( G ) ∣ − k s r c t = |E(G)| - k_{\mathrm{src}} t = ∣ E ( G ) ∣ − k src and output
k t g t = ⌊ K b a s e + Δ t + Δ / 4 ⌋ . (67) k_{\mathrm{tgt}} = \left\lfloor K_{\mathrm{base}} + \Delta t + \Delta/4 \right\rfloor. \tag*{(67)} k tgt = ⌊ K base + Δ t + Δ/4 ⌋ . (67)
In particular
∣ k t g t ∣ ≤ 32 N 20 ( ∣ k s r c ∣ + 1 ) , (68) |k_{\mathrm{tgt}}| \le32N^{20}(|k_{\mathrm{src}}| + 1), \tag*{(68)} ∣ k tgt ∣ ≤ 32 N 20 ( ∣ k src ∣ + 1 ) , (68)
so the threshold bit length is O ( log N + bits ( k s r c ) ) O(\log N + \operatorname{bits}(k_{\mathrm{src}})) O ( log N + bits ( k src )) . The baseline is integral; the floor makes the output threshold explicitly integral as well.
Proof of Theorem 1.1 . Use the NP-hard represented permutation-graph problem with threshold k s r c k_{\mathrm{src}} k src , or equivalently g ( G ) ≤ t g(G) \le t g ( G ) ≤ t . For n ≥ 1 n \ge1 n ≥ 1 apply Theorem 6.2 and output (67) . If g ( G ) ≤ t g(G) \le t g ( G ) ≤ t , then
OPT ( P ) ≤ K b a s e + Δ t + E + < K b a s e + Δ t + Δ / 4. \operatorname{OPT}(\mathcal{P}) \le K_{\mathrm{base}} + \Delta t + E_+ < K_{\mathrm{base}} + \Delta t + \Delta/4. OPT ( P ) ≤ K base + Δ t + E + < K base + Δ t + Δ/4.
Since the objective is an integer, it is at most k t g t k_{\mathrm{tgt}} k tgt . If g ( G ) > t g(G) > t g ( G ) > t , integrality gives g ( G ) ≥ t + 1 g(G) \ge t + 1 g ( G ) ≥ t + 1 , and
OPT ( P ) ≥ K b a s e + Δ ( t + 1 ) − E − > K b a s e + Δ t + Δ / 4 ≥ k t g t . \operatorname{OPT}(\mathcal{P}) \ge K_{\mathrm{base}} + \Delta(t + 1) - E_- > K_{\mathrm{base}} + \Delta t + \Delta/4 \ge k_{\mathrm{tgt}}. OPT ( P ) ≥ K base + Δ ( t + 1 ) − E − > K base + Δ t + Δ/4 ≥ k tgt .
Empty source inputs can be decided directly. A fixed yes instance consists of two distinct integer points and threshold zero. A fixed no instance is the five points ( i , i 2 ) (i, i^2) ( i , i 2 ) , 0 ≤ i < 5 0 \le i < 5 0 ≤ i < 5 , with threshold zero: their diagonal crossing graph is a five-cycle and cannot be properly two-coloured. If the target convention permits only nonnegative thresholds and the computed k t g t k_{\mathrm{tgt}} k tgt is negative, output this fixed no instance. A source yes instance would otherwise imply the impossible inequality 0 ≤ OPT ( P ) ≤ k t g t < 0 0 \le\operatorname{OPT}(\mathcal{P}) \le k_{\mathrm{tgt}} < 0 0 ≤ OPT ( P ) ≤ k tgt < 0 .
Proposition 4.8 and (68) give a deterministic polynomial-time many-one reduction. A common positive scaling gives integer coordinates. Together with Proposition 1.3 , this proves NP-completeness and NP-hardness of exact minimization.
Corollary 6.3. If collinear input points are permitted while the objective still counts only proper crossings using strict orientation tests , the decision problem remains NP-complete.
Proof. The general-position hard instances are also inputs in the larger class. For membership in NP, use the verifier of Proposition 1.3 with the collinearity check omitted. Its strict orientation tests count only proper crossing pairs, so verification remains polynomial-time.
Verification and AI assistance
GPT 6 astra (OpenAI) was used to assist with programmatic derivations and verification during the development of this proof in 2026. Verification includes a Lean formalization and independent exact computations; their scope, external dependencies and limitations are documented in the accompanying repository. The authors take responsibility for the content of this article.
Data availability
The Lean proof code, exact-computation scripts and verification documentation supporting this article are publicly available in the accompanying repository [17 ] . The repository describes the scope of formal verification and its external dependencies.