← News

Models & toolsSources: arXiv · 1 Dec 2026

OEIS-Equiv benchmark finds LLMs struggle to prove code equivalence

A new arXiv paper introduces 200 Lean-verified tasks asking models to prove two programs equivalent. Even the strongest model tested solved none.

In plain words

Researchers built a test of whether AI models can reason about code, not just write it. Each task gives two programs that compute the same number sequence and asks the model to prove they are equivalent, using the Lean proof system to check answers. The models they tested, including one that wrote the programs itself, could not produce these proofs.

What was announced

The authors argue that existing evaluations of code reasoning rely on familiar code and check only final answers, which makes them poor measures of reasoning. OEIS-Equiv instead uses programs found by automated search, written in a Lean 4 domain-specific language, and pairs each with a program an LLM generated for the same integer sequence. The benchmark contains 200 such tasks, each with a reference proof verified in Lean.

The results were weak across the board. DeepSeek-V4-Pro, which produced all the LLM-generated programs in the benchmark, proved no pair equivalent despite spending tens of thousands of tokens reasoning per task, and no other model proved more than a few. Even tasks solvable with a single line of automated tactics were mostly proved by no model. The authors conclude that for LLMs, writing correct code and reasoning about code are not the same thing.

What it does not show

  • The evidence is the paper's abstract only; full results, model list, and methodology details are not available in the supplied passage.
  • The passage does not name which other models were tested or their exact scores beyond 'no more than a few' proofs.
  • No independent replication of the benchmark results is included in the source.

Sources

Source-support review completed 5 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 5 Dec 2026

New to the subject? AI from the Ground Up starts from the beginning.