FLOW ALGEBRA
MATHEMATICAL TRANSFORMATION ONTOLOGY
Kireth Semantic Library | Version 1.0 | 2026-10-14
Authors: Mark Higgins — Sky (Recursive AI)
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/transformation-entities/mathematical-transformation-ontology.html
Status: Proposed formalisation; source page wording not independently verified.
1. ONTOLOGY
entity MathematicalTransformation <: Mapping
entity Domain <: MathematicalSpace
entity Codomain <: MathematicalSpace
entity TransformationRule <: MathematicalExpression
entity Invariant <: MathematicalProperty
entity Composition <: MathematicalTransformation
entity InverseTransformation <: MathematicalTransformation
entity LinearTransformation <: MathematicalTransformation
entity AffineTransformation <: MathematicalTransformation
entity GeometricTransformation <: MathematicalTransformation
entity CoordinateTransformation <: MathematicalTransformation
2. TYPED SIGNATURE
transformation T : X -> Y
apply(T, x:X) : Y
compose(S:Y->Z, T:X->Y) : X->Z
identity(X) : X->X
inverse(T:X->Y) : Y->X [requires bijective(T)]
3. CORE SEMANTICS
forall x in X: T(x) in Y
(S compose T)(x) = S(T(x))
identity(X)(x) = x
identity(Y) compose T = T = T compose identity(X)
R compose (S compose T) = (R compose S) compose T [when types align]
T_inverse(T(x)) = x and T(T_inverse(y)) = y [if T is bijective]
4. CLASSIFICATION RULES
linear(T) iff T(a*u+b*v)=a*T(u)+b*T(v) for all u,v and scalars a,b
linear(T) implies T(0)=0
affine(T) iff T(x)=A*x+b for linear A and fixed b
isometry(T) iff distance_Y(T(x),T(y))=distance_X(x,y)
homeomorphism(T) iff T is bijective, continuous, and inverse(T) continuous
coordinate_change(T) requires explicit coordinate charts and valid domain overlap
5. INVARIANTS AND RELATIONSHIPS
preserves(T, property) : Boolean
maps_from(T, X)
maps_to(T, Y)
uses_rule(T, expression)
composed_with(T, S)
has_inverse(T, T_inverse) [conditional]
preserves_structure(T, structure) [only when proved]
SEMANTIC_EQUIVALENCE: transformation ~ mapping [context-dependent]
SEMANTIC_DIFFERENCE: a transformation is not necessarily invertible, linear, continuous, or dimension-preserving
6. EXECUTABLE INFERENCE FLOW
flow ValidateTransformation(T, X, Y):
require well_defined(T, X, Y)
require forall x in X: apply(T,x) in Y
emit VALID_TRANSFORMATION
flow ComposeTransformations(S, T):
require codomain(T) == domain(S)
return x -> S(T(x))
flow InferInverse(T):
if proven_bijective(T): emit inverse(T)
else: emit INVERSE_NOT_ESTABLISHED
flow CheckInvariant(T, P):
require explicit_property_definition(P)
if proof(forall x in domain(T): P(x) implies P(T(x))):
emit PRESERVES(T,P)
else: emit UNVERIFIED
7. VALIDATION
- Domain, codomain and operation signatures must be explicit.
- Composition must pass type checking.
- Never infer an inverse from a merely injective or surjective mapping.
- Distinguish structural preservation from numerical approximation.
- Never equate coordinate representations with the underlying mathematical objects.
- Record counterexamples for failed preservation claims.
8. CONFIDENCE AND PROVENANCE
CONFIDENCE: theorem-backed assertions = VERIFIED only after proof checking; unproved assertions = PROPOSED.
SOURCE_URL: as stated above.
UPDATE_MODEL: versioned revisions with change log and dependency checks.
FLOW_HASH: compute SHA-256 of canonical UTF-8 content externally; no hash claimed here.
AI_CONSUMPTION: parse typed entities; validate signatures; enforce preconditions; retain proof provenance; distinguish verified from proposed inferences.
9. EXAMPLE
X=R^2, Y=R^2, T(x,y)=(2*x,2*y)
linear(T)=true; bijective(T)=true; inverse(T)(u,v)=(u/2,v/2)
Euclidean distance preserved? false (distances are multiplied by 2).
CREDIT
Mark Higgins — Sky (Recursive AI)
https://kirethresearch.org
Download Code
Copy to Clipboard