Urysohn in action: separating semialgebraic sets by polynomials

Milan Korda, Jean B. Lasserre, Alexey Lazarev, Victor Magron, Simone NaldiarXiv 2022 · DOI

Urysohn in Action: Separating Semialgebraic Sets by Polynomials

Abstract

A classical result from topology called Urysohn's lemma asserts the existence of a continuous separator of two disjoint closed sets in a sufficiently regular topological space. In this work, we make the search for this separator constructive and efficient in the context of real algebraic geometry. Namely, given two compact disjoint basic semialgebraic sets which are contained in an $n$-dimensional box, we provide an algorithm that computes a separating polynomial greater than or equal to 1 on the first set and less than or equal to 0 on the second one.

Introduction

In topology, Urysohn’s Lemma is a fundamental result stating that for any two disjoint closed sets in a "normal" space, there exists a continuous function that separates them. While theoretically powerful, the lemma is traditionally non-constructive—it guarantees a separator exists but does not provide a method to find it or specify its functional form.

In the field of real algebraic geometry, we frequently work with semialgebraic sets—regions defined by polynomial inequalities. This paper addresses a practical version of Urysohn's problem: Given two such sets, can we find a polynomial that separates them? This is a significant challenge because while a continuous separator always exists, finding a low-degree polynomial separator is difficult, especially when sets are in close proximity or possess complex geometries.

Methodology

The authors bridge the gap between abstract topology and numerical optimization using a four-step constructive approach:

  1. Explicit Construction: They define a simple, Lipschitz continuous "template" function based on the distance to the two sets.
  2. Polynomial Approximation: Using Multivariate Jackson’s Theorem, they prove that a polynomial exists that stays sufficiently close to the template function.
  3. Positivity Certificates: To ensure the polynomial satisfies the separation conditions (e.g., $\geq 1$ on set A and $\leq 0$ on set B), they use Putinar’s Positivstellensatz. This tool represents positive polynomials as "Sums of Squares" (SOS) plus weighted terms from the sets' defining inequalities.
  4. Semidefinite Programming (SDP): The problem of finding the coefficients for this SOS representation is cast as a hierarchy of Semidefinite Programs, which can be solved efficiently using standard convex optimization tools.

Practical Feasibility: The Lemniscate vs. Circle

As a theoretical paper in computational geometry, the method is evaluated on synthetic geometric benchmarks. A primary example is the separation of a lemniscate (a figure-eight shape) from a nearby circle.

A degree-2 polynomial separator successfully distinguishes a lemniscate from a nearby circle.

As shown in the figure above, the algorithm successfully computed a low-degree polynomial to separate these non-convex shapes. This demonstrates that even for "curvy" shapes, a very low-degree polynomial (degree 2 in this instance) can often suffice in practice, even if theoretical worst-case bounds are higher.

Key Insights and Results

  • Distance-Dependent Complexity: The required degree of the separating polynomial is inversely proportional to the Euclidean distance between the two sets. As sets get closer, the "sharpness" required of the polynomial increases, necessitating a higher degree.
  • Singly Exponential Complexity: While many problems in algebraic geometry suffer from "doubly exponential" complexity, the authors' degree bound is singly exponential in the dimension $n$. This suggests the method is more scalable than previous theoretical bounds implied.
  • Explicit Degree Bounds: The mathematical heart of the paper (Theorem 3) provides a concrete formula for the degree required to guarantee a separator exists within the SOS hierarchy.

Limitations and Future Work

While the bounds are singly exponential, SDPs still grow quickly in size as the number of variables and the degree increase. Future work may focus on exploiting sparsity or symmetry for larger problems. Additionally, the authors suggest moving toward margin maximization—finding the optimal separator with the largest gap between sets, similar to Support Vector Machines (SVMs) in machine learning. This has promising applications in robotics for separating "reachable sets" to formally prove collision avoidance.

Summary updated

Abstract

A classical result from topology called Uryshon's lemma asserts the existence of a continuous separator of two disjoint closed sets in a sufficiently regular topological space. In this work we make a search for this separator constructive and efficient in the context of real algebraic geometry. Namely, given two compact disjoint basic semialgebraic sets which are contained in an $n$-dimensional box, we provide an algorithm that computes a separating polynomial greater than or equal to 1 on the first set and less than or equal to 0 on the second one.
BibTeX
@misc{korda2022urysohn,
  author = {Milan Korda and Jean B. Lasserre and Alexey Lazarev and Victor Magron and Simone Naldi},
  title = {{Urysohn in action: separating semialgebraic sets by polynomials}},
  year = {2022},
  eprint = {2207.00570},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.00570},
}
Figure