OEIS-Equiv: Evaluating Code Reasoning in Large Language Models via Equivalence Proofs

Large language models (LLMs) are increasingly used to turn natural language into code. But does this mean LLMs can reason about code? Existing evaluations can hardly tell, because most use familiar code and check only answers. We therefore turn to code that is valid but unfamiliar. We pair a program found by automated search, written in a Lean 4 domain-specific language, with one that an LLM generated for the same integer sequence. We then ask models to prove the two equivalent. Accordingly, we introduce OEIS-Equiv: 200 such tasks, each with a Lean-verified reference proof. DeepSeek-V4-Pro, which wrote all the LLM-generated programs, proves no pair equivalent, even after reasoning for tens of thousands of tokens per task. No other model proves more than a few. Even on tasks that a single line of automated tactics can prove, most are proved by no model. Thus, for LLMs, writing correct code and reasoning about code are not the same thing.

Link
https://www.semanticscholar.org/paper/08cb0567d928c6e9c1acbb790853da8b97cd5b39
Found by
Semantic Scholar
Authors
Ye-Hua Lin, Yin Chen
Categories
evaluation
Published
2026-11-29
Last seen by the radar
2026-12-01
Citations
0
Influential citations
0
Radar score
26.75 / 100 (how it is scored)
Why it scored so
Matched: evaluat; Primary record: Semantic Scholar
Related links
https://arxiv.org/abs/2611.39250
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Semantic Scholar