AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
Canonical Mathematical Entity Ontology
Version: 1.0
Date: 2026-10-15
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/ai-semantic-library-mathematical-entities/canonical-mathematical-entity-ontology.html
Source alignment: Provisional; source page content not independently verified.
Authors: Mark Higgins — Sky (Recursive AI)
Publisher: Kireth Research | https://kirethresearch.org
PURPOSE
Represent mathematical objects with stable, unambiguous identities, typed definitions, scoped equivalence, verifiable provenance and machine-readable relationships. Canonicalisation must preserve mathematical meaning and declared assumptions.
ENTITY TYPES
CanonicalMathematicalEntity {canonical_id: URI, canonical_name: string, entity_kind: enum, definition: -Expression|AxiomSet, domain: MathematicalDomain, assumptions: Set[Predicate], notation: Set[Notation], provenance: Provenance, version: Version}
MathematicalEntity {entity_id: URI, expression: -Expression, context: Context}
Expression {syntax_tree: AST, bound_variables: Set[Variable], free_variables: Set[Variable], type_signature: Type}
CanonicalisationRule {rule_id: URI, pattern: AST, replacement: AST, preconditions: Set[Predicate], proof_reference: optional URI}
EquivalenceClaim {left: MathematicalEntity, right: MathematicalEntity, relation: enum, context: Context, justification: Proof|Evidence}
Context {domain: MathematicalDomain, assumptions: Set[Predicate], conventions: Map, notation_system: optional string}
Provenance {source_uri: URI, asserted_by: string, verified_at: optional DateTime, method: string}
RELATIONSHIPS
HAS_CANONICAL_FORM(entity, canonical_entity)
HAS_DEFINITION(canonical_entity, definition)
HAS_TYPE(entity, type)
BELONGS_TO_DOMAIN(entity, domain)
REQUIRES_ASSUMPTION(rule_or_claim, predicate)
SEMANTIC_EQUIVALENCE(entity_a, entity_b, context)
IS_ALIAS_OF(notation, canonical_entity)
DERIVED_FROM(entity, source_entity)
VALIDATED_BY(claim, proof)
SUPERSEDES(version_new, version_old)
FLOW "CanonicalMathematicalEntity" v1.0
input:
entity: MathematicalEntity
context: Context
ruleset: Set[CanonicalisationRule]
steps:
1. parse expression to typed AST; reject ill-formed syntax
2. resolve symbols, variable scopes, units and domain assumptions
3. alpha-normalise bound variables without capturing free variables
4. apply only type-safe, assumption-satisfied canonicalisation rules
5. order commutative operands only where commutativity is established
6. normalise exact numerical literals without losing precision
7. calculate deterministic canonical serialisation with rule-version metadata
8. resolve canonical_id using domain, semantics, assumptions and serialisation
9. attach provenance, justification and validation status
output:
canonical_entity: CanonicalMathematicalEntity
status: verified | provisional | rejected
evidence: Set[Proof|ValidationResult]
FORMAL RULES
R1 Alpha-equivalence: lambda x.E(x) ≡alpha lambda y.E(y), provided y is fresh and renaming is capture-avoiding.
R2 Reflexivity: E ≡ E within the same context.
R3 Symmetry: E ≡ F implies F ≡ E for a proven equivalence relation.
R4 Transitivity: E ≡ F and F ≡ G imply E ≡ G when all equivalences share compatible contexts.
R5 Additive commutativity: a+b ≡ b+a where addition is commutative for the operand type.
R6 Multiplicative commutativity: ab ≡ ba only for commutative multiplication; do not apply to arbitrary matrices.
R7 Conditional cancellation: a/a ≡ 1 only if a != 0 and division is defined.
R8 Domain preservation: canonicalisation cannot silently change real, complex, integer or other domains.
R9 Unit consistency: quantities with incompatible dimensions cannot be merged merely because their numerical values match.
R10 Identity: two notations are aliases only if their denotations coincide under the specified conventions.
CANONICAL IDENTITY
identity_key = HASH(canonical_serialisation, entity_kind, type_signature, domain, assumptions, conventions, ruleset_version)
FLOW_HASH = SHA256(UTF8(normalised_flow_specification))
Note: hashes provide deterministic identifiers for a specified representation; a hash match is not itself a mathematical proof of semantic equivalence.
VALIDATION CONSTRAINTS
V1 canonical_id is unique within a namespace and versioning policy.
V2 each canonical entity has a well-formed, typed definition.
V3 every nontrivial equivalence claim includes a proof, verified rewrite sequence or explicitly provisional evidence.
V4 assumptions required by rewrites are recorded and satisfied.
V5 rewrite systems must have a documented strategy; termination and confluence are not presumed.
V6 provenance and version metadata are mandatory.
V7 ambiguous notation must be resolved before merging entities.
V8 exact and approximate equality remain distinct relations.
WORKED EXAMPLES
Example A: 2 + 3 and 5 may share a canonical exact integer value under standard integer arithmetic.
Example B: x + y and y + x canonicalise alike over a commutative ring.
Example C: AB and BA must remain distinct for general matrices.
Example D: x/x is not canonically 1 without the assumption x != 0.
Example E: 100 cm and 1 m denote equivalent lengths after exact unit conversion, but retain original unit provenance.
CONFIDENCE
confidence_score: decimal [0,1]
confidence_basis: proof_verified | trusted_definition | rule_verified | heuristic
Policy: confidence does not substitute for proof; mark heuristic matches provisional.
SEMANTIC_EQUIVALENCE
relations: exact_equivalence | alpha_equivalence | definitional_equivalence | isomorphism | approximate_equivalence | related_concept
Policy: do not collapse isomorphic but distinct structures into literal identity without an explicit quotient or identity convention.
UPDATE_MODEL
versioning: semantic_version
on_definition_change: revalidate affected equivalence claims and dependent graph edges
on_rule_change: recompute canonical forms and identifiers where required
preserve: provenance, historical aliases, supersession links, migration mappings
AI_CONSUMPTION
machine_readable: true
recommended_fields: canonical_id, canonical_name, entity_kind, definition, domain, assumptions, aliases, equivalence_claims, proof_references, provenance, version, flow_hash, confidence_score
retrieval: resolve aliases to canonical entities while retaining context
reasoning: use only validated equivalences and explicit assumptions
safety: do not present heuristic canonicalisation as formally established
END FLOW ALGEBRA