Verifying Datalog Reasoning with Lean

Research output: Contribution to book/Conference proceedings/Anthology/ReportConference contributionContributedpeer-review

Abstract

Datalog is an essential logical rule language with many applications, and modern rule engines compute logical consequences for Datalog with high performance and scalability. While Datalog is rather simple and, in principle, explainable by design, such sophisticated implementations and optimizations are hard to verify. We therefore propose a certificate-based approach to validate results of Datalog reasoners in a formally verified checker for Datalog proofs. Using the proof assistant Lean, we implement such a checker and verify its correctness against direct formalizations of the Datalog semantics. We propose two JSON encodings for Datalog proofs: one using the widely supported Datalog proof trees, and one using directed acyclic graphs for succinctness. To evaluate the practical feasibility and performance of our approach, we validate proofs that we obtain by converting derivation traces of an existing Datalog reasoner into our tool-independent format.

Details

Original languageEnglish
Title of host publication16th International Conference on Interactive Theorem Proving, ITP 2025
EditorsYannick Forster, Chantal Keller
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
ISBN (electronic)9783959773966
Publication statusPublished - 22 Sept 2025
Peer-reviewedYes

Publication series

SeriesLeibniz International Proceedings in Informatics, LIPIcs
Volume352
ISSN1868-8969

Conference

Title16th International Conference on Interactive Theorem Proving
Abbreviated titleITP 2025
Conference number16
Descriptionpart of FroCoS/ITP/TABLEAUX 2025
Duration28 September - 1 October 2025
Website
LocationReykjavík University
CityReykjavik
CountryIceland

External IDs

ORCID /0000-0002-3293-2940/work/196054904

Keywords

ASJC Scopus subject areas

Keywords

  • Certifying Algorithms, Datalog, Formal Verification