Agentic Proof and Property-Based Testing via Property-Templates in Data-Intensive Computing
On the map: LLM agents and tool use → Educational agents and math problem solving
Abstract (arXiv)
As the cost of code generation becomes cheaper with AI, the new bottleneck in software engineering has shifted to intent specification and validation. Overcoming this durability crisis of AI-driven coding requires more than traditional fuzzing: each candidate property must be proven correct over a model and shown to hold on the real implementation, making formal proof and systematic property-based testing (PBT) complementary. However, validating properties this way at scale requires solving two subproblems: verifying candidate properties and operationalizing PBT without AI hallucination. We hypothesize that recurring property patterns, cast as property templates--abstract, parameterized forms with holes--address both at once. This paper investigates recurring property patterns in Apache Spark. In data-intensive scalable computing systems, correctness properties arise from the principles of data partition, computation decomposition, and dataflow computation. For instance, aggregation decomposition relates a global function executed on the entire dataset to a local function followed by a recombiner. We design an agentic, dual-track validation framework that uses property templates to formally verify correctness in the Lean 4 theorem prover and instantiate PBT templates as executable PySpark tests. Our evaluation shows that property templates increase agentic proof engineering success by up to 2.6x (1.6x on average) and reduce proof hallucinations by 59%. Template-guided PBT synthesis reduces intent misalignments from 22 to 1 and cuts synthesis cost by up to 5.7x (3.8x on average). Template-guided synthesis further exceeds a state-of-the-art Spark fuzzer and approaches unguided LLM-based PBT on code coverage. Finally, comparing the two tracks is informative: when a proof succeeds yet a PBT finds a counterexample, the mismatch identifies a gap between the formal model and implementation.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Educational agents and math problem solving, one of 16 directions in LLM agents and tool use. Builds on 7 of its 31 references that are in the map. First posted on arXiv 10 Jul 2026.
Builds on
7 of 31 references.
References · 7
- 2022Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofscited by 278
- 2026Intent Formalization: A Grand Challenge for Reliable Coding in the Age of AI Agentscited by 8
- 2025Agentic Property-Based Testing: Finding Bugs Across the Python Ecosystemcited by 7
- 2025Lemmanaid: Neuro-Symbolic Lemma Conjecturingcited by 5
- 2026Do LLMs Game Formalization? Evaluating Faithfulness in Logical Reasoningcited by 4
- 2020Detecting Optimization Bugs in Database Engines via Non-Optimizing Reference Engine Constructioncited by 3
- 2025SITA: A Framework for Structure-to-Instance Theorem Autoformalizationcited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Inductive Deductive Synthesis: Enabling AI to Generate Formally Verified Systems
- 2026Agentic Proving for Program Verification
- 2026OProver: A Unified Framework for Agentic Formal Theorem Proving
- 2026FVSpec: Real-World Property-Based Tests as Lean Challenges
- 2026PBT-Bench: Benchmarking AI Agents on Property-Based Testing
- 2026Automating Formal Verification with Agent-Guided Tree Search
- 2026SWE-Proof: Can Language Models Resolve Real-World Issues with Machine-Checked Proofs?
- 2026Schwarz: Solver-Aware Agentic Program Verification