The exact turnpike problem in polynomial time
Version 1 / Dec 03, 2026 / CC BY 4.0
Abstract
The turnpike problem asks for all configurations of points on a line whose pairwise distances form a given multiset. We allow points to coincide, a pair of coincident points contributing the distance , and give a deterministic algorithm that, on a list of natural numbers written in binary, outputs every finite multiset of reals with least element whose multiset of pairwise distances is the list, each exactly once, in time polynomial in the length of the input. In particular, deciding whether a list of integers is the distance multiset of finitely many points on a line is in . The classical problem, for sets of points, is the special case of lists without . The known exact algorithms are exponential in the worst case or polynomial only in the size of the largest distance.
A solution is encoded by the polynomial whose coefficients are the multiplicities of its points, and the input determines the product of with its reversal , a polynomial of possibly exponential degree with few nonzero coefficients. A semidefinite system built from these coefficients certifies that a differential has only simple poles, with real residues. The ellipsoid method and lattice basis reduction restrict the system to a subspace that keeps every integral solution vector, and yield a rational space of such polynomials that contains, for every solution, the polynomial with . The residues of generate a totally real number field, and an elementary bound on the number of nonreciprocal factors over totally real fields shows that and that the residues at roots of of total multiplicity separate . At a root of multiplicity , the order of vanishing of is one of , which gives a polynomial equation of degree for the coordinates of in . We derive these equations from the sparse data by linear algebra, without computing any root, and read off the polynomials of all solutions from the integer eigenvalues of a multiplication matrix of polynomial size.
Both results are formalized in Lean 4 and checked with only the standard axioms.
Provenance statement
Formalizations
Tools used
- OpenAI
- ChatGPTVersion 6.2 Astra
- Anthropic
- Claude OpusVersion 5.5
References
- S. Arora and B. Barak. Computational Complexity: A Modern Approach . Cambridge University Press, 2009.
- A. Bekir and S. W. Golomb. There are no further counterexamples to S . P iccard's theorem. IEEE Transactions on Information Theory , 53(8):2864--2867, 2007.
- R. S. Bird. A simple division-free algorithm for computing determinants. Information Processing Letters , 111(21--22):1072--1074, 2011.
- G. S. Bloom. A counterexample to a theorem of S . P iccard. Journal of Combinatorial Theory, Series A , 22(3):378--379, 1977.
- J. M. Borwein and H. Wolkowicz. Facial reduction for a cone-convex programming problem. Journal of the Australian Mathematical Society, Series A , 30:369--380, 1981.
- M. Cieliebak and S. Eidenbenz. Measurement errors make the partial digest problem NP -hard. In LATIN 2004: Theoretical Informatics , volume 2976 of LNCS , pages 379--390. Springer, 2004.
- M. Cieliebak, S. Eidenbenz, and P. Penna. Noisy data make the partial digest problem NP -hard. In Algorithms in Bioinformatics (WABI 2003) , volume 2812 of LNCS , pages 111--123. Springer, 2003.
- M. Cieliebak, S. Eidenbenz, and P. Penna. Partial digest is hard to solve for erroneous input data. Theoretical Computer Science , 349(3):361--381, 2005.
- T. Dakić. On the Turnpike Problem . PhD thesis, Simon Fraser University, 2000.
- A. Daurat, Y. Gérard, and M. Nivat. The chords' problem. Theoretical Computer Science , 282(2):319--336, 2002.
Show all 38 referencesShow fewer references
- A. Daurat, Y. Gérard, and M. Nivat. Some necessary clarifications about the chords' problem and the partial digest problem. Theoretical Computer Science , 347(1--2):432--436, 2005.
- J. Edmonds. Systems of distinct representatives and linear algebra. Journal of Research of the National Bureau of Standards, Section B , 71B(4):241--245, 1967.
- C. S. Elder, G. Marçais, and C. Kingsford. Turnpike with uncertain measurements: triangle-equality ILP with a deterministic recovery guarantee. arXiv:2603.18283, 2026.arXiv
- M. Grötschel, L. Lovász, and A. Schrijver. Geometric Algorithms and Combinatorial Optimization , volume 2 of Algorithms and Combinatorics . Springer, second corrected edition, 1993.
- S. Huang and I. Dokmanić. Reconstructing point sets from distance distributions. IEEE Transactions on Signal Processing , 69:1811--1827, 2021.
- K. Jaganathan and B. Hassibi. Reconstruction of integers from pairwise distances. In IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) , pages 5974--5978, 2013.
- N. C. Jones and P. A. Pevzner. An Introduction to Bioinformatics Algorithms . MIT Press, 2004.
- L. G. Khachiyan. A polynomial algorithm in linear programming. Doklady Akademii Nauk SSSR , 244(5):1093--1096, 1979. English translation in Soviet Mathematics Doklady 20:191--194, 1979.
- L. de Moura and S. Ullrich. The L ean 4 theorem prover and programming language. In Automated Deduction -- CADE 28 , volume 12699 of LNCS , pages 625--635. Springer, 2021.
- A. K. Lenstra, H. W. Lenstra, Jr., and L. Lovász. Factoring polynomials with rational coefficients. Mathematische Annalen , 261(4):515--534, 1982.
- P. Lemke, S. S. Skiena, and W. D. Smith. Reconstructing sets from interpoint distances. DIMACS Technical Report 2002-37, 2002.
- P. Lemke, S. S. Skiena, and W. D. Smith. Reconstructing sets from interpoint distances. In B. Aronov, S. Basu, J. Pach, and M. Sharir, editors, Discrete and Computational Geometry: The Goodman--Pollack Festschrift , volume 25 of Algorithms and Combinatorics , pages 597--631. Springer, 2003.
- P. Lemke and M. Werman. On the complexity of inverting the autocorrelation function of a finite integer sequence, and the problem of locating points on a line, given the unlabelled distances between them. IMA Preprint Series 453, Institute for Mathematics and its Applications, University of Minnesota, 1988.
- D. A. Marcus. Number Fields . Universitext. Springer, second edition, 2018.
- The mathlib Community. The L ean mathematical library. In Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs (CPP 2020) , pages 367--381, 2020.
- A. L. Patterson. A F ourier series method for the determination of the components of interatomic distances in crystals. Physical Review , 46(5):372--376, 1934.
- A. L. Patterson. Homometric structures. Nature , 143:939--940, 1939.
- A. L. Patterson. Ambiguities in the X -ray analysis of crystal structures. Physical Review , 65(5--6):195--201, 1944.
- S. Piccard. Sur les ensembles de distances des ensembles de points d'un espace euclidien , volume 13 of Mémoires de l'Université de Neuchâtel . Secrétariat de l'Université, Neuchâtel, 1939.
- G. Pandurangan and H. Ramesh. The restriction mapping problem revisited. Journal of Computer and System Sciences , 65(3):526--544, 2002.
- M. V. Ramana. An exact duality theory for semidefinite programming and its complexity implications. Mathematical Programming , 77(1):129--162, 1997.
- J. Rosenblatt and P. D. Seymour. The structure of homometric sets. SIAM Journal on Algebraic and Discrete Methods , 3(3):343--350, 1982.
- W. Rudin. Functional Analysis . McGraw-Hill, second edition, 1991.
- A. Schinzel. On the product of the conjugates outside the unit circle of an algebraic number. Acta Arithmetica , 24(4):385--399, 1973.
- A. Schinzel. Addendum to the paper `` O n the product of the conjugates outside the unit circle of an algebraic number''. Acta Arithmetica , 26:329--331, 1975.
- S. S. Skiena and G. Sundaram. A partial digest approach to restriction site mapping. Bulletin of Mathematical Biology , 56(2):275--294, 1994.
- S. S. Skiena, W. D. Smith, and P. Lemke. Reconstructing sets from interpoint distances (extended abstract). In Proceedings of the 6th Annual Symposium on Computational Geometry (SCG '90) , pages 332--339. ACM, 1990.
- Z. Zhang. An exponential example for a partial digest mapping algorithm. Journal of Computational Biology , 1(3):235--239, 1994.
Version history
- v1 · 36 pagesSubmitted by Rares-Darius Buhai36 pages. The results are formalized in Lean 4 and registered in the Palomar registry as PALOMAR-2026-12-03-000064; the formalization is at https://github.com/raresbuhai/ai-papers-lean-turnpike.CurrentDec 03, 2026