AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
KIRETH RESEARCH — AI SEMANTIC LIBRARY
DIRECTION ONTOLOGY — STANDARD FLOW ALGEBRA
Version: 1.0 | Encoding: UTF-8 | Date: 2026-12-03
Authors: Mark Anthony Higgins — Sky Recursive AI
Licence: Open Research Licence (project attribution; exact terms unverified)
Source: https://kirethresearch.org/booksai-core/entity-graph/abstract-concepts/space-concepts/direction-ontology.html
Integration: AI Core / Entity Graph / Abstract Concepts / Space Concepts
Status: Proposed formalisation; not a verified transcription or executable grammar.
1. CANONICAL DEFINITION
Direction describes the orientation and sense of a nonzero displacement, vector, tangent or directed spatial relationship relative to a specified frame. In Euclidean vector space a directed direction is an equivalence class of nonzero vectors under positive scalar multiplication. An unoriented axis instead identifies opposite directions. Direction does not itself specify magnitude, position, speed or a complete rigid-body orientation. A zero displacement has no unique direction. Symbolic directions such as north or left require a convention and reference context.
2. ENTITY MODEL
D = (id, subject, origin, target, frame, epoch, kind, representation, uncertainty, evidence, version, status).
Origin and target are optional for an independently specified vector; both are required for a direction derived from two positions. Frame identifies axes, handedness, dimension, metric and units. Epoch specifies validity for moving frames. Kind distinguishes directed vector, unoriented axis, bearing, local tangent and symbolic relation. Representation may be a unit vector, angular coordinates or a categorical label with a declared interpretation. Status ∈ {established, rejected, unknown, disputed, not_applicable}. Unknown observations must not be represented by a zero vector. Direction identity and subject identity remain distinct.
3. CLASSIFICATION
DIRECTION → geometric | physical | navigational | relative | symbolic | dynamic.
Geometric: directed ray, unoriented axis, tangent, normal.
Physical: velocity, acceleration, force or field direction; each retains its quantity type.
Navigational: bearing relative to true, magnetic or grid north, with declared convention.
Relative: left/right, forward/backward, above/below, relative to a reference body or frame.
Symbolic: discrete labels with explicitly defined angular sectors or relational predicates.
Dynamic: time-indexed directions along a trajectory or within a vector field.
These classifications may overlap; they are not mutually exclusive subclasses.
4. LOCAL FLOW ALGEBRA NOTATION
X →[F] Y denotes a typed transformation; g ∘ f applies f before g. Operators below are proposed local notation, not verified published executable syntax.
F_FRAME: (Position, Frame, Epoch) → Position | Unknown
F_DELTA: (Position, Position) → Vector | Invalid
F_UNIT: Vector → Direction | Undefined
F_REVERSE: Direction → Direction
F_ANGLE: (Direction, Direction, Metric) → Angle
F_ROTATE: (Direction, Rotation) → Direction
F_AXIS: Direction → UnorientedAxis
F_BEARING: (Direction, BearingConvention) → Angle | Undefined
F_CLASSIFY: (Direction, SectorPolicy) → Label | Ambiguous
F_COMPARE: (Direction, Direction, Tolerance) → Assessment
F_VALIDATE: (DirectionRecord, Constraints, Evidence) → Assessment
F_COMMIT: (VersionedGraph, ValidatedDelta) → VersionedGraph
Each operation requires compatible frames, epochs and dimensionality unless an explicit mapping is provided. Undefined is a typed result, not an arbitrary direction.
5. COMPOSITE FLOWS
Position pair →[F_FRAME] Common-frame pair →[F_DELTA] Displacement →[F_UNIT] Direction →[F_VALIDATE] Assessment.
Direction →[F_ROTATE] Transformed direction →[F_BEARING] Bearing →[F_CLASSIFY] Sector label.
Observation →[Frame reconciliation] Candidate →[Comparison] Residual →[Evidence update] Revised candidate →[Validation] Accepted or disputed record.
For compatible rotations R1 and R2, F_ROTATE(R2) ∘ F_ROTATE(R1) = F_ROTATE(R2 R1). Order generally matters. Parallel observations may be merged only with a declared statistical model and compatible frames; opposing directions may yield an undefined mean. Do not average angular coordinates across wraparound without circular treatment.
6. MATHEMATICAL SEMANTICS
For p,q in a common Euclidean frame, v=q−p; d=v/||v|| for ||v||>0. Positive scaling leaves d unchanged; negative scaling reverses it. Reverse(d)=−d. For unit vectors d1,d2, θ=acos(clamp(d1·d2,−1,1)), θ∈[0,π]. For unoriented axes use acos(|d1·d2|). In an oriented plane the signed angle is atan2(det(d1,d2),d1·d2). With east and north components E,N, bearing=atan2(E,N) modulo 2π; undefined when both vanish. A rigid frame mapping p'=Rp+b implies v'=Rv and d'=Rd for orthogonal R. General affine maps require renormalisation: d'=Ad/||Ad|| when Ad≠0. Surface normals under invertible affine maps transform by A^(-T), then normalisation. On curved spaces directions are local tangent vectors; comparison at distinct points requires a declared transport rule. Geographic bearings depend on datum and geodesic convention. A trajectory r(t) has tangent direction r'(t)/||r'(t)|| wherever the derivative exists and is nonzero.
Uncertainty: for v with covariance Σ, first-order unit-vector covariance is JΣJᵀ, J=(I−ddᵀ)/||v||. This approximation is unreliable near zero or for broad distributions. Use circular or spherical distributions when appropriate. A weighted resultant is m=Σw_i d_i; normalise only if nonzero and sufficiently resolved. Approximate angular agreement θ≤ε is symmetric but not generally transitive.
7. STRUCTURAL INVARIANTS
I01: Every established direction has a declared frame and dimension.
I02: Unit-vector representations have norm one within numerical tolerance.
I03: Zero vectors cannot establish a unique direction.
I04: Positive rescaling preserves directed direction.
I05: Reversal is involutive: reverse(reverse(d))=d.
I06: Opposite directed directions remain distinct; axis projection identifies them.
I07: Translation of both endpoints leaves Euclidean displacement unchanged.
I08: Orthogonal transformations preserve unsigned angular separation.
I09: Angular comparisons require compatible metric and reference conventions.
I10: Direction alone cannot establish distance, speed, causation or complete pose.
I11: Dynamic directions carry validity epochs and frame versions.
I12: Uncertainty and conflicting evidence survive graph updates; missing evidence is not proof of absence.
8. RECURSIVE VALIDATION
Let G_k be a versioned spatial knowledge graph and E_k new evidence. Extract affected direction records, reconcile frames, derive candidate vectors, reject degenerate inputs, compute angular residuals and propagate uncertainty. Validate all invariants and domain constraints before committing a delta to G_(k+1). Preserve prior records and evidence lineage. Conflicting observations remain disputed unless a declared resolution policy justifies selection. Iterate until no material changes occur, residual and uncertainty criteria are satisfied, or an iteration budget is reached. Detect repeated states and oscillation. Report nonconvergence explicitly. A fixed point of this procedure is not proof of physical truth. Never turn an inferred direction into an observed direction merely by recursion.
9. EVIDENCE AND PROVENANCE
Record observation identifier, subject, sensor or source, acquisition time, valid time, frame identifier, calibration, units, angular convention, uncertainty model, transformation chain, derivation method and software/model version. Distinguish measured, asserted, inferred and predicted directions. Record tolerance and numerical precision separately from physical uncertainty. Confidence scores are not probabilities unless calibrated. Preserve contradictory measurements and distinguish unknown from not applicable. A magnetic bearing requires magnetic declination information before comparison with true north; a grid bearing may require convergence correction. Retain source coordinates when deriving a direction so the result can be reproduced.
10. WORKED EXAMPLES
Geometry: p=(1,2), q=(4,6), v=(3,4), d=(0.6,0.8). Reverse is (−0.6,−0.8). Magnitude five is not part of the direction.
Navigation: E=3,N=4 yields bearing approximately 36.87 degrees clockwise from north in the declared planar frame. It is not automatically a geodesic bearing.
Robotics: a local forward vector (1,0) rotated 90 degrees anticlockwise becomes (0,1) in the stated right-handed planar convention. Translation of the robot does not change that direction.
Engineering: force direction and displacement direction can coincide while their magnitudes and physical dimensions remain different. Their angular agreement alone does not establish a causal relationship.
Computational: two equal-weight observations (1,0) and (−1,0) have zero resultant. Report ambiguity rather than selecting a mean direction.
Temporal: r(t)=(t²,0) has opposite tangent directions on either side of t=0; at t=0 its velocity direction is undefined.
11. CROSS-ONTOLOGY INTEGRATION
Space Concept supplies ambient space, metric and dimensionality. Spatial Entity supplies the subject and geometric representation. Location and Position supply reference points. Region, Boundary, Interior and Exterior support crossing and normal-direction relationships. Transformation supplies frame mappings and composition. Temporal Context supplies epoch and validity. Temporal Change supplies derivatives and trajectory evolution. Symmetry supplies invariance under declared transformations. Causal Relationship remains separate from geometric direction. Suggested graph predicates: hasDirection, directionInFrame, derivedFromDisplacement, oppositeDirection, directionOfQuantity, validDuring, supportedByEvidence. These are proposed predicates, not verified existing identifiers.
12. PROPOSED ACCEPTANCE TESTS (NOT EXECUTED)
T01: p=(0,0),q=(3,4) → unit direction (0.6,0.8).
T02: p=q → undefined direction.
T03: v=(2,0),w=(5,0) → same directed direction.
T04: v=(1,0),w=(−1,0) → opposite directions, same unoriented axis.
T05: reverse twice → original direction.
T06: translate both endpoints by (7,9) → unchanged displacement.
T07: rotate (1,0) by +90 degrees → (0,1) in declared convention.
T08: compare (1,0),(0,1) → unsigned angle π/2.
T09: bearing of eastward vector → 90 degrees under north-clockwise convention.
T10: equal opposing observations → undefined resultant direction.
T11: mismatched frame identifiers without mapping → reject comparison or return unknown.
T12: conflicting time-stamped evidence → preserve provenance and mark disputed until resolved.
13. CITATION AND LICENCE
Suggested citation: Higgins, Mark Anthony; Sky Recursive AI (2026). Direction Ontology — Standard Flow Algebra, version 1.0. Kireth Research, AI Semantic Library.
Source URL: https://kirethresearch.org/booksai-core/entity-graph/abstract-concepts/space-concepts/direction-ontology.html
Original proposed formalisation. Open Research Licence attribution follows project convention; consult the publisher for authoritative terms. Live source content, exact licence terms and compatibility with the published Flow Algebra grammar have not been independently verified. Acceptance tests are proposed, not executed.
END OF SPECIFICATION