|
| 1 | +@prefix verisim: <https://hyperpolymath.org/verisimdb/schema/theorem-alignment#> . |
| 2 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| 3 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| 4 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 5 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
| 6 | +@prefix sh: <http://www.w3.org/ns/shacl#> . |
| 7 | + |
| 8 | +verisim:TheoremIdentity a rdfs:Class ; |
| 9 | + rdfs:label "Theorem identity" ; |
| 10 | + rdfs:comment "A theorem in a specific prover namespace with a stable canonical hash." . |
| 11 | + |
| 12 | +verisim:CanonicalForm a rdfs:Class ; |
| 13 | + rdfs:label "Canonical form" ; |
| 14 | + rdfs:comment "Canonical normal form used to produce a stable theorem hash." . |
| 15 | + |
| 16 | +verisim:AlignmentAssertion a rdfs:Class ; |
| 17 | + rdfs:label "Alignment assertion" ; |
| 18 | + rdfs:comment "An explicit relation between two theorem identities with confidence and provenance." . |
| 19 | + |
| 20 | +verisim:AlignmentMethod a rdfs:Class ; |
| 21 | + rdfs:label "Alignment method" ; |
| 22 | + rdfs:comment "Method used for theorem transfer (Dedukti, OpenTheory, manual)." . |
| 23 | + |
| 24 | +verisim:Dedukti a verisim:AlignmentMethod . |
| 25 | +verisim:OpenTheory a verisim:AlignmentMethod . |
| 26 | +verisim:Manual a verisim:AlignmentMethod . |
| 27 | + |
| 28 | +verisim:inProver a rdf:Property ; |
| 29 | + rdfs:domain verisim:TheoremIdentity ; |
| 30 | + rdfs:range xsd:string ; |
| 31 | + rdfs:comment "Prover name, for example Coq, Lean4, Isabelle, HOL4." . |
| 32 | + |
| 33 | +verisim:theoremName a rdf:Property ; |
| 34 | + rdfs:domain verisim:TheoremIdentity ; |
| 35 | + rdfs:range xsd:string . |
| 36 | + |
| 37 | +verisim:canonicalHash a rdf:Property ; |
| 38 | + rdfs:domain verisim:TheoremIdentity ; |
| 39 | + rdfs:range xsd:string ; |
| 40 | + rdfs:comment "Stable canonical-form digest (sha256:<hex>)." . |
| 41 | + |
| 42 | +verisim:hasCanonicalForm a rdf:Property ; |
| 43 | + rdfs:domain verisim:TheoremIdentity ; |
| 44 | + rdfs:range verisim:CanonicalForm . |
| 45 | + |
| 46 | +verisim:canonicalFormText a rdf:Property ; |
| 47 | + rdfs:domain verisim:CanonicalForm ; |
| 48 | + rdfs:range xsd:string . |
| 49 | + |
| 50 | +verisim:canonicalVersion a rdf:Property ; |
| 51 | + rdfs:domain verisim:CanonicalForm ; |
| 52 | + rdfs:range xsd:string ; |
| 53 | + rdfs:comment "Canonicaliser version used for hash derivation." . |
| 54 | + |
| 55 | +verisim:alignsTo a rdf:Property, owl:SymmetricProperty ; |
| 56 | + rdfs:domain verisim:TheoremIdentity ; |
| 57 | + rdfs:range verisim:TheoremIdentity ; |
| 58 | + rdfs:comment "Theorems are semantically equivalent up to translation." . |
| 59 | + |
| 60 | +verisim:isTranslationOf a rdf:Property ; |
| 61 | + rdfs:domain verisim:TheoremIdentity ; |
| 62 | + rdfs:range verisim:TheoremIdentity ; |
| 63 | + rdfs:comment "Direction-aware theorem translation relation." . |
| 64 | + |
| 65 | +verisim:provedBy a rdf:Property ; |
| 66 | + rdfs:domain verisim:TheoremIdentity ; |
| 67 | + rdfs:range xsd:string ; |
| 68 | + rdfs:comment "Prover engine that validated this theorem instance." . |
| 69 | + |
| 70 | +verisim:cannotAlignTo a rdf:Property ; |
| 71 | + rdfs:domain verisim:TheoremIdentity ; |
| 72 | + rdfs:range verisim:TheoremIdentity ; |
| 73 | + rdfs:comment "Known impossible alignment (for example classical to constructive mismatch)." . |
| 74 | + |
| 75 | +verisim:sourceTheorem a rdf:Property ; |
| 76 | + rdfs:domain verisim:AlignmentAssertion ; |
| 77 | + rdfs:range verisim:TheoremIdentity . |
| 78 | + |
| 79 | +verisim:targetTheorem a rdf:Property ; |
| 80 | + rdfs:domain verisim:AlignmentAssertion ; |
| 81 | + rdfs:range verisim:TheoremIdentity . |
| 82 | + |
| 83 | +verisim:portedVia a rdf:Property ; |
| 84 | + rdfs:domain verisim:AlignmentAssertion ; |
| 85 | + rdfs:range verisim:AlignmentMethod ; |
| 86 | + rdfs:comment "Translation route used to derive the alignment." . |
| 87 | + |
| 88 | +verisim:translationArtifactHash a rdf:Property ; |
| 89 | + rdfs:domain verisim:AlignmentAssertion ; |
| 90 | + rdfs:range xsd:string ; |
| 91 | + rdfs:comment "Digest for translation artefact proving provenance of the edge." . |
| 92 | + |
| 93 | +verisim:alignmentConfidence a rdf:Property ; |
| 94 | + rdfs:domain verisim:AlignmentAssertion ; |
| 95 | + rdfs:range xsd:decimal ; |
| 96 | + rdfs:comment "Confidence in [0, 1] for the alignment assertion." . |
| 97 | + |
| 98 | +verisim:alignmentTimestamp a rdf:Property ; |
| 99 | + rdfs:domain verisim:AlignmentAssertion ; |
| 100 | + rdfs:range xsd:dateTime . |
| 101 | + |
| 102 | +verisim:AlignmentAssertionShape a sh:NodeShape ; |
| 103 | + sh:targetClass verisim:AlignmentAssertion ; |
| 104 | + sh:property [ |
| 105 | + sh:path verisim:sourceTheorem ; |
| 106 | + sh:minCount 1 ; |
| 107 | + sh:maxCount 1 ; |
| 108 | + sh:class verisim:TheoremIdentity ; |
| 109 | + ] ; |
| 110 | + sh:property [ |
| 111 | + sh:path verisim:targetTheorem ; |
| 112 | + sh:minCount 1 ; |
| 113 | + sh:maxCount 1 ; |
| 114 | + sh:class verisim:TheoremIdentity ; |
| 115 | + ] ; |
| 116 | + sh:property [ |
| 117 | + sh:path verisim:portedVia ; |
| 118 | + sh:minCount 1 ; |
| 119 | + sh:maxCount 1 ; |
| 120 | + sh:class verisim:AlignmentMethod ; |
| 121 | + ] ; |
| 122 | + sh:property [ |
| 123 | + sh:path verisim:translationArtifactHash ; |
| 124 | + sh:minCount 1 ; |
| 125 | + sh:maxCount 1 ; |
| 126 | + sh:datatype xsd:string ; |
| 127 | + ] ; |
| 128 | + sh:property [ |
| 129 | + sh:path verisim:alignmentConfidence ; |
| 130 | + sh:minCount 1 ; |
| 131 | + sh:maxCount 1 ; |
| 132 | + sh:datatype xsd:decimal ; |
| 133 | + sh:minInclusive 0 ; |
| 134 | + sh:maxInclusive 1 ; |
| 135 | + ] ; |
| 136 | + sh:property [ |
| 137 | + sh:path verisim:alignmentTimestamp ; |
| 138 | + sh:minCount 1 ; |
| 139 | + sh:maxCount 1 ; |
| 140 | + sh:datatype xsd:dateTime ; |
| 141 | + ] . |
| 142 | + |
| 143 | +verisim:TheoremIdentityShape a sh:NodeShape ; |
| 144 | + sh:targetClass verisim:TheoremIdentity ; |
| 145 | + sh:property [ |
| 146 | + sh:path verisim:inProver ; |
| 147 | + sh:minCount 1 ; |
| 148 | + sh:maxCount 1 ; |
| 149 | + sh:datatype xsd:string ; |
| 150 | + ] ; |
| 151 | + sh:property [ |
| 152 | + sh:path verisim:theoremName ; |
| 153 | + sh:minCount 1 ; |
| 154 | + sh:maxCount 1 ; |
| 155 | + sh:datatype xsd:string ; |
| 156 | + ] ; |
| 157 | + sh:property [ |
| 158 | + sh:path verisim:canonicalHash ; |
| 159 | + sh:minCount 1 ; |
| 160 | + sh:maxCount 1 ; |
| 161 | + sh:datatype xsd:string ; |
| 162 | + sh:pattern "^sha256:[0-9a-f]{64}$" ; |
| 163 | + ] ; |
| 164 | + sh:property [ |
| 165 | + sh:path verisim:hasCanonicalForm ; |
| 166 | + sh:minCount 1 ; |
| 167 | + sh:maxCount 1 ; |
| 168 | + sh:class verisim:CanonicalForm ; |
| 169 | + ] . |
0 commit comments