AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
ONTOLOGY: Angle Ontology
VERSION: 4.0
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/geometric-entities/angle-ontology-2.html
DOMAIN: Mathematical Entities / Geometric Entities
AUTHORSHIP: Mark Higgins — Sky (Recursive AI)
SITE: https://kirethresearch.org
SOURCE_ALIGNMENT: Independently constructed; source-page content not verified.
01. PURPOSE
Represent angles as typed geometric relationships between rays, lines, vectors and oriented directions; enable symbolic reasoning, measurement, transformation and validation.
02. TYPED ENTITIES
Angle(id, vertex:Point, initialRay:Ray, terminalRay:Ray, orientation:Orientation?, measure:Real?, unit:AngleUnit)
Point(id, coordinates:Tuple<Real>?, space:GeometricSpace)
Ray(id, origin:Point, direction:NonZeroVector)
Vector(id, components:Tuple<Real>, space:VectorSpace)
AngleUnit := Radian | Degree | Turn
Orientation := Counterclockwise | Clockwise | Unoriented
AngleClass := Zero | Acute | Right | Obtuse | Straight | Reflex | Full | Other
GeometricSpace := EuclideanPlane | EuclideanSpace | OtherMetricSpace
03. DEFINITIONS AND CONVENTIONS
D01: An angle is a geometric configuration of two rays sharing a vertex.
D02: For an oriented planar angle, its measure is defined modulo a full turn unless a winding number or chosen lift is specified.
D03: An unoriented smaller angle between two nonzero Euclidean vectors is in [0, pi].
D04: A radian measures arc length divided by radius for a circular arc centred at the vertex.
D05: 1 full turn = 2*pi radians = 360 degrees.
D06: The measure of an angle depends on orientation and convention; geometric incidence alone does not determine an oriented signed measure.
D07: In Euclidean space of dimension >= 2, the smaller angle between nonzero vectors is arccos of their normalised dot product.
D08: Angle bisector: a ray dividing a specified angle into two equal angular measures, respecting the selected angle sector.
D09: Supplementary angles sum to pi radians; complementary angles sum to pi/2 radians, under the usual nonnegative convention.
D10: Adjacent angles share a vertex and one ray and have disjoint interiors in a chosen planar sector convention.
04. CORE MATHEMATICAL FORMULAE
F01: radians = degrees * pi / 180.
F02: degrees = radians * 180 / pi.
F03: turns = radians / (2*pi).
F04: theta = s/r for a circular arc with radius r > 0 and nonnegative arc length s, provided theta denotes the corresponding central angle in radians.
F05: cos(theta) = (u dot v)/(||u||*||v||), for nonzero Euclidean vectors u,v and theta in [0,pi].
F06: theta = arccos(clamp((u dot v)/(||u||*||v||),-1,1)).
F07: theta_oriented = atan2(det(u,v),u dot v) in an oriented Euclidean plane, with nonzero u,v and principal-value convention (-pi,pi].
F08: A directed rotation by alpha followed by beta has total angle alpha+beta modulo 2*pi.
F09: For a nondegenerate Euclidean triangle, interior angles alpha+beta+gamma = pi.
F10: For a simple Euclidean n-gon, n>=3, the sum of interior angles = (n-2)*pi.
F11: For a Euclidean angle with unit vectors u,v, ||u-v||^2 = 2-2*cos(theta).
F12: In an inner-product space, orthogonality u dot v = 0 iff theta = pi/2, for nonzero u,v.
05. CLASSIFICATION RULES (UNORIENTED ANGLES IN [0,2*pi])
C01: theta = 0 => Zero.
C02: 0 < theta < pi/2 => Acute.
C03: theta = pi/2 => Right.
C04: pi/2 < theta < pi => Obtuse.
C05: theta = pi => Straight.
C06: pi < theta < 2*pi => Reflex.
C07: theta = 2*pi => Full.
C08: Classification requires a specified canonical interval; modulo-2*pi equivalent representations can have different raw numerical classes.
06. RELATIONSHIPS
R01: Angle --HAS_VERTEX--> Point.
R02: Angle --HAS_INITIAL_RAY--> Ray.
R03: Angle --HAS_TERMINAL_RAY--> Ray.
R04: Ray --ORIGINATES_AT--> Point.
R05: Angle --MEASURED_IN--> AngleUnit.
R06: Angle --CLASSIFIED_AS--> AngleClass.
R07: Angle --CONVERTIBLE_TO--> AngleUnit.
R08: Angle --MAY_BE_ADJACENT_TO--> Angle.
R09: Angle --MAY_BE_SUPPLEMENTARY_TO--> Angle.
R10: Angle --MAY_BE_COMPLEMENTARY_TO--> Angle.
R11: Angle --MAY_BE_CONGRUENT_TO--> Angle.
R12: Angle --MAY_BE_BISECTED_BY--> Ray.
R13: Angle --IS_INVARIANT_UNDER--> EuclideanIsometry (magnitude only).
R14: Angle --IS_RELATED_TO--> Rotation.
R15: Angle --IS_RELATED_TO--> DotProduct.
R16: Angle --IS_RELATED_TO--> TrigonometricFunction.
07. FORMAL INFERENCE RULES
I01: sharedOrigin(ray1,ray2) => validAngleVertex(ray1,ray2).
I02: not sharedOrigin(ray1,ray2) => rejectOrdinaryRayAngle(ray1,ray2).
I03: vectorNorm(u)=0 => undefinedAngleBetween(u,v).
I04: vectorNorm(v)=0 => undefinedAngleBetween(u,v).
I05: validEuclideanVectors(u,v) and nonzero(u) and nonzero(v) => angleBetween(u,v) in [0,pi].
I06: angleMeasure(a,90,Degree) => angleClass(a,Right), when canonical magnitude.
I07: angleMeasure(a,180,Degree) => angleClass(a,Straight), when canonical magnitude.
I08: angleMeasure(a,360,Degree) => angleClass(a,Full), when canonical magnitude.
I09: angleMeasure(a,0,Degree) => angleClass(a,Zero), when canonical magnitude.
I10: degreeMeasure(a,d) => radianMeasure(a,d*pi/180).
I11: radianMeasure(a,r) => degreeMeasure(a,180*r/pi).
I12: supplementary(a,b) => measure(a)+measure(b)=pi, when measures use a compatible convention.
I13: complementary(a,b) => measure(a)+measure(b)=pi/2, when measures use a compatible convention.
I14: perpendicularNonzeroVectors(u,v) => smallerAngle(u,v)=pi/2.
I15: positiveScalarMultiple(u,v) => smallerAngle(u,v)=0.
I16: negativeScalarMultiple(u,v) => smallerAngle(u,v)=pi.
I17: dot(u,v)=0 and nonzero(u) and nonzero(v) => perpendicular(u,v).
I18: sameOrientedAngleModuloTurn(a,b) => measure(a)-measure(b) in 2*pi*Integers.
I19: bisects(ray,a) => twoSubanglesEqual(ray,a), for the specified sector.
I20: EuclideanIsometry(T) => angleMagnitude(T(u),T(v))=angleMagnitude(u,v).
I21: orientationPreservingIsometry(T) => orientedAngle(T(u),T(v))=orientedAngle(u,v) mod 2*pi.
I22: orientationReversingIsometry(T) => orientedAngle(T(u),T(v))=-orientedAngle(u,v) mod 2*pi.
I23: nondegenerateTriangle(t) => sumInteriorAngles(t)=pi, in Euclidean geometry.
I24: simpleEuclideanPolygon(p,n) and n>=3 => sumInteriorAngles(p)=(n-2)*pi.
I25: angle(a)=angle(b) under same measure convention => congruentAngleMagnitudes(a,b).
I26: angle(a)=pi/2 and angle(b)=pi/2 => complementary(a,b) is false under the standard definition.
I27: angle(a)=pi/2 and angle(b)=pi/2 => supplementary(a,b).
I28: arcLength(s) and radius(r)>0 => centralAngleRadians=s/r for the corresponding circular arc.
I29: rotation(alpha) composedWith rotation(beta) => rotation(alpha+beta) in the same oriented plane.
I30: angleMagnitude(u,v)=pi/2 => abs(dot(u,v))=0 for nonzero real inner-product vectors.
I31: cos(theta)=1 and theta in [0,pi] => theta=0.
I32: cos(theta)=-1 and theta in [0,pi] => theta=pi.
I33: measuredAngle(a,x,unit1) and conversion(unit1,unit2) => equivalentMeasurement(a,y,unit2), where y is converted exactly.
I34: angle(a)=theta and angle(b)=phi => angleSum(a,b)=theta+phi only where directed composition is geometrically defined.
I35: orientationUnspecified(a) => doNotInferSignedMeasure(a).
I36: metricUnspecified(space) => doNotAssumeEuclideanAngleFormula(space).
08. VALIDATION CONSTRAINTS
V01: Each ordinary ray-angle must have exactly one shared vertex.
V02: Each ray direction vector must be nonzero.
V03: Angle unit must be explicit or inherited from a declared global convention.
V04: Oriented measures require a specified plane orientation and branch or winding convention.
V05: Never treat degree and radian numeric values as interchangeable.
V06: Do not divide by zero vector norms or zero radius.
V07: Clamp floating-point cosine ratios to [-1,1] only to compensate for numerical round-off, not to conceal invalid input.
V08: Do not infer Euclidean triangle-angle sums in curved geometries.
V09: Angle-class labels must refer to the same interval convention.
V10: Distinguish congruent angles from equal coordinate representations.
V11: Distinguish signed directed angle from unsigned smaller angle.
V12: Distinguish a ray from a line or line segment.
09. MATHEMATICAL EXAMPLES
E01: Rays along (1,0) and (0,1) define a right angle of pi/2 radians.
E02: Rays along (1,0) and (1,1) define a smaller angle of pi/4 radians.
E03: Rays along (1,0) and (-1,0) define a straight angle of pi radians.
E04: Nonzero parallel codirectional vectors have smaller angle 0.
E05: Nonzero antiparallel vectors have smaller angle pi.
E06: 30 degrees = pi/6 radians.
E07: 45 degrees = pi/4 radians.
E08: 60 degrees = pi/3 radians.
E09: 90 degrees = pi/2 radians.
E10: 180 degrees = pi radians.
E11: 270 degrees = 3*pi/2 radians, a reflex canonical angle.
E12: 360 degrees = 2*pi radians, a full turn.
E13: A central arc of length pi on a circle of radius 2 subtends pi/2 radians.
E14: Interior angles 30, 60 and 90 degrees form a Euclidean triangle-angle sum of 180 degrees.
E15: A regular Euclidean hexagon has interior angle 120 degrees.
E16: Reflection across the x-axis sends a signed angle theta to -theta modulo 2*pi.
10. SEMANTIC EQUIVALENCE
SE01: angle measure in radians <=> radian measure, where units are explicit.
SE02: 1 radian <=> 180/pi degrees.
SE03: right angle <=> angle magnitude pi/2 under the standard convention.
SE04: straight angle <=> angle magnitude pi under the standard convention.
SE05: directed angle <=> oriented angle, subject to compatible conventions.
SE06: angular displacement is context-dependent and not always identical to an angle between two unoriented rays.
SE07: slope is not semantically equivalent to angle, though slope=tan(theta) where the line orientation and chart are valid.
SE08: zero angle and full angle are congruent modulo 2*pi but are not identical as lifted winding measurements.
11. KNOWLEDGE GRAPH TRIPLES
KG01: AngleOntology | rdf:type | MathematicalOntology.
KG02: Angle | rdfs:subClassOf | GeometricEntity.
KG03: Angle | hasVertex | Point.
KG04: Angle | hasInitialRay | Ray.
KG05: Angle | hasTerminalRay | Ray.
KG06: Angle | hasMeasurementUnit | AngleUnit.
KG07: Radian | rdf:type | AngleUnit.
KG08: Degree | rdf:type | AngleUnit.
KG09: RightAngle | rdfs:subClassOf | Angle.
KG10: AngleBisector | bisects | Angle.
KG11: Angle | relatedTo | Rotation.
KG12: Angle | relatedTo | Trigonometry.
12. CONFIDENCE
CONFIDENCE.definition: high (standard Euclidean geometry).
CONFIDENCE.formulae: high when assumptions and conventions hold.
CONFIDENCE.inference: rule-specific; only infer when preconditions are satisfied.
CONFIDENCE.source_alignment: unverified (live source content not checked).
CONFIDENCE.policy: distinguish mathematical certainty from source verification and empirical measurement uncertainty.
13. FLOW_HASH
FLOW_HASH.algorithm: SHA-256.
FLOW_HASH.input: canonical UTF-8 content of this flow, excluding the hash value itself.
FLOW_HASH.value: COMPUTE_ON_PUBLICATION.
FLOW_HASH.policy: recompute after any semantic change; do not invent a digest.
14. UPDATE_MODEL
UPDATE_MODEL.version: 4.0.
UPDATE_MODEL.strategy: append versioned revisions; retain provenance and previous hashes.
UPDATE_MODEL.triggers: changed source ontology, revised conventions, corrected rule, expanded geometry domain.
UPDATE_MODEL.validation: schema validation; mathematical assumption checks; rule consistency; example tests.
UPDATE_MODEL.provenance: retain source URL, authorship, revision timestamp and reviewer identity.
15. AI_CONSUMPTION
AI_CONSUMPTION.mode: typed semantic retrieval and rule-grounded reasoning.
AI_CONSUMPTION.instructions: resolve angle type, space, units, orientation, and branch before calculation.
AI_CONSUMPTION.instructions: enforce rule preconditions and do not extrapolate Euclidean identities to non-Euclidean contexts.
AI_CONSUMPTION.instructions: preserve exact symbolic values (pi) when possible.
AI_CONSUMPTION.instructions: cite rule IDs and record any assumptions in derived results.
AI_CONSUMPTION.output: entities, typed relationships, validated inference, confidence and provenance.
END FLOW ALGEBRA