Ten Claude Opus 5.5 agents produced a faster shortest-path algorithm, C-HD, with a formal proof in Lean
What happened
Vals 让十个 Claude Opus 5.5 智能体在留言板上协作,15 小时内产出了一个叫 C-HD 的新最短路径算法,并用 Lean 语言给出了完整的形式化证明。算法处理的是有向图、非负实数权重的精确最短路径问题。它的核心思路是:在局部搜索时,把那些没让距离变短的边也算进搜索次数上限,从而限制重复劳动。在边数 m 不超过 n⌊(log₂ n)^...
Coverage
Follow the reports to see the story from different sides.
- Hacker News front pagePickTen Claude Opus 5.5 agents produced a faster shortest-path algorithm, C-HD, with a formal proof in Lean
Vals had ten Claude Opus 5.5 agents collaborate over 15 hours to produce C-HD, a shortest-path algorithm for directed graphs with non-negative real weights. Within the certified density range m ≤ n⌊(log₂ n)^(3/4)⌋, its proven bound is O(n + m + m log(2 + m/(n+1)) + m^(1/3)(n log(n+2))^(2/3)). When m ≈ n(log n)^(3/4), the leading term drops from n log n to n(log n)^(11/12); at n=2^1000 the theoretical ratio is about 1.78. The algorithm uses bounded local searches that count non-improving edges as unexplored leaves to limit repeated work, and falls back to Bellman–Ford outside the certified range. Both correctness and the complexity bound are formally verified in Lean. The post does not report large-scale benchmarks—only small correctness simulations—and notes the constants are not yet optimized.