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
Four of the negative results transfer, and the witness was vacuous where it bit
FABIOTESS1975750e963d
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex c5e98925..4a0e39c9 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -208,9 +208,18 @@ All notable changes to Open Ontologies are documented here.full strength, one field per table row with the cell quoted above it, andderives all fourteen. `OOCert.W3CModel.toModel` and every one of the twelvederivation theorems depend on no axiom at all. `OOCert.W3CEntails.of_entails`- proves that everything `Entails` already gave is true in every conforming- interpretation, and `OOCert.certificate_w3c_sound` restates the checker's- verdict over that class.+ proves that everything `Entails` already gave is true in every `W3CModel`, and+ `OOCert.certificate_w3c_sound` restates the checker's verdict over that class.++ **That is not the sentence "true in every conforming interpretation" and this+ entry does not claim it is.** Two things separate them, both recorded in the+ Lean file itself. Reading a conforming interpretation as a Lean `Interp` is a+ bridge written in prose, because core Lean has nothing to quantify over on the+ specification's side; and the bridge assumes five `IP` memberships that are+ cells of no table the file quotes, taken instead from the RDF and RDFS+ axiomatic-triple tables of RDF 1.1 Semantics sections 8 and 9.+ `W3CModel` is also strictly weaker than conformance, because `W3C` omits every+ table row no rule consumes.`Conditions`, `Interp`, `Entails` and `certificate_sound` are untouched and`certificate_sound` keeps its exact axiom footprint, because strengthening@@ -223,19 +232,35 @@ All notable changes to Open Ontologies are documented here.would make the result unprovable and the mistake invisible.- **A live, non-degenerate model of those conditions, with its liveness compiled- into the build.** `lean/OOCert/W3CWitness.lean` builds a seventeen-element+ into the build.** `lean/OOCert/W3CWitness.lean` builds a twenty-six-elementinterpretation meeting the quoted cells of Tables 5.2, 5.3, 5.6, 5.8, 5.9,5.12 and 5.13, with every condition settled by the kernel's `decide`. Asoundness theorem over a degenerate model class would prove less than the- assumption it replaced while looking better, so `live_is_live` pins the facts- that make it non-degenerate: `IC` has three members and is not the carrier,- one class extension is the whole carrier, another is a proper subset witnessed- on both sides, a third is empty, `ICEXT(owl:Restriction)` is a proper subset of- `IC`, and the property that matters carries a pair. `dom_bwd` and `rng_bwd` are- discharged over that pair rather than vacuously, which the second kernel's own- witness does not manage. `the_natural_avf2_direction_is_not_w3c_entailed` is- the first non-entailment in this repository that is about the conforming model- class rather than the Lean's own.+ assumption it replaced while looking better, so three theorems pin what the+ model actually does. `live_is_live`: `IC` is not the carrier, one class+ extension is the whole carrier, another is a proper subset witnessed on both+ sides, the filler extension is non-empty and proper,+ `ICEXT(owl:Restriction)` is a proper subset of `IC`, and `IEXT(p1)` is+ non-empty and a proper subset of `IEXT(p2)`. `live_exercises_every_arm`: all+ fourteen derivations fire at concrete instances of this model, which is+ stronger than any field having something in its extension.+ `live_fires_the_other_sixteen` and+ `live_leaves_exactly_these_five_vacuous`: a satisfied antecedent for each of+ the other sixteen fields of `W3C`, and the five that are not exercised, named,+ none of which carries any of the fourteen arms. Sixteen plus five is the+ twenty-one fields, so neither number can drift from the tables. `dom_bwd`+ and `rng_bwd` are discharged over real pairs rather than vacuously, which the+ second kernel's own witness does not manage.++ **The first version of this model was vacuous exactly where its conditions+ bite, and the rebuild is recorded rather than quietly substituted.** It had+ seventeen elements, `IEXT(p1)` and `ICEXT(Y)` were both empty, nine of the+ twenty-one fields held because nothing was in the extension their antecedent+ reads, and six of the fourteen arms rested entirely on those nine. Worse, the+ refutation the file exists to deliver was vacuous at its own load-bearing+ premise: `avfPremises` asserts `p1 rdfs:subPropertyOf p2`, which held only+ because `IEXT(p1)` was empty, and that emptiness was written into the liveness+ gate as though it were a feature.- **Two more English claims turned into theorems, one of which was wrong.**`Witness.lean` asserted in prose that `saturated` also satisfies the new@@ -264,10 +289,10 @@ All notable changes to Open Ontologies are documented here.`⊆` half of `owl:oneOf` was really left out, and it cannot detect that half'sabsence: its witness already satisfies the full equality and passes unchangedeither way. That omission is undetected by anything in this repository. (4)- Non-entailment never transferred outward. Every `¬ Entails`, every `¬ Unsat`- and every exhibited `Model` here is a statement about this layer's model class- alone. Each of these is now recorded at the point of the assumption, and- `docs/decisions/0002` carries a dated correction.+ Non-entailment never transferred outward: a `¬ Entails`, a `¬ Unsat` or an+ exhibited `Model` is a statement about this layer's model class unless+ something restates it over `W3CModel`. `docs/decisions/0002` carries a dated+ correction.- **A quote that was not a quote.** The RDF 1.1 truth clause cited in the newbridge argument was the RDF 1.0 (2004) wording. RDF 1.1 replaced the@@ -279,6 +304,65 @@ All notable changes to Open Ontologies are documented here.the twenty rules' vocabulary". There are twenty-nine rule ids, as`tests/certificate_boundary_proptest.rs` has asserted since it landed.+- **The limitation claim above was itself overstated, and four adversarial+ reviews of this branch took it apart. The corrections are here because the+ overstatement shipped in five places.**++ (1) **"Every conforming countermodel has to be a hand-built finite structure"+ was false, and the argument for it was logically inverted.** It ran: a Herbrand+ witness with no `rdf:type` triple has `IC` empty, so Table 5.8's backward+ direction forces `rdfs:subClassOf` and `rdfs:subPropertyOf` triples the witness+ lacks. An empty `IC` makes `sc_bwd` *vacuous*: its antecedents are+ `I.IC a → I.IC b → …` and they have no instances. `sp_bwd`, `dom_bwd` and+ `rng_bwd` are guarded by `IP`, which is a free parameter of `W3C` and not a+ field of `Interp`, so the refuter chooses it. Four of the seven results listed+ as open transfer with their witness graphs unchanged, on+ `IP := fun _ => False`: `an_unlisted_individual_is_not_w3c_entailed`,+ `membership_in_one_member_is_not_w3c_enough`, `Mixed.lean`'s+ `mix_not_absolutely_w3c_entailed`, and `not_everything_is_w3c_entailed`, which+ was already proved in the same file that listed it as open. The three that do+ not transfer, and a fourth nothing had listed at all+ (`and_the_old_verdict_does_not_notice`), now carry the field that fails as a+ `decide`-checked theorem: `svf_witness_misses_the_restriction_typing`,+ `feed_closure_misses_the_class_typing` and+ `graze_closure_misses_the_class_typing`. Nine statements in the repository are+ a `¬ Entails` or a `¬ Unsat`; five are now over `W3CModel` and four are not,+ and `Semantics.lean` carries the complete table. The two `¬ EntailsR` results+ are about a rule-relative relation with no `W3CModel` counterpart, nothing is+ claimed about them, and that is said rather than left to inference. The obstruction about `Der` and strictly+ negative occurrences survives, and says only that there is no general *closure+ operator* taking any graph to a `W3CModel`, which is not what it was used+ for.++ `mix_not_absolutely_w3c_entailed` is the one that matters commercially. It is+ the machine-checked basis for a run reporting `entailed_under_supplied_rules`+ rather than `entailed`, and that sentence is now about the specification's+ conditions rather than about this layer's own.++ (2) **"Each now carries its obstruction at the point of the assumption" was+ false.** `Mixed.lean`, `Refute.lean` and `RefuteWitness.lean` were byte-identical+ to the versions that predate `W3C.lean`, and `mix_not_absolutely_entailed` sat+ in an unchanged file with no caveat while `Semantics.lean` said otherwise. All+ three now carry their own status at the theorem, `Mixed.lean` as a discharge and+ the other two as a checked obstruction.++ (3) **The bridge understated what it assumes, while claiming superiority over+ the second kernel on exactly that point.** `W3C.lean` said the Isabelle needs+ three axiomatic-triple consequences for the same table "while this file needs+ none, because `Interp.sat` has no `IP` conjunct". Dropping that conjunct moves+ the obligation into the bridge rather than removing it, and the bridge needs+ five: `I(rdf:type)`, `I(rdfs:subClassOf)`, `I(rdfs:subPropertyOf)`,+ `I(rdfs:domain)` and `I(rdfs:range)` in `IP`, the first for every field whose+ conclusion mentions `cext` and the rest for the four backward fields. All five+ are listed in the file with their axiomatic triples, re-read in the raw HTML of+ <https://www.w3.org/TR/rdf11-mt/> on 15 September 2026. On this point the second+ kernel was ahead and the claim was backwards.++ (4) **The `W3CEntails.of_entails` sentence.** This changelog said it proves+ everything `Entails` gave is true in every conforming interpretation, while the+ Lean file's own docstring says that is not yet the sentence. The Lean is right;+ the entry above now says what the theorem says.+### Added- **The refutation checker has a producer.** `lean/OOCert/Refute.lean` haschecked refutations since it landed and nothing in `src/` could write one: adiff --git a/README.md b/README.mdindex 6ab6e768..bb4b5a6d 100644--- a/README.md+++ b/README.md@@ -159,15 +159,20 @@ same checker, and not one of those derivations depends on any axiom at all.One step short of that is still an argument rather than a theorem, and it is labelled as one in thefile: reading a conforming interpretation as a Lean `Interp` is a bridge written in prose, because-nothing in core Lean quantifies over the specification's metatheory. The bridge is four lines and-checkable by hand. It is not machine-checked, and the file says so where a reader will hit it.--The same review found the limit of that result, and it is written down rather than buried.-Entailment transfers outward and non-entailment does not, so every `¬ Entails` in the repository is-a statement about this layer's model class and not about the specification's. One of them now has a-conforming replacement, one of them was nominated as a detector for a condition it cannot detect,-and the rest carry the obstruction at the point of the assumption. See-[docs/lean-certificates.md](docs/lean-certificates.md).+nothing in core Lean quantifies over the specification's metatheory. That bridge also assumes five+`IP` memberships taken from the RDF and RDFS axiomatic-triple tables rather than from any cell the+file quotes, and they are listed there as the assumption they are. So+`certificate_w3c_sound` is not yet the sentence "true in every conforming interpretation", and no+document here says it is.++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.The discipline matters more than the machinery, and it runs through all of it.diff --git a/docs/decisions/0002-an-inference-carries-a-certificate.md b/docs/decisions/0002-an-inference-carries-a-certificate.mdindex b0592ac5..96fb9b70 100644--- a/docs/decisions/0002-an-inference-carries-a-certificate.md+++ b/docs/decisions/0002-an-inference-carries-a-certificate.md@@ -42,9 +42,12 @@ on the engine's author having thought of the bug.4. **The semantic conditions are the weakest the rules need**, with fourteen exceptions that werefound later and are now discharged; see the correction at the foot of this record. Each of therest is the *if* direction of the corresponding W3C condition or a consequence of it. Weaker- conditions admit more interpretations, so soundness here implies soundness under the OWL 2- RDF-Based Semantics, and since 15 September 2026 that implication is a theorem- (`OOCert.W3CEntails.of_entails`) rather than an argument in a docstring. `Model` reads a list+ conditions admit more interpretations, so soundness here implies soundness over the+ conditions `lean/OOCert/W3C.lean` states, and since 15 September 2026 that implication is a+ theorem (`OOCert.W3CEntails.of_entails`) rather than an argument in a docstring. It is NOT yet+ the sentence "sound under the OWL 2 RDF-Based Semantics": the reading of a conforming+ interpretation as a Lean `Interp` is prose, it assumes five `IP` memberships from the axiomatic+ triple tables, and `W3CModel` omits every table row no rule consumes. `Model` reads a listoff the asserted graph through `Chain`, which is weaker than the specification's semanticsequence relation and so keeps the model class larger.5. **The theorem is shown non-vacuous in the same directory.** A soundness result about an@@ -104,11 +107,21 @@ still the right thing to use, but for the opposite reason to the one given: it ffewer lists, so the conditions over it are weaker and the model class is larger.**Non-entailment never transferred outward and the record did not say so.** A model of the weaker-conditions need not be a conforming interpretation, so a refutation built from one is a statement-about this layer's model class alone. That covers every `¬ Entails`, every `¬ Unsat` and every-exhibited `Model` in the repository. One of them now has a conforming replacement,-`the_natural_avf2_direction_is_not_w3c_entailed` in `lean/OOCert/W3CWitness.lean`; the rest stay-open with the obstruction written at each of them.--Neither finding is a soundness bug. Both are the layer claiming more than it had earned, which by-this project's own standard is the same category of defect.+conditions need not be a `W3CModel`, so a refutation built from one is a statement about this+layer's model class unless something restates it. That covered every `¬ Entails`, every `¬ Unsat`+and every exhibited `Model` in the repository.++**And the first attempt to say how far that goes overstated it, in the other direction.** The+branch that added `W3C.lean` claimed that no Herbrand or saturated witness could ever be a+`W3CModel` and that "every conforming countermodel has to be a hand-built finite structure". Both+are false. `IP` is a free parameter of `W3C` rather than a field of `Interp`, so the refuter chooses+it, and `IP := fun _ => False` makes `sp_bwd`, `dom_bwd` and `rng_bwd` vacuous; an empty `IC` makes+`sc_bwd` vacuous rather than demanding, which is the opposite of what the claim said. Five of the+eight negative results are now over `W3CModel`, four of them with their witness interpretations+unchanged, including `mix_not_absolutely_w3c_entailed`, which is what a report's+`entailed_under_supplied_rules` verdict rests on. The three that are not carry the failing field as+a `decide`-checked theorem.++Neither finding is a soundness bug. All of them are the layer claiming more than it had earned,+which by this project's own standard is the same category of defect, and a false claim of rigour is+worse than the assumption it replaced because the assumption was visible.diff --git a/docs/lean-certificates.md b/docs/lean-certificates.mdindex 15c741dc..af3617ab 100644--- a/docs/lean-certificates.md+++ b/docs/lean-certificates.md@@ -84,8 +84,11 @@ Weaker conditions admit more interpretations, so the result carries outward, andnow a theorem rather than a claim. `lean/OOCert/W3C.lean` states the OWL 2 RDF-Based Semanticsconditions at full strength, one field per table cell quoted verbatim from the raw HTML of thespecification, and `OOCert.W3CEntails.of_entails` proves that everything `Entails` gives is true in-every interpretation meeting them. `OOCert.certificate_w3c_sound` is `certificate_sound` restated-over that class, with the same certificates and the same checker.+every `W3CModel`, which is an interpretation meeting those fields.+`OOCert.certificate_w3c_sound` is `certificate_sound` restated over that class, with the same+certificates and the same checker. **It is not yet the sentence "true in every conforming+interpretation", the file says so in its own docstring, and no document here may say otherwise.**+Two things separate them and both are set out in the next paragraph.Fourteen arms of the soundness proof used to be *posited*: the theorem that `scm-dom1` is sound reada field off `Conditions` which said that `scm-dom1` holds. All fourteen are now derived, and each@@ -98,10 +101,24 @@ One step is an argument rather than a theorem, and it is labelled as one in theconforming interpretation as a Lean `Interp` needs a bridge, `iext p x y := IP p and (x, y) inIEXT p`, under which `Interp.sat` unfolds to RDF 1.1 Semantics section 5's truth clause includingits `I(p) is in IP` conjunct. Core Lean has nothing to quantify over on the specification side, so-that step is prose. It is four lines and checkable by hand. `W3CModel` is also deliberately weaker-than conformance, because `W3C` omits every table row no rule consumes, so its class is larger than-the bridge image. Both gaps run in the safe direction for soundness, where a larger class makes the-conclusion stronger, and neither runs in the safe direction for a non-entailment result.+that step is prose.++That bridge assumes more than the cells the file quotes, and the file now lists what. Under it,+`I.sc a b` unfolds to `IP(I(rdfs:subClassOf))` *and* the pair being in the extension, and `I.cext`+carries an `IP(I(rdf:type))` conjunct in the same way, so five `IP` memberships have to come from+outside every table `W3C.lean` cites: `I(rdf:type)`, `I(rdfs:subClassOf)`, `I(rdfs:subPropertyOf)`,+`I(rdfs:domain)` and `I(rdfs:range)`. All five come from the RDF and RDFS *axiomatic triple* tables+of RDF 1.1 Semantics sections 8 and 9, re-read in the raw HTML on 15 September 2026. The second+kernel makes three of the same assumptions explicitly, as `c_type_IP`, `c_sco_IP` and `c_spo_IP` in+`isabelle/OO_Semantics.thy`, and needs no counterpart to the other two. An earlier version of this+documentation and of `W3C.lean` claimed the Lean needed none of them and was therefore ahead of the+Isabelle on this point; the opposite is true, and dropping the `IP` conjunct from `Interp.sat` moves+the obligation into the bridge rather than removing it.++`W3CModel` is also deliberately weaker than conformance, because `W3C` omits every table row no rule+consumes, so its class is larger than the bridge image. Both gaps run in the safe direction for+soundness, where a larger class makes the conclusion stronger, and neither runs in the safe+direction for a non-entailment result.**The claim that the result carries over to the OWL 2 Direct Semantics read through triples iswithdrawn.** Nobody verified it, and it is false as written for those twelve arms, which need a@@ -129,45 +146,89 @@ used to make: a model of the premises in which `x` is not a `C`. So the removedfact, not merely unjustified by the rule set the checker implements. The witness is the Herbrandinterpretation of the premises plus the single consequence the semantics does force.-### Which model class a negative result is about, and it is not the specification's+### Which model class a negative result is aboutEntailment transfers outward and non-entailment does not. A triple true in every model of the-weaker `Conditions` is true in every conforming interpretation, which is what-`W3CEntails.of_entails` proves; a triple *false* in some model of `Conditions` need not be false in-any conforming one, because that model need not be conforming.--**Every `¬ Entails`, every `¬ Unsat` and every `Model I G` in this repository is therefore a-statement about the Lean's own model class unless it is stated over `W3CModel`.** That includes the-second and third rows of the table above. Each is discharged by a Herbrand or a saturated-interpretation, and neither kind is a conforming one: a Herbrand witness carrying no `rdf:type`-triple has `IC` empty, so Table 5.8's backward direction forces `rdfs:subClassOf` and-`rdfs:subPropertyOf` triples that the witness does not contain.--Two of them now have conforming versions, in `lean/OOCert/W3CWitness.lean`:+weaker `Conditions` is true in every `W3CModel`, which is what `W3CEntails.of_entails` proves; a+triple *false* in some model of `Conditions` need not be false in any `W3CModel`, because that model+need not be one.++**So a `¬ Entails`, a `¬ Unsat` or an exhibited `Model I G` is a statement about the Lean's own+model class unless something restates it over `W3CModel`.** What that does *not* mean is that such a+restatement is hard. `IP` is a free parameter of `W3C`, not a field of `Interp`, and `sp_bwd`,+`dom_bwd` and `rng_bwd` are the only fields that take an `IP` membership as a hypothesis, so+`IP := fun _ => False` makes all three vacuous. `sc_bwd` is guarded by `IC` instead, and over a+Herbrand interpretation `IC` is the set of things the graph types as `rdfs:Class`, so a witness+graph with no such typing makes that field vacuous too. Nine statements here are a `¬ Entails` or a+`¬ Unsat`. Five are now over `W3CModel`, four of them with their existing witness interpretations+unchanged:++| result | over `W3CModel` | how |+|---|---|---|+| `not_everything_is_entailed` | yes | `not_everything_is_w3c_entailed`, the empty graph's Herbrand interpretation |+| `the_natural_avf2_direction_is_not_entailed` | yes | `the_natural_avf2_direction_is_not_w3c_entailed`, a twenty-six-element structure built for it |+| `an_unlisted_individual_is_not_entailed` | yes | `an_unlisted_individual_is_not_w3c_entailed`, `ooWitness` unchanged |+| `membership_in_one_member_does_not_give_the_intersection` | yes | `membership_in_one_member_is_not_w3c_enough`, `intWitness` unchanged |+| `mix_not_absolutely_entailed` | yes | `mix_not_absolutely_w3c_entailed` in `Mixed.lean`, `mixH` unchanged |+| `the_old_svf_derivation_is_not_entailed` | no | `svf_witness_misses_the_restriction_typing` |+| `feed_is_not_refuted` | no | `feed_closure_misses_the_class_typing`, and `¬ Unsat` runs the wrong way |+| `and_the_old_verdict_does_not_notice` | no | `sc_fwd` fails on `grazeClosure` for the same reason |+| `not_unsat_of_joint_model` | no | a lemma with a hypothesis, same direction problem |++`Mixed.lean`'s `mix_relative_is_not_everything` and `HornWitness.lean`'s+`demo_not_everything_entailed` are `¬ EntailsR`, about the models of a graph that also satisfy a+supplied rule table. There is no `W3CEntailsR`, none is invented, and nothing is claimed about those+two beyond `Conditions`.++`mix_not_absolutely_entailed` is the one with a verdict hanging off it: it is the machine-checked+basis for a run reporting `entailed_under_supplied_rules` rather than `entailed`, and it is now the+strong version of that sentence rather than the one about this layer's own conditions.++The two obstructions are checked by `decide` rather than argued. `svfWitness` carries+`R owl:onProperty p` and types `R` as nothing, so RBS Table 5.3's `owl:onProperty` row fails on its+first conjunct; `feedClosure` carries `Lion rdfs:subClassOf Carnivore` and types nothing as an+`rdfs:Class`, so Table 5.8 row 1 forward fails on the `IC` conjunct it concludes. Neither field+mentions `IP`, so the empty-`IP` reading does not help.++**An earlier version of this section said the opposite, and the reason it gave was inverted.** It+read: "a Herbrand witness carrying no `rdf:type` triple has `IC` empty, so Table 5.8's backward+direction forces `rdfs:subClassOf` and `rdfs:subPropertyOf` triples that the witness does not+contain", and concluded that "every conforming countermodel has to be a hand-built finite+structure". An empty `IC` is exactly what makes `sc_bwd` *vacuous*; `sp_bwd`, `dom_bwd` and+`rng_bwd` are guarded by a parameter the refuter chooses; and four of the results above transfer+with nothing hand-built.++One obstruction from that paragraph survives, and it says something narrower than it was used for.+`RefuteWitness.lean`'s `Der`, the repository's only general "every graph has a model" machine,+cannot be extended to carry Table 5.8's backward halves: the constructor would put `Der` to the left+of an arrow and Lean rejects the strictly negative occurrence. That is mathematical and not an+artefact of Lean, because `sc_bwd` is antitone in `ICEXT(a)` and there is no least fixed point by+monotonicity. What follows is that there is no general *closure operator* taking any graph to a+`W3CModel`. What does not follow is that no particular Herbrand interpretation is one.++The live witness, in `lean/OOCert/W3CWitness.lean`:| theorem | says ||---|---|-| `live_is_a_w3c_model` | a seventeen-element interpretation meets the quoted cells of Tables 5.2, 5.3, 5.6, 5.8, 5.9, 5.12 and 5.13, so `W3C` is satisfiable |-| `live_is_live` | and it is not degenerate: `IC` has three members and is not the carrier, one class extension is everything, another is a proper subset witnessed on both sides, a third is empty, and the property that matters has a pair in it |+| `live_is_a_w3c_model` | a twenty-six-element interpretation meets the quoted cells of Tables 5.2, 5.3, 5.6, 5.8, 5.9, 5.12 and 5.13, so `W3C` is satisfiable |+| `live_is_live` | and it is not degenerate: `IC` is not the carrier, one class extension is everything, another is a proper subset witnessed on both sides, the filler extension is non-empty and proper, and `IEXT(p1)` is non-empty and a proper subset of `IEXT(p2)` |+| `live_exercises_every_arm` | all fourteen derivations fire at concrete instances of it, which is stronger than any field being non-empty |+| `live_fires_the_other_sixteen` | a satisfied antecedent for each of the other sixteen fields of `W3C`, guards and quantified clause together for the four backward ones |+| `live_leaves_exactly_these_five_vacuous` | and the five fields it does not exercise, named, none of which carries any of the fourteen arms; sixteen plus five is twenty-one, so neither number can drift || `the_natural_avf2_direction_is_not_w3c_entailed` | the reversed `scm-avf2` conclusion fails in that interpretation || `not_everything_is_w3c_entailed` | `W3CEntails` is not the trivial relation either |-`live_is_live` is compiled into the build on purpose. A soundness theorem over a degenerate model-class would look better than the assumption it replaced while proving less, so the liveness facts-are a `decide`-checked theorem rather than a sentence in a comment, and shortening the model to fix-a build failure breaks it rather than hollowing it out quietly.--The rest stay open, and the obstruction is recorded at each of them rather than worked around.-`RefuteWitness.lean`'s `Der`, which is the repository's only general "every graph has a model"-machine, cannot be extended to carry Table 5.8's backward halves: the constructor would put `Der` to-the left of an arrow and Lean rejects the strictly negative occurrence. The obstruction is-mathematical and not an artefact of Lean. `sc_bwd` is antitone in `ICEXT(a)`, so adding a `rdf:type`-triple can un-force a `rdfs:subClassOf` triple that `sc_fwd` still demands, and there is no least-fixed point by monotonicity. Every conforming countermodel has to be a hand-built finite structure.--`the_natural_avf2_direction_is_not_w3c_entailed` is also not a proof that the triple fails to be-OWL 2 RDF-Based entailed, and nobody should write that sentence. `W3CModel`'s class is still larger-than the conforming interpretations, because `W3C` omits every table row no rule consumes: the model+The first version of that model was vacuous where it mattered most and is recorded in the file as+such. `IEXT(p1)` and `ICEXT(Y)` were both empty, nine of the twenty-one fields of `W3C` held because+nothing was in the extension their antecedent reads, six of the fourteen arms rested entirely on+those nine, and the refutation's own premise `p1 rdfs:subPropertyOf p2` held because `sp_bwd` had+nothing to check. Worse, the two emptinesses were conjuncts of `live_is_live`, the theorem whose job+is to catch exactly that. The rebuilt model gives `p1` a pair, `Y` a member, and each of the six+dead arms a configuration to fire on.++`the_natural_avf2_direction_is_not_w3c_entailed` is still not a proof that the triple fails to be+OWL 2 RDF-Based entailed, and nobody should write that sentence. `W3CModel`'s class is larger than+the conforming interpretations, because `W3C` omits every table row no rule consumes: the modelviolates Table 5.2's `owl:Thing | = IR` and `rdf:Property | = IP` rows, and the axiomatic tripletables are absent entirely. It is closer to the specification than anything else here and it doesnot arrive.diff --git a/lean/OOCert/Mixed.lean b/lean/OOCert/Mixed.leanindex 14752031..42e74a1f 100644--- a/lean/OOCert/Mixed.lean+++ b/lean/OOCert/Mixed.lean@@ -1,4 +1,5 @@import OOCert.Soundness+import OOCert.W3Cimport OOCert.Witnessimport OOCert.Hornimport OOCert.HornBuiltin@@ -461,6 +462,79 @@ theorem mix_not_absolutely_entailed : ¬ Entails mixG ⟨mAcme, mStatus, mCompliabsurd (h (herbrand mixH) mixH_is_a_model)(by decide : (⟨mAcme, mStatus, mCompliant⟩ : Triple) ∉ mixH)+/-! ### The same distinction over the specification's own conditions++`mix_not_absolutely_entailed` is the machine-checked basis for a run reporting+`entailed_under_supplied_rules` rather than `entailed`, so it is the one+negative result in this repository with a verdict hanging off it. Until+15 September 2026 it was a statement about `Semantics.lean`'s `Conditions`+alone, and it said so nowhere: this file was byte-identical to the one that+predates `W3C.lean` while `Semantics.lean`'s docstring claimed the caveat was+recorded "at the point of the assumption". It was not. It is now, and it is a+discharge rather than a caveat.++`IP` is a free parameter of `W3C`, so `IP := fun _ => False` makes `sp_bwd`,+`dom_bwd` and `rng_bwd` vacuous; `mixH` types nothing as an `rdfs:Class`, so+`IC` is empty and `sc_bwd` is vacuous too; and `mixH` uses none of the+vocabulary the remaining forward fields mention. Table 5.4's `owl:intersectionOf`+equality is the one field that has to be earned, and `mixH` satisfies it in both+directions, because acme is the only `Supplier` and also the only thing that is+both a `Vendor` and an `Approved`. -/++/-- **`mixH` is a `W3CModel` of `mixG`**, not merely a model of the weaker+`Conditions`. -/+theorem mixH_is_a_w3c_model : W3CModel (herbrand mixH) (fun _ => False) mixG where+ conds :=+ { sc_fwd := fun a b h => absurd h (not_mem_pred mixH V.subClassOf (by decide) a b)+ sc_bwd := fun a _ ha => absurd ha (not_typed mixH V.Class (by decide) a)+ sp_fwd := fun a b h => absurd h (not_mem_pred mixH V.subPropertyOf (by decide) a b)+ sp_bwd := fun _ _ h => absurd h (fun x => x)+ dom_fwd := fun p c h => absurd h (not_mem_pred mixH V.domain (by decide) p c)+ dom_bwd := fun _ _ h => absurd h (fun x => x)+ rng_fwd := fun p c h => absurd h (not_mem_pred mixH V.range (by decide) p c)+ rng_bwd := fun _ _ h => absurd h (fun x => x)+ eqc_fwd := fun a b h => absurd h (not_mem_pred mixH V.equivalentClass (by decide) a b)+ eqp_fwd := fun a b h => absurd h (not_mem_pred mixH V.equivalentProperty (by decide) a b)+ same_fwd := fun a b h => absurd h (not_mem_pred mixH V.sameAs (by decide) a b)+ inv_fwd := fun p q h => absurd h (not_mem_pred mixH V.inverseOf (by decide) p q)+ sym_fwd := fun p h => absurd h (not_typed mixH V.symmetricProperty (by decide) p)+ trp_fwd := fun p h => absurd h (not_typed mixH V.transitiveProperty (by decide) p)+ svf_eq := fun z c _ h => absurd h (not_mem_pred mixH V.someValuesFrom (by decide) z c)+ avf_eq := fun z c _ h => absurd h (not_mem_pred mixH V.allValuesFrom (by decide) z c)+ hv_eq := fun z a _ h => absurd h (not_mem_pred mixH V.hasValue (by decide) z a)+ restr_IC := fun x h => absurd h (not_typed mixH V.Restriction (by decide) x)+ svf_typ := fun z c h => absurd h (not_mem_pred mixH V.someValuesFrom (by decide) z c)+ avf_typ := fun z c h => absurd h (not_mem_pred mixH V.allValuesFrom (by decide) z c)+ onp_typ := fun z p h => absurd h (not_mem_pred mixH V.onProperty (by decide) z p) }+ facts := fun t ht => List.mem_cons_of_mem _ ht+ int_eq := by+ intro c l ms hc hchain x+ obtain ⟨rfl, rfl⟩ := mix_only_int _ hc rfl+ rw [mix_chain_l0 ms hchain]+ constructor+ · intro hx m hm+ obtain ⟨h1, h2⟩ := mixH_int2_closed ⟨x, V.type, mSupplier⟩ hx rfl rfl+ rcases List.mem_cons.mp hm with rfl | hm+ · exact h1+ · rcases List.mem_cons.mp hm with rfl | hm+ · exact h2+ · cases hm+ · intro hall+ exact mixH_int_closed ⟨x, V.type, mVendor⟩ (hall mVendor (by simp))+ ⟨x, V.type, mApproved⟩ (hall mApproved (by simp)) ⟨rfl, rfl, rfl, rfl, rfl⟩+ uni_eq := fun c l _ hc => absurd hc (not_mem_pred mixG V.unionOf (by decide) c l)+ oneOf_eq := fun c l _ hc => absurd hc (not_mem_pred mixG V.oneOf (by decide) c l)++/-- **The distinction, over the `W3CModel` class.** acme's compliance is+not entailed by the asserted graph even when "entailed" quantifies over every+interpretation meeting the quoted cells of `W3C.lean`. This is the sentence the+report's `entailed_under_supplied_rules` verdict rests on, and it is now the+strong one rather than the one about this layer's own conditions. -/+theorem mix_not_absolutely_w3c_entailed :+ ¬ W3CEntails mixG ⟨mAcme, mStatus, mCompliant⟩ := fun h =>+ absurd (h (herbrand mixH) (fun _ => False) mixH_is_a_w3c_model)+ (by decide : (⟨mAcme, mStatus, mCompliant⟩ : Triple) ∉ mixH)+/-- `mixG` closed under the supplied rule as well. -/def mixH2 : List Triple := ⟨mAcme, mStatus, mCompliant⟩ :: mixH@@ -683,6 +757,14 @@ As `Soundness.lean`, `Horn.lean` and `Witness.lean` pin theirs. A `sorry`, or a#guard_msgs in#print axioms mix_not_absolutely_entailed+/-- info: 'OOCert.mixH_is_a_w3c_model' depends on axioms: [propext] -/+#guard_msgs in+#print axioms mixH_is_a_w3c_model++/-- info: 'OOCert.mix_not_absolutely_w3c_entailed' depends on axioms: [propext] -/+#guard_msgs in+#print axioms mix_not_absolutely_w3c_entailed+/-- info: 'OOCert.mix_relative_is_not_everything' depends on axioms: [propext] -/#guard_msgs in#print axioms mix_relative_is_not_everythingdiff --git a/lean/OOCert/Refute.lean b/lean/OOCert/Refute.leanindex 0dd31476..5c2e804f 100644--- a/lean/OOCert/Refute.lean+++ b/lean/OOCert/Refute.lean@@ -406,7 +406,24 @@ theorem joint_model_of_closure {G : List Triple} {D : Triple → Prop}⟨herbrandP D, hD, ⟨fun a b hab x h1 h2 => hdw a b x hab h1 h2⟩⟩/-- A graph with a joint model is not refutable, so `refutation_sound` is not a-theorem about an empty model class. -/+theorem about an empty model class.++**Relative to `Conditions` and `RefuteConditions`, and it does not transfer to+the OWL 2 RDF-Based Semantics.** This note is here rather than only in+`Semantics.lean` because a caveat that lives in one file is a caveat that goes+stale; until 15 September 2026 this one did, and this file was byte-identical to+the version that predates `lean/OOCert/W3C.lean`.++The direction is what stops it. `Unsat G` quantifies negatively over a model+class, so shrinking the class to `W3CModel` makes `Unsat` EASIER and `¬ Unsat`+HARDER. The consequence runs the useful way for the positive result and the+useless way for this one: `refutation_sound`'s `Unsat G` does transfer, because+every `W3CModel` of `G` is a `Model` of `G`, so an accepted refutation rules out+conforming interpretations too. A `¬ Unsat` needs a `W3CModel` that also+satisfies `RefuteConditions`, and neither this lemma nor+`RefuteWitness.lean`'s `feed_is_not_refuted` supplies one. The obstruction for+`feed` in particular is checked at+`RefuteWitness.lean`'s `feed_closure_misses_the_class_typing`. -/theorem not_unsat_of_joint_model {G : List Triple}(h : ∃ I : Interp, Model I G ∧ RefuteConditions I) : ¬ Unsat G := byobtain ⟨I, hM, hR⟩ := hdiff --git a/lean/OOCert/RefuteWitness.lean b/lean/OOCert/RefuteWitness.leanindex 603c3961..ed5e57b7 100644--- a/lean/OOCert/RefuteWitness.lean+++ b/lean/OOCert/RefuteWitness.lean@@ -1,4 +1,5 @@import OOCert.Refute+import OOCert.W3C/-!# Witnesses for the refutation layer@@ -489,8 +490,46 @@ private theorem feed_closure_has_no_clash :¬(t.p = RV.disjointWith ∧ u.p = V.type ∧ u.o = t.s ∧v.p = V.type ∧ v.o = t.o ∧ v.s = u.s) := by decide+/-! `feed_is_not_refuted` below is about `Semantics.lean`'s `Conditions`, not+about the OWL 2 RDF-Based Semantics, and this is where that is recorded. Until+15 September 2026 it was recorded only in `Semantics.lean`'s docstring, with a+reason that turned out to be wrong; this file was byte-identical to the one that+predates `W3C.lean` while that docstring said the caveat sat "at the point of the+assumption".++Two things stop the transfer and they are different in kind.++FIRST, the direction. `Unsat G` is a universal negative over a model class, so a+SMALLER class makes it EASIER to hold and `¬ Unsat` harder. Positive refutations+transfer outward for free, because `W3CModel I IP G → Model I G`; `¬ Unsat` does+not, and would need a `W3CModel` that also satisfies `RefuteConditions`.++SECOND, this particular interpretation is not one. `feed` carries+`Lion rdfs:subClassOf Carnivore` and types nothing as an `rdfs:Class`, so+`W3C.sc_fwd`, Table 5.8 row 1 forward, fails: its conclusion demands+`Lion ∈ IC`. `sc_fwd` mentions no `IP`, so the `IP := fun _ => False` reading+that carries four other non-entailments in this repository over to the conforming+class does not help here. -/++/-- The obstruction, checked rather than asserted. The closure has the+`rdfs:subClassOf` triple that fires `W3C.sc_fwd` and no typing to satisfy the+`IC` conjunct that field concludes, so no choice of `IP` makes+`herbrandL feedClosure` a `W3CModel`.++`V.Class` is taken from `W3C.lean` rather than respelled here, which is why this+file imports it: the IRI is the whole content of the theorem and a second copy of+it would be a second thing to keep in step. -/+theorem feed_closure_misses_the_class_typing :+ ((⟨rLion, V.subClassOf, rCarnivore⟩ : Triple) ∈ feedClosure) ∧+ (⟨rLion, V.type, V.Class⟩ : Triple) ∉ feedClosure := by decide++/-- **A graph with a disjointness axiom that is NOT refutable.** Without this the-refutation layer would be consistent with a checker that accepts everything. -/+refutation layer would be consistent with a checker that accepts everything.++Relative to `Conditions` and to `RefuteConditions`, not to the specification's+model class; the paragraph above says what stops the transfer and+`feed_closure_misses_the_class_typing` pins it. -/theorem feed_is_not_refuted : ¬ Unsat feed := byrefine not_unsat_of_joint_model (no_violation_means_a_joint_model feed feed_has_no_sameAs ?_)intro c1 c2 x h1 h2 h3@@ -542,6 +581,19 @@ refuted graph checks green and means nothing, and nothing in`certificate_sound` reports that. This is why `oo-refute guard` exists. -/theorem the_junk_triple_is_not_in_the_closure : rJunk ∉ grazeClosure := by decide+/-- The same obstruction as `feed_closure_misses_the_class_typing`, on the other+graph this file builds a model of. -/+theorem graze_closure_misses_the_class_typing :+ ((⟨rLion, V.subClassOf, rCarnivore⟩ : Triple) ∈ grazeClosure) ∧+ (⟨rLion, V.type, V.Class⟩ : Triple) ∉ grazeClosure := by decide++/-- About `Semantics.lean`'s `Conditions`, like every other negative result built+from a Herbrand interpretation here, and it is one of the four that does not+transfer to `W3CModel`. `grazeClosure` carries `Lion rdfs:subClassOf Carnivore`+and types nothing as an `rdfs:Class`, so `W3C.sc_fwd` fails on the `IC` conjunct+it concludes; `graze_closure_misses_the_class_typing` just above pins that, and the+field mentions no `IP`, so the empty-`IP` reading that carries four other+non-entailments over does not apply. -/theorem and_the_old_verdict_does_not_notice : ¬ Entails graze rJunk := fun h =>the_junk_triple_is_not_in_the_closure(h (herbrandL grazeClosure) (graze_closure_is_plain.model graze_inside_its_closure))@@ -568,6 +620,14 @@ theorem and_the_old_verdict_does_not_notice : ¬ Entails graze rJunk := fun h =>#guard_msgs in#print axioms graze_is_refuted+/-- info: 'OOCert.feed_closure_misses_the_class_typing' depends on axioms: [propext] -/+#guard_msgs in+#print axioms feed_closure_misses_the_class_typing++/-- info: 'OOCert.graze_closure_misses_the_class_typing' depends on axioms: [propext] -/+#guard_msgs in+#print axioms graze_closure_misses_the_class_typing+/-- info: 'OOCert.feed_is_not_refuted' depends on axioms: [propext] -/#guard_msgs in#print axioms feed_is_not_refuteddiff --git a/lean/OOCert/Semantics.lean b/lean/OOCert/Semantics.leanindex 560d3702..b296657f 100644--- a/lean/OOCert/Semantics.lean+++ b/lean/OOCert/Semantics.lean@@ -111,48 +111,71 @@ non-vacuity witnesses at risk, which is the observable symptom of a conditionthat has gone too far.**THE ARGUMENT SECURES POSITIVE RESULTS ONLY, AND THIS IS THE SENTENCE THE FILE-WAS MISSING.** `Conditions` admits MORE interpretations than the specification-does. A triple true in every one of them is true in every conforming one, so-`Entails` transfers outward and `W3CEntails.of_entails` proves it. Nothing-transfers the other way. A model of `Conditions` need not be a conforming+WAS MISSING.** `Conditions` admits MORE interpretations than `W3C.lean`'s `W3C`+does. A triple true in every one of them is true in every `W3CModel`, so+`Entails` transfers outward and `W3CEntails.of_entails` proves it. Reading that+one step further out, to the specification's own conforming interpretations,+costs a prose bridge and five axiomatic-triple facts, and `W3C.lean` states both+rather than folding them into the word "conforming". Nothing transfers the other+way. A model of `Conditions` need not be a conforminginterpretation, so `¬ Entails G t` does NOT give `¬ W3CEntails G t`, and neitherdoes `¬ Unsat`, and neither does exhibiting a `Model I G`.-Consequently **every `¬ Entails`, every `¬ Unsat` and every `Model I G` in this-repository is a statement about THIS model class and not about the-specification's** unless it is stated over `W3CModel`. That covers-`Witness.lean`'s `not_everything_is_entailed`,-`the_old_svf_derivation_is_not_entailed`,-`the_natural_avf2_direction_is_not_entailed`,-`an_unlisted_individual_is_not_entailed` and-`membership_in_one_member_does_not_give_the_intersection`; `Mixed.lean`'s-`mix_not_absolutely_entailed`, which is the machine-checked basis for reporting-`entailed_under_supplied_rules` rather than `entailed`; `Refute.lean`'s-`not_unsat_of_joint_model`; and `RefuteWitness.lean`'s `feed_is_not_refuted`,-`unsatisfiable_means_a_violation` and every `Model` it builds. Each is refuted-by a Herbrand or a saturated interpretation, and neither kind is a `W3CModel`:-a Herbrand witness that carries no `rdf:type` triple has `IC` empty, so-Table 5.8's backward direction forces `rdfs:subClassOf` and `rdfs:subPropertyOf`-triples the witness does not contain.--Two of them are closed over the conforming class, both in `W3CWitness.lean`.-`the_natural_avf2_direction_is_not_w3c_entailed` refutes the reversed `scm-avf2`-with a seventeen-element model that meets the quoted cells, and it is the only-one that needed a new structure built for it. `not_everything_is_w3c_entailed`-is the other, and it came free: over the EMPTY graph every antecedent of `W3C` is-false and `IP := fun _ => False` makes the four backward conditions vacuous, so-the same interpretation serves.--The rest are open, and the obstruction is stated rather than worked around:-`RefuteWitness.lean`'s `Der` cannot carry Table 5.8's backward halves, because a-constructor whose premise contains `∀ x, Der G ⟨x, type, a⟩ → Der G ⟨x, type, b⟩`-puts `Der` to the left of an arrow and Lean rejects the strictly negative-occurrence. The obstruction is mathematical and not a Lean artefact: `sc_bwd` is-ANTITONE in `ICEXT(a)`, so adding a `rdf:type` triple can un-force a-`rdfs:subClassOf` triple that `sc_fwd` still demands, and there is no least-fixed point by monotonicity. Every conforming countermodel must therefore be a-hand-built finite structure, with no Herbrand shortcut and no-`closure_is_a_model` shortcut.+Consequently a `¬ Entails`, a `¬ Unsat` or a `Model I G` here is a statement+about THIS model class and not about the specification's, unless something+restates it over `W3CModel`. The state of each is recorded at the theorem itself+as well as here, because a summary that lives in one file is a summary that goes+stale, and this one did.++Nine statements in this repository are a `¬ Entails` or a `¬ Unsat`. Five are+restated over `W3CModel`, four are not, and the four say which field stops them.++| result | over `W3CModel` | where |+|---|---|---|+| `not_everything_is_entailed` | yes | `not_everything_is_w3c_entailed` |+| `the_natural_avf2_direction_is_not_entailed` | yes | `the_natural_avf2_direction_is_not_w3c_entailed`, the one that needed a structure built for it |+| `an_unlisted_individual_is_not_entailed` | yes | `an_unlisted_individual_is_not_w3c_entailed`, same witness graph |+| `membership_in_one_member_does_not_give_the_intersection` | yes | `membership_in_one_member_is_not_w3c_enough`, same witness graph |+| `mix_not_absolutely_entailed` | yes | `mix_not_absolutely_w3c_entailed`, in `Mixed.lean`, same witness graph |+| `the_old_svf_derivation_is_not_entailed` | no | `onp_typ` fails; checked at `svf_witness_misses_the_restriction_typing` |+| `feed_is_not_refuted` | no | `sc_fwd` fails; checked at `feed_closure_misses_the_class_typing`, and `¬ Unsat` runs the wrong way |+| `and_the_old_verdict_does_not_notice` | no | `sc_fwd` fails on `grazeClosure` for the same reason |+| `not_unsat_of_joint_model` | no | a lemma with a hypothesis rather than a witness, same direction problem |++Two further negatives, `Mixed.lean`'s `mix_relative_is_not_everything` and+`HornWitness.lean`'s `demo_not_everything_entailed`, are `¬ EntailsR`: statements+about the models of a graph that ALSO satisfy a supplied rule table. There is no+`W3CEntailsR` and this file does not invent one, so nothing is claimed about them+beyond `Conditions`.++**An earlier version of this paragraph got the reason wrong and the conclusion+with it**, and the correction is recorded rather than edited away because the+wrong version is what the project told people. It read: "a Herbrand witness that+carries no `rdf:type` triple has `IC` empty, so Table 5.8's backward direction+forces `rdfs:subClassOf` and `rdfs:subPropertyOf` triples the witness does not+contain", and it concluded that "every conforming countermodel must therefore be+a hand-built finite structure".++Both halves are false and the first is inverted. An empty `IC` makes `sc_bwd`+VACUOUS, not demanding: its antecedents are `I.IC a → I.IC b → …` and they have+no instances. `sp_bwd`, `dom_bwd` and `rng_bwd` are guarded by `IP`, which is a+free PARAMETER of `W3C` and not a field of `Interp`, so the refuter chooses it;+`IP := fun _ => False` makes all three vacuous. Four of the results above+transfer on exactly that, with the existing Herbrand witnesses unchanged and+nothing hand-built. The mistake was to treat `live_is_bridge_coherent`, which is+an extra property the `W3CWitness.lean` model happens to have, as though it were+a requirement of `W3CModel`.++One obstruction in that paragraph survives and it is worth keeping, because it+says something different from what it was used for. `RefuteWitness.lean`'s `Der`+cannot carry Table 5.8's backward halves: a constructor whose premise contains+`∀ x, Der G ⟨x, type, a⟩ → Der G ⟨x, type, b⟩` puts `Der` to the left of an arrow+and Lean rejects the strictly negative occurrence, and that is mathematical+rather than a Lean artefact, because `sc_bwd` is ANTITONE in `ICEXT(a)` and there+is no least fixed point by monotonicity. What follows from it is that there is no+general CLOSURE OPERATOR taking any graph to a `W3CModel`. What does not+follow is that no particular Herbrand interpretation is a `W3CModel`, and+that is the step the old paragraph took.`scm-dom1` is the one that had to be checked rather than assumed. Under RDFSemantics `rdfs:domain` carries only the *if* direction and the rule does NOTdiff --git a/lean/OOCert/W3C.lean b/lean/OOCert/W3C.leanindex cab08d83..405be7b5 100644--- a/lean/OOCert/W3C.lean+++ b/lean/OOCert/W3C.lean@@ -56,18 +56,33 @@ discipline exists to prevent, so the strengthening is quarantined here, whereit shrinks nothing: `Entails` does not mention this structure.The theorem that pays for the quarantine is `W3CEntails.of_entails`. It says-that everything `Entails` already gives is true in every interpretation meeting-the specification conditions, and the fourteen arms that used to be posited are-steps inside its proof. `certificate_sound` keeps its exact statement and its-exact axiom footprint.+that everything `Entails` already gives is true in every `W3CModel`, and the+fourteen arms that used to be posited are steps inside its proof.+`certificate_sound` keeps its exact statement and its exact axiom footprint.++**`W3CModel` is not the same thing as a conforming interpretation, and no+document in this repository may say that it is.** Two gaps separate them, both+stated below and both stated again at `certificate_w3c_sound`: the reading of one+as the other is prose rather than a theorem, and `W3C` omits every table row no+rule consumes, so its class is strictly larger than the bridge image. Both run in+the safe direction for THIS theorem and neither runs in the safe direction for a+non-entailment result.`IP` is a PARAMETER of this structure rather than a field of `Interp`, which is-what makes the whole file additive. It stays completely free: not one of the-fourteen derivations consumes a free-standing `IP` membership, because every-`IP` fact they use is produced by a forward condition applied to a premise-triple. The second formalisation in `isabelle/` needs three axiomatic-triple-consequences (`c_type_IP`, `c_sco_IP`, `c_spo_IP`, `OO_Semantics.thy`) for the-same table; this file needs none, because `Interp.sat` has no `IP` conjunct.+what makes the whole file additive. It stays completely free INSIDE the+derivations: not one of the fourteen consumes a free-standing `IP` membership,+because every `IP` fact they use is produced by a forward condition applied to a+premise triple.++That is a fact about the derivations and it is NOT a claim about the layer as a+whole, which an earlier draft of this paragraph made. It said that the second+formalisation in `isabelle/` needs three axiomatic-triple consequences+(`c_type_IP`, `c_sco_IP`, `c_spo_IP`, `OO_Semantics.thy`) for the same table+while "this file needs none, because `Interp.sat` has no `IP` conjunct". The+conclusion is inverted. Dropping the `IP` conjunct from `Interp.sat` does not+remove those obligations, it MOVES them out of the proofs and into the bridge,+and the bridge needs FIVE of them where Isabelle needs three. They are listed in+the next section, because a cost that is paid somewhere else is still paid.## The bridge to a conforming interpretation, which is prose and not a theorem@@ -110,6 +125,41 @@ would move `Entails` in two directions at once, making `facts` harder to supplyand the conclusion harder to use, and it buys nothing the bridge definitionabove does not already buy.+### The five facts the bridge assumes, which are not cells of anything quoted here++Read `iext` that way and a conforming interpretation does NOT satisfy every field+below for free. `I.sc a b` unfolds to `IP(I(rdfs:subClassOf)) ∧ (a, b) ∈+IEXT(I(rdfs:subClassOf))`, and the table cell supplies only the second conjunct;+`I.cext c x` unfolds to `IP(I(rdf:type)) ∧ (x, c) ∈ IEXT(I(rdf:type))`, and the+same is true there. So five `IP` memberships have to come from somewhere, and+every one of them comes from the RDF and RDFS AXIOMATIC TRIPLE tables, which this+file quotes no cell of.++| fact | needed by | source, re-read in the Recommendation on 15 September 2026 |+|---|---|---|+| `I(rdf:type) ∈ IP` | every field whose conclusion mentions `cext`, which is all of `sc_fwd`, `dom_fwd`, `rng_fwd`, `eqc_fwd`, `svf_eq`, `avf_eq`, `hv_eq`, `restr_IC`, `svf_typ`, `avf_typ`, `onp_typ`, and the `IC` antecedents of `sc_bwd`, `dom_bwd` and `rng_bwd` | RDF axiomatic triple `rdf:type rdf:type rdf:Property .`, whose truth puts its own predicate in `IP` by the section 5 clause above |+| `I(rdfs:subClassOf) ∈ IP` | `sc_bwd` | RDFS axiomatic triple `rdfs:subClassOf rdfs:domain rdfs:Class .`, read through Table 5.8 row 3 forward |+| `I(rdfs:subPropertyOf) ∈ IP` | `sp_bwd` | RDFS axiomatic triple `rdfs:subPropertyOf rdfs:domain rdf:Property .`, same row |+| `I(rdfs:domain) ∈ IP` | `dom_bwd` | RDFS axiomatic triple `rdfs:domain rdfs:domain rdf:Property .`, whose truth puts its own predicate in `IP` |+| `I(rdfs:range) ∈ IP` | `rng_bwd` | RDFS axiomatic triple `rdfs:range rdfs:domain rdf:Property .`, same |++Two fields consume one further `IP` membership in their bridge reading, and it is+NOT a sixth entry because it comes from a cell this file already quotes.+`svf_eq` and `hv_eq` conclude `I.iext p x y` in their left-to-right direction,+which under the bridge carries `IP p`, and Table 5.6 gives only the set+membership; `IP p` comes from Table 5.3's `owl:onProperty` row, quoted above+`onp_typ`. `avf_eq` needs nothing extra, because there `I.iext p x y` is a+hypothesis and supplies its own.++All five axiomatic triples were checked against the raw HTML of+<https://www.w3.org/TR/rdf11-mt/> on 15 September 2026, in the tables of sections+8 and 9. The second formalisation makes three of the same assumptions explicitly,+as `c_type_IP`, `c_sco_IP` and `c_spo_IP` in `isabelle/OO_Semantics.thy`, and it+needs no counterpart to the last two because its conditions are stated over the+raw `IEXT I (IS I rdfs_domain)` rather than over a bridged relation. On this+point the second kernel is AHEAD of this one and the earlier draft of this file+claimed the reverse.+## Sources, re-fetched from the raw HTML rather than from a renderingAll quotes below are from <https://www.w3.org/TR/owl2-rdf-based-semantics/>,@@ -553,7 +603,11 @@ theorem avf_sp (W : W3C I IP) (c1 c2 p1 p2 y : I.D)end W3C-/-! ## A conforming model of a graph, and the adequacy theorem -/+/-! ## A `W3CModel` of a graph, and the adequacy theorem++NOT a conforming interpretation: see the module docstring for the two gaps, and+`certificate_w3c_sound` for them again. The name is `W3CModel` everywhere and+nothing here abbreviates it to "conforming model". -//-- `I` with property set `IP` meets the specification conditions and models`G`. The three list rows are stated over `Chain`, which reads the list off the@@ -601,7 +655,11 @@ structure W3CModel (I : Interp) (IP : I.D → Prop) (G : List Triple) : Prop wheoneOf_eq : ∀ c l ms, (⟨c, V.oneOf, l⟩ : Triple) ∈ G → Chain G l ms →∀ x, (I.cext (I.ι c) x ↔ ∃ m ∈ ms, x = I.ι m)-/-- **Every conforming interpretation is a model here.**+/-- **Every `W3CModel` is a `Model`.**++Not "every conforming interpretation is a model here": that sentence needs the+prose bridge and the five axiomatic-triple facts in the module docstring, and+this theorem quantifies over `W3CModel`, which is a Lean structure.Twelve of the twenty-three `Conditions` fields below are derivations rather thanprojections: `sc_trans`, `sp_trans`, `eqc`, `eqp`, `svf_sc`, `svf_sp`,@@ -652,16 +710,29 @@ one. -/def W3CEntails (G : List Triple) (t : Triple) : Prop :=∀ (I : Interp) (IP : I.D → Prop), W3CModel I IP G → I.sat t-/-- **The sentence the layer can put its name to.** Everything `Entails` gives-is true in every conforming interpretation of the graph, and the fourteen-conditions that used to be posited are steps inside the proof of it.+/-- **The sentence the layer can put its name to**, and it is about `W3CModel`+and not about a conforming interpretation. Everything `Entails` gives is true in+every `W3CModel` of the graph, and the fourteen conditions that used to be+posited are steps inside the proof of it. Reading that outward, to the+specification's own interpretations, costs the prose bridge and the five+axiomatic-triple facts in the module docstring; `certificate_w3c_sound` says so+again where a reader will hit it.The transfer runs in this direction and only this one. `Conditions` admits moreinterpretations than `W3C` does, so a claim true in all of them is true in all-of the smaller class. The converse fails, which is why a `¬ Entails` result-does NOT give `¬ W3CEntails`, and why every non-entailment witness in-`Witness.lean`, `Refute.lean`, `RefuteWitness.lean` and `Mixed.lean` is a-statement about the `Conditions` model class alone. -/+of the smaller class. The converse fails: a `¬ Entails` result does NOT give+`¬ W3CEntails`, because the model refuting the first need not be a `W3CModel`.++What that does NOT mean is that every non-entailment here is stuck. It says only+that each one needs its own proof, and four of the seven in this repository got+one for free, because the interpretations they already used ARE `W3CModel`s once+`IP` is instantiated to the empty predicate. `IP` is a free parameter of `W3C`+and `sp_bwd`, `dom_bwd` and `rng_bwd` are the only fields that take an `IP`+membership as a hypothesis, so `IP := fun _ => False` makes all three vacuous; a+witness graph with no `rdfs:Class` typing makes `sc_bwd` vacuous too, because+`I.IC` is then empty. `W3CWitness.lean` and `Mixed.lean` carry the four, and the+three that do not transfer carry the field that fails, checked rather than+asserted. -/theorem W3CEntails.of_entails {G : List Triple} {t : Triple} (h : Entails G t) :W3CEntails G t :=fun _ _ W => h _ W.toModeldiff --git a/lean/OOCert/W3CWitness.lean b/lean/OOCert/W3CWitness.leanindex 427598b2..ad133025 100644--- a/lean/OOCert/W3CWitness.lean+++ b/lean/OOCert/W3CWitness.lean@@ -2,12 +2,13 @@ import OOCert.W3Cimport OOCert.Witness/-!-# A LIVE conforming model, and the first non-entailment that is about the specification+# A LIVE `W3CModel`, and the non-entailments that are about the specification`W3C.lean` derives fourteen arms from quoted specification cells. That result isworth nothing until something exhibits a `W3CModel`, and it is worth very littleif the thing that exhibits one is degenerate. This file builds a model that is-not, and uses it twice.+not, and it collects every non-entailment in the repository that is about the+`W3CModel` class rather than about `Semantics.lean`'s weaker `Conditions`.## Why `saturated` is not enough@@ -18,83 +19,136 @@ it says nothing, because such a model distinguishes no condition from any otherand refutes nothing. `W3CModel.toModel` proved over an unsatisfiable or adegenerate `W3C` would be a theorem about nothing that LOOKED better than theassumption it replaced, which is a strictly worse defect than the one being-repaired. The gate is therefore a NON-DEGENERATE model, and `live_is_live`-below compiles the liveness facts into the build so that the next person to-shorten this graph to fix a `decide` timeout breaks it rather than hollowing it-out silently.--| liveness fact | why it is the gate |-|---|---|-| `IC` has three members and does not swallow the carrier | the conditions are about classes, there are some, and not everything is one |-| `ICEXT(C1)` is the whole domain | a class extension is not empty |-| `ICEXT(C2)` is a PROPER subset of it | two distinct non-trivial extensions, so `sc_fwd` and `sc_bwd` have something to separate |-| `ICEXT(Y)` is empty and `sc_bwd` still does not collapse | the `IC` conjunct of trap T2 doing its job |-| `ICEXT(owl:Restriction)` is a PROPER subset of `IC` | Table 5.2's subset read as a subset and not as an equality |-| `IEXT(p2)` is non-empty | `dom_bwd` and `rng_bwd` are discharged over a relation with a pair in it, not vacuously |--That last row is the one neither formalisation had. The second kernel's-`isabelle/OO_NonVacuity.thy` claims at its own summary that `c_dom_bwd` and-`c_rng_bwd` are live in its model M3, while M3's proofs of those two derive-`False` from their antecedents and an inline comment in the same file says so.-Its M3 therefore exercises the two backward halves VACUOUSLY.-`live_dom_bwd_is_exercised` and `live_rng_bwd_is_exercised` discharge the-`forall x y` clause over `IEXT(p2) = {(alice, bob)}` instead.+repaired. The gate is therefore a NON-DEGENERATE model, and `live_is_live`,+`live_exercises_every_arm` and `live_leaves_exactly_these_five_vacuous` below+compile the liveness facts, their limits and the exact list of exceptions into+the build, so that the next person to shorten this graph to fix a `decide`+timeout breaks it rather than hollowing it out silently.++## The first version of this file was vacuous where it mattered most, and this is the repair++`live` had seventeen elements, `IEXT(p1)` was EMPTY and `ICEXT(Y)` was EMPTY,+and both emptinesses were written into the liveness gate as though they were+features of the model rather than holes in it. Two consequences, in ascending+order of seriousness.++Nine of the twenty-one fields of `W3C` held because nothing was in the extension+their antecedent reads, and SIX of the fourteen arms rested entirely on those+nine: `scm-eqc1` and `scm-eqp1` with two conclusions each, on `eqc_fwd` and+`eqp_fwd`; `scm-svf1` and `scm-svf2`, on `svf_eq` and `svf_typ`.+`owl:equivalentClass`, `owl:equivalentProperty`, `owl:someValuesFrom`,+`owl:hasValue`, `owl:sameAs`, `owl:inverseOf`, `owl:SymmetricProperty` and+`owl:TransitiveProperty` all denoted the same junk element, whose extensions were+empty.++Worse, the refutation the file exists to deliver was vacuous at its own+load-bearing premise. `avfPremises` asserts `p1 rdfs:subPropertyOf p2`, and in a+model with `IEXT(p1)` empty that triple holds because `sp_bwd`'s inclusion clause+has nothing to check. A refutation whose premise is satisfied for want of+anything to test establishes almost nothing, and the emptiness of `IEXT(p1)` was+a conjunct of `live_is_live`, which is the theorem whose job is to catch exactly+that.++The model below is the repair. `carl` is a third individual: `IEXT(p1)` is+`{(alice, carl)}` and `ICEXT(Y)` is `{carl}`, so `IEXT(p1)` is non-empty and a+PROPER subset of `IEXT(p2)`, and `p1 rdfs:subPropertyOf p2` holds here for a+reason. `A2`, `S1`, `S2`, `S3` and `q` are five further elements carrying the+`owl:allValuesFrom`, `owl:someValuesFrom`, `owl:equivalentClass` and+`owl:equivalentProperty` configurations that the six dead arms need.+`live_exercises_every_arm` applies all fourteen derivations at concrete instances+of this model, which is a strictly stronger gate than any field being non-empty.++## What is still vacuous, and it is exactly the fields that carry no arm++Five of the twenty-one fields still hold because nothing is in the extension+their antecedent reads: `same_fwd`, `sym_fwd`, `trp_fwd`, `inv_fwd` and `hv_eq`.+`live_leaves_exactly_these_five_vacuous` is that list as a theorem, so that it+cannot drift from the tables. None of the five carries any of the fourteen arms:+`Soundness.lean` takes all five out of `Conditions` by projection.++`same_fwd` cannot be exercised non-trivially by ANY model, and that is the+specification's doing. RBS reads `(a₁, a₂) ∈ IEXT(I(owl:sameAs))` **iff**+`a₁ = a₂`, so the only pairs a conforming interpretation may put there are+diagonal and the only instance of the field is `a = a`. The other four are+ordinary omissions that could be closed and are not: each needs its own+vocabulary element plus a property or a restriction to hold it, and every+condition here is quantified over the carrier three or four times, so the+`decide` cost grows as the fourth power of the carrier. Twenty-six elements+already cost about thirty seconds. The honest report is that these four are not+exercised, not that they cannot be.## The model-Carrier: two individuals `alice` and `bob`; the five terms `avfPremises`-mentions, as `c1`, `c2`, `filler`, `p1`, `p2`; the vocabulary denotations that-have to be told apart, as `ty`, `sco`, `spo`, `dm`, `rg`, `avf`, `onp`, `cls`,-`restr`; and one junk element `other` absorbing every remaining IRI. Seventeen-elements.--THREE rows are chosen and the conditions determine everything else.--* `IEXT(p1) := empty`, `IEXT(p2) := {(alice, bob)}`, `ICEXT(filler) := empty`.-* `avf_eq` then forces `ICEXT(c1)` to be the whole carrier, because nothing has- a `p1`-successor at all, and `ICEXT(c2)` to be the carrier minus `alice`,- because `alice` has the `p2`-successor `bob` and `bob` is not in- `ICEXT(filler)`.-* So `ICEXT(c1)` is not contained in `ICEXT(c2)`, and `sc_fwd` makes- `(c1, c2)` in `IEXT(rdfs:subClassOf)` IMPOSSIBLE. That is the refutation.-* And `ICEXT(c2)` IS contained in `ICEXT(c1)`, so `sc_bwd` FORCES- `(c2, c1)` into `IEXT(rdfs:subClassOf)`, which is what `scm-avf2` draws. The+Carrier: three individuals `alice`, `bob` and `carl`; seven classes, of which+six are restrictions; three properties; twelve vocabulary denotations that have+to be told apart; and one junk element `other` absorbing every remaining IRI.+Twenty-six elements.++ELEVEN rows are chosen and the conditions determine the other ten.++* `IEXT(p1) = IEXT(q) := {(alice, carl)}`, `IEXT(p2) := {(alice, bob),+ (alice, carl)}`, `ICEXT(Y) := {carl}`.+* `owl:allValuesFrom` puts `C1 = ∀p1.Y`, `C2 = ∀p2.Y` and `A2 = ∀p2.C1`;+ `owl:someValuesFrom` puts `S1 = ∃p2.Y`, `S2 = ∃p2.C1` and `S3 = ∃p1.Y`;+ `owl:equivalentClass` relates `S1` and `S2`, whose class extensions are equal;+ `owl:equivalentProperty` relates `p1` and `q`, whose property extensions are+ equal.+* `avf_eq` then forces `ICEXT(C1)` to be the whole carrier, because `alice`'s+ only `p1`-successor is `carl` and `carl` IS in `ICEXT(Y)`, and `ICEXT(C2)` to+ be the carrier minus `alice`, because `alice` also has the `p2`-successor `bob`+ and `bob` is not.+* So `ICEXT(C1)` is not contained in `ICEXT(C2)`, and `sc_fwd` makes+ `(C1, C2)` in `IEXT(rdfs:subClassOf)` IMPOSSIBLE. That is the refutation.+* And `ICEXT(C2)` IS contained in `ICEXT(C1)`, so `sc_bwd` FORCES+ `(C2, C1)` into `IEXT(rdfs:subClassOf)`, which is what `scm-avf2` draws. Thewitness confirms both halves of the pair, where the Herbrand witness in`Witness.lean` asserts one and leaves the other out by hand.-* `IC := {c1, c2, filler}` through `ICEXT(rdfs:Class)`, and- `ICEXT(owl:Restriction) := {c1, c2}`, a PROPER subset of `IC` per Table 5.2.+* `svf_eq` forces `ICEXT(S1) = ICEXT(S2) = ICEXT(S3) = {alice}`.+* `IC := {C1, C2, A2, Y, S1, S2, S3}` through `ICEXT(rdfs:Class)`, and+ `ICEXT(owl:Restriction)` is the six restrictions, a PROPER subset of `IC`+ per Table 5.2, because `Y` is a class and not a restriction.`owl:Restriction` itself is kept out of `IC`, so `sc_bwd` raises no obligationabout it.-* `sp_bwd`, `dom_bwd` and `rng_bwd` then force the rest of- `IEXT(rdfs:subPropertyOf)`, `IEXT(rdfs:domain)` and `IEXT(rdfs:range)`, and- those three tables are a FIXPOINT rather than a free choice: each is defined- in terms of the others, because `rdfs:subPropertyOf`, `rdfs:domain` and- `rdfs:range` are themselves members of `IP` and so are subject to the very- conditions they carry. The tables below are that fixpoint, reached in two- iterations. `(p2, p1)` is NOT in `IEXT(rdfs:subPropertyOf)`, because- `IEXT(p2)` is not contained in `IEXT(p1)`, and the domain and range tables- DIFFER, by exactly `(p2, c2)` and `(ty, c2)`, which is the model separating- the two rows of Table 5.8 rather than satisfying them both by accident.+* `sc_bwd`, `sp_bwd`, `dom_bwd` and `rng_bwd` then force the whole of+ `IEXT(rdfs:subClassOf)`, `IEXT(rdfs:subPropertyOf)`, `IEXT(rdfs:domain)` and+ `IEXT(rdfs:range)`, and the last three are a FIXPOINT rather than a free+ choice: each is defined in terms of the others, because `rdfs:subPropertyOf`,+ `rdfs:domain` and `rdfs:range` are themselves members of `IP` and so are+ subject to the very conditions they carry. The tables below are that fixpoint.+ `(p2, p1)` is NOT in `IEXT(rdfs:subPropertyOf)`, because `IEXT(p2)` is not+ contained in `IEXT(p1)`, and the domain and range tables DIFFER, at the rows+ for `p1`, `q`, `p2` and `rdf:type`, which is the model separating the two rows+ of Table 5.8 rather than satisfying them both by accident.+ `live_rng_bwd_is_exercised` pins one such separation, `(p2, C2)`, as a+ theorem: it is in the range extension and not in the domain extension.The fixpoint is why several entries look strange at first reading.`rdfs:domain` has `rdfs:subClassOf` in its subject position, for instance. That-is forced, not chosen: `rdfs:subClassOf` is in `IP`, `c1` is in `IC`, every-subject of `IEXT(rdfs:subClassOf)` lies in `ICEXT(c1)` because `ICEXT(c1)` is+is forced, not chosen: `rdfs:subClassOf` is in `IP`, `C1` is in `IC`, every+subject of `IEXT(rdfs:subClassOf)` lies in `ICEXT(C1)` because `ICEXT(C1)` iseverything, and Table 5.8's `rdfs:domain` row is an `iff`. RDF has no sortalseparation, and this is what that costs.-## `IP`, and why these nine+## `IP`, and why these thirteen`IP` must contain every element with a non-empty extension, or the structure isnot the image of any conforming interpretation under the bridge in `W3C.lean`(there, `iext p x y := IP p and (x, y) in IEXT p`, so a pair in an extensionimplies its predicate is in `IP`). `live_is_bridge_coherent` checks that below.--The nine are `p1`, `p2` and the seven vocabulary denotations that carry pairs,-and every one of them is in `IP` in any conforming interpretation:--* `owl:allValuesFrom` and `owl:onProperty` by RBS Table 5.3 directly, whose- second column reads "in IP" for both.+It is a property of THIS model and NOT a field of `W3CModel`, which is a+distinction an earlier draft of this file lost, at some cost; see the section on+the three transferred non-entailments below.++The thirteen are `p1`, `p2`, `q` and the ten vocabulary denotations that carry+pairs, and every one of them is in `IP` in any conforming interpretation:++* `owl:allValuesFrom`, `owl:someValuesFrom`, `owl:onProperty`,+ `owl:equivalentClass` and `owl:equivalentProperty` by RBS Table 5.3 directly,+ whose second column reads "∈ IP" for all five. The same table's third column+ gives `IEXT(I(owl:equivalentClass)) ⊆ IC × IC` and+ `IEXT(I(owl:equivalentProperty)) ⊆ IP × IP`, which this model also satisfies+ and which `W3C` does not state, because `eqc_fwd` and `eqp_fwd` get those+ memberships from Table 5.9 instead.* `rdf:type` by RDF 1.1 Semantics' RDF axiomatic triple`rdf:type rdf:type rdf:Property .` together with RBS Table 5.2's row`rdf:Property | in IC | = IP`.@@ -107,16 +161,22 @@ and every one of them is in `IP` in any conforming interpretation:`rdfs:subClassOf rdfs:domain rdfs:Class .`, whose truth puts`I(rdfs:subClassOf)` into `IP` through the forward direction of Table 5.8's`rdfs:domain` row.-* `p1` and `p2` because `onp_typ` demands it of both.+* `p1`, `p2` and `q` because `onp_typ` demands it of the first two and+ `eqp_fwd` of the third.++All five axiomatic triples were re-read in the raw HTML of+<https://www.w3.org/TR/rdf11-mt/> on 15 September 2026; they are the same five+the bridge in `W3C.lean` needs, and that file now lists them as the assumption+they are.## WHAT THIS WITNESS DOES NOT ESTABLISH, and it is less than it looksIt establishes `not W3CEntails avfPremises (C1, rdfs:subClassOf, C2)`. That isstrictly stronger than the existing Herbrand result, which is about the Lean'smuch larger `Conditions` class, and the refuting structure here satisfies-Table 5.8 in both directions, Table 5.6's `allValuesFrom` equality, and the-typing rows of Tables 5.2 and 5.3, none of which any Herbrand witness in this-repository does.+Table 5.8 in both directions, Table 5.6's `someValuesFrom` and `allValuesFrom`+equalities, Table 5.9's two rows, and the typing rows of Tables 5.2 and 5.3,+none of which the Herbrand witness in `Witness.lean` does.**It is NOT a proof that the triple is not OWL 2 RDF-Based entailed, and nobodyshould write that sentence.** Positive transfer runs outward and negative@@ -130,7 +190,7 @@ must satisfy:* `owl:Thing | in IC | = IR`. Here `owl:Thing` denotes `other`, whose classextension is empty and is not the carrier.* `rdf:Property | in IC | = IP`. Here `rdf:Property` also denotes `other`, so- its class extension is empty rather than the nine-element `IP`.+ its class extension is empty rather than the thirteen-element `IP`.* `rdfs:Resource | in IC | = IR`, and the RDF and RDFS axiomatic triple tablesthemselves, which are simply absent.@@ -140,41 +200,65 @@ this model over them. That is a different project, and the honest report is thatthis witness gets closer to the specification than anything else here and doesnot arrive.-## What it leaves untouched--It does NOT rehabilitate the other non-entailment results.-`Witness.lean`'s `the_old_svf_derivation_is_not_entailed`,-`an_unlisted_individual_is_not_entailed`,-`membership_in_one_member_does_not_give_the_intersection`,-`not_everything_is_entailed`, `Mixed.lean`'s `mix_not_absolutely_entailed`,-`Refute.lean`'s `not_unsat_of_joint_model` and `RefuteWitness.lean`'s-`feed_is_not_refuted` are all discharged by Herbrand or saturated-interpretations, and none of those is a `W3CModel`. The obstruction is recorded-at each of them and at `Semantics.lean`'s safety paragraph.+## What it leaves untouched, corrected++An earlier version of this section said that this file "does NOT rehabilitate+the other non-entailment results", and listed seven, on the ground that all of+them "are discharged by Herbrand or saturated interpretations, and none of those+is a `W3CModel`". That is false, it was false of one of the seven at the moment+it was written, and the reason given for it was inverted. Four of the seven are+`W3CModel`s with their witness graphs unchanged. `not_everything_is_w3c_entailed`+was the one already proved below while the list called it open; the section after+it proves two more; `Mixed.lean` proves the fourth. The three that do not+transfer carry the field that fails, checked by `decide` rather than asserted.-/namespace OOCert/-! ## The carrier -/-/-- The seventeen elements. `other` absorbs every IRI the model does not need to+/-- The twenty-six elements. `other` absorbs every IRI the model does not need totell apart, and its extension and class extension are both empty, which is what-makes every condition over a vocabulary term not named here hold vacuously. -/+makes every condition over a vocabulary term not named here hold vacuously. The+five terms that stay in `other` are listed, with what it costs, under "What is+still vacuous" in the module docstring. -/inductive LiveD where- /-- An individual with a `p2`-successor, and the only element outside- `ICEXT(c2)`. -/+ /-- An individual with a `p1`-successor and two `p2`-successors, and the only+ element outside `ICEXT(C2)`. -/| alice- /-- Its `p2`-successor, and the witness that `ICEXT(c2)` is not empty. -/+ /-- A `p2`-successor of `alice` that is NOT in `ICEXT(Y)`, which is what puts+ `alice` outside `ICEXT(C2)` and makes the refutation work. -/| bob- /-- `C1`, which `avfPremises` makes the universal restriction on `p1`. -/+ /-- A `p1`-successor of `alice` that IS in `ICEXT(Y)`. `carl` is the element+ the 15 September 2026 rebuild added: without it `IEXT(p1)` is empty, the+ premise `p1 rdfs:subPropertyOf p2` holds only because there is nothing to+ check, and `ICEXT(Y)` is empty as well. -/+ | carl+ /-- `C1`, the universal restriction `∀p1.Y` that `avfPremises` asserts. -/| c1- /-- `C2`, which `avfPremises` makes the universal restriction on `p2`. -/+ /-- `C2`, the universal restriction `∀p2.Y`. -/| c2- /-- `Y`, the shared filler, with an EMPTY class extension. -/+ /-- `A2`, a second universal restriction on `p2`, with filler `C1`. It exists+ so that `scm-avf1` has two `owl:allValuesFrom` restrictions sharing a property+ to order; nothing in `avfPremises` mentions it. -/+ | a2+ /-- `Y`, the shared filler. `ICEXT(Y) = {carl}`, NOT empty. -/| filler- /-- `p1`, with an empty property extension. -/+ /-- `S1`, the existential restriction `∃p2.Y`. -/+ | s1+ /-- `S2`, the existential restriction `∃p2.C1`. `S1` and `S2` order under+ `scm-svf1` because `Y` is below `C1`. -/+ | s2+ /-- `S3`, the existential restriction `∃p1.Y`. `S3` and `S1` order under+ `scm-svf2` because `p1` is below `p2`. -/+ | s3+ /-- `p1`, with the single pair `(alice, carl)`. -/| p1- /-- `p2`, with the single pair `(alice, bob)`. -/+ /-- `p2`, with `(alice, bob)` and `(alice, carl)`, so `IEXT(p1)` is a PROPER+ subset of `IEXT(p2)`. -/| p2+ /-- A second property with `IEXT(q) = IEXT(p1)`, exactly so that+ `owl:equivalentProperty` has a pair to relate. -/+ | q/-- `rdf:type`, whose extension IS `ICEXT`. -/| ty/-- `rdfs:subClassOf`. -/@@ -187,13 +271,19 @@ inductive LiveD where| rg/-- `owl:allValuesFrom`. -/| avf+ /-- `owl:someValuesFrom`. -/+ | svf/-- `owl:onProperty`. -/| onp+ /-- `owl:equivalentClass`. -/+ | eqc+ /-- `owl:equivalentProperty`. -/+ | eqp/-- `rdfs:Class`, whose class extension IS `IC` (Table 5.2, "= IC"). -/| cls/-- `owl:Restriction`, whose class extension is a PROPER subset of `IC`(Table 5.2 writes a subset, never an equality, and this model makes the- inclusion strict). -/+ inclusion strict: `Y` is a class and not a restriction). -/| restr/-- Every other IRI. -/| other@@ -204,7 +294,8 @@ namespace LiveD/-- The carrier as a list, so that quantification over it is decidable withoutMathlib's `Fintype`. -/def all : List LiveD :=- [alice, bob, c1, c2, filler, p1, p2, ty, sco, spo, dm, rg, avf, onp, cls, restr, other]+ [alice, bob, carl, c1, c2, a2, filler, s1, s2, s3, p1, p2, q,+ ty, sco, spo, dm, rg, avf, svf, onp, eqc, eqp, cls, restr, other]theorem mem_all (w : LiveD) : w ∈ all := by cases w <;> decide@@ -225,94 +316,139 @@ end LiveD/-! ## The interpretation -//-- The denotation table. Everything absent from it denotes `other`, so-`owl:someValuesFrom`, `owl:hasValue`, `owl:equivalentClass`,-`owl:equivalentProperty`, `owl:sameAs`, `owl:inverseOf`,-`owl:SymmetricProperty`, `owl:TransitiveProperty`, `owl:intersectionOf`,-`owl:unionOf`, `owl:oneOf`, `owl:Thing` and `rdf:Property` all land there-together and their conditions hold vacuously. That is a choice about what this-witness is FOR: it exercises Table 5.8 in both directions and Table 5.6's-`allValuesFrom` row, and it says nothing about the rest. The last two of those-IRIs are also where the model stops being a conforming interpretation; see the-module docstring. -/+`owl:hasValue`, `owl:sameAs`, `owl:inverseOf`, `owl:SymmetricProperty`,+`owl:TransitiveProperty`, `owl:intersectionOf`, `owl:unionOf`, `owl:oneOf`,+`owl:Thing` and `rdf:Property` all land there together and their conditions hold+vacuously. The first five of those are the fields this witness does not+exercise, and `live_leaves_exactly_these_five_vacuous` pins that list so it+cannot drift; the last five are where the model stops being a conforming+interpretation, and the module docstring says so. -/def liveTable : List (Term × LiveD) :=[ (V.type, .ty), (V.subClassOf, .sco), (V.subPropertyOf, .spo),(V.domain, .dm), (V.range, .rg),- (V.allValuesFrom, .avf), (V.onProperty, .onp),+ (V.allValuesFrom, .avf), (V.someValuesFrom, .svf), (V.onProperty, .onp),+ (V.equivalentClass, .eqc), (V.equivalentProperty, .eqp),(V.Class, .cls), (V.Restriction, .restr),(tC1, .c1), (tC2, .c2), (tY, .filler), (tp1, .p1), (tp2, .p2) ]/-- Terms denote their table entry, or `other`. -/def liveι (t : Term) : LiveD := (List.lookup t liveTable).getD .other-/-- `IP`. The eight elements that carry pairs, plus `p1`, which `onp_typ`-demands.+/-- `IP`. The thirteen elements that carry pairs.Every one of them is in `IP` in any conforming interpretation, by RBS Table 5.3-for `owl:allValuesFrom` and `owl:onProperty` and by the RDF and RDFS axiomatic-triples read through Table 5.2's `rdf:Property | = IP` row for the rest; the-citations are in the module docstring. Nothing else is in `IP`, which is what-keeps `sp_bwd`, `dom_bwd` and `rng_bwd` from forcing schema triples about+for `owl:allValuesFrom`, `owl:someValuesFrom` and `owl:onProperty`, by Table 5.9+for `owl:equivalentClass` and `owl:equivalentProperty`, and by the RDF and RDFS+axiomatic triples read through Table 5.2's `rdf:Property | = IP` row for the+rest; the citations are in the module docstring. Nothing else is in `IP`, which+is what keeps `sp_bwd`, `dom_bwd` and `rng_bwd` from forcing schema triples aboutindividuals. -/def isIP : LiveD → Bool- | .p1 | .p2 | .ty | .sco | .spo | .dm | .rg | .avf | .onp => true+ | .p1 | .p2 | .q | .ty | .sco | .spo | .dm | .rg+ | .avf | .svf | .onp | .eqc | .eqp => true| _ => false/-- The property extensions, as a decidable relation.-Three rows are chosen: `p1` empty, `p2` at `(alice, bob)`, and `ty` at `c1`,-`c2`, `cls` and `restr`. `sco`, `spo`, `dm` and `rg` are the FIXPOINT that-Table 5.8's two directions force from them, and the fixpoint is mutual, because-`spo`, `dm` and `rg` are themselves in `IP` and so appear on both sides of their-own conditions. Nothing here can be adjusted without the build going red. -/+ELEVEN rows are chosen: `IEXT(p1)`, `IEXT(q)`, `IEXT(p2)`, `ICEXT(Y)`, the five+constructor tables `owl:allValuesFrom`, `owl:someValuesFrom`, `owl:onProperty`,+`owl:equivalentClass` and `owl:equivalentProperty`, and the two class extensions+`ICEXT(rdfs:Class)` and `ICEXT(owl:Restriction)` that say which elements are+classes and which are restrictions. The other TEN are determined. The class+extensions of `C1`, `C2`, `A2`, `S1`, `S2` and `S3` are FORCED by Table 5.6, and+`sco`, `spo`, `dm` and `rg` are the FIXPOINT that Table 5.8's two directions+force from all of it. The fixpoint is+mutual, because `sco`, `spo`, `dm` and `rg` are themselves in `IP` or `IC` and so+appear on both sides of their own conditions. Nothing here can be adjusted+without the build going red. -/def liveIext : LiveD → LiveD → LiveD → Bool- -- ICEXT(rdfs:Class) = IC = {C1, C2, Y}. Table 5.2's "= IC" row.- | .ty, x, .cls => x == .c1 || x == .c2 || x == .filler- -- ICEXT(owl:Restriction) = {C1, C2}, a PROPER subset of IC. Table 5.2 writes- -- a subset there and never an equality.- | .ty, x, .restr => x == .c1 || x == .c2- -- ICEXT(C1) is everything. Forced: C1 is the universal restriction on p1 and- -- IEXT(p1) is empty.+ -- ICEXT(rdfs:Class) = IC = {C1, C2, A2, Y, S1, S2, S3}. Table 5.2's "= IC" row.+ | .ty, x, .cls =>+ x == .c1 || x == .c2 || x == .a2 || x == .filler || x == .s1 || x == .s2 || x == .s3+ -- ICEXT(owl:Restriction) = the six restrictions, a PROPER subset of IC: Y is a+ -- class and not a restriction. Table 5.2 writes a subset there, never an equality.+ | .ty, x, .restr =>+ x == .c1 || x == .c2 || x == .a2 || x == .s1 || x == .s2 || x == .s3+ -- ICEXT(C1) is everything. FORCED: C1 is ∀p1.Y, IEXT(p1) = {(alice, carl)} and+ -- carl IS in ICEXT(Y), so alice qualifies and nothing else has a p1-successor.| .ty, _, .c1 => true- -- ICEXT(C2) is everything but alice. Forced: C2 is the universal restriction- -- on p2, alice has the p2-successor bob, and bob is not in ICEXT(Y).+ -- ICEXT(A2) is everything. FORCED: A2 is ∀p2.C1 and ICEXT(C1) is everything.+ | .ty, _, .a2 => true+ -- ICEXT(C2) is everything but alice. FORCED: C2 is ∀p2.Y and alice has the+ -- p2-successor bob, which is not in ICEXT(Y).| .ty, x, .c2 => x != .alice- -- ICEXT of everything else, Y included, is empty.+ -- ICEXT(Y) = {carl}. NOT EMPTY, which is what makes alice's membership of+ -- ICEXT(C1) a real check rather than an empty one.+ | .ty, x, .filler => x == .carl+ -- ICEXT(S1) = ICEXT(S2) = ICEXT(S3) = {alice}. FORCED by Table 5.6's+ -- someValuesFrom row: alice reaches carl by p1 and by p2, carl is in ICEXT(Y),+ -- and ICEXT(C1) is everything.+ | .ty, x, .s1 => x == .alice+ | .ty, x, .s2 => x == .alice+ | .ty, x, .s3 => x == .alice+ -- ICEXT of everything else is empty.| .ty, _, _ => false-- IEXT(rdfs:subClassOf): exactly the pairs of IC whose extensions nest.-- (C1, C2) is ABSENT, and that absence is the theorem at the end of the file.| .sco, u, v =>- (u == .c1 && v == .c1) || (u == .c2 && (v == .c1 || v == .c2)) ||- (u == .filler && (v == .c1 || v == .c2 || v == .filler))- -- IEXT(rdfs:subPropertyOf): exactly the pairs of IP whose extensions nest.- -- p1's extension is empty so it is below every property; the diagonal; and- -- the one strict inclusion among the rest, IEXT(rdfs:domain) inside- -- IEXT(rdfs:range), which holds because every domain pair of this model is- -- also a range pair. (p2, p1) is ABSENT, and that kind separation is what- -- keeps scm-avf2 antitone here.- | .spo, u, v => (u == .p1 && isIP v) || (isIP u && u == v) || (u == .dm && v == .rg)+ ((u == .c1 || u == .a2) && (v == .c1 || v == .a2)) ||+ (u == .c2 && (v == .c1 || v == .a2 || v == .c2)) ||+ (u == .filler && (v == .c1 || v == .a2 || v == .c2 || v == .filler)) ||+ ((u == .s1 || u == .s2 || u == .s3) &&+ (v == .c1 || v == .a2 || v == .s1 || v == .s2 || v == .s3))+ -- IEXT(rdfs:subPropertyOf): exactly the pairs of IP whose extensions nest. The+ -- diagonal; p1 and q both ways because their extensions are equal, and both+ -- inside p2; owl:equivalentClass inside rdfs:subClassOf and+ -- owl:equivalentProperty inside rdfs:subPropertyOf, which are forced and not+ -- chosen. (p2, p1) is ABSENT, and that kind separation is what keeps scm-avf2+ -- antitone here.+ | .spo, u, v =>+ (isIP u && u == v) ||+ ((u == .p1 || u == .q) && (v == .p1 || v == .q || v == .p2)) ||+ (u == .eqc && v == .sco) ||+ (u == .eqp && v == .spo)-- IEXT(rdfs:domain): every p in IP and c in IC such that every subject of p- -- lies in ICEXT(c). p1 qualifies everywhere because its extension is empty;- -- p2 and rdf:type only at C1, because alice is a subject of both and alice is- -- outside ICEXT(C2); the remaining six qualify at C1 and C2 because their- -- subjects are classes and properties, never alice.+ -- lies in ICEXT(c). p1, q and p2 have the single subject alice, so they reach+ -- the three existential restrictions as well; rdf:type has every element as a+ -- subject, because ICEXT(C1) is everything, so it reaches only C1 and A2; the+ -- rest have subjects that are classes or properties and never alice.| .dm, u, v =>- (u == .p1 && (v == .c1 || v == .c2 || v == .filler)) ||- ((u == .avf || u == .dm || u == .onp || u == .rg || u == .sco || u == .spo) &&- (v == .c1 || v == .c2)) ||- ((u == .p2 || u == .ty) && v == .c1)- -- IEXT(rdfs:range): the same with objects for subjects, and it DIFFERS from- -- the domain table by exactly (p2, C2) and (rdf:type, C2), because the object- -- bob IS in ICEXT(C2) while the subject alice is not.+ ((u == .p1 || u == .q || u == .p2) &&+ (v == .c1 || v == .a2 || v == .s1 || v == .s2 || v == .s3)) ||+ (u == .ty && (v == .c1 || v == .a2)) ||+ ((u == .sco || u == .spo || u == .dm || u == .rg || u == .avf || u == .svf ||+ u == .onp || u == .eqc || u == .eqp) && (v == .c1 || v == .a2 || v == .c2))+ -- IEXT(rdfs:range): the same with objects for subjects, and it DIFFERS from the+ -- domain table. p1 and q reach Y, because their only object carl is in ICEXT(Y)+ -- while their only subject alice is not; and neither reaches S1, S2 or S3,+ -- where the domain table does.| .rg, u, v =>- (u == .p1 && (v == .c1 || v == .c2 || v == .filler)) ||- ((u == .avf || u == .dm || u == .onp || u == .p2 || u == .rg || u == .sco ||- u == .spo || u == .ty) && (v == .c1 || v == .c2))- -- The graph's two restrictions.- | .avf, u, v => (u == .c1 || u == .c2) && v == .filler- | .onp, u, v => (u == .c1 && v == .p1) || (u == .c2 && v == .p2)- -- The one asserted individual pair.- | .p2, u, v => u == .alice && v == .bob- -- Everything else, `other` and `p1` included, is empty.+ ((u == .p1 || u == .q) && (v == .c1 || v == .a2 || v == .c2 || v == .filler)) ||+ ((u == .p2 || u == .ty || u == .sco || u == .spo || u == .dm || u == .rg ||+ u == .avf || u == .svf || u == .onp || u == .eqc || u == .eqp) &&+ (v == .c1 || v == .a2 || v == .c2))+ -- The graph's two universal restrictions, plus A2.+ | .avf, u, v =>+ (u == .c1 && v == .filler) || (u == .c2 && v == .filler) || (u == .a2 && v == .c1)+ -- The three existential restrictions.+ | .svf, u, v =>+ (u == .s1 && v == .filler) || (u == .s2 && v == .c1) || (u == .s3 && v == .filler)+ -- Each restriction is on exactly one property.+ | .onp, u, v =>+ ((u == .c1 || u == .s3) && v == .p1) ||+ ((u == .c2 || u == .a2 || u == .s1 || u == .s2) && v == .p2)+ -- Two distinct classes with the same extension, so Table 5.9's class row has a+ -- pair to work on and scm-eqc1 is exercised on something other than a diagonal.+ | .eqc, u, v => (u == .s1 && v == .s2) || (u == .s2 && v == .s1)+ -- And two distinct properties with the same extension, for scm-eqp1.+ | .eqp, u, v => (u == .p1 && v == .q) || (u == .q && v == .p1)+ -- The asserted individual pairs. IEXT(p1) is NOT empty and is a PROPER subset+ -- of IEXT(p2), which is what makes `p1 rdfs:subPropertyOf p2` hold here for a+ -- reason rather than for want of anything to check.+ | .p1, u, v => u == .alice && v == .carl+ | .q, u, v => u == .alice && v == .carl+ | .p2, u, v => u == .alice && (v == .bob || v == .carl)+ -- Everything else, `other` included, is empty.| _, _, _ => false/-- The interpretation. -/@@ -381,8 +517,8 @@ theorem live_eqp_fwd : ∀ a b : LiveD, liveIext (liveι V.equivalentProperty) atheorem live_same_fwd : ∀ a b : LiveD, liveIext (liveι V.sameAs) a b = true → a = b := by decide-theorem live_inv_fwd : ∀ p q : LiveD, liveIext (liveι V.inverseOf) p q = true →- liveIP p ∧ liveIP q ∧ ∀ x y, (liveIext p x y = true ↔ liveIext q y x = true) := by decide+theorem live_inv_fwd : ∀ p r : LiveD, liveIext (liveι V.inverseOf) p r = true →+ liveIP p ∧ liveIP r ∧ ∀ x y, (liveIext p x y = true ↔ liveIext r y x = true) := by decidetheorem live_sym_fwd : ∀ p : LiveD, liveIext .ty p (liveι V.symmetricProperty) = true →∀ x y, liveIext p x y = true → liveIext p y x = true := by decide@@ -446,7 +582,7 @@ theorem live_w3c : W3C live liveIP whereavf_typ := live_avf_typonp_typ := live_onp_typ-/-- **A conforming model of `avfPremises`.** The three list fields are vacuous+/-- **A `W3CModel` of `avfPremises`.** The three list fields are vacuousbecause `avfPremises` carries no `owl:intersectionOf`, `owl:unionOf` or`owl:oneOf` triple; the model says nothing about those rows and does not pretendto. -/@@ -460,12 +596,20 @@ theorem live_is_a_w3c_model : W3CModel live liveIP avfPremises where/-! ## Non-vacuity, compiled into the build-The facts the model exists to carry, in one theorem, so that a later edit that+The facts the model exists to carry, in three theorems, so that a later edit thathollows the model out fails here instead of passing quietly. Everything abovewould still compile with an empty carrier and every relation false; this is whatstops that from being reported as a result.-Each is stated twice: once over `liveIext` and `liveι`, where it is a closed+The first version of this section made the opposite mistake. `IEXT(p1)` was+empty and `ICEXT(Y)` was empty, and both emptinesses were written into the+liveness gate as though they were features. They are not: with `IEXT(p1)` empty+the refutation's own premise `p1 rdfs:subPropertyOf p2` holds because there is+nothing to check, which is the defect this file exists to close, one level down.+`carl` is what fixes it, and `live_is_live` now pins the inclusion as PROPER and+both extensions as NON-EMPTY.++Each fact is stated twice: once over `liveIext` and `liveι`, where it is a closeddecidable proposition, and once over `live`, where it is the sentence a readerwants. The second is the first by definitional unfolding, so the two cannotdrift. -/@@ -478,22 +622,32 @@ theorem live_is_live_raw :(∀ x, liveIext .ty x .c2 = true → liveIext .ty x .c1 = true) ∧(liveIext .ty .alice .c1 = true ∧ ¬ liveIext .ty .alice .c2 = true ∧liveIext .ty .bob .c2 = true) ∧- (∀ x, ¬ liveIext .ty x .filler = true) ∧+ (liveIext .ty .carl .filler = true ∧ ¬ liveIext .ty .bob .filler = true) ∧(liveIext .ty .c1 (liveι V.Restriction) = true ∧¬ liveIext .ty .filler (liveι V.Restriction) = true) ∧- (∀ x y, ¬ liveIext .p1 x y = true) ∧ liveIext .p2 .alice .bob = true := by decide--/-- **The liveness gate.** `IC` has three members and does not swallow the-carrier; one class extension is the whole carrier; another is a proper subset of-it, witnessed on both sides; a third is empty; `ICEXT(owl:Restriction)` is a-proper subset of `IC`; and the one property that matters has a pair in it. -/+ (liveIext .p1 .alice .carl = true ∧+ (∀ x y, liveIext .p1 x y = true → liveIext .p2 x y = true) ∧+ ¬ liveIext .p1 .alice .bob = true ∧ liveIext .p2 .alice .bob = true) := by decide++/-- **The liveness gate.** `IC` has three of its members named and does not+swallow the carrier; one class extension is the whole carrier; another is a+proper subset of it, witnessed on both sides; the FILLER extension is non-empty+and proper, witnessed on both sides; `ICEXT(owl:Restriction)` is a proper subset+of `IC`; and `IEXT(p1)` is NON-EMPTY and a PROPER subset of `IEXT(p2)`.++That last conjunct is the one the 15 September 2026 rebuild added and it is the+point of the rebuild. `avfPremises` asserts `p1 rdfs:subPropertyOf p2`, and in+the first version of this model that triple held only because `IEXT(p1)` was+empty. A refutation whose own premise is satisfied vacuously establishes almost+nothing, and the emptiness was written into this gate as if it were a feature. -/theorem live_is_live :(live.IC .c1 ∧ live.IC .c2 ∧ live.IC .filler) ∧ (¬ live.IC .restr ∧ ¬ live.IC .alice) ∧(∀ x, live.cext .c1 x) ∧ (∀ x, live.cext .c2 x → live.cext .c1 x) ∧(live.cext .c1 .alice ∧ ¬ live.cext .c2 .alice ∧ live.cext .c2 .bob) ∧- (∀ x, ¬ live.cext .filler x) ∧+ (live.cext .filler .carl ∧ ¬ live.cext .filler .bob) ∧(live.cext (live.ι V.Restriction) .c1 ∧ ¬ live.cext (live.ι V.Restriction) .filler) ∧- (∀ x y, ¬ live.iext .p1 x y) ∧ live.iext .p2 .alice .bob :=+ (live.iext .p1 .alice .carl ∧ (∀ x y, live.iext .p1 x y → live.iext .p2 x y) ∧+ ¬ live.iext .p1 .alice .bob ∧ live.iext .p2 .alice .bob) :=live_is_live_rawtheorem live_is_bridge_coherent_raw :@@ -502,35 +656,239 @@ theorem live_is_bridge_coherent_raw :/-- **The bridge shape, checked.** Every predicate with a pair in its extensionis in `IP`.-This is what makes the refutation at the end of the file worth more than the-Herbrand one it replaces. `W3C.lean`'s bridge reads a conforming interpretation+This is an EXTRA property of this model and not a requirement of `W3CModel`, and+the distinction matters: an earlier draft of this file, of `Witness.lean` and of+`Semantics.lean` used bridge coherence as though `W3CModel` demanded it, and+concluded from that that no Herbrand witness could ever be one. Four of them+are: `not_everything_is_w3c_entailed` further down this file, the two in the+section after it, and `mix_not_absolutely_w3c_entailed` in `Mixed.lean`.++What it is actually for: `W3C.lean`'s bridge reads a conforming interpretationinto an `Interp` by `iext p x y := IP p and (x, y) in IEXT p`, so a structurewith a pair under a predicate outside `IP` is not the image of any conforming-interpretation and cannot honestly refute anything about them. `W3C` does not-impose this, because no arm consumes it and imposing it would shrink the model-class for nothing; the witness satisfies it anyway, and says so here. -/+interpretation. A refutation built on one would be about a structure the bridge+cannot reach. `W3C` does not impose this, because no arm consumes it and imposing+it would shrink the model class for nothing; this witness satisfies it anyway,+and says so here. -/theorem live_is_bridge_coherent : ∀ p x y : LiveD, live.iext p x y → liveIP p :=live_is_bridge_coherent_raw+/-! ### Every one of the fourteen arms fires in this model++Non-vacuity of a FIELD is weaker than non-vacuity of an ARM. A field can have+something in its extension while the derivation that consumes it never has all+its premises met at once. The twelve theorems below apply each derivation of+`W3C.lean` at a concrete instance of this model and land on a triple the tables+contain, which is the stronger statement and the one the reader wants: every arm+that used to be assumed is now discharged over premises this structure actually+satisfies.++`eqc` and `eqp` carry two arms each, so twelve theorems cover fourteen arms. -/++/-- **rdfs11**, at `C2 ⊑ C1 ⊑ A2`. -/+theorem live_arm_sc_trans : live.sc .c2 .a2 :=+ live_w3c.sc_trans .c2 .c1 .a2 (by decide : liveIext (liveι V.subClassOf) LiveD.c2 LiveD.c1 = true)+ (by decide : liveIext (liveι V.subClassOf) LiveD.c1 LiveD.a2 = true)++/-- **rdfs5**, at `p1 ⊑ q ⊑ p2`. -/+theorem live_arm_sp_trans : live.sp .p1 .p2 :=+ live_w3c.sp_trans .p1 .q .p2 (by decide : liveIext (liveι V.subPropertyOf) LiveD.p1 LiveD.q = true)+ (by decide : liveIext (liveι V.subPropertyOf) LiveD.q LiveD.p2 = true)++/-- **scm-eqc1**, both conclusions, at the two existential restrictions `S1` and+`S2`, which are distinct elements with the same class extension. -/+theorem live_arm_eqc : live.sc .s1 .s2 ∧ live.sc .s2 .s1 :=+ live_w3c.eqc .s1 .s2 (by decide : liveIext (liveι V.equivalentClass) LiveD.s1 LiveD.s2 = true)++/-- **scm-eqp1**, both conclusions, at `p1` and `q`, which are distinct+properties with the same extension. -/+theorem live_arm_eqp : live.sp .p1 .q ∧ live.sp .q .p1 :=+ live_w3c.eqp .p1 .q (by decide : liveIext (liveι V.equivalentProperty) LiveD.p1 LiveD.q = true)++/-- **scm-svf1**, at `∃p2.Y ⊑ ∃p2.C1`, ordered because `Y ⊑ C1`. -/+theorem live_arm_svf_sc : live.sc .s1 .s2 :=+ live_w3c.svf_sc .s1 .s2 .p2 .filler .c1+ (by decide : liveIext (liveι V.someValuesFrom) LiveD.s1 LiveD.filler = true)+ (by decide : liveIext (liveι V.onProperty) LiveD.s1 LiveD.p2 = true)+ (by decide : liveIext (liveι V.someValuesFrom) LiveD.s2 LiveD.c1 = true)+ (by decide : liveIext (liveι V.onProperty) LiveD.s2 LiveD.p2 = true)+ (by decide : liveIext (liveι V.subClassOf) LiveD.filler LiveD.c1 = true)++/-- **scm-svf2**, at `∃p1.Y ⊑ ∃p2.Y`, ordered because `p1 ⊑ p2`. -/+theorem live_arm_svf_sp : live.sc .s3 .s1 :=+ live_w3c.svf_sp .s3 .s1 .p1 .p2 .filler+ (by decide : liveIext (liveι V.someValuesFrom) LiveD.s3 LiveD.filler = true)+ (by decide : liveIext (liveι V.onProperty) LiveD.s3 LiveD.p1 = true)+ (by decide : liveIext (liveι V.someValuesFrom) LiveD.s1 LiveD.filler = true)+ (by decide : liveIext (liveι V.onProperty) LiveD.s1 LiveD.p2 = true)+ (by decide : liveIext (liveι V.subPropertyOf) LiveD.p1 LiveD.p2 = true)++/-- **scm-avf1**, at `∀p2.Y ⊑ ∀p2.C1`, ordered because `Y ⊑ C1`. A universal+restriction is MONOTONE in its filler, which is why this runs the same way round+as the two above. -/+theorem live_arm_avf_sc : live.sc .c2 .a2 :=+ live_w3c.avf_sc .c2 .a2 .p2 .filler .c1+ (by decide : liveIext (liveι V.allValuesFrom) LiveD.c2 LiveD.filler = true)+ (by decide : liveIext (liveι V.onProperty) LiveD.c2 LiveD.p2 = true)+ (by decide : liveIext (liveι V.allValuesFrom) LiveD.a2 LiveD.c1 = true)+ (by decide : liveIext (liveι V.onProperty) LiveD.a2 LiveD.p2 = true)+ (by decide : liveIext (liveι V.subClassOf) LiveD.filler LiveD.c1 = true)++/-- **scm-avf2**, at the premises of `avfPremises` themselves, and the conclusion+is REVERSED: `C2 ⊑ C1` and not `C1 ⊑ C2`. This is the arm the whole file is+about. -/+theorem live_arm_avf_sp : live.sc .c2 .c1 :=+ live_w3c.avf_sp .c1 .c2 .p1 .p2 .filler+ (by decide : liveIext (liveι V.allValuesFrom) LiveD.c1 LiveD.filler = true)+ (by decide : liveIext (liveι V.onProperty) LiveD.c1 LiveD.p1 = true)+ (by decide : liveIext (liveι V.allValuesFrom) LiveD.c2 LiveD.filler = true)+ (by decide : liveIext (liveι V.onProperty) LiveD.c2 LiveD.p2 = true)+ (by decide : liveIext (liveι V.subPropertyOf) LiveD.p1 LiveD.p2 = true)++/-- **scm-dom1**, widening `p1`'s domain from `S1` to `S2`. -/+theorem live_arm_dom_sc : live.iext (live.ι V.domain) .p1 .s2 :=+ live_w3c.dom_sc .p1 .s1 .s2 (by decide : liveIext (liveι V.domain) LiveD.p1 LiveD.s1 = true)+ (by decide : liveIext (liveι V.subClassOf) LiveD.s1 LiveD.s2 = true)++/-- **scm-dom2**, inheriting `p2`'s domain `S1` down to the subproperty `p1`. -/+theorem live_arm_dom_sp : live.iext (live.ι V.domain) .p1 .s1 :=+ live_w3c.dom_sp .p1 .p2 .s1 (by decide : liveIext (liveι V.domain) LiveD.p2 LiveD.s1 = true)+ (by decide : liveIext (liveι V.subPropertyOf) LiveD.p1 LiveD.p2 = true)++/-- **scm-rng1**, widening `p1`'s range from `Y` to `C1`. -/+theorem live_arm_rng_sc : live.iext (live.ι V.range) .p1 .c1 :=+ live_w3c.rng_sc .p1 .filler .c1 (by decide : liveIext (liveι V.range) LiveD.p1 LiveD.filler = true)+ (by decide : liveIext (liveι V.subClassOf) LiveD.filler LiveD.c1 = true)++/-- **scm-rng2**, inheriting `p2`'s range `C2` down to the subproperty `p1`. -/+theorem live_arm_rng_sp : live.iext (live.ι V.range) .p1 .c2 :=+ live_w3c.rng_sp .p1 .p2 .c2 (by decide : liveIext (liveι V.range) LiveD.p2 LiveD.c2 = true)+ (by decide : liveIext (liveι V.subPropertyOf) LiveD.p1 LiveD.p2 = true)++/-- **All fourteen, in one statement**, so that a later edit that quietly stops+exercising one fails here. -/+theorem live_exercises_every_arm :+ live.sc .c2 .a2 ∧ live.sp .p1 .p2 ∧+ (live.sc .s1 .s2 ∧ live.sc .s2 .s1) ∧ (live.sp .p1 .q ∧ live.sp .q .p1) ∧+ live.sc .s1 .s2 ∧ live.sc .s3 .s1 ∧ live.sc .c2 .a2 ∧ live.sc .c2 .c1 ∧+ live.iext (live.ι V.domain) .p1 .s2 ∧ live.iext (live.ι V.domain) .p1 .s1 ∧+ live.iext (live.ι V.range) .p1 .c1 ∧ live.iext (live.ι V.range) .p1 .c2 :=+ ⟨live_arm_sc_trans, live_arm_sp_trans, live_arm_eqc, live_arm_eqp,+ live_arm_svf_sc, live_arm_svf_sp, live_arm_avf_sc, live_arm_avf_sp,+ live_arm_dom_sc, live_arm_dom_sp, live_arm_rng_sc, live_arm_rng_sp⟩++/-! ### And what is still vacuous, named rather than left to be discovered++Five of the twenty-one fields of `W3C` still hold in this model because nothing+is in the extension their antecedent reads. Both halves of that sentence are+theorems: `live_fires_the_other_sixteen` exhibits a satisfied antecedent for each+of the other sixteen, and `live_leaves_exactly_these_five_vacuous` names the five.+Sixteen plus five is twenty-one, so neither number can drift from the tables+without the build going red. The five are exactly the fields that carry NONE of+the fourteen arms: `Soundness.lean` consumes `same_fwd`,+`sym_fwd`, `trp_fwd`, `inv_fwd` and `hv_eq` through projections out of+`Conditions`, never through a derivation.++`same_fwd` is the one that cannot be exercised non-trivially at all, and that is+the specification's doing rather than this model's: RBS Table 5.9's first row+reads `( a₁ , a₂ ) ∈ IEXT(I(owl:sameAs))` **iff** `a₁ = a₂`, so the only pairs+any conforming interpretation can put in that extension are diagonal ones and the+only instance of the field is `a = a`.++The other four are ordinary omissions and could be closed, at a price this file+declines to pay: each needs its own vocabulary element plus a property or a+restriction to hold it, and every condition here is quantified over the carrier+three or four times, so the `decide` cost is quartic in the number of elements.+Twenty-six elements already cost about ten seconds. The honest report is that+these four are not exercised, not that they cannot be. -/++/-- **The other sixteen fields fire**, one satisfied antecedent each, so that+"exactly these five" below is earned rather than asserted. Sixteen plus five is+the twenty-one fields of `W3C`.++`sc_fwd`, `sp_fwd`, `dom_fwd`, `rng_fwd`, `eqc_fwd`, `eqp_fwd`, `svf_eq`,+`svf_typ`, `avf_eq`, `avf_typ`, `onp_typ` and `restr_IC` are given a pair in the+extension their antecedent reads; `sc_bwd`, `sp_bwd`, `dom_bwd` and `rng_bwd` are+given the whole antecedent, guards and universally quantified clause together,+because those are the four whose hypotheses can be met for want of anything to+check and were. -/+theorem live_fires_the_other_sixteen_raw :+ liveIext .sco .c2 .c1 = true ∧+ (liveIext .ty .c2 .cls = true ∧ liveIext .ty .c1 .cls = true ∧+ ∀ x, liveIext .ty x .c2 = true → liveIext .ty x .c1 = true) ∧+ liveIext .spo .p1 .p2 = true ∧+ (liveIP .p1 ∧ liveIP .p2 ∧+ ∀ x y, liveIext .p1 x y = true → liveIext .p2 x y = true) ∧+ liveIext (liveι V.domain) .p2 .c1 = true ∧+ (liveIP .p2 ∧ liveIext .ty .c1 .cls = true ∧+ ∀ x y, liveIext .p2 x y = true → liveIext .ty x .c1 = true) ∧+ liveIext (liveι V.range) .p2 .c2 = true ∧+ (liveIP .p2 ∧ liveIext .ty .c2 .cls = true ∧+ ∀ x y, liveIext .p2 x y = true → liveIext .ty y .c2 = true) ∧+ liveIext (liveι V.equivalentClass) .s1 .s2 = true ∧+ liveIext (liveι V.equivalentProperty) .p1 .q = true ∧+ (liveIext (liveι V.someValuesFrom) .s1 .filler = true ∧+ liveIext (liveι V.onProperty) .s1 .p2 = true) ∧+ (liveIext (liveι V.allValuesFrom) .c1 .filler = true ∧+ liveIext (liveι V.onProperty) .c1 .p1 = true) ∧+ liveIext .ty .c1 (liveι V.Restriction) = true := by decide++/-- The same sixteen over `live`, by definitional unfolding. -/+theorem live_fires_the_other_sixteen :+ live.sc .c2 .c1 ∧+ (live.IC .c2 ∧ live.IC .c1 ∧ ∀ x, live.cext .c2 x → live.cext .c1 x) ∧+ live.sp .p1 .p2 ∧+ (liveIP .p1 ∧ liveIP .p2 ∧ ∀ x y, live.iext .p1 x y → live.iext .p2 x y) ∧+ live.iext (live.ι V.domain) .p2 .c1 ∧+ (liveIP .p2 ∧ live.IC .c1 ∧ ∀ x y, live.iext .p2 x y → live.cext .c1 x) ∧+ live.iext (live.ι V.range) .p2 .c2 ∧+ (liveIP .p2 ∧ live.IC .c2 ∧ ∀ x y, live.iext .p2 x y → live.cext .c2 y) ∧+ live.iext (live.ι V.equivalentClass) .s1 .s2 ∧+ live.iext (live.ι V.equivalentProperty) .p1 .q ∧+ (live.iext (live.ι V.someValuesFrom) .s1 .filler ∧+ live.iext (live.ι V.onProperty) .s1 .p2) ∧+ (live.iext (live.ι V.allValuesFrom) .c1 .filler ∧+ live.iext (live.ι V.onProperty) .c1 .p1) ∧+ live.cext (live.ι V.Restriction) .c1 :=+ live_fires_the_other_sixteen_raw++theorem live_leaves_exactly_these_five_vacuous_raw :+ (∀ a b : LiveD, ¬ liveIext (liveι V.sameAs) a b = true) ∧+ (∀ p : LiveD, ¬ liveIext .ty p (liveι V.symmetricProperty) = true) ∧+ (∀ p : LiveD, ¬ liveIext .ty p (liveι V.transitiveProperty) = true) ∧+ (∀ p r : LiveD, ¬ liveIext (liveι V.inverseOf) p r = true) ∧+ (∀ z a : LiveD, ¬ liveIext (liveι V.hasValue) z a = true) := by decide++/-- **The five fields this witness does not exercise**, pinned. Each carries none+of the fourteen arms. Everything else in `W3C` has something in its extension+here, and `live_exercises_every_arm` shows every arm firing. -/+theorem live_leaves_exactly_these_five_vacuous :+ (∀ a b : LiveD, ¬ live.iext (live.ι V.sameAs) a b) ∧+ (∀ p : LiveD, ¬ live.cext (live.ι V.symmetricProperty) p) ∧+ (∀ p : LiveD, ¬ live.cext (live.ι V.transitiveProperty) p) ∧+ (∀ p r : LiveD, ¬ live.iext (live.ι V.inverseOf) p r) ∧+ (∀ z a : LiveD, ¬ live.iext (live.ι V.hasValue) z a) :=+ live_leaves_exactly_these_five_vacuous_raw+theorem live_c1_is_a_class : liveIext .ty .c1 .cls = true := by decidetheorem live_c2_is_a_class : liveIext .ty .c2 .cls = true := by decidetheorem live_p2_is_in_IP : liveIP .p2 := by decide-/-- The universally quantified clause `dom_bwd` demands, at `c1`, discharged-over the pair `(alice, bob)` and NOT by there being no pairs. -/+/-- The universally quantified clause `dom_bwd` demands, at `C1`, discharged+over the pairs of `p2` and NOT by there being no pairs. -/theorem live_p2_subjects_are_c1 :∀ x y : LiveD, liveIext .p2 x y = true → liveIext .ty x .c1 = true := by decide-/-- The same clause for `rng_bwd`, at `c2`. `alice` is outside `ICEXT(c2)` and-`bob` is inside it, which is what makes the domain and range extensions-differ. -/+/-- The same clause for `rng_bwd`, at `C2`. `alice` is outside `ICEXT(C2)` and+both of her `p2`-successors are inside it, which is what makes the domain and+range extensions differ. -/theorem live_p2_objects_are_c2 :∀ x y : LiveD, liveIext .p2 x y = true → liveIext .ty y .c2 = true := by decidetheorem live_p2_is_not_a_domain_of_c2 : ¬ liveIext (liveι V.domain) .p2 .c2 = true := by decide/-- `dom_bwd` is discharged over a NON-EMPTY relation: the clause it demands is-proved at `(alice, bob)` and not by there being no pairs, which is the thing the+proved at `p2`'s two pairs and not by there being no pairs, which is the thing thesecond kernel's own witness fails to do for this condition. -/theorem live_dom_bwd_is_exercised : live.iext (live.ι V.domain) .p2 .c1 :=live_w3c.dom_bwd .p2 .c1 live_p2_is_in_IP live_c1_is_a_class live_p2_subjects_are_c1@@ -538,7 +896,8 @@ theorem live_dom_bwd_is_exercised : live.iext (live.ι V.domain) .p2 .c1 :=/-- `rng_bwd`, likewise, and at a class `dom_bwd` does NOT reach. The twobackward halves of Table 5.8 are separated by this model rather than satisfiedtogether by accident: `(p2, C2)` is in the range extension and not in the domain-extension, because `bob` is in `ICEXT(C2)` and `alice` is not. -/+extension, because both of `alice`'s `p2`-successors are in `ICEXT(C2)` and+`alice` herself is not. -/theorem live_rng_bwd_is_exercised :live.iext (live.ι V.range) .p2 .c2 ∧ ¬ live.iext (live.ι V.domain) .p2 .c2 :=⟨live_w3c.rng_bwd .p2 .c2 live_p2_is_in_IP live_c2_is_a_class live_p2_objects_are_c2,@@ -562,17 +921,23 @@ interpretation.**`Witness.lean`'s `the_natural_avf2_direction_is_not_entailed` refutes the sametriple with a Herbrand interpretation, which satisfies `Conditions` and is not a-`W3CModel`: `avfWitness` contains no `rdf:type` triple at all, so `IC` is empty-there, `avf_typ` and `onp_typ` fail outright for want of an `owl:Restriction`-typing, and if those were patched in then `sp_bwd` would force `(p2, p1)` into-`rdfs:subPropertyOf`, a triple that witness does not contain. That result is-therefore about the Lean's larger `Conditions` class only.+`W3CModel`: `avfWitness` contains no `rdf:type` triple at all, so every class+extension is empty there and `avf_typ` and `onp_typ` fail for want of an+`owl:Restriction` typing, `onp_typ` failing a second time on its `IP p` conjunct,+which the empty `IP` cannot supply. Unlike the four non-entailments this file and+`Mixed.lean` transfer, this one genuinely needed a structure built for it. That+is why the structure below exists; it is not a general fact about Herbrand+witnesses, which an earlier version of this paragraph turned it into.This one is about a class much closer to the specification's: the refuting-structure satisfies Table 5.8 in both directions, Table 5.6's `allValuesFrom`-equality, Tables 5.9, 5.12 and 5.13, and the typing rows of Tables 5.2 and 5.3,-and it is bridge-coherent. A rule concluding `C1 rdfs:subClassOf C2` from these-premises, which is what copying the shape of `scm-avf1`, `scm-svf1` and+structure satisfies Table 5.8 in both directions, Table 5.6's `someValuesFrom`+and `allValuesFrom` equalities, Tables 5.9, 5.12 and 5.13, and the typing rows of+Tables 5.2 and 5.3, and it is bridge-coherent. Every one of the fourteen arms+fires in it at a concrete instance (`live_exercises_every_arm`), and the premise+`p1 rdfs:subPropertyOf p2` holds because `IEXT(p1)` is a proper non-empty subset+of `IEXT(p2)` rather than because `IEXT(p1)` is empty, which is what the first+version of this model got wrong. A rule concluding `C1 rdfs:subClassOf C2` from+these premises, which is what copying the shape of `scm-avf1`, `scm-svf1` and`scm-svf2` gives, would be making a claim that such a structure refutes.**Read the module docstring before quoting this anywhere.** It is NOT a proof@@ -672,7 +1037,7 @@ theorem saturated_is_a_model_of_the_same_graph : Model saturated emptyOneOfG :=witness closes it: over the EMPTY graph every antecedent in `W3C` is false, and`IP := fun _ => False` makes the four backward conditions vacuous too. -/-/-- The Herbrand interpretation of the empty graph is a conforming model of it,+/-- The Herbrand interpretation of the empty graph is a `W3CModel` of it,with an empty `IP`. Bridge-coherent for free: `iext` is empty, so nothing has tobe in `IP`. -/theorem empty_herbrand_is_a_w3c_model : W3CModel (herbrand []) (fun _ => False) [] where@@ -705,14 +1070,219 @@ theorem empty_herbrand_is_a_w3c_model : W3CModel (herbrand []) (fun _ => False)/-- **`W3CEntails` is not trivial**, so `certificate_w3c_sound` is not a theoremabout a relation that holds of everything. This is obligation (2) of-`Witness.lean`'s own header, restated over the conforming model class, and it is-the one obligation there that transfers without a new hand-built structure. -/+`Witness.lean`'s own header, restated over the `W3CModel` class.++An earlier version of this docstring called it "the one obligation there that+transfers without a new hand-built structure". It is the FIRST, not the only:+`an_unlisted_individual_is_not_w3c_entailed`,+`membership_in_one_member_is_not_w3c_enough` and `Mixed.lean`'s+`mix_not_absolutely_w3c_entailed` transfer the same way, and this file used to+list all three among the results it could not reach. -/theorem not_everything_is_w3c_entailed :¬ W3CEntails [] ⟨"<http://ex.org/a>", "<http://ex.org/b>", "<http://ex.org/c>"⟩ := byintro hhave hs := h (herbrand []) (fun _ => False) empty_herbrand_is_a_w3c_modelsimp at hs++/-! ## Two more non-entailments here, a third in `Mixed.lean`, on the interpretations they already had++`IP` is a free PARAMETER of `W3C`, not a field of `Interp`, and the four+backward conditions are the only fields that consume it as a hypothesis. Choose+`IP := fun _ => False` and `sp_bwd`, `dom_bwd` and `rng_bwd` become vacuous,+because their antecedents `IP a`, `IP p` have no instances. `sc_bwd` is guarded+by `IC` instead, and over a Herbrand interpretation `I.IC a` is+`⟨a, rdf:type, rdfs:Class⟩ ∈ H`, so a witness graph carrying no `rdfs:Class`+typing makes THAT field vacuous too.++An earlier draft of this file, of `Witness.lean` and of `Semantics.lean` claimed+the opposite in five places: that an empty `IC` makes Table 5.8's backward+direction FORCE `rdfs:subClassOf` and `rdfs:subPropertyOf` triples the witness+lacks, and that every conforming countermodel has to be a hand-built finite+structure. Both are false, and the first is inverted: an empty `IC` is exactly+what makes `sc_bwd` vacuous. The claim also silently promoted+`live_is_bridge_coherent`, which is an EXTRA property the `live` model happens+to have, into a requirement of `W3CModel`, which it is not.++FOUR of the seven results listed there transfer on the nose, with the existing+witness graphs unchanged and nothing hand-built: two proved in this section, one+in `Mixed.lean`, and one that was already proved further up THIS file at the+moment the list called it open. The remaining three do not, and the reason is+stated at each of them rather than generalised into a slogan.++| result | transfers | why |+|---|---|---|+| `not_everything_is_entailed` | yes, and already did | `not_everything_is_w3c_entailed`, below |+| `an_unlisted_individual_is_not_entailed` | yes | `an_unlisted_individual_is_not_w3c_entailed` |+| `membership_in_one_member_does_not_give_the_intersection` | yes | `membership_in_one_member_is_not_w3c_enough` |+| `mix_not_absolutely_entailed` | yes | `mix_not_absolutely_w3c_entailed`, in `Mixed.lean` |+| `the_old_svf_derivation_is_not_entailed` | no | `svfWitness` has `R owl:onProperty p` with no `R rdf:type owl:Restriction`, so `onp_typ` fails on its first conjunct for EVERY choice of `IP` |+| `feed_is_not_refuted` | no | `feed` carries `Lion rdfs:subClassOf Carnivore` and no `rdfs:Class` typing, so `sc_fwd` fails; and `¬ Unsat` runs the wrong way for transfer anyway |+| `not_unsat_of_joint_model` | no | it is a lemma with a hypothesis rather than a witness, and the same direction problem |++The two `owl:oneOf` and `owl:intersectionOf` graphs go through because the list+field of `W3CModel` is an `iff` and their witnesses satisfy it in both+directions: `ooWitness` types exactly the two listed members as `E`, and+`intWitness` makes exactly `w` a `K` and exactly `w` both an `M1` and an `M2`.+`v` is an `M1` and not an `M2`, which is what keeps `int_eq` true and the+conclusion false at the same time.+-/++/-- Exactly the two listed members are typed `E`. Decidable over a seven-triple+list, which is what lets `oneOf_eq`'s forward direction be discharged without+case analysis on string literals. -/+private theorem oo_typed_E :+ ∀ t ∈ ooWitness, t.p = V.type → t.o = tE → t.s = tA ∨ t.s = tB := by decide++/-- **The `owl:oneOf` witness is a `W3CModel`.** `ooWitness` carries no+`rdfs:Class` typing, so `IC` is empty and `sc_bwd` is vacuous; with+`IP := fun _ => False` the other three backward fields are vacuous as well; and+every forward field has an antecedent this graph never satisfies.++Table 5.5's equality is the one field that has to be EARNED rather than+dodged, and this witness satisfies it in both directions, because `ICEXT(E)` is+exactly `{a, b}`. `Conditions.oneOf` carries only the `⊇` half, which is the+asymmetry `an_unlisted_individual_is_not_entailed`'s docstring records. -/+theorem oo_witness_is_a_w3c_model :+ W3CModel (herbrand ooWitness) (fun _ => False) ooPremises where+ conds :=+ { sc_fwd := fun a b h => absurd h (not_mem_pred ooWitness V.subClassOf (by decide) a b)+ sc_bwd := fun a _ ha => absurd ha (not_typed ooWitness V.Class (by decide) a)+ sp_fwd := fun a b h => absurd h (not_mem_pred ooWitness V.subPropertyOf (by decide) a b)+ sp_bwd := fun _ _ h => absurd h (fun x => x)+ dom_fwd := fun p c h => absurd h (not_mem_pred ooWitness V.domain (by decide) p c)+ dom_bwd := fun _ _ h => absurd h (fun x => x)+ rng_fwd := fun p c h => absurd h (not_mem_pred ooWitness V.range (by decide) p c)+ rng_bwd := fun _ _ h => absurd h (fun x => x)+ eqc_fwd := fun a b h => absurd h (not_mem_pred ooWitness V.equivalentClass (by decide) a b)+ eqp_fwd := fun a b h =>+ absurd h (not_mem_pred ooWitness V.equivalentProperty (by decide) a b)+ same_fwd := fun a b h => absurd h (not_mem_pred ooWitness V.sameAs (by decide) a b)+ inv_fwd := fun p q h => absurd h (not_mem_pred ooWitness V.inverseOf (by decide) p q)+ sym_fwd := fun p h => absurd h (not_typed ooWitness V.symmetricProperty (by decide) p)+ trp_fwd := fun p h => absurd h (not_typed ooWitness V.transitiveProperty (by decide) p)+ svf_eq := fun z c _ h => absurd h (not_mem_pred ooWitness V.someValuesFrom (by decide) z c)+ avf_eq := fun z c _ h => absurd h (not_mem_pred ooWitness V.allValuesFrom (by decide) z c)+ hv_eq := fun z a _ h => absurd h (not_mem_pred ooWitness V.hasValue (by decide) z a)+ restr_IC := fun x h => absurd h (not_typed ooWitness V.Restriction (by decide) x)+ svf_typ := fun z c h => absurd h (not_mem_pred ooWitness V.someValuesFrom (by decide) z c)+ avf_typ := fun z c h => absurd h (not_mem_pred ooWitness V.allValuesFrom (by decide) z c)+ onp_typ := fun z p h => absurd h (not_mem_pred ooWitness V.onProperty (by decide) z p) }+ facts := fun t ht => List.mem_cons_of_mem _ (List.mem_cons_of_mem _ ht)+ int_eq := fun c l _ hc => absurd hc (not_mem_pred ooPremises V.intersectionOf (by decide) c l)+ uni_eq := fun c l _ hc => absurd hc (not_mem_pred ooPremises V.unionOf (by decide) c l)+ oneOf_eq := by+ intro c l ms hc hchain x+ obtain ⟨rfl, rfl⟩ := oo_only_oneOf _ hc rfl+ rw [oo_chain_l0 ms hchain]+ constructor+ · intro hx+ rcases oo_typed_E ⟨x, V.type, tE⟩ hx rfl rfl with rfl | rfl+ · exact ⟨tA, by simp, rfl⟩+ · exact ⟨tB, by simp, rfl⟩+ · rintro ⟨m, hm, rfl⟩+ rcases List.mem_cons.mp hm with rfl | hm+ · show (⟨tA, V.type, tE⟩ : Triple) ∈ ooWitness+ decide+ · rcases List.mem_cons.mp hm with rfl | hm+ · show (⟨tB, V.type, tE⟩ : Triple) ∈ ooWitness+ decide+ · cases hm++/-- **`cls-oo` stops at the members, over the `W3CModel` class.** The same+statement as `an_unlisted_individual_is_not_entailed` with `W3CEntails` for+`Entails`, and the same interpretation discharges it. -/+theorem an_unlisted_individual_is_not_w3c_entailed :+ ¬ W3CEntails ooPremises ⟨tZ, V.type, tE⟩ := fun h =>+ absurd (h (herbrand ooWitness) (fun _ => False) oo_witness_is_a_w3c_model)+ (by decide : (⟨tZ, V.type, tE⟩ : Triple) ∉ ooWitness)++/-- Whatever this graph makes a `K` it already makes an `M1` and an `M2`. -/+private theorem int_K_gives_both : ∀ t ∈ intWitness, t.p = V.type → t.o = tK →+ (⟨t.s, V.type, tM1⟩ : Triple) ∈ intWitness ∧+ (⟨t.s, V.type, tM2⟩ : Triple) ∈ intWitness := by decide++/-- And whatever it makes both it already makes a `K`. `v` is an `M1` and not an+`M2`, so it never triggers this, which is the whole content of the theorem+below. -/+private theorem int_both_give_K : ∀ t ∈ intWitness, ∀ u ∈ intWitness,+ (t.p = V.type ∧ t.o = tM1 ∧ u.p = V.type ∧ u.o = tM2 ∧ u.s = t.s) →+ (⟨t.s, V.type, tK⟩ : Triple) ∈ intWitness := by decide++/-- **The `owl:intersectionOf` witness is a `W3CModel`.** Table 5.4's+equality holds in both directions here, not just the `⊆` half `Conditions.int`+and `Conditions.int2` carry between them. -/+theorem int_witness_is_a_w3c_model :+ W3CModel (herbrand intWitness) (fun _ => False) intPremises where+ conds :=+ { sc_fwd := fun a b h => absurd h (not_mem_pred intWitness V.subClassOf (by decide) a b)+ sc_bwd := fun a _ ha => absurd ha (not_typed intWitness V.Class (by decide) a)+ sp_fwd := fun a b h => absurd h (not_mem_pred intWitness V.subPropertyOf (by decide) a b)+ sp_bwd := fun _ _ h => absurd h (fun x => x)+ dom_fwd := fun p c h => absurd h (not_mem_pred intWitness V.domain (by decide) p c)+ dom_bwd := fun _ _ h => absurd h (fun x => x)+ rng_fwd := fun p c h => absurd h (not_mem_pred intWitness V.range (by decide) p c)+ rng_bwd := fun _ _ h => absurd h (fun x => x)+ eqc_fwd := fun a b h => absurd h (not_mem_pred intWitness V.equivalentClass (by decide) a b)+ eqp_fwd := fun a b h =>+ absurd h (not_mem_pred intWitness V.equivalentProperty (by decide) a b)+ same_fwd := fun a b h => absurd h (not_mem_pred intWitness V.sameAs (by decide) a b)+ inv_fwd := fun p q h => absurd h (not_mem_pred intWitness V.inverseOf (by decide) p q)+ sym_fwd := fun p h => absurd h (not_typed intWitness V.symmetricProperty (by decide) p)+ trp_fwd := fun p h => absurd h (not_typed intWitness V.transitiveProperty (by decide) p)+ svf_eq := fun z c _ h => absurd h (not_mem_pred intWitness V.someValuesFrom (by decide) z c)+ avf_eq := fun z c _ h => absurd h (not_mem_pred intWitness V.allValuesFrom (by decide) z c)+ hv_eq := fun z a _ h => absurd h (not_mem_pred intWitness V.hasValue (by decide) z a)+ restr_IC := fun x h => absurd h (not_typed intWitness V.Restriction (by decide) x)+ svf_typ := fun z c h => absurd h (not_mem_pred intWitness V.someValuesFrom (by decide) z c)+ avf_typ := fun z c h => absurd h (not_mem_pred intWitness V.allValuesFrom (by decide) z c)+ onp_typ := fun z p h => absurd h (not_mem_pred intWitness V.onProperty (by decide) z p) }+ facts := fun t ht => List.mem_cons_of_mem _ (List.mem_cons_of_mem _ ht)+ int_eq := by+ intro c l ms hc hchain x+ obtain ⟨rfl, rfl⟩ := i_only_int _ hc rfl+ rw [i_chain_l0 ms hchain]+ constructor+ · intro hx m hm+ obtain ⟨h1, h2⟩ := int_K_gives_both ⟨x, V.type, tK⟩ hx rfl rfl+ rcases List.mem_cons.mp hm with rfl | hm+ · exact h1+ · rcases List.mem_cons.mp hm with rfl | hm+ · exact h2+ · cases hm+ · intro hall+ exact int_both_give_K ⟨x, V.type, tM1⟩ (hall tM1 (by simp))+ ⟨x, V.type, tM2⟩ (hall tM2 (by simp)) ⟨rfl, rfl, rfl, rfl, rfl⟩+ uni_eq := fun c l _ hc => absurd hc (not_mem_pred intPremises V.unionOf (by decide) c l)+ oneOf_eq := fun c l _ hc => absurd hc (not_mem_pred intPremises V.oneOf (by decide) c l)++/-- **`cls-int1` still needs every member, over the `W3CModel` class.**+The same statement as `membership_in_one_member_does_not_give_the_intersection`+with `W3CEntails` for `Entails`. -/+theorem membership_in_one_member_is_not_w3c_enough :+ ¬ W3CEntails intPremises ⟨tv, V.type, tK⟩ := fun h =>+ absurd (h (herbrand intWitness) (fun _ => False) int_witness_is_a_w3c_model)+ (by decide : (⟨tv, V.type, tK⟩ : Triple) ∉ intWitness)++/-! ### And two that do not transfer, with the obstruction checked rather than argued++Both obstructions are independent of `IP`: the field that fails does not mention+it. They are recorded as theorems so that a later reader who tries the same+`IP := fun _ => False` trick is told why it stops, instead of rediscovering it. -/++/-- `svfWitness` carries `R owl:someValuesFrom D` and `R owl:onProperty p` and+types `R` as nothing at all, so RBS Table 5.3's `owl:onProperty` row fails on its+FIRST conjunct, `z ∈ ICEXT(owl:Restriction)`. No choice of `IP` repairs that,+which is why `the_old_svf_derivation_is_not_entailed` stays a statement about+the `Conditions` class. -/+theorem svf_witness_misses_the_restriction_typing :+ ((⟨tR, V.onProperty, tp⟩ : Triple) ∈ svfWitness) ∧+ (⟨tR, V.type, V.Restriction⟩ : Triple) ∉ svfWitness := by decide++/-! `feed`'s obstruction is the matching one and it is checked in+`RefuteWitness.lean`, beside the theorem it blocks, because `feedClosure` lives+there. -/+/-! ## Axioms, pinnedA `sorry` or a `native_decide` here would restore the vacuity objection this@@ -739,6 +1309,18 @@ footprint below. -/#guard_msgs in#print axioms live_rng_bwd_is_exercised+/-- info: 'OOCert.live_exercises_every_arm' depends on axioms: [propext] -/+#guard_msgs in+#print axioms live_exercises_every_arm++/-- info: 'OOCert.live_fires_the_other_sixteen' depends on axioms: [propext] -/+#guard_msgs in+#print axioms live_fires_the_other_sixteen++/-- info: 'OOCert.live_leaves_exactly_these_five_vacuous' depends on axioms: [propext] -/+#guard_msgs in+#print axioms live_leaves_exactly_these_five_vacuous+/-- info: 'OOCert.scm_avf2_runs_one_way_under_the_specification' depends on axioms: [propext] -/#guard_msgs in#print axioms scm_avf2_runs_one_way_under_the_specification@@ -758,4 +1340,20 @@ Quot.sound]#guard_msgs in#print axioms saturated_is_not_a_w3c_model_of_an_empty_enumeration+/-- info: 'OOCert.oo_witness_is_a_w3c_model' depends on axioms: [propext] -/+#guard_msgs in+#print axioms oo_witness_is_a_w3c_model++/-- info: 'OOCert.an_unlisted_individual_is_not_w3c_entailed' depends on axioms: [propext] -/+#guard_msgs in+#print axioms an_unlisted_individual_is_not_w3c_entailed++/-- info: 'OOCert.int_witness_is_a_w3c_model' depends on axioms: [propext] -/+#guard_msgs in+#print axioms int_witness_is_a_w3c_model++/-- info: 'OOCert.membership_in_one_member_is_not_w3c_enough' depends on axioms: [propext] -/+#guard_msgs in+#print axioms membership_in_one_member_is_not_w3c_enough+end OOCertdiff --git a/lean/OOCert/Witness.lean b/lean/OOCert/Witness.leanindex 6538ae7b..0e343b64 100644--- a/lean/OOCert/Witness.lean+++ b/lean/OOCert/Witness.lean@@ -172,12 +172,16 @@ theorem empty_herbrand_is_a_model : Model (herbrand []) [] where/-- Entailment is not trivial.-This one DOES transfer to the conforming model class, and+This one transfers to the `W3CModel` class unchanged, and`W3CWitness.lean`'s `not_everything_is_w3c_entailed` is the transfer: over theempty graph every antecedent of `W3C` is false and `IP := fun _ => False` makes-the four backward conditions vacuous, so the same interpretation serves. It is-the only non-entailment in this file that transfers without a new hand-built-structure. -/+the four backward conditions vacuous, so the same interpretation serves.++An earlier version of this docstring added that it was "the only non-entailment+in this file that transfers without a new hand-built structure". It is not. Two+of the three below transfer the same way, with their own witness graphs+unchanged, and the proofs are `an_unlisted_individual_is_not_w3c_entailed` and+`membership_in_one_member_is_not_w3c_enough`. -/theorem not_everything_is_entailed :¬ Entails [] ⟨"<http://ex.org/a>", "<http://ex.org/b>", "<http://ex.org/c>"⟩ := byintro h@@ -294,23 +298,27 @@ theorem svf_witness_is_a_model : Model (herbrand svfWitness) svfPremises where/-- **The old rule was unsound.** `C ⊑ ∃p.D` together with `x p y` and `y ∈ D` does not entail`x ∈ C`. The reasoner derived exactly this until 13 September 2026.-**The claim is about the `Conditions` model class, and `herbrand svfWitness` is-NOT a `W3CModel`.** Two fields of `W3C.lean`'s structure fail on it outright.-`svf_typ` is RBS Table 5.3's row `owl:someValuesFrom ⊆ ICEXT(owl:Restriction) ×-IC`, and `svfWitness` carries `R owl:someValuesFrom D` with no-`R rdf:type owl:Restriction`, so the antecedent holds and the consequent does-not. `sc_fwd` is Table 5.8 row 1 forward, and `svfWitness` carries-`C rdfs:subClassOf R` while `IC` is empty there, because no triple has-`rdfs:Class` as its object.--Patching those in does not finish the job. Bridge coherence-(`W3CWitness.lean`'s `live_is_bridge_coherent`) puts every predicate the witness-uses into `IP`, which here is `rdf:type`, `rdfs:subClassOf`, `owl:onProperty`,-`owl:someValuesFrom` and `p`; `sp_bwd` then forces `q rdfs:subPropertyOf q` for-each of those five, and `svfWitness` contains no `rdfs:subPropertyOf` triple at-all. Adding them puts `rdfs:subPropertyOf` itself into `IP`, and the tables-become a mutual fixpoint. A conforming replacement is therefore a hand-built-finite structure of the kind `W3CWitness.lean` builds, not a patch to this list.+**This is the one non-entailment in this file that does NOT transfer to the+`W3CModel` class**, and the field that stops it is checked rather than+argued: `W3CWitness.lean`'s `svf_witness_misses_the_restriction_typing`.++`onp_typ` is RBS Table 5.3's `owl:onProperty` row, whose first conjunct is+`z ∈ ICEXT(owl:Restriction)`. `svfWitness` carries `R owl:onProperty p` and types+`R` as nothing at all, so the antecedent holds and the consequent fails.+`svf_typ` fails the same way on `R owl:someValuesFrom D`, and `sc_fwd`, Table 5.8+row 1 forward, fails on `C rdfs:subClassOf R` because `IC` is empty here, no+triple having `rdfs:Class` as its object.++None of those three fields mentions `IP`, so the escape that works for the other+three witnesses in this repository, choosing `IP := fun _ => False` to make the+backward conditions vacuous, does not apply. A conforming replacement is a+hand-built finite structure of the kind `W3CWitness.lean` builds.++An earlier version of this paragraph gave a different and wrong reason: that+bridge coherence forces every predicate the witness uses into `IP` and `sp_bwd`+then demands reflexive `rdfs:subPropertyOf` triples. Bridge coherence is a+property `W3CWitness.lean`'s model has, not a field of `W3CModel`, and `IP` is+free.**The claim itself is not in doubt and must not be withdrawn on the strength ofthis note.** `tests/reason_rl_ext_soundness_test.rs` pins a real defect; what is@@ -462,20 +470,20 @@ theorem the_avf2_direction_the_table_gives_is_entailed :`C1 rdfs:subClassOf C2` here, which is what copying `scm-avf1` gives, would bemaking a claim this model refutes.-**This one has a conforming replacement**, and it is the only non-entailment in-the repository that does:-`W3CWitness.lean`'s `the_natural_avf2_direction_is_not_w3c_entailed` refutes the-same triple from the same premises with a seventeen-element bridge-coherent-structure that meets the quoted cells of Tables 5.2, 5.3, 5.6, 5.8, 5.9, 5.12-and 5.13.--`herbrand avfWitness` is not such a structure and cannot be patched into one.-`avfWitness` contains no `rdf:type` triple at all, so `IC` is empty and every-class extension is empty; `avf_typ` and `onp_typ` then fail for want of an-`owl:Restriction` typing. Supply those and `sp_bwd` forces `(p2, p1)` into-`rdfs:subPropertyOf`, because both properties have empty extensions there, and-that triple is absent. The replacement escapes by giving `p2` a pair, which is-also what makes `dom_bwd` and `rng_bwd` fire non-vacuously. -/+**This one has a conforming replacement built for it**, and it is the only one+in the repository that needed a new structure rather than a re-reading of the+one it already had: `W3CWitness.lean`'s+`the_natural_avf2_direction_is_not_w3c_entailed` refutes the same triple from the+same premises with a twenty-six-element bridge-coherent structure that meets the+quoted cells of Tables 5.2, 5.3, 5.6, 5.8, 5.9, 5.12 and 5.13.++`herbrand avfWitness` is not such a structure. `avfWitness` contains no `rdf:type`+triple at all, so every class extension is empty, and `avf_typ` and `onp_typ`+then fail for want of an `owl:Restriction` typing; `onp_typ` fails for a second+reason, its `IP p` conjunct, which `IP := fun _ => False` cannot supply. The+replacement gives `p1` and `p2` real pairs, which is what makes `sp_fwd` and+`sp_bwd` decide the premise `p1 rdfs:subPropertyOf p2` for a reason and what+makes `dom_bwd` and `rng_bwd` fire non-vacuously. -/theorem the_natural_avf2_direction_is_not_entailed :¬ Entails avfPremises ⟨tC1, V.subClassOf, tC2⟩ := fun h =>absurd (h (herbrand avfWitness) avf_witness_is_a_model)@@ -518,7 +526,9 @@ private theorem oo_l0_rest : ∀ t ∈ ooPremises, t.s = oL0 → t.p = V.restprivate theorem oo_l1_first : ∀ t ∈ ooPremises, t.s = oL1 → t.p = V.first → t.o = tB := by decideprivate theorem oo_l1_rest : ∀ t ∈ ooPremises, t.s = oL1 → t.p = V.rest → t.o = V.nil := by decideprivate theorem oo_no_nil_subject : ∀ t ∈ ooPremises, t.s ≠ V.nil := by decide-private theorem oo_only_oneOf :+/-- Not `private`: `W3CWitness.lean` reads it to transfer+`an_unlisted_individual_is_not_entailed` to the `W3CModel` class. -/+theorem oo_only_oneOf :∀ t ∈ ooPremises, t.p = V.oneOf → t.s = tE ∧ t.o = oL0 := by decideprivate theorem oo_chain_nil : ∀ ms, Chain ooPremises V.nil ms → ms = [] := by@@ -536,7 +546,8 @@ private theorem oo_chain_l1 : ∀ ms, Chain ooPremises oL1 ms → ms = [tB] := bsubst hm; subst hlrw [oo_chain_nil _ hr]-private theorem oo_chain_l0 : ∀ ms, Chain ooPremises oL0 ms → ms = [tA, tB] := by+/-- Not `private`, for the same reason as `oo_only_oneOf`. -/+theorem oo_chain_l0 : ∀ ms, Chain ooPremises oL0 ms → ms = [tA, tB] := byintro ms hrcases chain_inv h with ⟨hn, _⟩ | ⟨m, l', ms', rfl, h1, h2, hr⟩· exact absurd hn (by decide)@@ -618,11 +629,17 @@ passes unchanged whether or not the missing `⊆` half is present, so it cannotdetect that half's absence. That omission is currently undetected by anything inthis repository.-SECOND, the result is about the `Conditions` model class. Bridge coherence puts-every predicate `ooWitness` uses into `IP`, which is `rdf:type`, `owl:oneOf`,-`rdf:first` and `rdf:rest`; `sp_bwd` then forces `q rdfs:subPropertyOf q` for-each, and `ooWitness` contains no `rdfs:subPropertyOf` triple. A conforming-replacement is a hand-built finite structure. -/+SECOND, an earlier version of this docstring said the result was about the+`Conditions` model class and could not escape it, on the ground that bridge+coherence puts every predicate `ooWitness` uses into `IP` and `sp_bwd` then forces+reflexive `rdfs:subPropertyOf` triples the graph lacks. That is wrong twice over:+bridge coherence is a property one model in `W3CWitness.lean` happens to have and+not a field of `W3CModel`, and `IP` is a free parameter that the refuter chooses.+Choose `IP := fun _ => False` and this very interpretation is a `W3CModel`.+`an_unlisted_individual_is_not_w3c_entailed` is the transfer, and it needs+`ooWitness` exactly as it stands. Table 5.5's equality is the only field it has to+earn, and it satisfies it in both directions, which is the first point read the+other way round. -/theorem an_unlisted_individual_is_not_entailed : ¬ Entails ooPremises ⟨tZ, V.type, tE⟩ :=fun h =>absurd (h (herbrand ooWitness) oo_witness_is_a_model)@@ -655,7 +672,10 @@ private theorem i_l0_rest : ∀ t ∈ intPremises, t.s = iL0 → t.p = V.restprivate theorem i_l1_first : ∀ t ∈ intPremises, t.s = iL1 → t.p = V.first → t.o = tM2 := by decideprivate theorem i_l1_rest : ∀ t ∈ intPremises, t.s = iL1 → t.p = V.rest → t.o = V.nil := by decideprivate theorem i_no_nil_subject : ∀ t ∈ intPremises, t.s ≠ V.nil := by decide-private theorem i_only_int :+/-- Not `private`: `W3CWitness.lean` reads it to transfer+`membership_in_one_member_does_not_give_the_intersection` to the conforming+model class. -/+theorem i_only_int :∀ t ∈ intPremises, t.p = V.intersectionOf → t.s = tK ∧ t.o = iL0 := by decide/-- Anything that is both an `M1` and an `M2` in this graph is already a `K`,@@ -684,7 +704,8 @@ private theorem i_chain_l1 : ∀ ms, Chain intPremises iL1 ms → ms = [tM2] :=subst hm; subst hlrw [i_chain_nil _ hr]-private theorem i_chain_l0 : ∀ ms, Chain intPremises iL0 ms → ms = [tM1, tM2] := by+/-- Not `private`, for the same reason as `i_only_int`. -/+theorem i_chain_l0 : ∀ ms, Chain intPremises iL0 ms → ms = [tM1, tM2] := byintro ms hrcases chain_inv h with ⟨hn, _⟩ | ⟨m, l', ms', rfl, h1, h2, hr⟩· exact absurd hn (by decide)@@ -758,11 +779,17 @@ theorem a_member_of_the_intersection_is_entailed : Entails intPremises ⟨tw, V./-- **And the converse still needs every member.** `v` is an `M1` and no modelhas to make it a `K`, so `cls-int1` has lost nothing to `cls-int2`.-About the `Conditions` model class, for the same reason as the `owl:oneOf` pair-above: bridge coherence puts `rdf:type`, `owl:intersectionOf`, `rdf:first` and-`rdf:rest` into `IP`, and `sp_bwd` then forces four `rdfs:subPropertyOf` triples-that `intWitness` does not contain. A conforming replacement is a hand-built-finite structure. -/+This transfers to the `W3CModel` class with `intWitness` unchanged, as+`membership_in_one_member_is_not_w3c_enough`, by the same `IP := fun _ => False`+reading as the `owl:oneOf` pair above. Table 5.4's equality holds here in both+directions, because `w` is the only `K` and also the only thing that is both an+`M1` and an `M2`; `v` is an `M1` and not an `M2`, which is what keeps the equality+true and the conclusion false at once.++An earlier version of this docstring said the opposite, on the ground that bridge+coherence forces `rdf:type`, `owl:intersectionOf`, `rdf:first` and `rdf:rest` into+`IP` and `sp_bwd` then demands four `rdfs:subPropertyOf` triples. `W3CModel` does+not require bridge coherence and `IP` is free. -/theorem membership_in_one_member_does_not_give_the_intersection :¬ Entails intPremises ⟨tv, V.type, tK⟩ := fun h =>absurd (h (herbrand intWitness) int_witness_is_a_model)