Skip to main content

Affine Transformation Ontology

Transformation Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 14 October 2026
Audio Overview
FLOW ALGEBRA
Ontology: Affine Transformation Ontology
Version: 1.0
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/transformation-entities/affine-transformation-ontology-3.html
Authors: Mark Higgins — Sky (Recursive AI)
Project: Kireth Semantic Library

1. PURPOSE
Represent affine transformations as typed mathematical mappings that preserve affine combinations, collinearity and ratios of directed segments along a line, while allowing translation, rotation, reflection, scaling and shear.

2. TYPED ENTITIES
ENTITY AffineSpace {dimension: Integer >= 1; scalar_field: Field; coordinate_frame: Optional[Frame]}
ENTITY Point {coordinates: Vector[n]; space: AffineSpace}
ENTITY Vector {components: Scalar[n]}
ENTITY Matrix {entries: Scalar[m,n]}
ENTITY AffineTransformation {domain: AffineSpace; codomain: AffineSpace; linear_part: Matrix[m,n]; translation: Vector[m]; invertible: Boolean}
ENTITY HomogeneousMatrix {entries: Scalar[m+1,n+1]}
ENTITY AffineCombination {points: List[Point]; weights: List[Scalar]; weight_sum: Scalar = 1}
ENTITY FixedPoint {point: Point; transformation: AffineTransformation}
ENTITY Composition {first: AffineTransformation; second: AffineTransformation; result: AffineTransformation}

3. CORE DEFINITION
For T: F^n -> F^m, T(x) = A x + b, with A in F^(m x n), b in F^m.
AFFINE_COMBINATION_PRESERVATION: for weights w_i with sum_i w_i = 1,
T(sum_i w_i x_i) = sum_i w_i T(x_i).
An affine map is not necessarily a linear map: T(0) = b; it is linear precisely when b = 0.

4. RELATIONSHIPS
AffineTransformation --HAS_DOMAIN--> AffineSpace
AffineTransformation --HAS_CODOMAIN--> AffineSpace
AffineTransformation --HAS_LINEAR_PART--> Matrix
AffineTransformation --HAS_TRANSLATION--> Vector
AffineTransformation --MAPS_POINT_TO--> Point
AffineTransformation --PRESERVES--> AffineCombination
AffineTransformation --COMPOSES_WITH--> AffineTransformation
AffineTransformation --REPRESENTED_BY--> HomogeneousMatrix
AffineTransformation --MAY_HAVE--> FixedPoint

5. OPERATIONAL RULES
APPLY(T,x): require dim(x)=n; return A*x+b.
COMPOSE(T2,T1): if T1(x)=A1*x+b1 and T2(y)=A2*y+b2, return (A2*A1, A2*b1+b2).
IDENTITY(n): A=I_n, b=0.
INVERSE(T): for square nonsingular A, T^-1(y)=A^-1*y-A^-1*b.
INVERTIBILITY: for a transformation F^n -> F^n, invertible iff det(A) != 0.
FIXED_POINT: solve (I-A)x=b; a solution need not exist or be unique.
HOMOGENEOUS_FORM: H=[[A,b],[0...0,1]]; [y;1]=H*[x;1].

6. SPECIAL CASES
TRANSLATION: A=I, b arbitrary.
LINEAR_TRANSFORMATION: b=0.
ROTATION: A orthogonal with determinant +1, b optional.
REFLECTION: A orthogonal with determinant -1 for an orientation-reversing isometry, b optional.
SCALING: A diagonal in chosen coordinate basis, b optional.
SHEAR: A shear matrix, b optional.
RIGID_MOTION: A orthogonal, b arbitrary; preserves Euclidean distances.

7. INVARIANTS AND NON-INVARIANTS
PRESERVES: lines, collinearity, affine subspaces, parallelism, barycentric coordinates, ratios of directed segments on the same line.
DOES_NOT_GENERALLY_PRESERVE: Euclidean distances, angles, lengths, areas, volumes, orientation.
AREA_VOLUME_FACTOR: for square A in Euclidean n-space, n-dimensional volume scales by abs(det(A)); orientation reverses if det(A)<0.
DEGENERATE_CASE: singular A can collapse dimensions and is not invertible.

8. VALIDATION CONSTRAINTS
V1: A dimensions match domain and codomain.
V2: b dimension equals codomain dimension.
V3: points use compatible scalar fields and coordinate systems.
V4: composition requires codomain(first)=domain(second).
V5: inverse requires square nonsingular linear part.
V6: homogeneous matrix final row is [0,...,0,1].
V7: affine-combination weights sum to 1.
V8: no claim of metric preservation without extra constraints on A.

9. WORKED EXAMPLES
EXAMPLE_1: A=[[2,1],[0,3]], b=[4,-1], x=[1,2] => T(x)=[8,5].
EXAMPLE_2: T1(x)=2x+[1,0]; T2(y)=y+[0,3] => (T2 o T1)(x)=2x+[1,3].
EXAMPLE_3: A=[[1,2],[0,1]], b=[0,0] => horizontal shear (x,y)->(x+2y,y); determinant 1.
EXAMPLE_4: T(x)=x+[3,-2] => translation with no fixed point over R^2.

10. SEMANTIC EQUIVALENCE
"affine map" ~= "affine transformation" in the stated mathematical context.
"affine operator" MAY_REFER_TO AffineTransformation; resolve domain-specific meaning.
NOT_EQUIVALENT: affine transformation != linear transformation in general.
NOT_EQUIVALENT: affine transformation != projective transformation in general.

11. CONFIDENCE AND PROVENANCE
CONFIDENCE: 0.99 for standard algebraic definitions and derived examples.
PROVENANCE: established linear algebra and affine geometry definitions.
SOURCE_URL: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/transformation-entities/affine-transformation-ontology-3.html
SOURCE_ALIGNMENT: topic-aligned; page wording not independently verified.

12. FLOW HASH AND UPDATE MODEL
FLOW_HASH: compute SHA-256 from canonical UTF-8 serialisation of ontology content on ingestion; do not treat this descriptive field as a computed digest.
UPDATE_MODEL: semantic_versioning; revise if definitions, constraints, or relations change; retain provenance and previous versions.

13. AI CONSUMPTION
INPUT: typed affine map A,b; points; reference frames; optional composition sequence.
PROCESS: validate -> normalise dimensions -> evaluate -> infer invariants -> produce derivation and confidence.
OUTPUT: transformed points, composed map, inverse when valid, fixed-point conditions, preserved properties, provenance.
FAILURE_MODES: dimension mismatch, singular inverse request, mixed frames, false distance-preservation inference.

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