MCP
KY

Kaiyu Yang

58 papers in the library

Papers

30
Vero: Can AI Agents Build Formally Verified Software Repositories?
Zhe YeHantao LouYuechun SunPeiyang SongZhengxu YanTimothe KasrielQingyang ZhangKaiyu YangSoonho KongJingxuan HeDawn Song
Vero is the first benchmark for repository-level verified code generation, requiring AI agents to jointly produce a multi-module implementation and a Lean 4 proof of its specification. It comprises 43 instances drawn from real-world Python, Dafny, Verus, and Coq repositories, each with curated formal specifications and reference code. The best frontier agent correctly solves only 27 of 43 instances, and none on the hardest repositories, showing that current agents still fall short of coherent, formally verified software synthesis at scale.
arXivarXiv · · August 13, 2026
0
1
P3^{3}: Joint Program-and-Proof Planning for Verified Code Generation
Zenan LiZiran YangPeiyang SongZhaoyu LiKaiyu Yang
P^3 is an LLM-based agentic workflow for verified code generation that jointly plans the program and its proof before elaborating both. This contrasts with the common sequential pipeline (program first, proof second), which often leads to brittle repair loops. Evaluated on Verina, AlgoVeri, and the new library-level benchmark Lean4Commit0, P^3 achieves the highest solve rate across all settings, improves solve rates by 4.6–11.2 percentage points, and reduces API cost by up to 40% and wall-clock time by up to 37% on difficult tasks.
arXivarXiv · · August 10, 2026
0
0
Euclid-Omni : A Unified Neuro-Symbolic Framework for Plane Geometry
Zhaoyu LiHangrui BiYouyuan ZhangWenjie MaZenan LiZhaolei ZhangXujie SiKaiyu Yang
Euclid-Omni is a unified neuro-symbolic framework that couples LLMs and VLMs with a formal geometry system to solve plane geometry problems up to Olympiad-level difficulty. Its core is Euclidea, a symbolic solver that automates reasoning via deductive inference and algebraic computation. A data-generation pipeline synthesizes problems, solutions, and diagrams to train models. VLMs trained on this data excel at calculation tasks, while LLMs combined with Euclidea match state-of-the-art proving systems with far less compute.
arXivarXiv · · August 2026
0
0
Lean Refactor: Multi-Objective Controllable Proof Optimization via Agentic Strategy Search
Jialin LuSoonho KongRodrigo StehlingKaiyu YangZhangyang WangWeiran SunWuyang Chen
Lean Refactor is a plug-and-play agentic framework that refactors Lean proofs for multiple objectives—length, compilation cost, and version compatibility—without fine-tuning. It retrieves annotated refactoring strategies from a curated database to guide a frozen LLM. On benchmarks, it achieves over 70% token compression on competition proofs, over 20% on research repositories, and up to 60% compilation-time reduction, outperforming prior work and Claude Code.
arXivarXiv · · May 18, 2026
0
3
Argus: Evidence Assembly for Scalable Deep Research Agents
Zhen ZhangLiangcai SuZhuo ChenXiang LinHaotian XuSimon Shaolei DuKaiyu YangBo AnLidong BingXinyu Wang
Argus treats deep research as assembling complementary evidence pieces rather than brute-forcing the whole answer. A Searcher collects evidence for sub-queries via ReAct. A Navigator maintains a shared evidence graph, identifies missing pieces, dispatches Searchers, and synthesizes the final answer with source traces. Trained separately with RL on a 35B-A3B MoE backbone, Argus gains 5.5 points with one Searcher and 12.7 points with eight parallel Searchers across eight benchmarks. With 64 Searchers it achieves 86.2 on BrowseComp, surpassing proprietary agents, while the Navigator's context stays under 21.5K tokens.
arXivarXiv · · May 15, 2026
0
1
Lean Refactor: Multi-Objective Controllable Proof Optimization via Agentic Strategy Search
Jialin LuSoonho KongRodrigo StehlingKaiyu YangZhangyang WangWeiran SunWuyang Chen
Lean Refactor is a plug-and-play retrieval-augmented agentic framework that refactors Lean proofs for multiple objectives simultaneously—proof length, compilation cost, and version compatibility. It steers a frozen LLM using retrievals from a curated database of refactoring strategies annotated with metadata like supported Lean/Mathlib versions and expected compilation-cost reduction. Experiments show over 70% token-level compression on competition benchmarks, over 20% on research repositories, and up to 60% compilation-time reduction, outperforming prior work and Claude Code; version-filtered retrieval improves compression on target versions, and refactored miniF2F proofs transfer better to future Lean releases.
OpenReviewOpenReview · · May 8, 2026
0
P3^{3}: Joint Program-and-Proof Planning for Verified Code Generation
Zenan LiZiran YangPeiyang SongZhaoyu LiKaiyu Yang
The paper proposes $P^3$, an LLM-based agentic workflow for verified code generation that departs from the usual sequential pipeline of synthesizing a program and then trying to prove it correct, which can be ineffective and inefficient by producing subtly incorrect or hard-to-verify code and forcing brittle repair loops. Inspired by Dijkstra's view that a program and its correctness argument should be developed together, $P^3$ first derives a unified program-and-proof plan from the specification, then elaborates the implementation and proof scaffold under that shared plan. The authors also introduce Lean4Commit0, a project-level benchmark built by extracting core APIs from real repositories and translating their requirements, including relational specifications across APIs, into Lean tasks. Using four frontier LLM backends on Verina, AlgoVeri, and Lean4Commit0, $P^3$ achieves the highest solve rate in every benchmark-model setting, improving solve rates by 4.6--11.2 percentage points over the stronger baseline and, on each benchmark's difficult subset, reducing per-task API cost by up to about 40\% and wall-clock time by up to about 37\%.
OpenReviewOpenReview · · May 5, 2026
0
Vero: Can AI Agents Build Formally Verified Software Repositories?
Zhe YeHantao LouYuechun SunPeiyang SongZhengxu YanTimothe KasrielQingyang ZhangKaiyu YangSoonho KongJingxuan HeDawn Song
Vero is introduced as the first benchmark for evaluating joint implementation and proof synthesis at the repository level, addressing the open question of whether agents can make coherent implementation and proof choices across real multi-module codebases. It comprises 43 multi-module instances drawn from real-world Python, Dafny, Verus, and Coq repositories and rendered as Lean 4 repositories with predetermined APIs, manually curated formal specifications, and reference implementations, supporting proof-only and code-and-proof modes. An audit mechanism lets agents formally prove specification unsatisfiability or reference-code incorrectness, surfacing latent curation errors. Evaluated frontier coding-agent configurations with Lean toolchain access fully solved only 24 of 43 instances and closed no specifications on the hardest repositories.
OpenReviewOpenReview · · May 5, 2026
0
Lean Refactor: Multi-Objective Controllable Proof Optimization via Agentic Strategy Search
Jialin LuSoonho KongRodrigo StehlingKaiyu YangZhangyang WangWeiran SunWuyang Chen
Lean Refactor is a plug-and-play retrieval-augmented agentic framework that refactors Lean proofs for multiple objectives—proof length, compilation cost, and version compatibility—while remaining robust to library versions. Rather than retraining, it steers a frozen LLM agent using retrievals from a curated database of refactoring strategies, each annotated with metadata such as supported Lean/Mathlib versions and expected compilation-cost reduction. Experiments report over 70% token-level compression on competition benchmarks, over 20% on research repositories, and up to 60% compilation-time reduction, outperforming prior publicly released results and Claude Code; version-filtered retrieval further improves compression on the target Lean version, and refactored miniF2F proofs transfer zero-shot to future Lean releases better than unrefactored ones.
OpenReviewOpenReview · · May 3, 2026
0
Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verification
Zenan LiZiran YangMike HeHaoyu ZhaoA. ZhaoShange TangKaiyu YangAarti GuptaZhendong SuChi Jin
The authors propose a hierarchical proof search framework for automated code verification in Lean 4, decomposing complex verification goals into structurally simpler subgoals before tactic-level proving. A principled decomposition score combines constructive justification with structural effectiveness and serves as both training reward and inference-time ranking criterion. They train Goedel Code Prover, a unified policy for decomposition and completion, via supervised initialization and hybrid reinforcement learning. On three Lean benchmarks comprising 427 tasks, the 8B-parameter model achieves 62.0% prove success, a 2.6x improvement over the strongest baseline, with consistent inference-time scaling.
OpenReviewOpenReview · · March 26, 2026
0
9
Learning to Disprove: Formal Counterexample Generation with Large Language Models
Zenan LiZhaoyu LiKaiyu YangXiaoxing MaZhendong Su
This paper introduces formal counterexample generation as a task for large language models, requiring them to propose candidate counterexamples and produce formally verifiable proofs in Lean 4. To support learning, the authors develop a symbolic mutation strategy that creates tasks by removing hypotheses from existing theorems, and combine it with curated datasets in a multi-reward expert iteration framework. Experiments on three new benchmarks show that this approach substantially improves the effectiveness and efficiency of counterexample generation and theorem proving.
arXivarXiv · · March 19, 2026
0
6
Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verification
Zenan LiZiran YangDeyuan HeHaoyu ZhaoAndrew ZhaoShange TangKaiyu YangAarti GuptaZhendong SuChi Jin
Goedel-Code-Prover introduces a hierarchical proof search framework for automated code verification in Lean~4. It decomposes complex verification goals into simpler subgoals before tactic-level proving, using a principled decomposition score that serves as both training reward and inference-time ranking criterion. A single 8B-parameter policy, trained via supervised initialization and hybrid reinforcement learning, achieves 62.0% success on 427 tasks, outperforming the strongest baseline by 2.6x, with consistent inference-time scaling.
arXivarXiv · · March 18, 2026
0
9
ProofOptimizer: Training Language Models to Simplify Proofs without Human Demonstrations
Alex GuBartosz PiotrowskiFabian GloeckleKaiyu YangAram H. Markosyan
ProofOptimizer is the first language model trained to simplify Lean proofs without human demonstrations. It uses expert iteration and reinforcement learning, with Lean itself verifying simplifications and providing training signal. At inference, it iteratively shortens proofs. On state-of-the-art RL-trained provers, ProofOptimizer reduces proof length by 87% on miniF2F, 57% on PutnamBench, and 49% on IMO 2025 proofs. The simplified proofs also check faster in Lean and improve downstream prover performance when used as training data for supervised finetuning.
arXivarXiv · · October 17, 2025
0
9
Lean Finder: Semantic Search for Mathlib That Understands User Intents
Jialin LuKye EmondKaiyu YangSwarat ChaudhuriWeiran SunWuyang Chen
Lean Finder is a semantic search engine for Lean and mathlib that aligns with mathematicians' intents. It clusters semantics from public Lean discussions, fine-tunes text embeddings on synthesized queries, and aligns with user preferences via diverse feedback. Evaluated on real-world queries, informalized statements, and proof states, it achieves over 30% relative improvement over existing search engines and GPT-4o, and integrates with LLM-based theorem provers.
arXivarXiv · · October 8, 2025
0
13
Euclid-Omni: A Unified Neuro-Symbolic Framework for Geometry Problem Solving
Zhaoyu LiHangrui BiYouyuan ZhangWenjie MaZenan LiXujie SiKaiyu Yang
Euclid-Omni is a unified neuro-symbolic framework for Euclidean geometry that pairs a formal geometry system with large vision-language models to handle calculation and theorem-proving problems at Olympiad level. Its core, Euclidea, is a symbolic solver generating readable reasoning steps, supported by a pipeline that synthesizes diverse symbolic problems with rendered diagrams and natural-language translations for training. Benchmark results show broader problem coverage, superior VLM calculation performance, and competitive proving with far less compute.
OpenReviewOpenReview · September 20, 2025
0
1
Learning to Disprove: Formal Counterexample Generation with Large Language Models
Zenan LiZhaoyu LiKaiyu YangXiaoxing MaZhendong Su
This paper argues that mathematical AI research overemphasizes proof construction and neglects counterexample discovery, a gap the authors address by fine-tuning large language models to generate formal counterexamples. They formalize formal counterexample generation, requiring models to propose candidates and produce Lean-4-verifiable proofs. A symbolic mutation strategy synthesizes diverse training data by extracting theorems and discarding hypotheses, and a multi-reward expert iteration framework uses this data to improve both counterexample generation and theorem proving. New benchmarks show significant performance gains.
OpenReviewOpenReview · · September 19, 2025
0
ProofOptimizer: Training Language Models to Simplify Proofs without Human Demonstrations
Alex GuBartosz PiotrowskiFabian GloeckleKaiyu YangAram H. Markosyan
ProofOptimizer is the first language model trained to simplify Lean proofs without human demonstrations. It is trained via expert iteration and reinforcement learning, using Lean to verify simplifications and provide training signal. At inference, an iterative proof-shortening workflow progressively reduces proof length. Experiments show substantial compression of RL-trained provers' outputs: 87% on miniF2F, 57% on PutnamBench, and 50% on IMO 2025 proofs. Simplified proofs also check faster in Lean and improve downstream prover performance when reused as training data.
OpenReviewOpenReview · · September 19, 2025
0
VERINA: Benchmarking Verifiable Code Generation
Zhe YeZhengxu YanJingxuan HeTimothe KasrielKaiyu YangDawn Song
Verifiable code generation—jointly producing code, formal specifications, and proofs of alignment—is promising but lacks holistic benchmarks. We introduce VERINA, a benchmark of 189 manually curated Lean coding tasks with reference implementations, specifications, and test suites, enabling modular evaluation of code, specification, and proof generation and their compositions. Evaluating state-of-the-art LLMs reveals major challenges, especially in proof generation: OpenAI o3 achieves 72.6% code correctness, 52.3% specification soundness/completeness, but only 4.9% proof success. VERINA aims to catalyze progress in this domain.
OpenReviewOpenReview · · September 18, 2025
0
Lean Finder: Semantic Search for Mathlib That Understands User Intents
Jialin LuKye EmondKaiyu YangSwarat ChaudhuriWeiran SunWuyang Chen
We present Lean Finder, a semantic search engine for Lean and mathlib that understands mathematician intents. It clusters public Lean discussions and fine-tunes text embeddings on synthesized queries, then aligns with user preferences using feedback signals. Evaluations on real queries, informalized statements, and proof states show over 30% relative improvement over prior engines and GPT-4o. It also integrates with LLM-based theorem provers, bridging retrieval and formal reasoning.
OpenReviewOpenReview · · September 18, 2025
0
Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correction
Yong LinShange Tang…Kaiyu Yang
Goedel-Prover-V2 introduces a family of Lean-based formal theorem provers achieving state-of-the-art results on MiniF2F and PutnamBench. Beyond standard expert iteration and reinforcement learning, it incorporates three innovations: scaffolded data synthesis to generate harder synthetic questions when training plateaus, self-correction guided by Lean compiler feedback, and checkpoint averaging for improved test-time exploration. The 8B model outperforms DeepSeek-Prover-V2-671B on MiniF2F, and the 32B flagship achieves 88.1% (pass@32) standard and 90.4% self-correction, solving 86 PutnamBench problems at pass@184.
OpenReviewOpenReview · · September 17, 2025
4
Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correction
Yong LinShange Tang…Kaiyu Yang
Goedel-Prover-V2, a series of open-source language models, achieves state-of-the-art automated theorem proving through three innovations: scaffolded data synthesis that generates tasks of increasing difficulty, verifier-guided self-correction using Lean compiler feedback, and model averaging to maintain output diversity. The 8B model reaches 84.6% pass@32 on MiniF2F, outperforming DeepSeek-Prover-V2-671B at 80\times smaller size. The 32B model achieves 88.1% pass@32 in standard mode and 90.4% in self-correction mode, and solves 86 PutnamBench problems at pass@184, surpassing prior open-source models significantly.
arXivarXiv · · August 5, 2025
1
202
Verina: Benchmarking Verifiable Code Generation
Zhe YeZhengxu YanJingxuan HeTimothe KasrielKaiyu YangDawn Song
We introduce VERINA, a benchmark for verifiable code generation that jointly generates code, formal specifications, and proofs of code-specification alignment. It comprises 189 manually curated Lean tasks with detailed descriptions, reference implementations, specifications, and test suites, enabling modular evaluation of each component and its composition. Evaluation of state-of-the-art LLMs shows that proof generation remains extremely challenging, with the best model (OpenAI o4-mini) achieving only 61.4% correct code, 51.0% sound and complete specifications, and 3.6% successful proofs, underscoring the need for improved theorem proving.
OpenReviewOpenReview · · June 18, 2025
0
VERINA: Benchmarking Verifiable Code Generation
Zhe YeZhengxu YanJingxuan HeTimothe KasrielKaiyu YangDawn Song
VERINA is a benchmark for verifiable code generation, which requires jointly producing code, formal specifications, and proofs of correctness. It comprises 189 manually curated Lean tasks with reference implementations, specifications, and test suites. Evaluations of state-of-the-art LLMs reveal significant gaps: the best model, OpenAI o3, achieves 72.6% code correctness, 52.3% specification soundness and completeness, but only 4.9% proof success. This highlights the need for improved LLM-based theorem provers.
arXivarXiv · · May 29, 2025
0
66
Goedel-Prover: A Frontier Model for Open-Source Automated Theorem Proving
Yong LinShange TangBohan LyuJiayun WuHongzhou LinKaiyu YangJia LIMengzhou XiaDanqi ChenSanjeev AroraChi Jin
Goedel-Prover is an open-source language model achieving state-of-the-art automated formal proof generation in Lean 4. To overcome scarce formalized data, the authors train statement formalizers to translate natural-language problems into 1.64 million formal statements, verified by an LLM, and iteratively expand a proof dataset by training successive provers, each adding new proofs. Despite only supervised fine-tuning on DeepSeek-Prover-V1.5-base, it surpasses DeepSeek-Prover-V1.5 (which uses reinforcement learning) with 57.6% Pass@32 on MiniF2F, solving 7 PutnamBench problems, and generating 29.7K Lean Workbook proofs.
OpenReviewOpenReview · · March 20, 2025
0
Proving Olympiad Inequalities by Synergizing LLMs and Symbolic Reasoning
Zenan LiZhaoyu LiWen TangXian ZhangYuan YaoXujie SiFan YangKaiyu YangXiaoxing Ma
This paper introduces a neuro-symbolic tactic generator for formal proof of Olympiad inequalities. It decomposes human reasoning into two tactic types: scaling, handled by symbolic methods, and rewriting, handled by LLMs. Symbolic tools also prune and rank proof goals. Evaluated on 161 competition inequalities, the approach achieves state-of-the-art performance, significantly outperforming existing LLM and symbolic methods without extra training data.
arXivarXiv · · February 19, 2025
0
30
Spectral Journey: How Transformers Predict the Shortest Path
Andrew CohenAndrey GromovKaiyu YangYuandong Tian
This paper studies whether decoder-only transformers can truly plan by training them from scratch to predict shortest paths on simple, connected undirected graphs with up to 10 nodes. The authors find that these models learn a graph embedding correlated with the spectral decomposition of the line graph. Based on this insight, they propose Spectral Line Navigator (SLN), a novel approximate path-finding algorithm that greedily selects nodes in the spectral embedding space of the line graph to find the shortest path.
arXivarXiv · · February 12, 2025
0
13
Goedel-Prover: A Frontier Model for Open-Source Automated Theorem Proving
Yong LinShange TangBohan LyuJiayun WuHongzhou LinKaiyu YangJia LiMengzhou XiaDanqi ChenSanjeev AroraChi Jin
Goedel-Prover is an open-source language model that achieves state-of-the-art performance in automated formal proof generation for mathematics. Its central contribution is a scalable training pipeline: first, LLMs convert natural-language problems from the Numina dataset into 1.64 million formal statements in Lean 4 (Goedel-Pset-v1). Then, iteratively training provers adds proofs for over 800K statements, creating the dataset Goedel-Pset-v1-solved. Supervised fine-tuning (no reinforcement learning) on this dataset yields Goedel-Prover-SFT, which attains 57.6% Pass@32 on miniF2F, surpassing the previous leader by 7.6%.
arXivarXiv · · February 11, 2025
0
208
Spectral Journey: How Transformers Predict the Shortest Path
Andrew CohenAndrey GromovKaiyu YangYuandong Tian
This paper studies decoder-only transformers trained from scratch to predict shortest paths on simple, connected, undirected graphs with up to ten nodes. The main contribution is the finding that learned representations correlate with the spectral decomposition of the line graph, which enables a newly proposed approximate path-finding algorithm, Spectral Line Navigator, that computes shortest paths using this decomposition. The models' learned algorithm is fully interpretable in this controlled setting, supporting claims about their planning capability.
OpenReviewOpenReview · · January 29, 2025
0
Position: Formal Mathematical Reasoning—A New Frontier in AI
Kaiyu YangGabriel PoesiaJingxuan HeWenda LiKristin E. LauterSwarat ChaudhuriDawn Song
This position paper argues that formal mathematical reasoning, grounded in proof assistants that verify correctness and provide automatic feedback, should be an indispensable component of future AI for mathematics, complementing the dominant NLP-style approach of training large language models on curated math text. It consolidates current progress, identifies open challenges, and proposes critical milestones for measuring future success in this direction.
OpenReviewOpenReview · January 10, 2025
0
21
Formal Mathematical Reasoning: A New Frontier in AI
Kaiyu YangGabriel PoesiaJingxuan HeWenda LiKristin LauterSwarat ChaudhuriDawn Song
This position paper argues that formal mathematical reasoning—grounded in proof assistants that verify reasoning and provide automatic feedback—is indispensable for advancing AI for Mathematics beyond current text-based approaches. It highlights steady progress in AI-driven theorem proving and autoformalization, along with emerging applications like verifiable code and hardware generation. The paper summarizes existing work, identifies open challenges, and proposes milestones to measure future success, calling for community collaboration to drive transformative advancements.
arXivarXiv · · December 20, 2024
0
137
Authors with the same name
Kaiyu Yang · 2 papers
Kaiyu Yang #0001 · 28 papers
Frequent collaborators
Zenan Li (12)
Zhaoyu Li (12)
Jia Deng (12)
Peiyang Song (8)
Xujie Si (8)
Jingxuan He (7)
Dawn Song (7)
Ziran Yang (6)
Shange Tang (6)
Chi Jin (6)
Anima Anandkumar (6)
Zhe Ye (5)