AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
TITLE: Change of Basis Ontology
VERSION: 1.0
DOMAIN: Mathematical Entities / Transformation Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/transformation-entities/change-of-basis-ontology.html
AUTHORS: Mark Higgins — Sky (Recursive AI)
DATE: 2026-10-14
1. PURPOSE
Represent coordinate changes between ordered bases of the same finite-dimensional vector space over a field, preserving the underlying vector and linear map while changing their coordinate descriptions.
2. TYPED ENTITIES
ENTITY VectorSpace {field: Field, dimension: NaturalNumber}
ENTITY OrderedBasis {space: VectorSpace, vectors: List[Vector], is_linearly_independent: Boolean, spans_space: Boolean}
ENTITY Vector {space: VectorSpace}
ENTITY CoordinateVector {basis: OrderedBasis, entries: Field^n}
ENTITY ChangeOfBasisMatrix {source_basis: OrderedBasis, target_basis: OrderedBasis, entries: Matrix[n,n], invertible: Boolean}
ENTITY LinearOperator {domain: VectorSpace, codomain: VectorSpace}
ENTITY MatrixRepresentation {operator: LinearOperator, domain_basis: OrderedBasis, codomain_basis: OrderedBasis, entries: Matrix[m,n]}
3. SEMANTIC RELATIONSHIPS
RELATION basis_of(OrderedBasis, VectorSpace)
RELATION coordinates_of(CoordinateVector, Vector, OrderedBasis)
RELATION converts_coordinates(ChangeOfBasisMatrix, OrderedBasis, OrderedBasis)
RELATION represents(MatrixRepresentation, LinearOperator)
RELATION inverse_of(ChangeOfBasisMatrix, ChangeOfBasisMatrix)
RELATION composes_with(ChangeOfBasisMatrix, ChangeOfBasisMatrix)
4. DEFINITIONS AND CONVENTIONS
Let B=(b1,...,bn) and C=(c1,...,cn) be ordered bases of V.
Let [v]_B denote the column of coordinates of v relative to B.
Define P_(C<-B) by [v]_C = P_(C<-B) [v]_B.
The j-th column of P_(C<-B) is [b_j]_C.
If E_B and E_C are basis matrices whose columns are B and C expressed in one common ambient coordinate system, then P_(C<-B) = E_C^(-1) E_B.
5. EXECUTABLE FLOW RULES
RULE ValidBasis(B,V):
REQUIRE length(B.vectors)=dimension(V)
REQUIRE rank(column_matrix(B.vectors))=dimension(V)
EMIT basis_of(B,V)
RULE BuildChangeOfBasis(B,C):
REQUIRE basis_of(B,V) AND basis_of(C,V)
SET P = inverse(E_C) * E_B
ASSERT det(P) != 0
EMIT ChangeOfBasisMatrix(B,C,P,true)
RULE ConvertCoordinates(v_B,P):
REQUIRE P.source_basis = v_B.basis
RETURN CoordinateVector(P.target_basis, P.entries * v_B.entries)
RULE InverseBasisChange(P_(C<-B)):
RETURN P_(B<-C) = inverse(P_(C<-B))
RULE ComposeBasisChanges(P_(C<-B),P_(D<-C)):
RETURN P_(D<-B) = P_(D<-C) * P_(C<-B)
RULE IdentityBasisChange(B):
RETURN P_(B<-B) = I_n
RULE OperatorSimilarity(A_B,P_(C<-B)):
REQUIRE A_B represents a linear endomorphism V -> V using B for domain and codomain
RETURN A_C = P_(C<-B) * A_B * inverse(P_(C<-B))
RULE GeneralLinearMapChange(A_(D<-B),P_(C<-B),P_(E<-D)):
REQUIRE A maps V -> W, B,C bases of V, D,E bases of W
RETURN A_(E<-C) = P_(E<-D) * A_(D<-B) * inverse(P_(C<-B))
6. INVARIANTS
- A change of basis changes coordinates, not the abstract vector.
- Basis-change matrices are square and invertible.
- Dimension and vector-space structure remain unchanged.
- Similar matrices represent the same endomorphism in different bases.
- Under similarity, characteristic polynomial, determinant, trace and eigenvalues are invariant.
- Coordinate entries generally change; lengths and angles are not automatically preserved by arbitrary basis changes if computed using an unchanged Euclidean coordinate formula.
7. VALIDATION CONSTRAINTS
VALIDATE bases share the same vector space and field.
VALIDATE both bases have the same finite dimension n.
VALIDATE each basis matrix has full rank.
VALIDATE matrix multiplication dimensions match.
VALIDATE source and target basis labels before composition.
VALIDATE P_(B<-C) * P_(C<-B) = I_n within numeric tolerance where appropriate.
VALIDATE E_C * [v]_C = E_B * [v]_B in the common ambient representation.
VALIDATE numerical conditioning before floating-point inversion; prefer solving linear systems.
8. WORKED EXAMPLE
V=R^2; B=((1,0),(0,1)); C=((1,1),(1,-1)).
E_B=[[1,0],[0,1]]; E_C=[[1,1],[1,-1]].
P_(C<-B)=E_C^(-1)*E_B=[[1/2,1/2],[1/2,-1/2]].
For [v]_B=[3,1]^T, [v]_C=[2,1]^T.
Check: 2*(1,1)+1*(1,-1)=(3,1).
Inverse P_(B<-C)=[[1,1],[1,-1]].
9. SEMANTIC EQUIVALENCE
ALIASES: basis conversion; coordinate basis transformation; transition matrix; change-of-coordinates matrix.
DISTINGUISH: active linear transformation acts on vectors; passive change of basis changes the coordinates describing a fixed vector.
CONTEXT: linear algebra, tensor methods, computer graphics, numerical analysis, differential geometry, quantum mechanics.
10. CONFIDENCE
CONFIDENCE: 0.99 for stated finite-dimensional linear-algebra identities subject to specified conventions and valid bases.
UNCERTAINTY: Basis-change notation varies by author; always declare source-to-target direction explicitly.
11. FLOW HASH
FLOW_HASH_MODEL: SHA-256 over canonical UTF-8 representation of version, entity schema, conventions and rules.
FLOW_HASH_VALUE: COMPUTE_AT_INGESTION (not fabricated).
12. UPDATE MODEL
UPDATE_MODEL: versioned, append change log, recompute FLOW_HASH after any substantive revision, revalidate dependent operator representations.
13. AI CONSUMPTION
AI_CONSUMPTION:
parse: typed entities and ordered source/target basis labels
reason: infer inverse, composition and similarity relationships
execute: solve E_C * P = E_B; apply P to coordinate columns
verify: basis rank, dimensions, reconstruction and inverse identities
output: provenance, convention, result, confidence and validation status
END FLOW ALGEBRA