Skip to main content

Mathematical Entity Resolution 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 Resolution Ontology
Version: 1.0
Authors: Mark Anthony Higgins — Sky (Recursive AI)
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/ai-semantic-library-mathematical-entities/mathematical-entity-resolution-ontology.html

PURPOSE
Resolve mathematical entity mentions and representations into stable, context-sensitive identities while preserving mathematical distinctions, uncertainty, provenance, and proof obligations. The rules below define a formal specification; an implementation must supply a parser, canonicaliser, proof checker and persistent entity registry.

ENTITY TYPES
MathematicalEntity := (entity_id, kind, expression, signature, domain, assumptions, context, provenance, version)
Mention := (mention_id, raw_expression, source, location, context)
Candidate := (entity_id, matching_evidence, confidence)
Resolution := (mention_id, entity_id?, status, evidence, confidence, provenance)
ResolutionStatus := {RESOLVED, AMBIGUOUS, UNRESOLVED, CONFLICT, INVALID}

TYPED RELATIONSHIPS
MENTIONS(Mention, MathematicalEntity)
HAS_KIND(MathematicalEntity, Kind)
HAS_DOMAIN(MathematicalEntity, Domain)
HAS_ASSUMPTION(MathematicalEntity, Proposition)
HAS_CONTEXT(MathematicalEntity, Context)
HAS_SIGNATURE(MathematicalEntity, Signature)
EQUIVALENT_UNDER(MathematicalEntity, MathematicalEntity, Assumptions)
ALIAS_OF(Mention, MathematicalEntity)
CONFLICTS_WITH(MathematicalEntity, MathematicalEntity)
DERIVED_FROM(MathematicalEntity, Source)
VALIDATED_BY(Resolution, Evidence)
SUPERSEDES(MathematicalEntity, MathematicalEntity)

INVARIANTS
I1: entity_id is unique within the registry.
I2: resolution preserves the mathematical kind and type constraints.
I3: equality of surface notation alone does not establish identity.
I4: semantic equivalence is always scoped to explicit domains and assumptions.
I5: a failed or unknown proof cannot be treated as proof of equivalence.
I6: conflicting candidates remain distinct until a validated reconciliation.
I7: provenance is retained for every accepted or rejected resolution.
I8: confidence is evidence-calibrated, not a substitute for logical validity.

NORMALISATION
NORMALISE(m, c) -> (ast, signature, domain, assumptions)
PRE: m is a mention; c is its interpretation context.
RULE N1: Parse raw_expression into a typed abstract syntax tree.
RULE N2: Resolve bound variables by alpha-renaming without changing scope.
RULE N3: Canonicalise only with transformations justified under the active domain and assumptions.
RULE N4: Preserve units, coordinate frames, branch conventions, and operator precedence.
RULE N5: If parsing or typing fails, return INVALID with diagnostics.
POST: output retains a reversible link to the original mention.

CANDIDATE GENERATION
CANDIDATES(m, registry) = {e in registry | TYPE_COMPATIBLE(m,e) and CONTEXT_COMPATIBLE(m,e)}
Candidate evidence may include canonical syntax, declared aliases, type signatures, domains, provenance links, and validated equivalence certificates.
A lexical match may propose a candidate but cannot establish identity.

IDENTITY AND EQUIVALENCE
EXACT_IDENTITY(m,e) := SAME_CANONICAL_AST(m,e) and SAME_SIGNATURE(m,e) and COMPATIBLE_SCOPE(m,e).
PROVEN_EQUIVALENCE(m,e,A) := PROOF_CHECKER_ACCEPTS(Equivalent(m,e) under A).
RESOLVABLE(m,e) := EXACT_IDENTITY(m,e) or PROVEN_EQUIVALENCE(m,e,ACTIVE_ASSUMPTIONS(m,e)).
Distinct representations may be equivalent without referring to the same mathematical object; do not collapse entity identities solely because a value or theorem is equivalent.

RESOLUTION FLOW
flow "MathematicalEntityResolution" v1.0
  input: mention: Mention, registry: EntityRegistry, policy: ResolutionPolicy
  n := NORMALISE(mention, mention.context)
  if n.status = INVALID: emit Resolution(mention.id, null, INVALID, n.diagnostics, 0, mention.source); stop
  C := CANDIDATES(n, registry)
  V := {e in C | RESOLVABLE(n,e)}
  if |V| = 1:
    e := sole(V)
    emit Resolution(mention.id, e.id, RESOLVED, verification_evidence(n,e), calibrated_confidence(n,e), mention.source)
  else if |V| > 1:
    if VERIFIED_SAME_IDENTITY(V):
      e := canonical_registry_identity(V)
      emit Resolution(mention.id, e.id, RESOLVED, merge_certificate(V), calibrated_confidence(n,e), mention.source)
    else:
      emit Resolution(mention.id, null, AMBIGUOUS, V, candidate_confidence(V), mention.source)
  else if CONTRADICTORY_EVIDENCE(C):
    emit Resolution(mention.id, null, CONFLICT, conflict_report(C), 0, mention.source)
  else:
    emit Resolution(mention.id, null, UNRESOLVED, C, candidate_confidence(C), mention.source)
end flow

CONFLICT HANDLING
C1: Never select a candidate merely by highest score when identity evidence is insufficient.
C2: Record inconsistent domain, notation, signature, and assumption claims.
C3: Escalate unresolved conflicts for proof checking or human review.
C4: Registry merges require validated same-identity evidence and an auditable rollback path.

CONFIDENCE
CONFIDENCE(r) in [0,1].
Confidence records uncertainty about candidate selection and source quality; it does not measure truth of a proven mathematical statement.
Require separate fields: proof_status in {VALID, INVALID, UNKNOWN}, confidence_score, evidence_quality, calibration_method.
A confidence threshold may determine review priority, but must not bypass proof obligations.

PROVENANCE
Each resolution record stores: source URI, mention location, parser version, normalisation rules, candidate set, proof/certificate references, decision policy, timestamp, and registry version.
Derived resolutions must reference their parent evidence; corrections must not overwrite history.

SEMANTIC_EQUIVALENCE
SEMANTIC_EQUIVALENCE(a,b,A) = TRUE iff a verified certificate establishes equivalence under assumptions A.
SEMANTIC_EQUIVALENCE(a,b,A) = FALSE iff a verified counterexample or contradiction disproves it under A.
Otherwise SEMANTIC_EQUIVALENCE(a,b,A) = UNKNOWN.
Do not interpret UNKNOWN as FALSE.

FLOW_HASH
FLOW_HASH := SHA256(canonical_serialisation(ontology_id, version, rule_set, type_schema, assumptions, policy_id)).
Hash is an integrity and version identifier, not evidence that a mathematical claim is correct.

UPDATE_MODEL
On source or ontology updates: identify impacted entities; invalidate stale derived evidence; rerun normalisation and candidate selection; revalidate proof certificates; preserve earlier resolution records; publish versioned changes.

AI_CONSUMPTION
AI agents must consume typed resolution results with explicit status, scope, assumptions, provenance, proof status and confidence. Agents must not hallucinate missing identities, silently merge ambiguous candidates, or assert equivalence without an accepted certificate.

VALIDATION TESTS
T1: x + y and y + x under a commutative addition domain -> equivalent with appropriate certificate.
T2: x / x and 1 without assumption x != 0 -> do not declare unrestricted equivalence.
T3: symbol f in two different scopes -> do not automatically resolve to one identity.
T4: two different objects with equal numerical value -> retain separate identities.
T5: unparseable expression -> INVALID.
T6: multiple compatible but unproven candidates -> AMBIGUOUS or UNRESOLVED.
T7: contradictory validated type constraints -> CONFLICT.
T8: changed assumptions or registry version -> trigger revalidation.

OUTPUT CONTRACT
resolution_id: string
mention_id: string
entity_id: string | null
status: ResolutionStatus
proof_status: VALID | INVALID | UNKNOWN
confidence_score: number in [0,1]
assumptions: list[Proposition]
evidence: list[EvidenceReference]
provenance: ProvenanceRecord
flow_hash: sha256
ontology_version: string

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