AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
TITLE: Coordinate System Ontology
VERSION: 4.0
DOMAIN: Mathematical Entities / Coordinate and Spatial Entities
SOURCE_URL: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/coordinate-and-spatial-entities/coordinate-system-ontology-2.html
AUTHORSHIP: Mark Higgins — Sky (Recursive AI)
PROJECT: Kireth Semantic Library
STATUS: Independently formalised; source-page correspondence not verified
DATE: 2026-10-13
01 / PURPOSE
flow CoordinateSystemOntology v4.0:
goal: represent coordinate systems as typed mappings between geometric points and coordinate tuples
scope: Euclidean, affine, curvilinear, geographic and local coordinate charts
distinguish: point != coordinate tuple != coordinate frame != coordinate transformation
assumptions: mathematical claims must carry domains, conventions and singularity conditions
02 / TYPES
Space: set with specified geometric/topological structure
Point[S:Space]: geometric location independent of coordinates
ScalarField: Real | Complex | OtherField
Dimension: Integer where dimension >= 0
CoordinateTuple[F:ScalarField,n:Dimension]: F^n
Domain[S]: subset of S
Chart[S,F,n]: (U:Domain[S], phi:U -> F^n)
CoordinateSystem[S,F,n]: atlas or global coordinate assignment with convention metadata
Frame[S,n]: (origin, ordered basis, handedness, units)
Axis: oriented coordinate direction or parameter axis
CoordinateTransformation: mapping between coordinate representations
MetricTensor: bilinear metric field, where defined
Jacobian: derivative matrix of a differentiable transformation
Singularity: locus where coordinate representation fails or degenerates
ReferenceDatum: specified origin/reference surface/reference frame, where applicable
03 / CORE ENTITIES
CoordinateSystem
CartesianCoordinateSystem
PolarCoordinateSystem
CylindricalCoordinateSystem
SphericalCoordinateSystem
AffineCoordinateSystem
CurvilinearCoordinateSystem
GeographicCoordinateSystem
HomogeneousCoordinateSystem
LocalCoordinateChart
CoordinateAxis
CoordinateOrigin
CoordinatePoint
CoordinateFrame
CoordinateTransformation
CoordinateDomain
CoordinateSingularity
Orientation
UnitConvention
ReferenceDatum
04 / TYPED RELATIONSHIPS
CoordinateSystem --represents--> Space
CoordinateSystem --uses--> CoordinateTuple
CoordinateSystem --has_dimension--> Dimension
CoordinateSystem --defines_on--> Domain
CoordinateSystem --has_chart--> Chart
CoordinateSystem --has_axes--> Axis
CoordinateSystem --may_have_origin--> CoordinateOrigin
CoordinateSystem --has_convention--> UnitConvention
CoordinateSystem --may_reference--> ReferenceDatum
CoordinateSystem --may_have_singularity--> Singularity
Point --is_represented_by--> CoordinateTuple [relative_to CoordinateSystem]
CoordinateTransformation --maps_from--> CoordinateSystem
CoordinateTransformation --maps_to--> CoordinateSystem
CoordinateTransformation --has_jacobian--> Jacobian [when differentiable]
Frame --has_ordered_basis--> Basis
Frame --has_orientation--> Orientation
MetricTensor --expressed_in--> CoordinateSystem
05 / FUNDAMENTAL SEMANTICS
for chart (U,phi): phi is a homeomorphism from U onto an open subset of F^n
coordinate_of(p,phi) := phi(p) for p in U
point_of(x,phi) := phi^-1(x) for x in phi(U)
coordinates depend on chart; geometric point does not
distinct coordinate tuples may denote the same point under different charts
chart transitions are defined only where chart domains overlap
chart transitions: phi_B o phi_A^-1
a global coordinate system is not guaranteed for an arbitrary manifold
local chart != globally valid coordinates
06 / CARTESIAN COORDINATES
space: Euclidean R^n
coordinates: (x_1,...,x_n)
standard frame: origin 0 and ordered orthonormal basis e_i
position: p = origin + sum_i x_i e_i
distance in orthonormal Cartesian coordinates: d(p,q) = sqrt(sum_i (p_i-q_i)^2)
note: general affine coordinates need not be orthonormal
07 / POLAR COORDINATES (2D)
coordinates: (r,theta)
constraints: r >= 0; theta modulo 2*pi
x = r*cos(theta)
y = r*sin(theta)
r = sqrt(x^2+y^2)
theta = atan2(y,x) for r > 0, subject to branch convention
Jacobian determinant for (r,theta)->(x,y): r
singularity: r = 0; angular coordinate undefined at origin
area element: r dr dtheta
nonuniqueness: theta and theta + 2*pi*k represent same direction
08 / CYLINDRICAL COORDINATES (3D)
coordinates: (r,theta,z)
x = r*cos(theta)
y = r*sin(theta)
z = z
Jacobian determinant: r
volume element: r dr dtheta dz
singularity: r = 0 for angular coordinate
09 / SPHERICAL COORDINATES (3D)
convention: (rho,theta,phi), theta azimuth in xy-plane, phi polar angle from +z
constraints: rho >= 0; theta in [0,2*pi); phi in [0,pi]
x = rho*sin(phi)*cos(theta)
y = rho*sin(phi)*sin(theta)
z = rho*cos(phi)
Jacobian magnitude: rho^2*sin(phi)
volume element: rho^2*sin(phi) drho dphi dtheta
singularities: rho = 0 and azimuthal ambiguity at phi = 0 or pi
WARNING: some disciplines interchange theta and phi; require explicit convention
10 / AFFINE AND FRAME TRANSFORMS
same-dimensional affine coordinates: x_B = A*x_A + b
A must be invertible for bijective frame conversion
inverse: x_A = A^-1*(x_B-b)
homogeneous representation: [x_B;1] = [[A,b],[0,1]]*[x_A;1]
rigid Euclidean frame conversion: x_B = R*x_A + t with R^T*R = I
orientation preserving rigid transform: det(R) = +1
reflection permitted by orthogonal matrices with det(R) = -1
WARNING: matrix multiplication order depends on column/row-vector convention
11 / DIFFERENTIABLE COORDINATE TRANSFORMS
y = f(x) with Jacobian J_ij = partial y_i / partial x_j
local inverse follows from inverse function theorem where det(J) != 0
vector components transform using the appropriate pushforward or basis convention
covectors transform by the inverse-transpose Jacobian under column conventions
metric components: g'_ab = (partial x^i/partial y^a)*(partial x^j/partial y^b)*g_ij
volume density transforms by absolute determinant of Jacobian
coordinate singularity need not imply geometric singularity
12 / TOPOLOGICAL AND GEOGRAPHIC CONTEXT
manifold: may require an atlas of overlapping coordinate charts
geographic coordinates: latitude, longitude and optional elevation
datum and reference ellipsoid must be specified for geodetic accuracy
latitude/longitude are angular parameters, not Euclidean planar distances
map projection converts geographic locations into planar coordinates with distortion
longitude is periodic; polar locations can have longitude ambiguity
reference system and coordinate reference system are not interchangeable with bare tuples
13 / INFERENCE RULES
R01 IF system has chart phi AND p in domain(phi) THEN coordinates(p,phi) = phi(p)
R02 IF phi is injective on U THEN each tuple in phi(U) identifies at most one point in U
R03 IF phi is bijective onto phi(U) THEN phi^-1 is defined there
R04 IF charts overlap THEN transition = phi_B o phi_A^-1 on valid overlap
R05 IF p outside chart domain THEN coordinate query is invalid
R06 IF two tuples map to same point under their charts THEN they are representations of same point
R07 IF x_B = A*x_A+b AND det(A)!=0 THEN inverse affine transform exists
R08 IF det(A)=0 THEN affine mapping is not bijective on full R^n
R09 IF R^T*R=I THEN R preserves Euclidean lengths
R10 IF R^T*R=I THEN R preserves Euclidean inner products
R11 IF det(R)=+1 AND R orthogonal THEN R preserves orientation
R12 IF det(R)=-1 AND R orthogonal THEN R reverses orientation
R13 IF polar r=0 THEN polar angle is nonunique
R14 IF polar r>0 THEN atan2(y,x) determines angle modulo 2*pi
R15 IF cylindrical r=0 THEN azimuth is nonunique
R16 IF spherical rho=0 THEN angular coordinates are nonunique
R17 IF spherical phi in {0,pi} THEN azimuth is nonunique
R18 IF Jacobian determinant nonzero THEN differentiable mapping is locally invertible
R19 IF Jacobian determinant zero THEN inverse function theorem gives no local inverse guarantee
R20 IF chart Jacobian degenerates THEN coordinate singularity is possible
R21 IF chart singular THEN do not infer physical/geometric singularity without invariant evidence
R22 IF chart convention unspecified THEN angle naming is ambiguous
R23 IF units mismatch THEN require unit conversion before numeric comparison
R24 IF datum differs THEN geographic tuples require datum transformation for direct comparison
R25 IF coordinate dimensions differ THEN direct tuple equality is ill-typed
R26 IF affine frame basis is orthonormal THEN standard Euclidean component metric is identity
R27 IF general basis not orthonormal THEN use Gram/metric matrix for lengths
R28 IF two coordinate charts cover a manifold THEN transitions must agree on overlap for compatible atlas
R29 IF atlas is smooth THEN overlap transitions are smooth maps
R30 IF coordinates have periodic angular component THEN normalise modulo stated period
R31 IF geographic longitude crosses branch cut THEN numerical discontinuity may not be geographic discontinuity
R32 IF transform chain A->B->C exists THEN compose transformations in consistent order
R33 IF frame conversion invertible THEN round-trip should recover original coordinates within tolerance
R34 IF point coordinate is given without system THEN interpretation is underdetermined
R35 IF projection is non-isometric THEN planar distances may differ from geodesic distances
R36 IF transformation is nonlinear THEN constant Jacobian must not be assumed
R37 IF coordinate chart is local THEN extrapolation beyond domain is invalid
R38 IF two charts represent same point THEN geometric invariants remain chart-independent
R39 IF transformed metric is computed correctly THEN line element remains invariant
R40 IF a coordinate result is approximate THEN record precision, uncertainty and units
14 / VALIDATION CONSTRAINTS
V01: dimension is a nonnegative integer
V02: coordinate tuple length equals system dimension
V03: chart point belongs to chart domain
V04: chart map is one-to-one on declared domain
V05: angular unit is explicit: radians or degrees
V06: coordinate orientation and axis order are explicit
V07: spherical convention is explicit
V08: Jacobian shape matches source/target dimensions
V09: inverse requires applicable bijectivity assumptions
V10: transformations specify active/passive interpretation where relevant
V11: coordinate reference datum specified for geospatial claims
V12: numerical comparisons use compatible units and reference systems
V13: singularities and branch cuts are annotated
V14: geometric properties are not inferred solely from coordinate artefacts
V15: transformation results preserve specified invariant checks
V16: uncertainty and numerical tolerance are recorded where applicable
15 / MATHEMATICAL EXAMPLES
E01: Cartesian p=(3,4) -> Euclidean norm 5
E02: polar (r=2,theta=0) -> Cartesian (2,0)
E03: polar (r=1,theta=pi/2) -> Cartesian (0,1) up to floating error
E04: Cartesian (-1,0) -> polar (1,pi) modulo 2*pi
E05: Cartesian origin (0,0) -> polar r=0, theta undefined
E06: cylindrical (2,0,5) -> Cartesian (2,0,5)
E07: spherical (rho=1,theta=0,phi=pi/2) -> Cartesian (1,0,0)
E08: spherical north pole (rho=1,phi=0) -> Cartesian (0,0,1), theta arbitrary
E09: translation x_B=x_A+(2,3), x_A=(1,1) -> x_B=(3,4)
E10: rotation R=[[0,-1],[1,0]], x=(1,0) -> (0,1)
E11: scaling A=diag(2,3), x=(1,1) -> (2,3), det(A)=6
E12: singular A=[[1,0],[0,0]] -> noninvertible
E13: polar Jacobian at r=2 -> determinant 2
E14: 2D Cartesian to polar at (-1,0) -> angle pi on principal branch
E15: frame basis e1=(1,0),e2=(1,1) -> nonorthogonal; metric != I
E16: longitude 179 degrees and -181 degrees denote same meridian modulo 360 degrees
16 / SEMANTIC_EQUIVALENCE
coordinate reference: context-sensitive; not always synonymous with coordinate system
coordinate frame: origin+basis convention; related to but not identical with a chart
Cartesian coordinate system ~= rectangular coordinate system [when orthogonal axes intended]
polar coordinates != cylindrical coordinates [dimension differs]
coordinate singularity != geometric singularity
point != tuple
coordinates != physical position without reference system
atlas != single chart
geographic coordinates != projected Cartesian coordinates
17 / KNOWLEDGE GRAPH TRIPLES
(CoordinateSystem, is_a, MathematicalRepresentationFramework)
(CoordinateSystem, represents, Space)
(CoordinateSystem, uses, CoordinateTuple)
(CoordinateSystem, specifies, Dimension)
(CartesianCoordinateSystem, subclass_of, CoordinateSystem)
(PolarCoordinateSystem, subclass_of, CoordinateSystem)
(CylindricalCoordinateSystem, subclass_of, CoordinateSystem)
(SphericalCoordinateSystem, subclass_of, CoordinateSystem)
(GeographicCoordinateSystem, subclass_of, CoordinateSystem)
(Chart, maps, DomainToCoordinateTuple)
(CoordinateTransformation, relates, CoordinateSystems)
(Jacobian, describes, LocalDifferentialChange)
(ReferenceDatum, contextualises, GeographicCoordinateSystem)
(CoordinateSingularity, may_occur_in, CoordinateChart)
(MetricTensor, expresses, GeometricMeasurementInCoordinates)
18 / CONFIDENCE
definitions_and_standard_formulas: 0.99 [mathematical conventions stated]
context_dependent_classification: 0.95 [verify conventions]
geographic_reference_conversion: conditional [requires CRS and datum]
website_source_alignment: unverified
evidence_policy: confidence is not a substitute for proof; retain theorem assumptions
19 / FLOW_HASH
algorithm: SHA-256
canonicalisation: UTF-8; LF line endings; stable field order; exclude FLOW_HASH computed value
value: COMPUTE_AT_INGESTION
verification: recompute on canonical content; compare against stored digest
20 / UPDATE_MODEL
semantic_version: 4.0
triggers: corrected formula | changed conventions | new coordinate system | ontology link update
change_policy: retain prior version and change log; validate downstream relationships
integrity_checks: domain constraints, inverse round-trip, unit consistency, graph typing
provenance: independently authored mathematical formalisation, not verbatim page extraction
21 / AI_CONSUMPTION
ingest_as: typed ontology with formal rules and constraint annotations
reasoning_priority: explicit definitions > proved inference > contextual convention > heuristic
require_context: space, dimension, chart/frame, units, orientation, datum if relevant
reject: untyped coordinate comparison, invalid domain, unjustified invertibility
output: value + coordinate system + units + assumptions + provenance + confidence
explain: distinguish intrinsic geometry from coordinate representation
interoperability: connect to Coordinate, Coordinate Point, Coordinate Axis, Spatial Metadata,
Geometric Point, Vector Space, Linear Transformation and Manifold ontologies
END FLOW ALGEBRA