Published November 1, 2026
| Version v1.3.0
Software
Open
provenance-lean: Database Provenance in Lean 4
Description
A Lean 4 formalization of database provenance in the semiring framework of Green, Karvounarakis and Tannen. It defines semirings with monus and twelve concrete provenance semirings, an annotated relational algebra with difference and aggregation, and the provenance-aware query rewriting implemented by the ProvSQL extension to PostgreSQL, whose correctness it proves. A kind-indexed general query syntax makes the scope restrictions on aggregate results a matter of static typing, and carries the rewriting of grouping and HAVING together with its compositional closure. Further results cover the possible-worlds reading of Boolean-function annotations and probabilistic query evaluation, provenance circuits and their Tseitin encoding, adequacy of the annotated semantics against the plain one, HAVING provenance with its enumeration algorithms, and the NP-completeness of non-zero HAVING SUM provenance in data complexity. The development is sorry-free.
Notes
Files
PierreSenellart/provenance-lean-v1.3.0.zip
Additional details
Related works
- Is supplement to
- Software: https://github.com/PierreSenellart/provenance-lean/tree/v1.3.0 (URL)
Software
- Repository URL
- https://github.com/PierreSenellart/provenance-lean