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

A certificate an auditor can re-check, and the "if" in front of it

Read the original

ontologyknowledge-graphsprovenanceretrievalagent-toolsclaim-checkingopen-source

Source: fabio-rovai/open-ontologies — the README, docs/trusted-computing-base.md and the known-limitations section of docs/lean-certificates.md. MIT, Rust, created 2026-03-09, last push 2026-11-24, latest release v2.1.0, 3,060 stars / 344 forks / 22 watchers / 6 open issues / 1,248 commits as of 2026-11-29. Maintained by one person at a company that sells a hosted version. Two cited preprints (arXiv:2605.09184, arXiv:2605.09168) are outside what this summary covers.

What it is

A single Rust binary that treats an ontology change the way Terraform treats an infrastructure change: plan the change, read a blast-radius report, apply it, watch for drift, rollback when it was wrong — plus one step Terraform has no analogue for, certify, which writes a machine-checkable proof of what the reasoner derived. It speaks MCP, so a coding agent operates the whole loop in conversation. The project is explicit that it is not an ontology editor; it runs on the change, before the change reaches production.

The problem it names is concrete and generalises past ontologies. A text diff tells you what changed in the file. It does not tell you what the change newly implies. The front-page example is one line — declaring a domain on a property — and the structural report is reassuring in every column: zero classes added, zero removed, blast radius zero triples affected, risk low. The same run then reports 901 new logical consequences, because the declaration gave a new type to every individual that already had the property. One correct line, a one-line diff, and 901 facts that were not there before.

The architecture worth copying

Three pieces, and the third is the unusual one.

A plan with two kinds of answer. Structural deltas (what the file says) and semantic deltas (what the file now entails) are reported side by side, under separate names, with a conservativity verdict saying whether the change is conservative under the rule table used. Neither number is allowed to stand in for the other.

A proof as two text files. asserted.tsv holds the claims; derivations.tsv holds one line per inference step, each naming its rule, its conclusion and its premises. For the three-triple worked example the pair is 1.3 KB. A checker reads each line, re-derives the conclusion from that line's premises under the named rule, and confirms each premise is either asserted or concluded by an earlier line. No model, no network, no vendor.

A checker with a soundness theorem, written in a different language. The checkers are Lean 4 (core Lean, no Mathlib), shipped in the same repository, sharing no code with the engine. They accept a valid certificate, and on a forged one they exit 1, name the line, name the rule that does not hold, and print the premises so you can see they do not support the conclusion. The project puts the refusal, not the acceptance, forward as the part that survives examination — which is the right instinct, because an acceptance-only demo proves nothing about a checker.

The operational consequence is the point: because the proof is a file, the set of people who can check it is no longer the set of people running the software. The README's own table is worth stealing as a design prompt — you in the loop, a reviewer in CI, an auditor months later on archived files, and a different agent that has received a claim from an agent it does not trust. That last row is the one that will matter as agents start handing each other derived facts.

The "if" in front of the theorem

The claim travelling about this project is that the Lean checker verifies the derivations without relying on the correctness of the reasoning engine. That is not quite what it does, and the project's own documentation is the clearest source on why.

The soundness theorem is a conditional: if the asserted graph is G, and if these steps check, then every conclusion holds in every model of G. Everything to the left of that "if" is the engine writing down the truth. The project states the failure mode in one sentence: if the engine emits a certificate whose asserted file is not the graph it actually reasoned over, or whose steps are not the steps it took, then a valid proof certifies a false claim and the whole layer is decoration.

The checkers are pure functions of files on disk. They cannot see the store, so they cannot tell whether the asserted file is the store's contents. They cannot see the reasoner's execution, so they cannot tell whether a recorded step was ever taken. They cannot see the store afterwards, so they cannot tell whether something was materialised with no certificate line covering it. They cannot see the rule file you passed. And they cannot see which graphs the run selected — which the project singles out as different in kind, because every other blind spot can make a checker reject a legitimate run, and this one cannot fail at all. A certificate over the union of every version of a bitemporal register is a true statement about a state of the world that never existed.

So the reduction in trust is real but narrower than advertised: trust in the soundness of the recorded steps is genuinely removed and replaced with a proof. Trust in the engine's honest reporting of what it reasoned over remains. Stating it that way costs nothing and is the difference between a claim that survives a reviewer and one that does not.

Where the guarantee stops

These come from the project's own limitation pages, which is itself the most unusual thing about it.

The idea with the widest reach, which has nothing to do with ontologies

Buried in the proof table is a retrieval-evaluation argument that applies to any RAG system. A retrieved slice with 99% coverage can lose the one fact an answer needs; a slice with 60% coverage can keep every fact that matters. Coverage is a proxy, and the proxy rises monotonically as the slice grows — so a retriever tuned on coverage learns to fetch more, not to fetch the right things. The property you actually want is that the slice still supports the conclusion, and here that property is decidable and certified per claim.

That reframing is free to adopt. Any retrieval system whose output feeds a reasoning step can ask "does this slice still entail the answer?" instead of "what fraction of the relevant documents did I get?", and the two metrics disagree in exactly the cases that produce confident wrong answers.

Review checklist

For anyone evaluating this, or building something adjacent:

  1. Is the guarantee conditional, and on what? Find the "if" in front of the theorem and name what sits to its left. A tool that states this itself is telling you where to look; one that does not is hiding the same gap.

  2. Does it certify the negative answers? Satisfiability with a model is the easy direction. Inconsistency is usually the question, and here it is uncertified.

  3. Is completeness in scope? Soundness of recorded steps and completeness of the search are different properties, and a change-impact report needs the second one.

  4. Are the "independent" implementations independent? Shared algorithm plus shared rule table plus one written while reading the other equals one implementation with two spellings. Ask what the differential would catch and what it structurally cannot.

  5. Which rules were exercised on real data? Coverage numbers that mix a real corpus with purpose-built fixtures are two numbers wearing one hat.

  6. Does the artefact outlive the tool? A proof you can only check by running the vendor's binary is a screenshot with extra steps. Two text files and a published checker are not.

  7. What happens to derived facts on the next run? If materialised inferences are indistinguishable from assertions later, provenance decays silently with every run.

  8. Check the defaults before trusting a demo. In-memory stores that certify nothing, and data directories that default somewhere surprising, produce clean output that means nothing.

Connections

See R403 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.