SyncAI.news, a Varaisys broadcasting
Assessing LLM Program Reasoning through Equivalence Proofs
HW

Haozhi Wang, Anders Miltner, Jocelyn Qiaochu Chen

· 1 min read

ResearcharXiv cs.CL

Assessing LLM Program Reasoning through Equivalence Proofs

arXiv:2611.36678v1 Announce Type: cross Abstract: Language models increasingly optimize and migrate code, and trusting these rewrites requires independently checkable arguments that they preserve program behavior. We ask whether models can construct such arguments as equivalence proofs. We propose a lightweight textual proof format based on relational Hoare logic, with automatic checks of intermediate claims and their compositions. Models may leave claims underived as explicit assumptions, keeping partial proofs checkable while recording how much of each argument they derive. We evaluate five models on 200 equivalent program pairs in two imperative languages with unfamiliar syntax and guard semantics. In free-form reasoning, every model reaches the correct verdict on at least 66% of tasks, yet proof acceptance without feedback ranges from 36% to 94%. A verifier-assisted workflow uses the checks to guide proof refinement, raising overall acceptance from 56.4% to 80%, with the two strongest models exceeding 97%. Proof records also reveal what acceptance rates alone obscure: among accepted proofs, some models derive nearly every step, while others leave most of the argument as explicit assumptions. How these models fail to construct a valid proof gives a profile on their relative strengths and weaknesses.

Original source

This story was published by arXiv cs.CL and written by Haozhi Wang, Anders Miltner, Jocelyn Qiaochu Chen. SyncAI.news shows a preview; the complete article is on the publisher's site.

Read the full story on arxiv.org

Similar News