Agentic Proof and Property-Based Testing via Property-Templates in Data-Intensive Computing

· Source: cs.SE updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Data Science & Analytics · Depth: Expert, extended

Summary

The paper introduces "property templates" for validating correctness properties in data-intensive computing systems like Apache Spark. It addresses the bottleneck of intent specification and validation in AI-driven code generation. The proposed "DualVeri" framework uses property templates to guide both formal verification in Lean 4 and property-based testing (PBT) on real implementations. Evaluation shows property templates increase agentic proof engineering success by up to 2.6× (avg: 1.6×) 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.7× (avg: 3.8×). It also exceeds a state-of-the-art Spark fuzzer in code coverage. The dual-track approach provides strong evidence and diagnostic value, identifying model-implementation gaps.

Key takeaway

For AI Scientists and Machine Learning Engineers developing or validating data-intensive systems, adopting property templates significantly enhances the reliability and efficiency of correctness validation. You should integrate template-guided formal proof (e.g., Lean 4) and property-based testing (e.g., PySpark) into your workflow. This approach reduces LLM-driven hallucination and synthesis costs, while cross-validation helps you pinpoint critical model-to-implementation discrepancies.

Key insights

Property templates enable scalable, accurate dual-track validation of software correctness using formal proofs and property-based testing.

Principles

Method

The DualVeri framework uses property templates to parameterize shared proof structures for Lean 4 verification and PBT templates for executable PySpark tests, guiding LLMs to fill specific holes.

In practice

Topics

Code references

Best for: Research Scientist, AI Scientist, Software Engineer, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.