{
  "abstract": "The turnpike problem, also called the partial digest problem, asks for the positions of points on a line given the multiset of their pairwise distances. This formalization proves that it can be solved in deterministic polynomial time when the distances are given in binary, also when points may coincide. One deterministic multitape Turing machine lists, in time polynomial in the length of the encoded input, every normalized realization of an arbitrary list of natural numbers (every finite multiset of reals with least point 0 whose distance multiset is the list), each exactly once (Turnpike.enumeration). As a consequence, deciding whether a list of natural numbers is the distance multiset of some finite multiset of reals is in P (Turnpike.realizable_mem_P). Earlier exact algorithms take exponential time in the worst case, or time polynomial in the largest distance rather than in its bit length. The algorithm restricts a semidefinite system with the ellipsoid method and lattice basis reduction, computes a span of polynomials whose dimension is logarithmic in the number of points, and decodes the realizations from it with exact linear algebra and integer root finding; the formalization proves all of this, including the ellipsoid method, LLL reduction and the facts on number fields that the accompanying paper cites. Polynomial time is that of cslib-frontier on CSLib's multitape Turing machines. The result, the proofs, the formalization and the paper were produced by AI models (GPT-6.2 Astra and Claude Opus 5.5), prompted by Rares-Darius Buhai.",
  "authors": [
    {
      "name": "Rares-Darius Buhai"
    }
  ],
  "challenge_render": {
    "artifact_path": "renders/PALOMAR-2026-12-03-000064-v1/30f78dfa741259f752625bd22f1ee5f90b3555b7d4807a172647dc6baebfad05/",
    "artifact_tree_sha256": "30f78dfa741259f752625bd22f1ee5f90b3555b7d4807a172647dc6baebfad05",
    "bwrap_source_tag": "v0.12.0",
    "entrypoint": "Challenge/index.html",
    "format": "verso-html",
    "rendered_at": "2026-12-03T12:46:38Z",
    "renderer_commit": "351a8fde2398f75215fc3e4ada37061d0ef4f151",
    "verso_commit": "c0fce8ca212d6a33d010c3be09bec07dfa3b9ed4"
  },
  "classification": {
    "arxiv": [
      "cs.DS",
      "cs.CC",
      "cs.CG"
    ],
    "msc2020": [
      "68W40",
      "68Q25",
      "68U05",
      "90C22",
      "12D05",
      "92D20"
    ]
  },
  "first_registered_on": "2026-12-03",
  "formalization": {
    "challenge_path": "Turnpike/Challenge.lean",
    "comparator_config_path": "comparator.json",
    "definition_names": [],
    "formalization_metadata_path": "formalization.yaml",
    "lakefile_path": "lakefile.toml",
    "lean_toolchain": "leanprover/lean4:v4.37.0-rc1",
    "permitted_axioms": [
      "propext",
      "Quot.sound",
      "Classical.choice"
    ],
    "project_dependencies": [
      {
        "name": "cslib-frontier",
        "repository": "cslib-community/cslib-frontier",
        "revision": "419e4b1f11502d02c38493d17e5b72c254f5b9da"
      },
      {
        "name": "mathlib",
        "repository": "leanprover-community/mathlib4",
        "revision": "31ce06eaadf4a200c0e1407c5f10953cf606b8f8"
      },
      {
        "name": "cslib",
        "repository": "leanprover/cslib",
        "revision": "5d861be63267a0680e6123f6a0e90a56b4c9fc22"
      },
      {
        "name": "plausible",
        "repository": "leanprover-community/plausible",
        "revision": "0d8633efc105d6b15b59a8103614ae0291ee8827"
      },
      {
        "name": "LeanSearchClient",
        "repository": "leanprover-community/LeanSearchClient",
        "revision": "146200e1ecbf7397e361475b5c0905adc5fe0670"
      },
      {
        "name": "importGraph",
        "repository": "leanprover-community/import-graph",
        "revision": "cf947504529b8e2ee114e852133d13e4ac923e9b"
      },
      {
        "name": "proofwidgets",
        "repository": "leanprover-community/ProofWidgets4",
        "revision": "197b8bdfd8bbfea6dff6ac04170a710b231c3aaa"
      },
      {
        "name": "aesop",
        "repository": "leanprover-community/aesop",
        "revision": "637fdbb8689a3387a82568b07355231f892144d7"
      },
      {
        "name": "Qq",
        "repository": "leanprover-community/quote4",
        "revision": "ad0c9f87cfe7b41b93446472004724a1646a22f4"
      },
      {
        "name": "batteries",
        "repository": "leanprover-community/batteries",
        "revision": "87486d547af639cb39c01f0d2f8025aa47d7dde1"
      },
      {
        "name": "Cli",
        "repository": "leanprover/lean4-cli",
        "revision": "c830de39b67d5d447d854a4e390fff9bb0a9c897"
      }
    ],
    "solution_path": "Turnpike/Solution.lean",
    "theorem_names": [
      "Turnpike.enumeration",
      "Turnpike.realizable_mem_P"
    ]
  },
  "id": "PALOMAR-2026-12-03-000064",
  "preservation": {
    "archive_owner": "PalomarArchive",
    "archived_at": "2026-12-03T13:39:49Z",
    "receipt_sha256": "e7c920dd48bbe0a96a5a884c42ec33939a2a8c3d6be6ab32003d0c4a630c5fd7",
    "repositories": [
      {
        "commit": "419e4b1f11502d02c38493d17e5b72c254f5b9da",
        "fork_repository": "PalomarArchive/cslib-community--cslib-frontier--c6e012158247",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000064-v1/419e4b1f11502d02c38493d17e5b72c254f5b9da",
        "source_repository": "cslib-community/cslib-frontier"
      },
      {
        "commit": "637fdbb8689a3387a82568b07355231f892144d7",
        "fork_repository": "PalomarArchive/leanprover-community--aesop--01b46b609077",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000064-v1/637fdbb8689a3387a82568b07355231f892144d7",
        "source_repository": "leanprover-community/aesop"
      },
      {
        "commit": "87486d547af639cb39c01f0d2f8025aa47d7dde1",
        "fork_repository": "PalomarArchive/leanprover-community--batteries--1b4c776305c9",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000064-v1/87486d547af639cb39c01f0d2f8025aa47d7dde1",
        "source_repository": "leanprover-community/batteries"
      },
      {
        "commit": "cf947504529b8e2ee114e852133d13e4ac923e9b",
        "fork_repository": "PalomarArchive/leanprover-community--import-graph--e0a79261b05a",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000064-v1/cf947504529b8e2ee114e852133d13e4ac923e9b",
        "source_repository": "leanprover-community/import-graph"
      },
      {
        "commit": "146200e1ecbf7397e361475b5c0905adc5fe0670",
        "fork_repository": "PalomarArchive/leanprover-community--LeanSearchClient--9de355ab5f53",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000064-v1/146200e1ecbf7397e361475b5c0905adc5fe0670",
        "source_repository": "leanprover-community/LeanSearchClient"
      },
      {
        "commit": "31ce06eaadf4a200c0e1407c5f10953cf606b8f8",
        "fork_repository": "PalomarArchive/leanprover-community--mathlib4--67b3d817d8a2",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000064-v1/31ce06eaadf4a200c0e1407c5f10953cf606b8f8",
        "source_repository": "leanprover-community/mathlib4"
      },
      {
        "commit": "0d8633efc105d6b15b59a8103614ae0291ee8827",
        "fork_repository": "PalomarArchive/leanprover-community--plausible--fb632f6f7bf4",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000064-v1/0d8633efc105d6b15b59a8103614ae0291ee8827",
        "source_repository": "leanprover-community/plausible"
      },
      {
        "commit": "197b8bdfd8bbfea6dff6ac04170a710b231c3aaa",
        "fork_repository": "PalomarArchive/leanprover-community--ProofWidgets4--26014acbbaff",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000064-v1/197b8bdfd8bbfea6dff6ac04170a710b231c3aaa",
        "source_repository": "leanprover-community/ProofWidgets4"
      },
      {
        "commit": "ad0c9f87cfe7b41b93446472004724a1646a22f4",
        "fork_repository": "PalomarArchive/leanprover-community--quote4--90d31d153685",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000064-v1/ad0c9f87cfe7b41b93446472004724a1646a22f4",
        "source_repository": "leanprover-community/quote4"
      },
      {
        "commit": "5d861be63267a0680e6123f6a0e90a56b4c9fc22",
        "fork_repository": "PalomarArchive/leanprover--cslib--ce4da95284c3",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000064-v1/5d861be63267a0680e6123f6a0e90a56b4c9fc22",
        "source_repository": "leanprover/cslib"
      },
      {
        "commit": "c830de39b67d5d447d854a4e390fff9bb0a9c897",
        "fork_repository": "PalomarArchive/leanprover--lean4-cli--df175a7fc790",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000064-v1/c830de39b67d5d447d854a4e390fff9bb0a9c897",
        "source_repository": "leanprover/lean4-cli"
      },
      {
        "commit": "1a03f0e8c95746a3fcf8a9befcc67a5ae8bc77ba",
        "fork_repository": "PalomarArchive/raresbuhai--ai-papers-lean-turnpike--19cb3ef0d73a",
        "ref": "refs/tags/palomar/PALOMAR-2026-12-03-000064-v1/1a03f0e8c95746a3fcf8a9befcc67a5ae8bc77ba",
        "source_repository": "raresbuhai/ai-papers-lean-turnpike"
      }
    ]
  },
  "provenance": {
    "mathematical_sources": [
      {
        "authors": [],
        "location": "Turnpike/paper/main.pdf in this repository",
        "relationship": "other",
        "title": "The exact turnpike problem in polynomial time (the paper in Turnpike/paper/ of this repository)",
        "type": "original-proof"
      },
      {
        "authors": [
          {
            "name": "S. S. Skiena"
          },
          {
            "name": "W. D. Smith"
          },
          {
            "name": "P. Lemke"
          }
        ],
        "location": "Proc. 6th Annual Symposium on Computational Geometry (1990), 332\u2013339",
        "relationship": "background",
        "title": "Reconstructing sets from interpoint distances (extended abstract)",
        "type": "paper"
      },
      {
        "authors": [
          {
            "name": "P. Lemke"
          },
          {
            "name": "S. S. Skiena"
          },
          {
            "name": "W. D. Smith"
          }
        ],
        "location": "Discrete and Computational Geometry: The Goodman\u2013Pollack Festschrift, Algorithms and Combinatorics 25, Springer (2003), 597\u2013631",
        "relationship": "background",
        "title": "Reconstructing sets from interpoint distances",
        "type": "paper"
      },
      {
        "authors": [
          {
            "name": "J. Rosenblatt"
          },
          {
            "name": "P. D. Seymour"
          }
        ],
        "location": "SIAM J. Algebraic Discrete Methods 3 (1982), 343\u2013350",
        "relationship": "background",
        "title": "The structure of homometric sets",
        "type": "paper"
      },
      {
        "authors": [
          {
            "name": "P. Lemke"
          },
          {
            "name": "M. Werman"
          }
        ],
        "location": "IMA Preprint Series 453, University of Minnesota (1988)",
        "relationship": "background",
        "title": "On the complexity of inverting the autocorrelation function of a finite integer sequence, and the problem of locating n points on a line, given the (n choose 2) unlabelled distances between them",
        "type": "paper"
      },
      {
        "authors": [
          {
            "name": "Z. Zhang"
          }
        ],
        "location": "J. Comput. Biol. 1 (1994), 235\u2013239",
        "relationship": "background",
        "title": "An exponential example for a partial digest mapping algorithm",
        "type": "paper"
      },
      {
        "authors": [
          {
            "name": "A. L. Patterson"
          }
        ],
        "location": "Nature 143 (1939), 939\u2013940",
        "relationship": "background",
        "title": "Homometric structures",
        "type": "paper"
      },
      {
        "authors": [
          {
            "name": "A. Daurat"
          },
          {
            "name": "Y. G\u00e9rard"
          },
          {
            "name": "M. Nivat"
          }
        ],
        "location": "Theoret. Comput. Sci. 282 (2002), 319\u2013336",
        "relationship": "background",
        "title": "The chords' problem",
        "type": "paper"
      },
      {
        "authors": [
          {
            "name": "A. Daurat"
          },
          {
            "name": "Y. G\u00e9rard"
          },
          {
            "name": "M. Nivat"
          }
        ],
        "location": "Theoret. Comput. Sci. 347 (2005), 432\u2013436",
        "relationship": "background",
        "title": "Some necessary clarifications about the chords' problem and the partial digest problem",
        "type": "paper"
      },
      {
        "authors": [
          {
            "name": "M. Gr\u00f6tschel"
          },
          {
            "name": "L. Lov\u00e1sz"
          },
          {
            "name": "A. Schrijver"
          }
        ],
        "location": "Springer (1988)",
        "relationship": "background",
        "title": "Geometric Algorithms and Combinatorial Optimization",
        "type": "book"
      },
      {
        "authors": [
          {
            "name": "A. K. Lenstra"
          },
          {
            "name": "H. W. Lenstra Jr."
          },
          {
            "name": "L. Lov\u00e1sz"
          }
        ],
        "location": "Math. Ann. 261 (1982), 515\u2013534",
        "relationship": "background",
        "title": "Factoring polynomials with rational coefficients",
        "type": "paper"
      }
    ],
    "related_formalizations": [],
    "repository_role": "substantive-development",
    "responsible_maintainers": [
      {
        "name": "Rares-Darius Buhai"
      }
    ],
    "result_origin": "original"
  },
  "registered_at": "2026-12-03T13:39:21Z",
  "review": {
    "outcome": "neutral",
    "policy_commit": "4edd8c6c26840049501177ee876baa45d4cb998b",
    "report": {
      "sha256": "fc4811325a9c03b68dbc1669f3976a348cc4064e1d59b7ac23fd1601a341100c"
    },
    "reviewed_at": "2026-12-03T13:17:06Z",
    "reviewer_models": [
      "codex:gpt-6-sol"
    ],
    "warnings": []
  },
  "schema_version": 5,
  "source": {
    "commit": "1a03f0e8c95746a3fcf8a9befcc67a5ae8bc77ba",
    "license": {
      "declared_identifier": "Apache-2.0",
      "detected_identifier": "Apache-2.0",
      "path": "LICENSE",
      "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4"
    },
    "repository": "raresbuhai/ai-papers-lean-turnpike",
    "repository_url": "https://github.com/raresbuhai/ai-papers-lean-turnpike",
    "tree_url": "https://github.com/raresbuhai/ai-papers-lean-turnpike/tree/1a03f0e8c95746a3fcf8a9befcc67a5ae8bc77ba"
  },
  "status": "registered",
  "submission": {
    "authorization": {
      "relationship": "maintainer"
    },
    "submission_id": "pmzildbc2ht5"
  },
  "title": "The exact turnpike problem in polynomial time",
  "trust": {
    "challenge_bytes": 14447,
    "challenge_dependencies": [
      {
        "provenance": "allowlisted",
        "repository": "leanprover-community/mathlib4"
      },
      {
        "provenance": "allowlisted",
        "repository": "leanprover/cslib"
      }
    ],
    "challenge_imports": [
      "Cslib.Computability.Machines.Turing.MultiTape.Deterministic",
      "Cslib.Foundations.Data.Nat.PolynomialBound",
      "Cslib.Init",
      "Mathlib.Basic.Real.Basic",
      "Mathlib.Basic.Sign.Defs",
      "Mathlib.Data.List.Basic",
      "Mathlib.Data.Multiset.Sym",
      "Mathlib.Data.Nat.Bits",
      "Mathlib.Data.Nat.Bitwise",
      "Mathlib.Data.Rat.Defs",
      "Mathlib.Logic.Embedding.Basic",
      "Mathlib.Tactic.FunProp"
    ],
    "challenge_lines": 290,
    "level": "qualified",
    "reasons": [
      "Challenge imports CSLib"
    ]
  },
  "verification": {
    "bwrap_source_tag": "v0.12.0",
    "challenge_sha256": "4a9a4dcd6ec396cc41755f586b054beea8eef5aa9cdec8c3cd86d765d78a21da",
    "evidence_path": "evidence/PALOMAR-2026-12-03-000064-v1/57adb49406d0217b3e3ee116d2770f536cfee010a01d2e3481d936e7860d88b7/",
    "evidence_tree_sha256": "57adb49406d0217b3e3ee116d2770f536cfee010a01d2e3481d936e7860d88b7",
    "kernels": [
      {
        "argv": [
          "/home/runner/.elan/toolchains/leanprover--lean4---v4.37.0-rc1/bin/nanoda_bin"
        ],
        "name": "nanoda"
      },
      {
        "argv": [
          "/home/runner/.elan/toolchains/leanprover--lean4---v4.37.0-rc1/bin/con-ron",
          "--jobs=2",
          "--verified"
        ],
        "name": "con-ron"
      }
    ],
    "mechanical_report_sha256": "948bd1ae2d5f10317c050453524aff7beec6fbedd56f6d532f7534350aabd0d9",
    "protected_config_sha256": "6ba2ff8dc5708de83fce9da4c5a41be32639b504a3b73ddd7d3842dd626dad2e",
    "repository": "PalomarRegistry/PalomarSubmission",
    "run_id": 47102470259,
    "solution_sha256": "2cd98baa9d77981b2612e58c57b7e6584f3f46f93448a1b4eee1e73a05c59a4b",
    "tool_digests": {
      "bwrap": "b2f8386134482efb95c7cfcf6172d2aee6d31b3ba32d45326856a38c85b6a65e",
      "con-ron": "e3241d3bb154d40ee92671440497d1a51564dd6f654aa7d01e8812ee04d73ce9",
      "lake": "2242a9c340f63af2aab8b8475030e2fcffaa3f24a46ce6851747a797e9e6b429",
      "lean": "d42bdbe506509e88ecadfef183c0df6f55ddb4dd0c7a9933cb224000c0688490",
      "leanchecker": "437c52be453b0bd769f2c9f852f4a8f1668888a8e7c50b063722e534c5993dd0",
      "leanexport": "4f5226680a15811444273975284fcb78cf7f8e6af7afa6312ab41a5b945b8542",
      "nanoda_bin": "5c34d6124b19dfd23c7d0377b520893cf8adec5c23fa0c809dde9e38eb201ffe"
    },
    "toolchain_commit": "0b77e12952ad39077d80d8bd6b66d601f225c321",
    "verified_at": "2026-12-03T12:14:31Z",
    "workflow_commit": "351a8fde2398f75215fc3e4ada37061d0ef4f151",
    "workflow_path": ".github/workflows/submission.yml",
    "workflow_run_attempt": 1,
    "workflow_url": "https://github.com/PalomarRegistry/PalomarSubmission/actions/runs/47102470259"
  },
  "version": 1
}
