Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.
Rust ai-nativedescription-logicsformal-verificationinfrastructure-as-codeisabelle-languageknowledge-graphleanlean4mcpmcp-serverontologyowlowl2reasoningrustshaclsparqltheorem-proving
Update README.md (#179)
Fabio Rovai57cdf40d1feb
diff --git a/README.md b/README.mdindex f38797aa..5323f219 100644--- a/README.md+++ b/README.md@@ -272,128 +272,6 @@ machinery pointed at the lifecycle: does adding these axioms change any consequethe ontology already used? See[decision 0011](docs/decisions/0011-a-module-carries-a-theorem-and-a-slice-carries-a-measurement.md).-## What is NOT proved--Every line above is worth less if this section is missing, so it is here rather than in a file-nobody opens. These are the load-bearing limits, and none of them is hypothetical.--**The Rust engine is not verified.** The theorems are conditional on it reporting the run-faithfully. That boundary is thirty properties: `make verify` bounded-model-checks six, and-five are enforced by the engine rather than observed of a dependency, two properties being in both-counts. Two are irreducible, because they are about an execution and not a function: that-`asserted.tsv` is the graph reasoned over, and that `derivations.tsv` covers every triple added.-Those are property-tested end to end, which is not proved.-[docs/trusted-computing-base.md](docs/trusted-computing-base.md) says which is which.--**The bridge to the specification is a theorem, and what stands in its place now is smaller and a-different kind of thing.** An OWL 2 RDF-Based interpretation is a Lean structure in its own right:-the parts of RBS Table 5.1 the rules reach, and RDF 1.1 Semantics section 5's truth clause with its-`I(p) ∈ IP` conjunct. `OOCert.Conforming.toW3C` proves that every such interpretation carries the-W3C conditions at full strength, and the five axiomatic-triple facts the old prose assumed are-discharged inside that proof, from five triples of the RDF and RDFS axiomatic tables carried as-quoted fields. `OOCert.certificate_conforming_sound` is then the sentence: a checked certificate's-conclusions are true, in the specification's own sense of true, in every interpretation meeting-those conditions that satisfies the asserted graph. One of the five facts was previously sourced to-a triple whose predicate is the wrong one, which is why it is now taken from-`rdf:type rdfs:range rdfs:Class .` instead.--What is left is a containment, not a reading: the condition list is a SUBSET of the-Recommendation's, which is the safe direction and is why it is allowed, and that it is a subset is-checked cell by cell by a reader rather than by Lean. Two smaller things are named at the file.-`IL` is total, following RBS section 4.2's wording, which excludes RDF 1.1 interpretations in which-a literal fails to denote; that one does not run in the safe direction, and closing it needs a-term-occurrence lemma about `checkStep` that nobody has written. And one reading is load-bearing:-RBS Table 5.4 at `n = 0`, which the engine's `cls-int1` already depends on for empty lists.--**Two kernels agreeing is weaker than it sounds.** They are theorems over model classes nobody has-ordered in either direction, so "both said entailed" means less than a reader would naturally take-it to mean. Lean's class is still larger than the specification's, so entailment transfers outward-for free and non-entailment does not: each one needs its own witness in the smaller class, and-every negative result about the built-in rules now has one.--**A non-vacuity witness can be vacuous where it matters**, and ours was. It satisfied nine of-twenty-one conditions only because the relevant extensions were empty, and six of the fourteen arms-rested entirely on those, which is the failure mode that most resembles success. It is rebuilt, and-the gate is now stronger than non-emptiness: every one of the fourteen derivations must fire at a-concrete instance, and every one of the twenty-one conditions must have a satisfied antecedent.--**Negative answers are mostly unchecked opinion.** A refutation cannot be replayed in core Lean, so-an "unsatisfiable" from any prover is testimony, not a certificate. One clash rule has a semantic-condition and is certified; the other sixteen are detected and deliberately carry no certificate.-A model is a finite object and can be checked, which is why satisfiability can be certified and-unsatisfiability cannot. The testimony does now come with an exhibit: `fol-prove` reads the-derivation Vampire or E prints, matches every leaf against the problem this engine emitted, checks-the DAG, and recomputes the resolution-family steps, naming and counting every step it could not.-Over FOAF that was 1279 of Vampire's 3314 steps and 181 of E's 4644. It is evidence about what the-prover was answering about; it is not a proof, and no verdict word there says it is.--**Governance.** `main` requires the CI, Lean, SHACL-conformance and Python checks to pass, refuses-force pushes and deletion, and applies to administrators too. Commits are not signed: a signing key-was set up and then removed, because a passphrase-less key on a laptop is forgeable by anyone with-disk access, and a forgeable assurance signal is worse than none in a repository that makes-verification claims.--**The scope is wider than the idea.** The one genuinely new thing here is proof-carrying reasoning:-an engine that hands you evidence a separate verified checker accepts. The tool count, the Studio,-the embeddings, the crosswalks and the plugins are a product built around it, and they are not what-makes this different. If you are evaluating the claim, read-[docs/decisions/](docs/decisions/) and [lean/](lean/), and ignore the rest.--The second kernel is in [isabelle/](isabelle/), written from the W3C specifications with the Lean-deliberately unread, and it is run over the same bytes on every differential run.--Its sharpest catch was not a disagreement about a certificate. It was that fourteen arms of the-Lean's soundness proof, across twelve of its twenty-nine rules, were sound because a field of the-condition record said the rule holds. Twelve of those arms are stated by no cell of any-specification table. The proofs passed, the axiom footprints were clean, and the machine-checked-content for those arms was close to nothing. All fourteen are now derived from cells quoted out of-the specification's raw HTML, in [lean/OOCert/W3C.lean](lean/OOCert/W3C.lean), and-`OOCert.certificate_w3c_sound` restates the checker's verdict over every interpretation meeting-those cells, rather than over the weaker conditions this Lean used to posit. Same certificates,-same checker, and not one of those derivations depends on any axiom at all.--That step short of the specification has since been closed.-[lean/OOCert/Conforming.lean](lean/OOCert/Conforming.lean) builds the specification's own-interpretation in core Lean, so there is something to quantify over, and the reading that used to be-prose is `OOCert.Conforming.toW3C`. The five `IP` memberships the old bridge assumed are fields of-that structure, quoted out of the RDF and RDFS axiomatic-triple tables, and discharged in one step-each by section 5's truth clause. `OOCert.certificate_conforming_sound` is the sentence-`certificate_w3c_sound` said it was not yet, and-[lean/OOCert/ConformingWitness.lean](lean/OOCert/ConformingWitness.lean) exhibits an interpretation-satisfying every one of those conditions and every RDF and RDFS axiomatic triple, then names, as-checked theorems, which conditions it leaves untested and which Table 5.2 row it breaks.--The same review found the limit of that result. Entailment transfers outward and non-entailment does-not, so a `¬ Entails` here is about this layer's model class unless something restates it over the-stronger one. Five of the nine now are, four of them with their existing witness interpretations-unchanged, including the one a report's `entailed_under_supplied_rules` verdict rests on. The four-that are not carry the field that stops them as a machine-checked theorem. An earlier version of-this section said every conforming countermodel had to be hand-built; that was wrong, and the-correction is in [docs/lean-certificates.md](docs/lean-certificates.md) and in the changelog rather-than edited out of sight.--**A justification is minimal because re-running said so, not because anything proved it.**-`onto_justify` answers which asserted triples a conclusion or a contradiction rests on, and of the-three claims in that answer only one can be machine-checked. That a set SUFFICES is checkable, and-is, when a certificate is written for it. That every element is NECESSARY comes from running the-engine again without each one, and no theorem covers it. That the list is COMPLETE comes from-Reiter's hitting-set tree, which is complete for a monotone oracle, and the engine has one corner-that is not monotone, named in [docs/explanation.md](docs/explanation.md). Nothing in-`onto_provenance` is machine-checked at all.--The discipline matters more than the machinery, and it runs through all of it.--A rule **you** supplied is an assumption the certificate carries, never a fact it establishes, so-it earns `entailed_under_supplied_rules` and never `entailed`. A model a solver hands back can be-checked and becomes a certificate; a refutation cannot be replayed in core Lean and stays an-oracle opinion. The two never share a word. Where something is measured rather than proved, the-documentation says measured, and [what the proofs assume about the Rust](docs/trusted-computing-base.md)-is written down rather than left implied.--The reasoning behind each of those rules is in [docs/decisions/](docs/decisions/), one file per-rule, each naming the failure it exists to prevent.--## Install```bash