← All papers

Verifying Datalog Reasoning with Lean

Johannes Tantow, Lukas Gerlach, Stephan Mennicke, Markus Krötzsch

cs.LO Sep 1, 2025 · v1
Builds a certified Datalog reasoning checker in Lean 4 for verifying rule-based inference results.
This paper presents a framework for verifying Datalog reasoning results in the Lean 4 theorem prover. The authors develop a certified checker that can verify the output of Datalog engines, ensuring that derived facts are correct consequences of the input rules and facts. The approach bridges the gap between efficient Datalog evaluation and formally verified correctness guarantees.

Datalog engines compute derived facts efficiently but provide no formal correctness guarantee that the results are valid consequences of the input rules and facts.

The authors develop a certified checker in Lean 4 that verifies the output of Datalog engines. The checker ensures that derived facts follow correctly from input rules and facts, bridging efficient Datalog evaluation with formally verified correctness guarantees.

A working framework for verifying Datalog reasoning results in Lean 4 is presented, providing certified correctness of Datalog engine outputs.