← All papers
First page of The VC-Dimension of Visibility in Simple Polygons Is Six

The VC-Dimension of Visibility in Simple Polygons Is Six

Dror Aiger, Sariel Har-Peled

cs.CG Nov 24, 2026 · v1
A Lean 4/Mathlib development verifies the VC-dimension upper bound against an axiomatic polygon interface, using geometric lemmas plus a RUP checker proved sound in Lean.
Six targets in a simple polygon can be placed so that, for every subset of the targets, some point in the polygon sees precisely that subset—that is, the polygon shatters the six targets. We prove that no simple polygon shatters seven targets. Together with Valtr's six-target construction, this determines the maximum visibility VC-dimension of a simple polygon to be six (even when the targets must lie in strictly convex position) and improves the previous upper bound of $14$ due to Gilbers and Klein. To rule out a shattered set of seven targets, we classify its convex-hull structure into $74$ cases. In each case, the absence of holes in the polygon forces visibility relations that we encode as Boolean constraints on links and triple orientations. Independently checkable SAT refutations exclude all $74$ cases. The upper-bound proof was derived using AI. A separate Lean 4 formalization independently verifies the upper bound against an axiomatic interface for simple polygons.

The question is the maximum visibility VC-dimension of a simple polygon. Valtr gave a six-target lower bound, and Gilbers and Klein gave an upper bound of 14.

A shattered seven-target set is classified by its convex-hull structure into 74 cases. In each case, the absence of holes forces visibility relations, which are encoded as Boolean constraints on links and triple orientations. Each case is excluded by a DRAT refutation. Separately, a Lean 4 formalization rules out 12 cases directly with formalized geometric lemmas and refutes the remaining 62 with a RUP checker proved sound in Lean.

No simple polygon shatters seven targets, so the maximum visibility VC-dimension is exactly six, including for targets in strictly convex position. The Lean development builds with Lean 4.31.0 and Mathlib, using only the standard axioms, with no sorry and no native_decide.