AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
Shear Transformation Ontology
Kireth Semantic Library — Mathematical Entities / Transformation Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/transformation-entities/shear-transformation-ontology-2.html
Version: 1.0
Date: 2026-10-14
Authors: Mark Higgins — Sky (Recursive AI)
1. PURPOSE
Model shear transformations as invertible linear maps that displace one coordinate proportionally to another, preserving parallelism, collinearity, and oriented area/volume for elementary shears. Separate linear shear about the origin from affine shear about a reference centre.
2. TYPED ENTITIES
ENTITY ShearTransformation <: LinearTransformation
properties: dimension:int>=2; matrix:SquareMatrix; domain:VectorSpace; codomain:VectorSpace
ENTITY HorizontalShear <: ShearTransformation
properties: shear_factor:Real
ENTITY VerticalShear <: ShearTransformation
properties: shear_factor:Real
ENTITY ShearFactor <: Scalar
ENTITY ShearMatrix <: SquareMatrix
ENTITY ShearAxis <: GeometricAxis
ENTITY ReferenceCentre <: Point
ENTITY AffineShear <: AffineTransformation
ENTITY Vector <: MathematicalEntity
ENTITY GeometricObject <: TransformableEntity
ENTITY CoordinateSystem <: MathematicalEntity
ENTITY InverseShear <: ShearTransformation
ENTITY Determinant <: Scalar
3. TYPED RELATIONSHIPS
ShearTransformation --IS_A--> LinearTransformation
ShearTransformation --REPRESENTED_BY--> ShearMatrix
ShearTransformation --PARAMETERISED_BY--> ShearFactor
ShearTransformation --ACTS_ON--> Vector | GeometricObject
ShearTransformation --DEFINED_IN--> CoordinateSystem
ShearTransformation --HAS_DETERMINANT--> Determinant
ShearTransformation --HAS_INVERSE--> InverseShear
HorizontalShear --IS_A--> ShearTransformation
VerticalShear --IS_A--> ShearTransformation
AffineShear --HAS_REFERENCE_CENTRE--> ReferenceCentre
4. FORMAL DEFINITIONS
Let x=(x,y)^T and k in R.
Horizontal shear H_k:
H_k(x,y) = (x + k*y, y)
Matrix(H_k) = [[1,k],[0,1]]
Vertical shear V_k:
V_k(x,y) = (x, y + k*x)
Matrix(V_k) = [[1,0],[k,1]]
General coordinate shear in R^n, for i != j:
E_ij(k) = I_n + k*e_i*e_j^T
E_ij(k)*x = x + k*x_j*e_i
Affine shear about centre c:
A_(M,c)(x) = c + M*(x-c)
NOTE: when c is nonzero, A_(M,c) need not be linear.
5. ALGEBRAIC INVARIANTS
For elementary shear E_ij(k), i != j:
det(E_ij(k)) = 1
rank(E_ij(k)) = n
inverse(E_ij(k)) = E_ij(-k)
eigenvalues(E_ij(k)) = 1, with algebraic multiplicity n
trace(E_ij(k)) = n
oriented_volume(E_ij(k)*P) = oriented_volume(P)
parallel_lines_remain_parallel = true
collinearity_preserved = true
Euclidean_lengths_preserved = false in general
angles_preserved = false in general
perpendicularity_preserved = false in general
NOTE: general products of shears are invertible and volume-preserving but need not be elementary shears.
6. COMPOSITION RULES
H_a o H_b = H_(a+b)
V_a o V_b = V_(a+b)
H_0 = V_0 = Identity
inverse(H_a) = H_(-a)
inverse(V_b) = V_(-b)
H_a o V_b generally != V_b o H_a
Matrix(H_a o V_b) = [[1+a*b,a],[b,1]]
Matrix(V_b o H_a) = [[1,a],[b,1+a*b]]
7. EXECUTABLE REASONING RULES
RULE SHEAR_APPLY_HORIZONTAL
IF transform.type=HorizontalShear AND input=(x,y) AND factor=k
THEN output=(x+k*y,y)
RULE SHEAR_APPLY_VERTICAL
IF transform.type=VerticalShear AND input=(x,y) AND factor=k
THEN output=(x,y+k*x)
RULE SHEAR_INVERT
IF transform.matrix=I+k*e_i*e_j^T AND i!=j
THEN inverse.matrix=I-k*e_i*e_j^T
RULE SHEAR_PRESERVES_VOLUME
IF transform.is_elementary_shear=true
THEN determinant=1 AND oriented_volume_preserved=true
RULE SHEAR_COMPOSITION
IF transform_1=E_ij(a) AND transform_2=E_ij(b)
THEN transform_1 o transform_2=E_ij(a+b)
RULE SHEAR_NOT_RIGID
IF factor!=0 AND transform.is_elementary_shear=true
THEN transform.is_isometry=false
8. VALIDATION CONSTRAINTS
ASSERT dimension>=2
ASSERT matrix.rows=dimension AND matrix.columns=dimension
ASSERT scalar_factor is finite Real for numerical execution
ASSERT elementary_shear_indices i!=j
ASSERT matrix=I+k*e_i*e_j^T when elementary_shear=true
ASSERT abs(determinant(matrix)-1)<=tolerance for floating-point checks
ASSERT inverse(matrix) exists for elementary shear
ASSERT coordinate_basis and unit conventions are specified
ASSERT transformation_order is explicit for composition
ASSERT affine_reference_centre is distinguished from linear origin
9. WORKED EXAMPLES
EXAMPLE Horizontal shear:
input=(2,3), k=2
H_2(2,3)=(8,3)
determinant([[1,2],[0,1]])=1
EXAMPLE Vertical shear:
input=(2,3), k=-0.5
V_(-0.5)(2,3)=(2,2)
EXAMPLE Inverse:
H_(-2)(H_2(2,3))=(2,3)
EXAMPLE Composition:
H_2(H_3(x,y))=H_5(x,y)
10. SEMANTIC EQUIVALENCE
HorizontalShear(k) == ElementaryShear(i=1,j=2,k) in a standard 2D ordered basis
VerticalShear(k) == ElementaryShear(i=2,j=1,k) in a standard 2D ordered basis
Shear(k=0) == IdentityTransformation
Shear(k) != RotationTransformation for k!=0
Shear(k) != UniformScaling for k!=0
NOTE: equivalence depends on coordinate basis, parameterisation, and reference origin.
11. CONFIDENCE AND PROVENANCE
formal_mathematical_claims: confidence=1.0 under stated real-vector-space assumptions
numerical_outputs: confidence depends on precision and input validation
source_page: see Source above
derivation_provenance: standard linear algebra identities
12. FLOW_HASH AND UPDATE_MODEL
FLOW_ID: mathematical_entities.transformation_entities.shear_transformation
FLOW_VERSION: 1.0
FLOW_HASH: COMPUTE_SHA256(canonical_serialisation_of_flow)
UPDATE_MODEL: versioned; invalidate derived assertions if definitions or assumptions change
NOTE: FLOW_HASH is an instruction to compute a digest, not a fabricated hash value.
13. AI_CONSUMPTION
parse_mode: typed_formal_rules
reasoning_mode: symbolic_matrix_and_affine_geometry
prerequisites: vectors, matrices, determinants, composition, coordinate systems
outputs: transformed_coordinates, matrix_representation, inverse, invariants, validation_results
failure_conditions: dimension_mismatch, invalid_indices, nonfinite_numeric_parameter, unspecified_basis
interpret_as: executable_formal_specification_not_pseudocode
END FLOW ALGEBRA