← All papers
First page of The Complexity of Connecting Polygons

The Complexity of Connecting Polygons

Tonan Kamata, Keigo Oka, Yushi Uno

cs.CG Dec 3, 2026 · v1 cs.CC
Main equivalence theorem and all Section 6 consequences formalized in Lean 4 using Mathlib's polynomial-time Turing machine model, built with AI coding agents.
We study the computational complexity of Connected Polygon Assembly (CONN), which isolates the connectivity requirement in polygon assembly. Given simple polygons with rational vertices, the problem asks whether they can be translated and rotated with pairwise disjoint interiors so that the interior of their union is connected. We show that CONN is polynomial-time many-one equivalent to Planar-Length-List ETR (PLL-ETR), a new problem whose complexity lies between NP and $\exists\mathbb{R}$. In this restriction of the existential theory of the reals (ETR), all variables range over a common finite set given in the input, consisting of signed Euclidean lengths of integer vectors in the plane. Moreover, CONN lies in NP if and only if Planar Square-Root Sum (PlanarSqrtSum) does, where PlanarSqrtSum restricts the Square-Root Sum problem (SqrtSum) to lengths of integer vectors in the plane. Finally, we prove that allowing only translations makes CONN strongly NP-complete, whereas with rotations every finite nonempty family of convex polygons can be assembled into a simple polygon.

The work determines the computational complexity of Connected Polygon Assembly (CONN). CONN asks whether given rational simple polygons can be translated and rotated with disjoint interiors so that the interior of their union is connected. With rotations allowed, NP membership is unclear because placements involve irrational coordinates.

CONN is shown polynomial-time equivalent to Planar-Length-List ETR, a new restriction of ETR whose variables range over signed Euclidean lengths of integer vectors. The upper bound uses contact trees to fix discrete rotations and LP vertices to localize translations. The lower bound reduces PLL-ETR to an intermediate Restricted Turning Walk problem, which is realized geometrically by a toothed frame and stacked pieces with angle-tagged ports. The main theorem and Section 6 results were formalized in Lean 4 with Mathlib's polynomial-time Turing machine model.

CONN is in NP if and only if Planar Square-Root Sum is. CONN is NP-hard and lies in NP^PosSLP ⊆ CH. With translations only, CONN is strongly NP-complete. With rotations, every finite nonempty family of convex polygons can be assembled into a simple polygon.