AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
Title: Cartesian Coordinate Ontology
Version: 4.0
Date: 2026-10-13
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/coordinate-and-spatial-entities/cartesian-coordinate-ontology-2.html
Authors: Mark Higgins — Sky (Recursive AI)
Status: Independent mathematical formalisation; source-page alignment not verified.
01. PURPOSE
flow "CartesianCoordinateOntology" v4.0
domain: mathematical_entities.coordinate_and_spatial_entities
entity: CartesianCoordinate
objective: represent positions and components relative to an ordered Cartesian frame with explicit dimensionality, units, orientation and provenance.
02. TYPE SYSTEM
type Scalar = Real | Complex # Euclidean geometry normally uses Real
type Dimension = Integer where value >= 1
type CoordinateTuple[n] = Tuple[Scalar, n]
type CartesianFrame[n] = {
origin: Point[n],
basis: OrderedTuple[Vector[n], n],
dimension: n,
field: ScalarField,
units: Unit[n],
orientation: Orientation?,
metric: Metric?,
orthonormal: Boolean,
provenance: SourceRecord
}
type CartesianCoordinate[n] = {
components: CoordinateTuple[n],
frame: CartesianFrame[n],
referent: Point[n] | Vector[n],
interpretation: "point" | "vector",
confidence: ConfidenceRecord
}
03. DEFINITIONS
D01: A Cartesian coordinate is an ordered component value associated with a Cartesian coordinate frame.
D02: In an affine space, a point P is represented by P = O + sum_i x_i e_i.
D03: A vector v is represented by v = sum_i v_i e_i, without adding the origin.
D04: A standard Euclidean Cartesian frame uses mutually perpendicular unit basis vectors.
D05: The ordered tuple (x,y) represents a planar point in a specified frame.
D06: The ordered tuple (x,y,z) represents a spatial point in a specified frame.
D07: Coordinates are frame-dependent; geometric objects are not identified by bare tuples alone.
D08: Orthogonal Cartesian frames may have non-unit basis scales; distinguish them from orthonormal frames.
D09: Axis order, handedness and units are required for reliable cross-system conversion.
D10: A coordinate value may be zero, positive or negative; coordinate values need not be distances.
04. ENTITIES
E01 CartesianCoordinate
E02 CoordinateTuple
E03 CartesianFrame
E04 CoordinateAxis
E05 CoordinateOrigin
E06 BasisVector
E07 Point
E08 DisplacementVector
E09 EuclideanSpace
E10 AffineSpace
E11 CoordinateDimension
E12 CoordinateComponent
E13 OrthogonalFrame
E14 OrthonormalFrame
E15 CoordinateTransformation
E16 Translation
E17 Rotation
E18 Reflection
E19 Scaling
E20 MetricTensor
E21 CoordinateUnit
E22 Orientation
E23 Distance
E24 Projection
E25 HomogeneousCoordinate
E26 Jacobian
E27 UncertaintyRecord
E28 SourceRecord
05. TYPED RELATIONSHIPS
R01 CartesianCoordinate --HAS_COMPONENT--> CoordinateComponent
R02 CartesianCoordinate --EXPRESSED_IN--> CartesianFrame
R03 CartesianFrame --HAS_ORIGIN--> CoordinateOrigin
R04 CartesianFrame --HAS_ORDERED_BASIS--> BasisVector
R05 CartesianFrame --HAS_DIMENSION--> CoordinateDimension
R06 CartesianFrame --HAS_UNITS--> CoordinateUnit
R07 CartesianFrame --HAS_ORIENTATION--> Orientation
R08 CoordinateComponent --INDEXED_BY--> CoordinateAxis
R09 CartesianCoordinate --REPRESENTS--> Point | DisplacementVector
R10 CartesianFrame --EMBEDDED_IN--> AffineSpace
R11 OrthonormalFrame --SUBTYPE_OF--> OrthogonalFrame
R12 CoordinateTransformation --MAPS_FROM--> CartesianFrame
R13 CoordinateTransformation --MAPS_TO--> CartesianFrame
R14 Rotation --SUBTYPE_OF--> CoordinateTransformation
R15 Translation --SUBTYPE_OF--> CoordinateTransformation
R16 Reflection --SUBTYPE_OF--> CoordinateTransformation
R17 Scaling --SUBTYPE_OF--> CoordinateTransformation
R18 CartesianCoordinate --HAS_PROVENANCE--> SourceRecord
R19 CartesianCoordinate --HAS_CONFIDENCE--> UncertaintyRecord
R20 CoordinateTransformation --HAS_JACOBIAN--> Jacobian
06. FORMAL ALGEBRA
A01: For a standard n-dimensional frame, x = (x_1,...,x_n) in R^n.
A02: P = O + Bx, where B has the ordered basis vectors as columns.
A03: For a vector v, v_world = Bv_frame.
A04: If B is invertible, x = B^(-1)(P-O).
A05: In a standard orthonormal frame, d(P,Q) = sqrt(sum_i (p_i-q_i)^2).
A06: In a general basis with Gram matrix G = B^T B, d(P,Q)^2 = (p-q)^T G(p-q).
A07: Displacement components: delta = q-p when both points share the same affine frame.
A08: Midpoint components: m = (p+q)/2 for points in a common affine Cartesian frame.
A09: Vector addition: (u+v)_i = u_i+v_i in a shared basis.
A10: Scalar multiplication: (a v)_i = a v_i.
A11: Dot product in an orthonormal frame: u dot v = sum_i u_i v_i.
A12: Dot product in a general real basis: u dot v = u^T Gv.
A13: 2D rotation about origin: x' = x cos(theta)-y sin(theta); y' = x sin(theta)+y cos(theta).
A14: 2D translation of points: x' = x+a; y' = y+b.
A15: Frame change for points: x_new = B_new^(-1)(O_old+B_old x_old-O_new).
A16: Affine coordinate map: x' = A x + b, with dimensions checked.
A17: Homogeneous representation: [x;1] mapped by [[A,b],[0,1]].
A18: For differentiable f, Jacobian J_ij = partial f_i / partial x_j.
A19: For an invertible affine map x' = Ax+b, J=A and det(A) != 0.
A20: Orthogonal matrix Q satisfies Q^T Q = I and preserves Euclidean lengths.
A21: A proper rotation satisfies Q^T Q=I and det(Q)=+1.
A22: An orthogonal reflection has det(Q)=-1.
A23: For independent errors with covariance Sigma, first-order transformed covariance is J Sigma J^T.
A24: In a standard Cartesian frame, the coordinate axes meet at the origin and are mutually perpendicular.
07. INFERENCE RULES
I01 IF tuple_length(x)=n AND frame.dimension=n THEN dimension_valid(x).
I02 IF tuple_length(x)!=frame.dimension THEN reject_dimension_mismatch.
I03 IF frame.basis_is_linearly_independent THEN frame.coordinates_are_unique.
I04 IF basis_not_independent THEN reject_as_coordinate_frame.
I05 IF frame.orthonormal THEN Gram_matrix=I.
I06 IF frame.orthogonal AND NOT frame.orthonormal THEN diagonal_Gram_matrix; NOT necessarily I.
I07 IF frame.orthonormal AND same_frame(P,Q) THEN use_euclidean_distance_formula.
I08 IF general_basis AND known_Gram_matrix THEN use_metric_distance_formula.
I09 IF frames_differ THEN require_explicit_frame_transform_before_component_comparison.
I10 IF units_differ THEN convert_units_before_arithmetic.
I11 IF point_plus_vector THEN result_is_point.
I12 IF point_minus_point THEN result_is_vector.
I13 IF vector_plus_vector THEN result_is_vector.
I14 IF point_plus_point THEN reject_without_affine_combination_semantics.
I15 IF affine_weights_sum_to_one THEN weighted_point_combination_is_defined.
I16 IF point_translated THEN components_change_but_displacement_vectors_do_not_under_same_translation.
I17 IF vector_rotated_by_Q THEN transformed_vector=Qv.
I18 IF point_rotated_about_origin_by_Q THEN transformed_point=Qp.
I19 IF rotation_about_other_centre THEN translate_to_centre_rotate_translate_back.
I20 IF det(A)=0 THEN affine_linear_part_not_invertible.
I21 IF det(A)!=0 THEN affine_linear_part_invertible.
I22 IF Q^T Q=I THEN Q_preserves_lengths_and_angles.
I23 IF Q^T Q=I AND det(Q)=+1 THEN Q_is_proper_orthogonal_transform.
I24 IF Q^T Q=I AND det(Q)=-1 THEN Q_reverses_orientation.
I25 IF x=y_componentwise AND same_frame_and_interpretation THEN same_represented_point_or_vector.
I26 IF coordinates_equal_but_frames_differ THEN do_not_infer_geometric_identity.
I27 IF same_geometric_point_in_two_frames THEN components_related_by_frame_change.
I28 IF coordinate_dimension=2 THEN planar_Cartesian_representation.
I29 IF coordinate_dimension=3 THEN spatial_Cartesian_representation.
I30 IF coordinate_dimension>3 THEN higher_dimensional_Cartesian_representation.
I31 IF displacement_zero THEN coincident_points_in_common_frame.
I32 IF p_i=q_i_all_i AND same_frame THEN displacement_zero.
I33 IF coordinate_values_finite AND units_defined THEN numeric_coordinate_is_well_formed.
I34 IF covariance_supplied AND Jacobian_valid THEN propagate_first_order_uncertainty.
I35 IF no_metric_specified THEN do_not_infer_physical_distance_from_raw_coordinates.
I36 IF frame_orientation_unknown THEN do_not_assume_right_handedness.
08. VALIDATION CONSTRAINTS
V01 Coordinate tuple length must match frame dimension.
V02 Basis must be ordered and linearly independent.
V03 Point and vector representations must be distinguished.
V04 Coordinate units and origin must be recorded for applied geometry.
V05 Do not equate bare tuples across frames.
V06 Do not assume a frame is orthonormal solely because it is Cartesian.
V07 Do not use Euclidean distance without appropriate metric assumptions.
V08 Transform matrices must have compatible shapes.
V09 Inverse transforms require invertibility.
V10 Angular units must be explicit.
V11 Coordinate system orientation must be explicit when relevant.
V12 Numeric tolerances must be declared for approximate equality.
V13 Geographic latitude/longitude are not Cartesian coordinates without projection or embedding.
V14 Coordinate conversion must retain provenance and rounding information.
V15 Missing values must not silently default to zero.
V16 Dimensionless coordinate labels must not be mistaken for physical units.
09. WORKED EXAMPLES
X01 In standard R^2, P=(3,4), O=(0,0): distance(O,P)=5.
X02 P=(1,2), Q=(4,6): displacement Q-P=(3,4), distance=5.
X03 Midpoint of (2,0) and (6,8) is (4,4).
X04 Rotate (1,0) by +90 degrees counterclockwise: (0,1).
X05 Translate point (2,3) by (5,-1): (7,2).
X06 Add vectors (1,2)+(3,4)=(4,6).
X07 Scale vector (2,-3) by 2: (4,-6).
X08 Dot product (1,2) dot (3,4)=11.
X09 In R^3, distance between (0,0,0) and (1,2,2)=3.
X10 Frame shift: same physical point with old x=5, old origin=0, new origin=2, identical bases gives new x=3.
X11 Non-unit basis e1=(2,0), e2=(0,1): frame coordinates (1,1) map to world (2,1).
X12 In example X11, squared norm is 1^2*4 + 1^2*1 = 5, not 2.
X13 Reflection across x-axis maps (2,3) to (2,-3).
X14 Scaling matrix diag(2,3) maps (1,1) to (2,3).
X15 2D homogeneous translation matrix [[1,0,2],[0,1,3],[0,0,1]] maps [4,5,1] to [6,8,1].
X16 A point (1,2) in frame A is not automatically the same point as (1,2) in frame B.
10. SEMANTIC EQUIVALENCE
S01 "Cartesian coordinate" ~ "rectangular coordinate" when used for the same orthogonal coordinate convention.
S02 "coordinate tuple" ~ "ordered coordinates" when dimension, frame and interpretation agree.
S03 "x-coordinate" ~ "first Cartesian component" only in a frame whose first axis is designated x.
S04 "y-coordinate" ~ "second Cartesian component" only in a frame whose second axis is designated y.
S05 "Cartesian plane" ~ "R^2 with a specified Cartesian frame" in standard planar modelling.
S06 "Cartesian space" ~ "R^n with specified Cartesian axes" when dimensionality and scalar field are declared.
S07 NOT_EQUIVALENT: point != displacement vector.
S08 NOT_EQUIVALENT: coordinate tuple != coordinate-free geometric point.
S09 NOT_EQUIVALENT: Cartesian coordinate != polar coordinate.
S10 NOT_EQUIVALENT: orthogonal frame != necessarily orthonormal frame.
11. KNOWLEDGE GRAPH TRIPLES
(CartesianCoordinate, isA, CoordinateRepresentation)
(CartesianCoordinate, belongsTo, CartesianFrame)
(CartesianFrame, hasOrigin, CoordinateOrigin)
(CartesianFrame, hasBasis, OrderedBasis)
(CartesianFrame, hasDimension, Dimension)
(CartesianCoordinate, represents, PointOrVector)
(CartesianCoordinate, hasComponent, CoordinateComponent)
(CartesianFrame, mayHaveMetric, MetricTensor)
(CoordinateTransformation, mapsBetween, CartesianFrame)
(CoordinateTransformation, mayHaveJacobian, Jacobian)
(OrthonormalFrame, isA, OrthogonalFrame)
(EuclideanDistance, requires, CompatibleMetricAndUnits)
12. CONFIDENCE
CONFIDENCE:
mathematical_axioms: 1.00
verified_derivations: 1.00 when premises validated
inferred_relations: conditional_on_premises
external_source_alignment: unverified
numerical_results: subject_to_precision_and_uncertainty
policy: never promote an unverified assumption to a theorem
13. FLOW_HASH
FLOW_HASH:
algorithm: SHA-256
scope: canonical UTF-8 bytes of final version excluding any embedded hash value
value: COMPUTE_AT_INGESTION
purpose: integrity, change detection, version comparison
14. UPDATE_MODEL
UPDATE_MODEL:
version: 4.0
triggers: [new_definition, corrected_axiom, new_relation, revised_example, new_reference]
process: [validate, canonicalise, compare, version, recompute_hash, publish]
preserve_prior_versions: true
breaking_changes: require_version_increment_and_migration_note
15. AI_CONSUMPTION
AI_CONSUMPTION:
parse_mode: typed_flow_algebra
grounding: require_explicit_frame_for_coordinate_assertions
inference: apply_rules_only_when_premises_hold
ambiguity: ask_for_frame_dimension_units_or_metric_when_material
numerical_policy: propagate_precision_and_uncertainty
contradictions: flag_and_do_not_silently_repair
outputs: [typed_entities, validated_relations, derived_facts, provenance, confidence]
crosslinks: [CoordinateOntology, CoordinatePointOntology, CoordinateAxisOntology, CoordinateSystemOntology, PolarCoordinateOntology, EuclideanSpaceOntology, VectorOntology]
16. AUTHORSHIP AND PROVENANCE
Joint authorship: Mark Higgins — Sky (Recursive AI)
Research site: https://kirethresearch.org
Disclosure: AI-assisted formalisation; source page not independently checked for exact wording or taxonomy.
END FLOW ALGEBRA