cs.DBNov 3, 2026

Whiel: A Neurosymbolic Platform for Certified Relational Program Verification

Authors: Jesse Comer, Fangzhu Shen, Shuo Zhang, Mayur Naik, Sudeepa Roy, Val Tannen

Organizations: Duke University, Durham, North Carolina, USA

Abstract

We present the Whiel (a contraction of Whi(le-R)el) system for Lean-certified reasoning about imperative relational programs. The system can encode containment and equivalence problems for Datalog, its extensions with negation, and the core fragment of graph query languages. It can also represent optimized or incremental evaluation algorithms that are not expressible in the original query language, as well as first-order specifications of integrity constraints, schema mappings, and views arising in data integration, exchange, and sharing. Whiel's program states are database instances, and its imperative structure enables compositional Hoare-style reasoning with first-order relational specifications, using prophecy variables and leveled invariants to support inductive arguments. Whiel supports neurosymbolic discovery of loop invariants whose verification conditions can be checked using the Vampire first-order theorem prover. Counterexamples are fed back into the neurosymbolic pipeline, while proposed solutions are translated into Lean proof certificates. To validate the Whiel system, we evaluate its performance on a curated benchmark suite. In summary, we envision the Whiel system as a tool for tackling mathematically demanding, typically undecidable problems involving complex query and constraint languages, with a high degree of trust in its output.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. MerLean-Prover: A Recursive Looping Harness for Lean 4 Theorem Proving

    May 26, 2026Jinzheng Li, Zeru Zhu, Yuanjie RenLarge Language Model-Guided Theorem ProvingAutomated Theorem Proving

  2. VeriSoftBench: Repository-Scale Formal Verification Benchmarks for Lean

    Feb 20, 2026Yutong Xin, Qiaochu Chen, Greg Durrett +1LLM EvaluationFormal Verification

  3. Isomorphism Is Not Enough: An Agentic Audit of Verified Code Generation in Lean

    May 22, 2026Alessandro Sosso, Akhil Arora, Bas SpittersAutomated Theorem ProvingFormal Verification