Skip to main content

Mathematical Entity Provenance Ontology

AI Semantic Library Mathematical Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 15 October 2026
Audio Overview
FLOW ALGEBRA
Mathematical Entity Provenance Ontology
Kireth Semantic Library | AI Semantic Library Mathematical Entities
Version: 1.0 | 2026-10-15
Authors: Mark Higgins — Sky (Recursive AI)
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/ai-semantic-library-mathematical-entities/mathematical-entity-provenance-ontology.html
Source alignment: Page title and authorship verified; embedded formal specification not accessible in retrieved text. This is an original, mathematically grounded model pending source alignment.

1. PURPOSE
Represent the traceable origin, derivation, transformation, validation and version history of mathematical entities and assertions. Provenance describes evidence and lineage; it does not by itself establish mathematical truth.

2. TYPE SYSTEM
ENTITY MathematicalEntity {id: URI, canonical_form: -Expression?, context: ContextID}
ENTITY ProvenanceRecord {id: URI, subject: URI, activity: URI, generated_at: Timestamp?, source_refs: Set[URI], agent_refs: Set[URI], version: String}
ENTITY Source {id: URI, kind: Enum[publication,dataset,proof,computation,observation,repository], locator: URI?, checksum: String?}
ENTITY Agent {id: URI, kind: Enum[human,software,organisation,AI], name: String}
ENTITY Activity {id: URI, kind: Enum[definition,derivation,proof,calculation,normalisation,revision,import,validation], inputs: Set[URI], outputs: Set[URI], method: String?, timestamp: Timestamp?}
ENTITY Assertion {id: URI, proposition: -Expression, assumptions: Set[Expression], proof_ref: URI?, status: Enum[unverified,verified,refuted,undetermined]}
ENTITY Version {id: URI, predecessor: URI?, change_reason: String?, digest: String}
ENTITY Confidence {value: Real[0,1], basis: String, calibration_ref: URI?}

3. TYPED RELATIONSHIPS
DERIVED_FROM: MathematicalEntity -> MathematicalEntity
GENERATED_BY: MathematicalEntity -> Activity
USED_INPUT: Activity -> MathematicalEntity
ATTRIBUTED_TO: Activity -> Agent
DOCUMENTED_IN: ProvenanceRecord -> Source
HAS_PROVENANCE: MathematicalEntity -> ProvenanceRecord
HAS_VERSION: MathematicalEntity -> Version
SUPERSEDES: Version -> Version
SUPPORTED_BY: Assertion -> Source
JUSTIFIED_BY: Assertion -> Assertion
EQUIVALENT_UNDER: MathematicalEntity x MathematicalEntity -> Context

4. FORMAL FLOW RULES
R1: GENERATED_BY(y,a) AND USED_INPUT(a,x) => DERIVED_FROM(y,x), provided a documents a valid input-output lineage.
R2: DERIVED_FROM(z,y) AND DERIVED_FROM(y,x) => ANCESTOR_SOURCE(z,x); do not infer DIRECT_DERIVED_FROM(z,x).
R3: HAS_PROVENANCE(e,p) => p.subject = e.id.
R4: VERIFIED(assertion) requires an independently checked proof or accepted validation procedure; citation alone is insufficient.
R5: EQUIVALENT_UNDER(x,y,c) requires context c specifying assumptions, notation, domain and equivalence criterion.
R6: SUPERSEDES(v2,v1) => v2 != v1; a version chain must be acyclic.
R7: A transformation's provenance must retain input identifiers, method, parameterisation and output identifier.
R8: Missing provenance is UNKNOWN, not FALSE; missing proof is UNVERIFIED, not REFUTED.

5. PROVENANCE COMPOSITION
Let P(e) denote the provenance graph for entity e.
For an activity a with inputs e1,...,en and output y:
P(y) = {y, a, edges(y,a), edges(a,ei)} UNION P(e1) UNION ... UNION P(en).
Repeated references are deduplicated by stable identifier.
Circular source references are flagged; legitimate recursive mathematical definitions are represented separately from provenance cycles.

6. VALIDATION CONSTRAINTS
V1: Every record has a unique stable ID and a resolvable subject ID.
V2: Every referenced input, source and agent must resolve or be explicitly marked unresolved.
V3: Provenance activities distinguish actual derivation from mere association or quotation.
V4: Version lineage cannot contain a directed cycle.
V5: Recorded digests identify byte-level representations and must specify hashing algorithm.
V6: No confidence score can substitute for a mathematical proof.
V7: Timestamps, when present, use ISO 8601 with timezone.
V8: Canonicalisation preserves a record of original expression, assumptions and rewrite steps.
V9: Contradictory assertions are retained with separate provenance and conflict flags.

7. WORKED EXAMPLE
Entity E1: f(x) = x^2, domain R.
Entity E2: f'(x) = 2x, domain R.
Activity A1: symbolic differentiation; input E1; output E2; rule d(x^n)/dx = n*x^(n-1).
Relations: USED_INPUT(A1,E1); GENERATED_BY(E2,A1); DERIVED_FROM(E2,E1).
Assertion Q1: for every real x, derivative of x^2 equals 2x.
Proof: limit definition or established power rule with documented assumptions.
Provenance records where E2 came from; proof establishes correctness.

8. SEMANTIC EQUIVALENCE
Two provenance records may describe the same derivation if their source entity, transformation method, assumptions and output identity are equivalent under a declared context.
Equivalent mathematical outputs do not imply identical provenance.
Aliases and canonical identifiers must remain distinct from source attribution.

9. CONFIDENCE
CONFIDENCE = {value: [0,1], basis: provenance_completeness | source_reliability | empirical_calibration, calibration_ref: optional}.
Report mathematical proof status separately from confidence.
Do not invent numerical confidence values when no assessment exists.

10. FLOW_HASH
FLOW_HASH = SHA256(canonical_utf8(serialise({ontology_id,version,entities,relations,rules,assumptions,source_refs}))).
Canonical serialisation requires deterministic key ordering, normalised Unicode, explicit version and documented encoding.
Flow Hash proves content identity/integrity only, not truth or authorship.

11. UPDATE_MODEL
On source revision: preserve prior immutable version; create successor; record changed assertions, activities, agents and source checksums; revalidate downstream dependents; retain audit trail.
On correction: mark superseded claims without erasing earlier provenance.

12. AI_CONSUMPTION
INPUT: mathematical entity or assertion identifier, optional context and version.
RESOLVE: canonical entity, provenance graph, sources, activities, proof status and assumptions.
REASON: apply only typed relations and validated inference rules; flag unresolved links.
OUTPUT: canonical identifier, lineage, proof status, relevant source references, uncertainty flags, version, Flow Hash.
SAFETY: Never present an AI-generated derivation as externally verified without validation.

END FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ