Lune

ICML2026Top-tier venue

Automated Formal Proofs of Combinatorial Identities via Wilf–Zeilberger Guidance and LLMs

Beibei Xiong, Hangyu Lv, Junqi Liu, Yisen Wang, Shaoshi Chen, Jianlin Wang, Zhengfeng Yang, Lihong Zhi

Abstract

Automating formal proofs of combinatorial identities is challenging for LLM-based provers, as long-horizon proof planning is required and unconstrained search quickly explodes. Symbolic methods such as the Wilf--Zeilberger (WZ) method can achieve a mechanized proof of combinatorial identities by constructing special auxiliary functions and demonstrating that they satisfy specific recurrence relations. We propose WZ-LLM, a neuro-symbolic framework that turns WZ proof plans into executable proof sketches in Lean 4 and uses an LLM-based prover to discharge the resulting machine-checkable subgoals. We also train a dedicated WZ-Prover via a Lean-kernel-verified bootstrapping loop with expert-verified iteration, followed by DAPO-based refinement. Experiments show that WZ-LLM achieves a 34% proof success rate on LCI-Test (100 classical combinatorial identities), outperforming strong baselines such as DeepSeek-V3 and Goedel-Prover-V2; moreover, on LCI-Test it proves 5 identities on which the symbolic-only baseline fails. WZ-LLM also improves performance on CombiBench and PutnamBench-Comb, suggesting the effectiveness of coupling symbolic proof sketches with learned formal reasoning. Experiments show that WZ-LLM achieves a 34% proof success rate on LCI-Test (100 classic combinatorial identities), outperforming strong baselines such as DeepSeek-V3 and Goedel-Prover-V2, and delivering consistent gains on CombiBench and PutnamBench-Comb. These results indicate that our framework provides two complementary strengths: improved direct proving for identities beyond the scope of WZ, and substantially higher end-to-end success when WZ sketches guide a specialized prover.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • GAR: Generative Adversarial Reinforcement Learning for Formal Theorem Proving cites MA-LoT: Model-Collaboration Lean-based Long Chain-of-Thought Reasoning enhances Formal Theorem Proving
  • GAR: Generative Adversarial Reinforcement Learning for Formal Theorem Proving cites BFS-Prover: Scalable Best-First Tree Search for LLM-based Automatic Theorem Proving
  • GAR: Generative Adversarial Reinforcement Learning for Formal Theorem Proving cites TheoremLlama: Transforming General-Purpose LLMs into Lean4 Experts
  • GAR: Generative Adversarial Reinforcement Learning for Formal Theorem Proving cites Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correction
  • MA-LoT: Model-Collaboration Lean-based Long Chain-of-Thought Reasoning enhances Formal Theorem Proving cites TheoremLlama: Transforming General-Purpose LLMs into Lean4 Experts
  • BFS-Prover: Scalable Best-First Tree Search for LLM-based Automatic Theorem Proving cites TheoremLlama: Transforming General-Purpose LLMs into Lean4 Experts
  • Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correction cites BFS-Prover: Scalable Best-First Tree Search for LLM-based Automatic Theorem Proving
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on5

  1. Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-CorrectionYong Lin, Shange Tang, Bohan Lyu, Ziran Yang et al.ICLR 2026 · 160 citations
  2. BFS-Prover: Scalable Best-First Tree Search for LLM-based Automatic Theorem ProvingRan Xin, Chenguang Xi, Jie Yang, Feng Chen et al.ACL 2025 · 66 citations
  3. TheoremLlama: Transforming General-Purpose LLMs into Lean4 ExpertsRuida Wang, Jipeng Zhang, Yizhen Jia, Rui Pan et al.EMNLP 2024 · 9 citations
  4. GAR: Generative Adversarial Reinforcement Learning for Formal Theorem ProvingRuida Wang, Jiarui Yao, Rui Pan, Shizhe Diao et al.ICLR 2026 · 5 citations
  5. MA-LoT: Model-Collaboration Lean-based Long Chain-of-Thought Reasoning enhances Formal Theorem ProvingRuida Wang, Rui Pan, Yuxin Li, Jipeng Zhang et al.ICML 2025

Related papers

  1. From LLM-Generated Conjectures to Lean Formalizations: Automated Polynomial Inequality Proving via Sum-of-Squares CertificatesRuobing Zuo, Hanrui Zhao, Gaolei He, Zhengfeng Yang et al.ICML 2026 · 1 citation
  2. SAIR-Comb : A Structure-Aware Iterative Refinement Framework for Combinatorics AutoformalizationWeijie Jiang, Gaolei He, Beibei Xiong, Jianlin Wang et al.ACL 2026
  3. Neuro-Symbolic Proof Generation for Scaling Systems Software VerificationBaoding He, Zenan Li, Wei Sun, Yuan Yao et al.OSDI 2026
  4. ProofAug: Efficient Neural Theorem Proving via Fine-grained Proof Structure AnalysisHaoxiong Liu, Jiacheng Sun, Zhenguo Li, Andrew C. YaoICML 2025
  5. Reviving DSP for Advanced Theorem Proving in the Era of Reasoning ModelsChenrui Cao, Liangcheng Song, Zenan Li, Xinyi Le et al.NeurIPS 2025 · 23 citations
Dusk over the sea between two cliffs drawn in fine vertical lines