FLOW ALGEBRA
TITLE: Matrix Ontology
VERSION: 4.0
DOMAIN: Mathematical Entities / Linear Algebra
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/linear-algebra-entities/matrix-ontology-2.html
SOURCE_ALIGNMENT: Independently constructed; page content not verified.
AUTHORS: Mark Higgins — Sky (Recursive AI)
ENTITY:
Matrix(A,m,n,K): A is an m-by-n array with entries in coefficient ring or field K.
Shape(A)=(m,n); Entry(A,i,j)=a_ij; 1<=i<=m, 1<=j<=n.
SquareMatrix(A) iff m=n.
ZeroMatrix(A) iff every a_ij=0.
IdentityMatrix(I_n): (I_n)_ij=1 if i=j, otherwise 0.
OPERATIONS:
Addition(A,B): defined when Shape(A)=Shape(B); (A+B)_ij=a_ij+b_ij.
ScalarMultiply(c,A): (cA)_ij=c*a_ij when coefficient action is defined.
Multiply(A,B): defined for A:m-by-n and B:n-by-p; (AB)_ij=sum_k a_ik*b_kj.
Transpose(A): (A^T)_ij=a_ji.
ConjugateTranspose(A): (A*)_ij=conjugate(a_ji) over complex coefficients.
Trace(A): sum_i a_ii for square A.
Determinant(A): defined for square A over a commutative ring.
Inverse(A): B with AB=BA=I; requires square A.
Rank(A): dimension of image over a field.
Kernel(A): {x:Ax=0} over a field.
Nullity(A): dimension of kernel over a field.
CharacteristicPolynomial(A,t): det(tI-A) for square A.
TYPED_RELATIONSHIPS:
Matrix HAS_ENTRY Entry
Matrix HAS_SHAPE Shape
Matrix HAS_COEFFICIENT_DOMAIN RingOrField
Matrix REPRESENTS LinearMap WHEN bases specified
SquareMatrix HAS_DETERMINANT Determinant WHEN coefficient ring commutative
SquareMatrix HAS_TRACE Trace
Matrix HAS_RANK Rank WHEN coefficient domain field
Matrix HAS_KERNEL Kernel WHEN coefficient domain field
Matrix HAS_IMAGE Image WHEN coefficient domain field
SquareMatrix HAS_EIGENPAIR Eigenpair WHEN eigenvalue field specified
Matrix ADMITS_DECOMPOSITION Decomposition WHEN hypotheses satisfied
INFERENCE_RULES:
R01: same_shape(A,B) -> shape(A+B)=shape(A).
R02: shape(A)=(m,n) AND shape(B)=(n,p) -> shape(AB)=(m,p).
R03: compatible(A,B,C) -> (AB)C=A(BC).
R04: compatible(A,B,C) -> A(B+C)=AB+AC.
R05: compatible(A,B,C) -> (A+B)C=AC+BC.
R06: transpose(transpose(A))=A.
R07: compatible(A,B) -> transpose(AB)=transpose(B)*transpose(A).
R08: complex_compatible(A,B) -> (AB)*=B* A*.
R09: shape(A)=(m,n) -> I_m A=A=A I_n.
R10: square_field_matrix(A) -> invertible(A) iff det(A)!=0.
R11: square_commutative_ring_matrices(A,B) -> det(AB)=det(A)det(B).
R12: square_field_matrix(A) -> invertible(A) iff rank(A)=n.
R13: field_matrix(A,m,n) -> rank(A)+nullity(A)=n.
R14: field_matrix(A,m,n) -> rank(A)<=min(m,n).
R15: field_matrix(A) -> rank(A)=rank(transpose(A)).
R16: field_matrix(A) -> row_rank(A)=column_rank(A).
R17: compatible_field_matrices(A,B) -> rank(AB)<=min(rank(A),rank(B)).
R18: compatible_field_matrices(A:m-by-n,B:n-by-p) -> rank(AB)>=rank(A)+rank(B)-n.
R19: square_field_matrix(A) -> invertible(A) iff kernel(A)={0}.
R20: square_field_matrix(A) -> invertible(A) iff columns(A) form basis.
R21: eigenpair(A,lambda,v) -> v!=0 AND Av=lambda*v.
R22: square_field_matrix(A) -> lambda eigenvalue iff det(A-lambda*I)=0 in field containing lambda.
R23: similar(A,B) -> same determinant, trace and characteristic polynomial.
R24: real_symmetric(A) -> orthogonally_diagonalisable(A).
R25: complex_hermitian(A) -> unitarily_diagonalisable(A) and eigenvalues real.
R26: real_orthogonal(A) -> inverse(A)=transpose(A).
R27: complex_unitary(A) -> inverse(A)=conjugate_transpose(A).
R28: positive_definite_hermitian(A) -> invertible(A).
R29: square_matrix(A) -> characteristic_polynomial(A,A)=0 [Cayley-Hamilton].
R30: real_or_complex_matrix(A) -> exists singular_value_decomposition(A).
R31: invertible(P,Q) AND compatible(P,A,Q) -> rank(PAQ)=rank(A).
R32: field_matrix(A) -> Ax=b solvable iff rank(A)=rank([A|b]).
R33: Ax=b consistent AND nullity(A)=0 -> unique solution.
R34: complex_matrix(A) -> A* A Hermitian positive semidefinite.
R35: real_matrix(A) -> A^T A symmetric positive semidefinite.
R36: square_field_matrix(A) -> eigenvalues may require extension field.
VALIDATION_CONSTRAINTS:
V01: Reject matrix addition with mismatched shapes.
V02: Reject multiplication with mismatched inner dimensions.
V03: Reject determinant for non-square matrices.
V04: Reject unproved inverse or diagonalisation claims.
V05: Over a commutative ring, invertibility requires determinant a unit, not merely nonzero.
V06: Eigenvectors must be nonzero.
V07: Do not assume AB=BA.
V08: Do not infer A=0 or B=0 from AB=0.
V09: Row equivalence does not imply similarity.
V10: Real matrices need not have real eigenvalues.
V11: Rank-nullity needs a vector space over a field.
V12: Matrix representations depend on chosen bases.
V13: Over complex coefficients, transpose and conjugate transpose differ.
V14: Check all theorem hypotheses before inference.
EXAMPLES:
E01: A=[[1,2],[3,4]] -> shape=(2,2), det=-2, trace=5, rank=2.
E02: I=[[1,0],[0,1]] -> AI=IA=A for 2x2 A.
E03: B=[[1,2,3],[4,5,6]] -> shape(B^T)=(3,2).
E04: C=[[1,2],[2,4]] -> rank=1, nullity=1, determinant=0.
E05: D=[[2,0],[0,3]] -> eigenvalues 2,3.
E06: E=[[0,-1],[1,0]] -> real orthogonal, eigenvalues +i,-i over C.
E07: F=[[1,1],[0,1]] -> not diagonalisable despite repeated eigenvalue 1.
E08: G=[[2,1],[1,2]] -> positive definite; eigenvalues 3 and 1.
E09: P=[[1,0],[0,0]] -> P^2=P (idempotent).
E10: N=[[0,1],[0,0]] -> N^2=0 (nilpotent).
E11: Over integers, matrix [[2]] has nonzero determinant but no integer inverse.
E12: A=[[1,0,0],[0,1,0]] -> rank=2, nullity=1.
SEMANTIC_EQUIVALENCE:
Matrix ~ rectangular array of scalars [specified coefficient domain].
NonsingularMatrix ~ InvertibleSquareMatrix [over a field].
NullSpace ~ Kernel [over a field].
ColumnSpace ~ ImageOfCoordinateLinearMap [over a field].
HermitianTranspose ~ ConjugateTranspose.
FullColumnRank ~ RankEqualsColumnCount.
FullRowRank ~ RankEqualsRowCount.
SEMANTIC_DIFFERENCE:
Matrix != LinearMap: a matrix is basis-dependent representation.
Matrix != Determinant: determinant is a scalar invariant.
Rank != MatrixDimensionPair.
Similarity != RowEquivalence.
Eigenvector != SingularVector in general.
Orthogonal != MerelyNonzeroPerpendicularColumns.
PositiveDefinite != AllEntriesPositive.
KNOWLEDGE_GRAPH:
(Matrix,subclassOf,MathematicalEntity)
(Matrix,hasShape,Shape)
(Matrix,hasEntry,Entry)
(Matrix,hasCoefficientDomain,RingOrField)
(Matrix,mayRepresent,LinearMap)
(LinearMapRepresentation,dependsOn,Bases)
(MatrixProduct,requires,CompatibleDimensions)
(MatrixInverse,requires,Invertibility)
(MatrixRank,equals,DimensionOfImage)
(MatrixNullity,equals,DimensionOfKernel)
CONFIDENCE:
VerifiedTheorem: 1.0 when all hypotheses and proof validated.
ComputedResult: 1.0 only for checked exact arithmetic.
NumericalResult: record algorithm, precision and error bounds.
UnverifiedClaim: UNKNOWN, not a fabricated score.
SourceAlignment: UNVERIFIED.
FLOW_HASH:
algorithm: SHA-256
canonicalisation: UTF-8 NFC, LF line endings, stable field ordering.
input: canonical flow excluding digest field.
digest: COMPUTE_AT_PUBLICATION.
UPDATE_MODEL:
trigger: corrected theorem, new proof, changed source, ontology revision.
pipeline: parse -> typecheck -> validate -> provenance -> version -> hash -> publish.
preserve: stable entity identifiers and prior validated versions.
AI_CONSUMPTION:
mode: typed symbolic retrieval and proof-aware inference.
require: coefficient domain, dimensions, assumptions, operation, provenance.
process: identify -> normalise -> typecheck -> retrieve -> infer -> verify -> explain.
prohibit: dimension errors, unsupported theorems, invented proof or hash.
output: result, conditions, derivation, confidence and provenance.
crosslinks: VectorSpace; Scalar; BasisVector; Determinant; Rank; Eigenvalue; Eigenvector; LinearTransformation; NullSpace.
PROVENANCE:
This ontology is an independent mathematical construction.
Exact correspondence to the supplied webpage has not been verified.
Kireth Research: https://kirethresearch.org
END FLOW ALGEBRA
Download Code
Copy to Clipboard