SyncAI.news, a Varaisys broadcasting
OEIS-Equiv: Evaluating Code Reasoning in Large Language Models via Equivalence Proofs
YL

Yehua Lin, Yin Chen

· 1 min read

ResearcharXiv cs.CL

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

arXiv:2611.39250v1 Announce Type: new Abstract: 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.

Original source

This story was published by arXiv cs.CL and written by Yehua Lin, Yin Chen. SyncAI.news shows a preview; the complete article is on the publisher's site.

Read the full story on arxiv.org

Similar News