Skip to main content

Ray Ontology

Geometric Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 13 October 2026
Audio Overview
FLOW ALGEBRA
TITLE: Ray Ontology
VERSION: 4.0
DOMAIN: Mathematics / Geometry / Geometric Entities
SOURCE_URL: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/geometric-entities/ray-ontology-2.html
SOURCE_ALIGNMENT: Independently formalised; source-page wording not verified.
AUTHORS: Mark Higgins — Sky (Recursive AI)
SITE: https://kirethresearch.org

1. PURPOSE
Represent geometric rays as typed entities with precise incidence, direction, containment, intersection, and transformation semantics.

2. TYPE SYSTEM
TYPE Point(space: AffineSpace)
TYPE Vector(space: TranslationVectorSpace)
TYPE Scalar(field: OrderedField)
TYPE Line(space: AffineSpace)
TYPE Ray(space: AffineSpace)
TYPE Segment(space: AffineSpace)
TYPE HalfLine(space: AffineSpace)
TYPE Angle(space: EuclideanSpace)
TYPE Transformation(domain: AffineSpace, codomain: AffineSpace)
TYPE Proof(status: verified | disproved | unknown)

3. CONSTRUCTION
PARAMETERS: O:Point, d:Vector, d != 0
DEFINE Ray(O,d) := { O + t*d | t in Real, t >= 0 }.
DEFINE Origin(Ray(O,d)) := O.
DEFINE Direction(Ray(O,d)) := equivalence class {lambda*d | lambda > 0}.
DEFINE SupportingLine(Ray(O,d)) := {O+t*d | t in Real}.
DEFINE RayThrough(O,P) := Ray(O,P-O), provided P != O.
NOTE: Positive scalar multiples yield the same oriented ray; negative multiples yield its opposite ray.
NOTE: The origin belongs to the ray. A ray has no terminal endpoint.

4. AXIOMS
AXIOM R01: Ray(O,d) requires d != 0.
AXIOM R02: O in Ray(O,d).
AXIOM R03: For t>=0, O+t*d in Ray(O,d).
AXIOM R04: For every X in Ray(O,d), exists t>=0 such that X=O+t*d.
AXIOM R05: Ray(O,d) subset SupportingLine(Ray(O,d)).
AXIOM R06: Ray(O,d)=Ray(O,lambda*d) for lambda>0.
AXIOM R07: Ray(O,d) != Ray(O,-d) for d!=0.
AXIOM R08: Ray(O,d) intersect Ray(O,-d)={O}.
AXIOM R09: Ray(O,d) union Ray(O,-d)=SupportingLine(Ray(O,d)).
AXIOM R10: A ray is convex in a real affine space.
AXIOM R11: A ray is closed in finite-dimensional Euclidean topology.
AXIOM R12: A ray is unbounded in Euclidean geometry.

5. RELATIONSHIPS
RELATION hasOrigin(Ray,Point) [functional]
RELATION hasDirection(Ray,VectorDirection) [functional]
RELATION liesOn(Ray,Line)
RELATION containsPoint(Ray,Point)
RELATION sharesOriginWith(Ray,Ray) [symmetric]
RELATION oppositeTo(Ray,Ray) [symmetric]
RELATION parallelTo(Ray,Ray) [symmetric; not necessarily distinct]
RELATION intersects(Ray,Ray) [symmetric]
RELATION subsetOf(Ray,GeometricSet)
RELATION formsAngleWith(Ray,Ray)
RELATION mapsTo(Transformation,Ray)
RELATION hasProvenance(Entity,Source)

6. DERIVED OPERATIONS
OP pointAt(R,t) = Origin(R)+t*representativeDirection(R), t>=0.
OP membership(X,R): solve X=O+t*d with t>=0.
OP distanceFromOrigin(pointAt(R,t),R) = t*norm(d) in Euclidean space.
OP opposite(Ray(O,d)) = Ray(O,-d).
OP translate(Ray(O,d),v) = Ray(O+v,d).
OP affineMap(T(x)=A*x+b,Ray(O,d)) = Ray(A*O+b,A*d), if A*d != 0.
OP affineMap with A*d=0 collapses ray to singleton {A*O+b}, not a nondegenerate ray.
OP scaleAboutOrigin(Ray(O,d),lambda) = Ray(O,lambda*d) for lambda!=0; lambda<0 reverses orientation.

7. FORMAL INFERENCE RULES
RULE 01: d!=0 -> ValidRay(Ray(O,d)).
RULE 02: ValidRay(R) -> containsPoint(R,Origin(R)).
RULE 03: X=O+t*d AND t>=0 -> containsPoint(Ray(O,d),X).
RULE 04: X=O+t*d AND t<0 -> NOT containsPoint(Ray(O,d),X).
RULE 05: lambda>0 -> Ray(O,d)=Ray(O,lambda*d).
RULE 06: lambda<0 -> Ray(O,lambda*d)=Ray(O,-d).
RULE 07: Ray(O,d) -> liesOn(Ray(O,d),Line(O,d)).
RULE 08: ValidRay(R) -> Convex(R).
RULE 09: ValidRay(R) AND EuclideanSpace -> Unbounded(R).
RULE 10: ValidRay(R) AND FiniteDimensionalEuclideanSpace -> Closed(R).
RULE 11: d!=0 -> Ray(O,d) intersect Ray(O,-d)={O}.
RULE 12: d!=0 -> Ray(O,d) union Ray(O,-d)=Line(O,d).
RULE 13: P!=O -> RayThrough(O,P)=Ray(O,P-O).
RULE 14: P=O -> RayThrough(O,P) undefined under nondegenerate-ray convention.
RULE 15: t>=0 -> Segment(O,O+t*d) subset Ray(O,d).
RULE 16: t>0 -> Ray(O+t*d,d) proper_subset Ray(O,d).
RULE 17: s>=0 AND t>=0 -> (1-s/(s+t))*(O+s*d)+(s/(s+t))*(O+t*d) in Ray(O,d), if s+t>0.
RULE 18: T translation -> T(Ray(O,d))=Ray(T(O),d).
RULE 19: T invertible affine -> T(Ray(O,d)) is a ray.
RULE 20: T linear AND T(d)=0 -> T(Ray(O,d)) singleton.
RULE 21: Ray(O,d) and Ray(O,e) with e=lambda*d, lambda>0 -> SameRay.
RULE 22: Ray(O,d) and Ray(O,e) with e=lambda*d, lambda<0 -> OppositeRays.
RULE 23: Ray(O,d) and Ray(P,e), e=lambda*d, lambda!=0 -> ParallelSupportingLines.
RULE 24: Ray(O,d) -> unique Origin(Ray(O,d)).
RULE 25: Ray(O,d) -> direction defined up to positive scale.
RULE 26: X,Y in Ray(O,d) -> Segment(X,Y) subset Ray(O,d).
RULE 27: Ray(O,d) -> cardinality continuum over real affine space.
RULE 28: Ray(O,d) -> dimension of affine hull = 1.
RULE 29: Two distinct rays with common origin define an angle in Euclidean plane if direction vectors nonzero.
RULE 30: Opposite rays with common origin define straight angle pi radians.
RULE 31: Identical rays with common origin define zero angle.
RULE 32: Ray(O,d) and line L intersection requires solving simultaneous parametric equations with t>=0 for ray.
RULE 33: Two ray intersection requires solving O+t*d=P+s*e with t,s>=0.
RULE 34: Nonparallel supporting lines in Euclidean plane meet in exactly one point; rays intersect iff that point satisfies both nonnegative parameters.
RULE 35: Coincident supporting lines do not guarantee coincident rays.
RULE 36: Every nondegenerate ray is homeomorphic to [0,infinity) in Euclidean space.

8. VALIDATION CONSTRAINTS
CHECK V01: Origin and direction share compatible affine/vector space.
CHECK V02: Direction vector is nonzero.
CHECK V03: Parameter is real and nonnegative for membership.
CHECK V04: Do not confuse an infinite ray with a bounded line segment.
CHECK V05: Do not confuse ray with full supporting line.
CHECK V06: Distinguish ray from light ray in physical optics unless context specifies geometry.
CHECK V07: Orientation must be retained under negative scaling.
CHECK V08: Use Euclidean assumptions for distances and angles.
CHECK V09: Intersection predicates must include endpoint cases.
CHECK V10: Degenerate affine maps need not preserve ray type.
CHECK V11: Collinearity alone does not establish point membership.
CHECK V12: Parallelism does not imply disjointness.
CHECK V13: Coincident rays are not disjoint.
CHECK V14: Opposite rays share their origin.
CHECK V15: Infinite extent refers to unbounded parameter, not infinite dimensionality.
CHECK V16: Numeric intersection results require tolerance/precision metadata when approximate.

9. MATHEMATICAL EXAMPLES
EXAMPLE 01: O=(0,0), d=(1,0) -> positive x-axis including origin.
EXAMPLE 02: O=(0,0), d=(-1,0) -> negative x-axis including origin.
EXAMPLE 03: Ray((1,2),(2,1)) contains (5,4), t=2.
EXAMPLE 04: Ray((1,2),(2,1)) excludes (-1,1), t=-1.
EXAMPLE 05: Ray((0,0),(1,1)) = Ray((0,0),(3,3)).
EXAMPLE 06: Ray((0,0),(1,1)) != Ray((0,0),(-1,-1)).
EXAMPLE 07: Opposite x-axis rays intersect at {(0,0)}.
EXAMPLE 08: Their union is the full x-axis.
EXAMPLE 09: Ray((0,0),(1,0)) intersect Ray((2,-1),(0,1)) = {(2,0)}.
EXAMPLE 10: Ray((0,0),(1,0)) intersect Ray((2,1),(0,1)) = empty set.
EXAMPLE 11: Ray((0,0),(1,0)) intersect Ray((2,0),(-1,0)) = segment from (0,0) to (2,0).
EXAMPLE 12: Ray((0,0),(1,0)) intersect Ray((2,0),(1,0)) = Ray((2,0),(1,0)).
EXAMPLE 13: Translate positive x-axis by (0,2) -> horizontal ray starting at (0,2).
EXAMPLE 14: Rotation by pi/2 sends positive x-axis to positive y-axis.
EXAMPLE 15: Projection (x,y)->(x,0) collapses a vertical ray at x=0 to a point.
EXAMPLE 16: Unit vector d=(cos(theta),sin(theta)) parametrises ray by Euclidean arc length.

10. KNOWLEDGE GRAPH TRIPLES
(Ray, isA, GeometricEntity)
(Ray, isA, ConvexSet)
(Ray, hasOrigin, Point)
(Ray, hasDirection, VectorDirection)
(Ray, subsetOf, Line)
(Ray, relatedTo, LineSegment)
(Ray, relatedTo, Angle)
(Ray, relatedTo, HalfLine)
(Ray, participatesIn, Intersection)
(Ray, transformedBy, AffineTransformation)
(Ray, hasDimensionOfAffineHull, One)
(Ray, hasBoundaryInSupportingLine, Origin)

11. SEMANTIC_EQUIVALENCE
CANONICAL: geometric ray
ALIASES: half-line; halfline; directed half-line
CONTEXTUAL: ray AB = ray from A through B, when A != B
NOT_EQUIVALENT: full line; line segment; vector; physical light beam
NORMALISATION: Ray(O,lambda*d) -> Ray(O,d) for lambda>0.
CAUTION: Coordinate vector representatives are not unique.

12. CONFIDENCE
DEFINITION_CONFIDENCE: 1.00 (standard Euclidean/real affine mathematical definition)
INFERENCE_CONFIDENCE: 1.00 when stated premises and domain assumptions hold
SOURCE_PAGE_MATCH_CONFIDENCE: unverified
NUMERIC_CONFIDENCE: depends on precision, rounding, and input provenance
POLICY: Never substitute epistemic confidence for a formal proof.

13. FLOW_HASH
ALGORITHM: SHA-256
INPUT: UTF-8 canonicalised ontology text excluding the FLOW_HASH value itself
CANONICALISATION: Unicode NFC; LF newlines; trim trailing whitespace
VALUE: COMPUTE_ON_PUBLICATION
NOTE: No fabricated digest is supplied.

14. UPDATE_MODEL
VERSION: 4.0
DATE: 2026-10-13
CHANGE_POLICY: semantic versioning; preserve prior versions
TRIGGERS: corrected axioms, expanded geometry contexts, source-page reconciliation
REVALIDATE: type checks, theorem premises, examples, hash, backlinks
PROVENANCE: independently authored formalisation pending source-page comparison

15. AI_CONSUMPTION
READ_ORDER: metadata -> types -> definitions -> axioms -> rules -> constraints -> examples
ENTITY_RESOLUTION: identify geometric ray vs optical ray from domain context
REASONING_MODE: symbolic-first; verify parameter sign and nonzero direction
INTERSECTION_MODE: solve equations and enforce all parameter inequalities
TRANSFORMATION_MODE: detect rank-deficient maps before claiming output is a ray
PROOF_MODE: emit premises, applied rule IDs, conclusion, and verification status
UNCERTAINTY_MODE: flag missing coordinate system, metric, and source evidence
OUTPUT_CONTRACT: typed triples + proof trace + confidence + provenance
FAIL_CLOSED: unknown where conditions cannot be verified

16. RELATED ONTOLOGIES
Point Ontology
Line Ontology
Line Segment Ontology
Vector Ontology
Angle Ontology
Geometric Entity Ontology
Coordinate System Ontology
Geometric Transformation Ontology

END FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ