AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
Mathematical Entity Relationship Ontology
Version: 1.0
Date: 2026-10-15
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/ai-semantic-library-mathematical-entities/mathematical-entity-relationship-ontology.html
Source alignment: provisional; source page content not independently verified.
Authors: Mark Higgins — Sky (Recursive AI)
Project: Kireth Semantic Library | https://kirethresearch.org
PURPOSE
Represent typed, directed, qualified relationships among mathematical entities in a provenance-aware semantic graph. Separate identity, mathematical equivalence, structural dependency and derivation to avoid unsound inferences.
ENTITY TYPES
MathematicalEntity(id, kind, canonical_form?, domain?, assumptions?, provenance?)
Relationship(id, subject_id, predicate, object_id, context, evidence, confidence)
RelationshipContext(theory, domain, assumptions, notation, version)
Proof(id, premises, conclusion, rule, verification_status)
Definition(id, definiendum, definiens, scope)
RELATIONSHIP TAXONOMY
IDENTICAL_TO: strict identity under a declared theory and interpretation.
EQUIVALENT_TO: equivalence under explicitly specified semantics and assumptions.
IS_A: taxonomic membership/subtyping, only when a declared type system supports it.
INSTANCE_OF: instance-to-class relation.
PART_OF: structural inclusion; transitivity only where the part relation is defined as transitive.
DEPENDS_ON: definition or computation dependency; not automatically causal.
DEFINED_BY: link from mathematical entity to a scoped definition.
DERIVED_FROM: derivation with supporting proof or transformation.
MAPS_TO: function/domain-to-codomain association, not necessarily bijective.
IS_INVERSE_OF: inverse under specified domains and operations.
IS_SPECIAL_CASE_OF: specialization under additional restrictions.
IS_ISOMORPHIC_TO: structure-preserving bijection, with structure specified.
IS_APPROXIMATION_OF: approximation with metric, tolerance and conditions.
CONTRADICTS: mutually incompatible propositions under the same interpretation.
TYPED FLOW
flow MathematicalEntityRelationship v1.0:
input: subject:MathematicalEntity, predicate:RelationshipType,
object:MathematicalEntity, context:RelationshipContext
require: subject.id != null AND object.id != null
require: predicate in RELATIONSHIP_TAXONOMY
require: type_signature(predicate, subject.kind, object.kind, context)
require: assumptions_consistent(context.assumptions)
evaluate: evidence := validate_evidence(subject, predicate, object, context)
output: Relationship(subject.id, predicate, object.id, context, evidence, confidence(evidence))
reject: incompatible types, missing domain, unverified equivalence, contradictory assumptions
FORMAL SEMANTICS
Graph G = (V, E, tau_V, tau_E), where V contains entities and E typed relationships.
Each edge e = (u, r, v, c, p) has relation r, context c and provenance p.
IDENTICAL_TO: a = b => b = a; a = b AND b = c => a = c.
EQUIVALENT_TO: a ~_c b requires an equivalence relation defined within context c.
IS_ISOMORPHIC_TO: A ≅ B requires an invertible structure-preserving map.
DEFINED_BY: e --defined_by--> d requires d to specify a valid scoped definition.
DERIVED_FROM: conclusion must follow from premises using a sound rule.
INFERENCE RULES
R1 Symmetry: IDENTICAL_TO(a,b) => IDENTICAL_TO(b,a).
R2 Transitivity: IDENTICAL_TO(a,b) & IDENTICAL_TO(b,c) => IDENTICAL_TO(a,c).
R3 Equivalence symmetry/transitivity only for the same established equivalence relation and compatible context.
R4 Isomorphism composition: A ≅ B & B ≅ C => A ≅ C for the same structure signature.
R5 Definition substitution: replace equals only where scope and assumptions permit.
R6 Dependency traversal: a depends_on b & b depends_on c => a transitively_depends_on c; do not assert a direct dependency edge without labeling it inferred.
R7 Derivation: verified premises + verified sound rule => derived conclusion.
R8 No cross-context inference unless an explicit context-translation proof exists.
VALIDATION CONSTRAINTS
- Entity IDs are stable and unique; canonical labels alone are not IDs.
- Every relationship records direction and mathematical context.
- Symmetric relations may generate reverse edges; asymmetric ones must not.
- Do not confuse equality with isomorphism, similarity, approximation or aliasing.
- Require a witness/proof for substantive equivalence or derivation claims.
- Prevent circular definitions unless a well-founded or fixed-point semantics is specified.
- Store counterexamples or unresolved claims without treating them as verified facts.
- Version assumptions, definitions, proof status and provenance.
WORKED EXAMPLES
Example A: In real arithmetic, (x + 0) EQUIVALENT_TO x for x in R; proof: additive identity.
Example B: Finite-dimensional real vector spaces R^2 and the degree <= 1 real polynomials are IS_ISOMORPHIC_TO via (a,b) -> a + bx; they are not literally identical sets.
Example C: A derivative DERIVED_FROM a differentiable function through the differentiation operator, with domain and differentiability conditions recorded.
Example D: sin(x) APPROXIMATES x near x=0; record error bound |sin(x)-x| <= |x|^3/6 for real x, rather than asserting identity.
SEMANTIC_EQUIVALENCE
canonicalize(entity, context) -> canonical_representation
compare(a,b,context) -> {identical, equivalent, isomorphic, related, distinct, unknown}
Unknown is distinct from false. Mathematical equivalence requires a proof or a validated decision procedure under declared assumptions.
CONFIDENCE
confidence = verified | strongly_supported | provisional | unknown
Proof-verified mathematical claims: verified. Heuristic semantic links: provisional until checked.
Confidence is epistemic metadata, not a replacement for mathematical proof.
FLOW_HASH
FLOW_HASH := SHA256(canonical_serialization(version, entity_ids, predicate, context, assumptions, evidence_ids))
Hash is a reproducibility identifier, not proof of truth; use deterministic key ordering and Unicode normalization.
UPDATE_MODEL
on_definition_change: invalidate dependent inference cache; rerun affected validations.
on_proof_revision: update evidence and verification status; recalculate confidence and FLOW_HASH.
on_context_change: recompute compatibility before reusing edges.
Maintain immutable revision history and provenance.
AI_CONSUMPTION
Expose: entity_id, entity_type, predicate, target_id, context, assumptions, evidence, confidence, FLOW_HASH, version.
Allow graph queries by relation type, context and proof status.
Never infer strict identity from lexical similarity or embedding distance alone.
Return unknown when mathematical conditions are missing.
END FLOW ALGEBRA