R208 · AI-built software and its verification › Formal methods for AI-written code

LeanRDF: untrusted search finds, a proven checker certifies knowledge-graph reasoning

Read the original

Authors André Lindenberg (shared)

formal-verificationleanknowledge-graphsverification

Source: Volland/rdf-lean (Apache-2.0; site and book at volland.github.io/rdf-lean), surfaced by André Lindenberg's LinkedIn post, 2026-11-21. Early-stage project; the claims below are from its README.

What it is

LeanRDF is a set of Lean 4 libraries that writes the W3C semantics of RDF 1.2, RDFS, OWL 2 RL and EL, SPARQL 1.1 and SHACL Core as Lean definitions. The design splits reasoning into two parts:

What is claimed proven

A standalone leanrdf-check tool verifies a certificate someone else produced, with the certificate bound to digests of its data, query and rules.

Why it matters for engineers

This is the same pattern as proof assistants checking AI-written proofs, applied to knowledge-graph reasoning: let a fast, fallible component (a solver, a database, or a model) propose, and accept only what a small verified kernel checks. For agents that answer from ontologies or policy graphs, it gives a way to say "this conclusion is proven from this data under these rules" rather than "the reasoner said so". Exit codes separate "proven", "not derived" (never a claim of falsehood, because the rules are sound but not complete), "certificate rejected" (a bug upstream) and input errors.

Tradeoffs and limits

Failure modes to watch

Review checklist

Cited in field guides

Connections

See R208 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.