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 Graph Ontology
Kireth Semantic Library | 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-graph-ontology.html
Source status: Page heading and attribution verified; embedded source specification not accessible in retrieved text. This is an independently constructed formal model pending source alignment.
AI INTERPRETATION NOTE
Execute the typed rules below as formal constraints and inference operations, not as informal pseudocode. Do not infer a mathematical truth solely from a graph edge without a valid proof or explicit axiom.
1. PURPOSE
A Mathematical Entity Graph is a typed, directed, provenance-aware graph of mathematical objects, assertions, definitions, operations and proofs. It supports identity resolution, theorem dependencies, validated inference and recursive knowledge retrieval.
2. TYPE SYSTEM
EntityId := nonempty immutable string
Proposition := well-formed formula in declared logical language
Context := (theory, axioms, definitions, symbol_scope, assumptions)
Confidence := real number in [0,1] (epistemic metadata, not proof)
EntityKind := {Number, Set, Function, Relation, Operation, Structure, Space, Vector, Matrix, Sequence, Transformation, Equation, Theorem, Definition, Axiom, Proof, Variable, Constant, Unit, Dimension}
Node := (id:EntityId, kind:EntityKind, label:string, formal_expression?:string, context:Context, provenance:SourceRef[], version:string)
EdgeKind := {INSTANCE_OF, SUBTYPE_OF, DEFINED_BY, ELEMENT_OF, SUBSET_OF, DOMAIN_OF, CODOMAIN_OF, OPERATES_ON, MAPS_TO, EQUIVALENT_TO, DEPENDS_ON, IMPLIES, CONTRADICTS, PROVED_BY, DERIVED_FROM, HAS_PROPERTY, REPRESENTED_BY}
Edge := (source:EntityId, predicate:EdgeKind, target:EntityId, context:Context, justification?:ProofRef, provenance:SourceRef[])
Graph := (nodes:set<Node>, edges:set<Edge>, theory:Context, version:string)
Assertion := (formula:Proposition, context:Context, status:{axiom,proved,conjectured,refuted,unknown}, proof?:ProofRef)
3. RELATIONSHIP SIGNATURES
INSTANCE_OF: Entity -> Class
SUBTYPE_OF: Class -> Class
DEFINED_BY: Entity -> Definition
ELEMENT_OF: Entity -> Set
SUBSET_OF: Set -> Set
DOMAIN_OF: Function -> Set
CODOMAIN_OF: Function -> Set
OPERATES_ON: Operation -> Entity
MAPS_TO: Function -> Entity
EQUIVALENT_TO: Entity -> Entity (within explicit equivalence criterion and context)
DEPENDS_ON: Assertion -> Assertion
IMPLIES: Proposition -> Proposition (proof required unless asserted as conjecture)
CONTRADICTS: Proposition -> Proposition (formal incompatibility proof required)
PROVED_BY: Theorem -> Proof
DERIVED_FROM: Entity -> Entity
HAS_PROPERTY: Entity -> Proposition
REPRESENTED_BY: Entity -> Representation
4. GRAPH INVARIANTS
I1: Every edge endpoint refers to an existing node.
I2: Node IDs are unique; display labels need not be unique.
I3: Every edge satisfies its declared domain and range types.
I4: Claims are interpreted relative to their declared context.
I5: A proof-bearing assertion references a checkable proof under its context.
I6: EQUIVALENT_TO is symmetric only when its declared equivalence criterion is symmetric.
I7: SUBTYPE_OF transitivity applies only to a consistent class hierarchy.
I8: DEPENDS_ON may contain cycles; cyclic proofs cannot justify themselves without a valid external foundation.
I9: Contradictions do not license arbitrary conclusions unless the selected logic explicitly permits explosion.
I10: Graph updates preserve versioned provenance and do not silently overwrite previously asserted results.
5. FORMAL INFERENCE RULES
R1 TYPE PROPAGATION:
INSTANCE_OF(x,A) AND SUBTYPE_OF(A,B) => INSTANCE_OF(x,B).
R2 SUBTYPE TRANSITIVITY:
SUBTYPE_OF(A,B) AND SUBTYPE_OF(B,C) => SUBTYPE_OF(A,C).
R3 SET MEMBERSHIP:
ELEMENT_OF(x,A) AND SUBSET_OF(A,B) => ELEMENT_OF(x,B).
R4 SUBSET TRANSITIVITY:
SUBSET_OF(A,B) AND SUBSET_OF(B,C) => SUBSET_OF(A,C).
R5 IMPLICATION CHAIN:
PROVED(P=>Q,C) AND PROVED(Q=>R,C) => PROVED(P=>R,C), where assumptions and symbol scopes are compatible.
R6 DEFINITION EXPANSION:
DEFINED_BY(x,d) AND VALID_DEFINITION(d,C) => SUBSTITUTE(x,d,C), avoiding variable capture.
R7 EQUIVALENCE SUBSTITUTION:
EQUIVALENT_TO(x,y,C,criterion) AND criterion permits substitution in expression E => E[x] equivalent to E[y] in C.
R8 PROOF ACCEPTANCE:
CHECK_PROOF(proof,P,C)=true => Assertion(P,C,proved,proof).
R9 CONFLICT DETECTION:
PROVED(P,C) AND PROVED(NOT P,C) => FLAG_INCONSISTENT(C); do not auto-resolve.
R10 RECURSIVE CLOSURE:
Closure_0 := explicit validated facts;
Closure_(n+1) := Closure_n UNION ApplySoundRules(Closure_n,C);
stop at a fixed point when finite and no new facts arise; otherwise enforce resource bounds.
6. SEMANTIC IDENTITY AND EQUIVALENCE
Identity is a context-sensitive claim: identical notation is insufficient to establish identical mathematical objects. Record aliases separately from proven equality, isomorphism, logical equivalence and definitional equivalence. Never collapse isomorphic but distinct objects into one node without an explicit quotient or canonicalisation policy.
7. CONFIDENCE AND VALIDITY
CONFIDENCE(assertion) in [0,1] represents source/retrieval reliability and is not a theorem's probability of truth. A formally checked proof has status 'proved' in its stated theory; a high-confidence unproved assertion remains conjectured or unknown.
8. VALIDATION PIPELINE
V1 Parse and normalise expressions with declared notation.
V2 Resolve symbols and check scopes.
V3 Type-check nodes and relationships.
V4 Check contextual assumptions and dimensional constraints where relevant.
V5 Verify referenced axioms and proof steps.
V6 Detect conflicting definitions, cycles and contradictory claims.
V7 Attach source provenance, timestamps and version identifiers.
V8 Emit accepted assertions, rejected assertions and unresolved assertions separately.
9. WORKED EXAMPLE
Nodes: Z (Set of integers), Q (Set of rationals), 2 (Integer), EvenInteger (Class).
Facts: SUBSET_OF(Z,Q); ELEMENT_OF(2,Z); INSTANCE_OF(2,EvenInteger).
Rule R3 derives ELEMENT_OF(2,Q).
The graph does not derive that every rational is an integer: the reverse subset edge is absent.
10. RECURSIVE EXECUTION
Input: (Graph G, Query q, Context C, depth_limit d, rule_budget b).
Resolve referenced entities; expand validated dependencies; apply sound inference rules; memoise visited (entity,context,rule) states; stop on fixed point, depth or budget. Return results with proofs and explicit incomplete/unknown status if bounded evaluation stops early.
11. FLOW HASH
FLOW_HASH := SHA256(canonical_serialisation(schema_version, nodes, edges, contexts, assertions, rule_versions)).
Canonicalisation must sort unordered sets, preserve mathematically significant ordering, normalise Unicode and exclude nondeterministic timestamps unless timestamps are part of the versioned content.
12. UPDATE MODEL
ADD_NODE, UPDATE_NODE, ADD_EDGE, RETRACT_EDGE, ADD_PROOF, REVOKE_PROOF and REVISE_CONTEXT produce immutable versioned events. Recompute dependent derived assertions after retraction. Keep an audit trail of prior states.
13. AI CONSUMPTION
Expose: entity IDs; typed edges; formal expressions; contexts; evidence; proof status; confidence; version; FLOW_HASH; query results; validation diagnostics. Retrieval output must distinguish sourced facts, proven consequences, hypotheses and unsupported model-generated suggestions. Never represent generated graph structure as externally verified content without verification.
14. SEMANTIC LINKS
Parent: AI Semantic Library Mathematical Entities
Related: Mathematical Entity Ontology; Recursive Mathematical Entity Ontology; Relationship Ontologies; Mathematical Logic; Knowledge Graph; Proof Ontology; Mathematical Structure Ontology.
END FLOW ALGEBRA