AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
TITLE: Square Matrix Ontology
VERSION: 4.0
DOMAIN: Mathematics / Linear Algebra / Matrix Entities
SOURCE_URL: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/linear-algebra-entities/square-matrix-ontology.html
AUTHORSHIP: Mark Higgins — Sky (Recursive AI)
PROJECT: Kireth Semantic Library
SITE: https://kirethresearch.org
SOURCE_ALIGNMENT: Independently constructed mathematical ontology; webpage text not verified.
[IDENTITY]
ENTITY: SquareMatrix
TYPE: MathematicalEntity > LinearAlgebraEntity > Matrix > SquareMatrix
DEFINITION: A matrix A with n rows and n columns over a specified scalar field F, A in F^(n x n), n >= 0.
NOTATION: A = (a_ij), 1 <= i,j <= n.
PARAMETERS: scalar_field F; order n; entries a_ij.
CONTEXT: Unless otherwise specified, n is a positive integer and F is a field.
[TYPED_ENTITIES]
SquareMatrix(A,F,n)
MatrixEntry(a_ij,F)
ScalarField(F)
Dimension(n)
IdentityMatrix(I_n,F,n)
ZeroMatrix(0_n,F,n)
Determinant(det(A),F)
Trace(tr(A),F)
Rank(rank(A),Integer)
CharacteristicPolynomial(chi_A(t),F[t])
Eigenvalue(lambda,AlgebraicClosure(F))
Eigenvector(v,F^n)
InverseMatrix(A_inverse,F,n)
LinearOperator(T_A,F^n -> F^n)
[AXIOMS]
AX01: SquareMatrix(A,F,n) => rows(A)=n AND columns(A)=n.
AX02: For A,B in F^(n x n), A+B and AB are in F^(n x n).
AX03: For A in F^(n x n), c in F, cA in F^(n x n).
AX04: Matrix multiplication is associative: (AB)C=A(BC).
AX05: I_n A=A I_n=A.
AX06: A(B+C)=AB+AC; (A+B)C=AC+BC.
AX07: Matrix multiplication is generally noncommutative.
AX08: tr(A)=sum_i a_ii.
AX09: det(A) is defined for square matrices; det(AB)=det(A)det(B).
AX10: rank(A) is an integer between 0 and n.
AX11: A is invertible iff det(A) != 0 iff rank(A)=n.
AX12: chi_A(t)=det(tI_n-A) has degree n (n>=1).
AX13: Cayley-Hamilton: chi_A(A)=0_n.
AX14: Eigenpair: Av=lambda v with v != 0; over F only when lambda in F.
AX15: tr(AB)=tr(BA).
AX16: det(A^T)=det(A); tr(A^T)=tr(A).
[RELATIONSHIP_TYPES]
isA(SquareMatrix,Matrix)
hasOrder(A,n)
hasEntry(A,a_ij)
overField(A,F)
representsLinearOperator(A,T_A)
hasDeterminant(A,det(A))
hasTrace(A,tr(A))
hasRank(A,rank(A))
hasCharacteristicPolynomial(A,chi_A)
hasEigenpair(A,lambda,v)
isInverseOf(B,A)
isSimilarTo(A,B)
isDiagonalizableOver(A,F)
isSymmetric(A)
isHermitian(A)
isOrthogonal(A)
isUnitary(A)
isIdempotent(A)
isNilpotent(A)
[OPERATIONS]
OP01: add(A,B) = A+B; precondition same field and order.
OP02: multiply(A,B) = AB; precondition same field and order.
OP03: scale(c,A) = cA; precondition c in F.
OP04: transpose(A) = A^T.
OP05: conjugateTranspose(A) = A*; precondition complex entries or field with involution.
OP06: power(A,k) = A^k; k nonnegative integer; A^0=I_n.
OP07: inverse(A) = A^-1; precondition det(A)!=0.
OP08: determinant(A) = det(A).
OP09: trace(A) = tr(A).
OP10: characteristicPolynomial(A) = det(tI_n-A).
OP11: commutator(A,B) = AB-BA.
OP12: similarity(A,P) = P^-1 A P; precondition P invertible.
[INFERENCE_RULES]
R01: SquareMatrix(A,F,n) => Matrix(A,F,n,n).
R02: SquareMatrix(A,F,n) AND SquareMatrix(B,F,n) => SquareMatrix(A+B,F,n).
R03: SquareMatrix(A,F,n) AND SquareMatrix(B,F,n) => SquareMatrix(AB,F,n).
R04: SquareMatrix(A,F,n) AND c in F => SquareMatrix(cA,F,n).
R05: det(A)!=0 => Invertible(A).
R06: Invertible(A) => det(A)!=0.
R07: rank(A)=n => Invertible(A).
R08: Invertible(A) => rank(A)=n.
R09: det(A)=0 => Singular(A).
R10: Singular(A) => exists v!=0 with Av=0.
R11: Av=0 AND v!=0 => Singular(A).
R12: det(AB)=det(A)det(B).
R13: Invertible(A) AND Invertible(B) => (AB)^-1=B^-1 A^-1.
R14: Invertible(A) => det(A^-1)=1/det(A).
R15: Similar(A,B) => det(A)=det(B).
R16: Similar(A,B) => tr(A)=tr(B).
R17: Similar(A,B) => chi_A(t)=chi_B(t).
R18: Similar(A,B) => rank(A)=rank(B).
R19: Diagonal(A) => Triangular(A).
R20: Triangular(A) => det(A)=product(diagonalEntries(A)).
R21: Triangular(A) => eigenvalues over F are its diagonal entries (with multiplicity).
R22: SymmetricReal(A) => DiagonalizableOver(A,Real).
R23: Hermitian(A) => all eigenvalues are real.
R24: OrthogonalReal(A) => A^-1=A^T.
R25: Unitary(A) => A^-1=A*.
R26: Idempotent(A) => A^2=A.
R27: Idempotent(A) => eigenvalues are in {0,1}.
R28: Nilpotent(A) => exists k>=1 such that A^k=0.
R29: Nilpotent(A) => det(A)=0 for n>=1.
R30: Nilpotent(A) => tr(A)=0.
R31: chi_A(A)=0 by Cayley-Hamilton.
R32: Eigenpair(A,lambda,v) => chi_A(lambda)=0.
R33: n linearly independent eigenvectors over F => DiagonalizableOver(A,F).
R34: DiagonalizableOver(A,F) => F^n has an eigenvector basis for A.
R35: det(A)=product of eigenvalues counted with algebraic multiplicity over algebraic closure.
R36: tr(A)=sum of eigenvalues counted with algebraic multiplicity over algebraic closure.
[VALIDATION_CONSTRAINTS]
V01: Reject SquareMatrix(A,F,n) if row count differs from column count.
V02: Require common field and matching order for addition or square-matrix multiplication.
V03: Inverse must not be asserted for singular matrices.
V04: Eigenvector must be nonzero.
V05: Distinguish eigenvalues over F from eigenvalues in an algebraic closure.
V06: Symmetric and Hermitian require appropriate transpose/involution semantics.
V07: Orthogonal and unitary require the relevant real/complex inner-product setting.
V08: Similarity requires invertible change-of-basis matrix.
V09: Diagonalizable over F does not follow solely from diagonalizability over an extension field.
V10: Do not infer AB=BA without additional assumptions.
V11: Determinant, trace, and characteristic polynomial require square input.
V12: Numerical rank and determinant assertions need tolerances and uncertainty annotations.
[EXAMPLES]
E01: A=[[1,2],[3,4]] has order 2, trace 5, determinant -2, rank 2.
E02: I_3 has determinant 1, trace 3, rank 3.
E03: 0_2 has determinant 0, trace 0, rank 0.
E04: diag(2,5) has determinant 10, trace 7, eigenvalues 2 and 5.
E05: [[1,1],[0,1]] is invertible but not diagonalizable over R.
E06: [[0,-1],[1,0]] is orthogonal over R; eigenvalues +/-i over C.
E07: [[1,0],[0,0]] is idempotent and singular.
E08: [[0,1],[0,0]] is nilpotent of index 2.
E09: [[2,0],[0,2]] is scalar, symmetric and diagonal.
E10: [[0,1],[1,0]] is symmetric and has determinant -1.
E11: [[1,2],[0,3]] is upper triangular with determinant 3.
E12: [[1,0],[0,1]] commutes with every 2x2 matrix.
E13: A=[[1,2],[3,4]], B=[[0,1],[0,0]] demonstrate AB != BA.
E14: A=[[1,0],[0,2]], P=[[0,1],[1,0]] gives P^-1 A P=diag(2,1).
E15: A=[[2,0],[0,3]] has chi_A(t)=(t-2)(t-3).
E16: A=[[1,1],[0,1]] satisfies (A-I)^2=0.
[SEMANTIC_EQUIVALENCE]
SquareMatrix == n-by-n matrix (same field and dimension context).
IdentityMatrix == multiplicative identity in M_n(F).
NonsingularMatrix == invertible square matrix over a field.
SingularMatrix == noninvertible square matrix over a field.
CharacteristicPolynomial == det(tI-A) (fixed sign convention).
Trace == sum of main diagonal entries.
WARNING: Matrix, tensor, and linear operator are related concepts, not unconditional synonyms.
WARNING: A unit matrix may ambiguously mean identity matrix or a matrix of units; disambiguate.
[KNOWLEDGE_GRAPH_TRIPLES]
(SquareMatrix,subClassOf,Matrix)
(SquareMatrix,hasProperty,EqualRowAndColumnCount)
(SquareMatrix,admitsOperation,MatrixMultiplication)
(SquareMatrix,admitsOperation,Determinant)
(SquareMatrix,admitsOperation,Trace)
(SquareMatrix,represents,LinearEndomorphism)
(InvertibleMatrix,subClassOf,SquareMatrix)
(DiagonalMatrix,subClassOf,SquareMatrix)
(SymmetricMatrix,subClassOf,SquareMatrix)
(HermitianMatrix,subClassOf,SquareMatrix)
(OrthogonalMatrix,subClassOf,SquareMatrix)
(UnitaryMatrix,subClassOf,SquareMatrix)
[CONFIDENCE]
Mathematical axioms and standard theorems: HIGH when preconditions hold.
Source-page correspondence: UNVERIFIED.
Numerical computations: CONDITIONAL on precision and algorithm.
Inference results: inherit weakest premise confidence; never exceed verified premises without independent proof.
[FLOW_HASH]
METHOD: SHA-256 over canonical UTF-8 normalised flow text.
CANONICALISATION: LF newlines; Unicode NFC; stable section and rule order.
HASH_VALUE: COMPUTE_ON_PUBLICATION (not fabricated).
[UPDATE_MODEL]
VERSION_POLICY: Semantic versioning with provenance.
TRIGGER: Definition change, theorem correction, new relationship, source revision or validation issue.
PROCESS: Validate mathematics -> review dependencies -> regenerate triples -> compute hash -> publish revision.
DEPENDENCIES: Matrix Ontology; Vector Space Ontology; Determinant Ontology; Eigenvalue Ontology; Linear Transformation Ontology.
[AI_CONSUMPTION]
INPUT: entity, field, order, matrix entries, requested property or operation.
NORMALISE: Identify field, dimension, exact versus approximate arithmetic and notation.
TYPE_CHECK: Confirm square shape and operation preconditions.
REASON: Apply axioms and inference rules with explicit premises.
VERIFY: Check identities symbolically or numerically with appropriate safeguards.
OUTPUT: Result, justification, provenance, confidence and unresolved assumptions.
FAILURE: Return a typed validation error instead of inferring unsupported properties.
[END_FLOW]