Skip to main content

Triangle 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: Triangle Ontology
VERSION: 4.0
DOMAIN: Mathematics / Geometry / Geometric Entities
SOURCE_URL: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/geometric-entities/triangle-ontology-2.html
SOURCE_ALIGNMENT: Independently formalised; source page content not verified.
AUTHORS: Mark Higgins — Sky (Recursive AI)
SITE: https://kirethresearch.org

[IDENTITY]
ENTITY_ID: geometry.triangle
ENTITY_TYPE: GeometricEntity.Polygon.Triangle
LABEL: Triangle
DEFINITION: A simple polygon with exactly three distinct non-collinear vertices joined by three straight line segments.
CONTEXT: Euclidean plane unless otherwise specified.

[TYPED ENTITIES]
Point: location in Euclidean plane
Vertex: Point
Side: LineSegment
Angle: Real measured in radians, interior in (0,pi)
Length: RealPositive
Area: RealPositive
Perimeter: RealPositive
Triangle: tuple(Vertex A, Vertex B, Vertex C) with noncollinearity
Circle: geometric locus
Altitude: segment or line from vertex perpendicular to opposite side line
Median: segment from vertex to midpoint of opposite side
AngleBisector: ray or segment splitting interior angle equally
Centroid: Point
Incenter: Point
Circumcenter: Point
Orthocenter: Point

[CONSTRUCTION]
T := Triangle(A,B,C)
PRECONDITION: A != B AND B != C AND C != A
PRECONDITION: cross(B-A,C-A) != 0
SIDES: a=distance(B,C); b=distance(C,A); c=distance(A,B)
ANGLES: alpha=angle(B,A,C); beta=angle(A,B,C); gamma=angle(A,C,B)

[AXIOMS]
AX01: a>0 AND b>0 AND c>0
AX02: a+b>c AND b+c>a AND c+a>b
AX03: alpha+beta+gamma=pi
AX04: 0<alpha,beta,gamma<pi
AX05: Area(T)=abs(cross(B-A,C-A))/2 > 0
AX06: Perimeter(T)=a+b+c
AX07: each side is opposite its corresponding named angle
AX08: any two triangles with congruent corresponding sides and included angle are congruent (SAS)

[RELATIONSHIPS]
Triangle IS_A Polygon
Triangle HAS_VERTEX Point (exactly 3)
Triangle HAS_SIDE LineSegment (exactly 3)
Triangle HAS_INTERIOR_ANGLE Angle (exactly 3)
Triangle HAS_CENTROID Point
Triangle HAS_INCENTER Point
Triangle HAS_CIRCUMCENTER Point
Triangle HAS_ORTHOCENTER Point
Triangle HAS_ALTITUDE Altitude (3)
Triangle HAS_MEDIAN Median (3)
Triangle HAS_ANGLE_BISECTOR AngleBisector (3)
EquilateralTriangle SUBCLASS_OF IsoscelesTriangle
IsoscelesTriangle SUBCLASS_OF Triangle
ScaleneTriangle SUBCLASS_OF Triangle
RightTriangle SUBCLASS_OF Triangle
AcuteTriangle SUBCLASS_OF Triangle
ObtuseTriangle SUBCLASS_OF Triangle

[CLASSIFICATION]
Equilateral: a=b=c; alpha=beta=gamma=pi/3
Isosceles: at least two equal side lengths; corresponding opposite angles equal
Scalene: pairwise distinct side lengths
Right: exactly one interior angle equals pi/2
Acute: all three interior angles less than pi/2
Obtuse: exactly one interior angle greater than pi/2
NOTE: side-length and angle classifications are orthogonal; equilateral is a special case of isosceles under inclusive convention.

[FORMULAE]
F01: s=(a+b+c)/2
F02: Area=sqrt(s*(s-a)*(s-b)*(s-c)) (Heron)
F03: Area=(1/2)*base*corresponding_altitude
F04: Area=(1/2)*b*c*sin(alpha)
F05: a^2=b^2+c^2-2*b*c*cos(alpha)
F06: b^2=c^2+a^2-2*c*a*cos(beta)
F07: c^2=a^2+b^2-2*a*b*cos(gamma)
F08: a/sin(alpha)=b/sin(beta)=c/sin(gamma)=2*R
F09: r=Area/s
F10: R=a*b*c/(4*Area)
F11: centroid G=(A+B+C)/3 (Cartesian affine coordinates)
F12: circumcenter O satisfies |O-A|=|O-B|=|O-C|
F13: incenter I=(a*A+b*B+c*C)/(a+b+c)
F14: Euler line: for non-equilateral triangle, O,G,H collinear and H=3G-2O
F15: sum exterior turning angles=2*pi for consistently oriented simple triangle
F16: right triangle with legs p,q and hypotenuse h: p^2+q^2=h^2
F17: Area=abs(det([[Bx-Ax,By-Ay],[Cx-Ax,Cy-Ay]]))/2
F18: similarity scale k>0 => perimeter scales by k, area by k^2

[INFERENCE RULES]
R01 IF three points are distinct and noncollinear THEN construct triangle.
R02 IF cross(B-A,C-A)=0 THEN reject nondegenerate triangle.
R03 IF any triangle inequality fails THEN reject side-length triangle.
R04 IF a=b=c THEN infer EquilateralTriangle.
R05 IF exactly two sides equal THEN infer IsoscelesTriangle and not EquilateralTriangle.
R06 IF pairwise distinct sides THEN infer ScaleneTriangle.
R07 IF c^2=a^2+b^2 THEN infer gamma=pi/2.
R08 IF largest-side-square < sum(other-side-squares) THEN infer AcuteTriangle.
R09 IF largest-side-square > sum(other-side-squares) THEN infer ObtuseTriangle.
R10 IF two angles equal THEN infer opposite sides equal.
R11 IF two sides equal THEN infer opposite angles equal.
R12 IF all three angles equal THEN infer EquilateralTriangle.
R13 IF two triangles have three equal corresponding sides THEN infer congruence (SSS).
R14 IF two sides and included angle correspond THEN infer congruence (SAS).
R15 IF two angles and corresponding side correspond THEN infer congruence (ASA/AAS).
R16 IF two angles correspond THEN infer similarity (AA).
R17 IF all three corresponding side ratios equal THEN infer similarity (SSS similarity).
R18 IF two side ratios equal and included angles equal THEN infer similarity (SAS similarity).
R19 IF triangles similar by factor k THEN infer area ratio k^2.
R20 IF triangle has side lengths THEN compute perimeter.
R21 IF side lengths satisfy strict triangle inequalities THEN compute Heron area.
R22 IF base and perpendicular altitude known THEN compute area.
R23 IF two sides and included angle known THEN compute area by sine.
R24 IF two sides and included angle known THEN compute third side by cosine law.
R25 IF nonzero area and sides known THEN compute inradius and circumradius.
R26 IF vertices known THEN compute centroid by affine average.
R27 IF triangle is right THEN circumcenter equals midpoint of hypotenuse.
R28 IF triangle is equilateral THEN centroid=incenter=circumcenter=orthocenter.
R29 IF triangle is obtuse THEN circumcenter lies outside triangle.
R30 IF triangle is acute THEN circumcenter lies inside triangle.
R31 IF triangle is right THEN orthocenter is right-angle vertex.
R32 IF triangle is obtuse THEN orthocenter lies outside triangle.
R33 IF triangle is acute THEN orthocenter lies inside triangle.
R34 IF median is drawn THEN it divides triangle into equal-area triangles.
R35 IF segment joins midpoints of two sides THEN it is parallel to third side and half its length.
R36 IF triangle vertices are transformed by Euclidean isometry THEN side lengths and angles are invariant.

[VALIDATION CONSTRAINTS]
VC01: vertices must be distinct and noncollinear.
VC02: side lengths must be finite and strictly positive.
VC03: triangle inequalities must be strict for nondegenerate Euclidean triangles.
VC04: angles in radians must lie strictly between 0 and pi.
VC05: angle sum equals pi within declared numeric tolerance.
VC06: all divisions require nonzero denominators.
VC07: Heron radicand must be nonnegative (strictly positive for valid triangle).
VC08: circumradius formula requires nonzero area.
VC09: geometric coordinate frame and metric must be declared.
VC10: avoid conflating Euclidean, spherical and hyperbolic triangle theorems.
VC11: numeric equality checks use documented tolerance and precision.
VC12: angle and side correspondence must remain consistent.

[WORKED EXAMPLES]
EX01: A=(0,0), B=(3,0), C=(0,4): sides 3,4,5; area 6; perimeter 12; right triangle.
EX02: sides 2,2,2: equilateral; each angle pi/3; area sqrt(3).
EX03: sides 5,5,6: isosceles; semiperimeter 8; area 12.
EX04: sides 1,2,3: degenerate; reject as nondegenerate triangle.
EX05: A=(0,0), B=(2,0), C=(0,2): centroid (2/3,2/3); area 2.
EX06: right triangle legs 6,8: hypotenuse 10; area 24; circumradius 5.
EX07: sides 3,4,6: valid obtuse triangle because 36>9+16.
EX08: sides 4,5,6: valid acute triangle because 36<16+25.
EX09: scale 3-4-5 triangle by 2: perimeter 24 and area 24.
EX10: side lengths 5,5,8: altitude to side 8 is 3; area 12.
EX11: triangle with angles 30,60,90 degrees: side ratios 1:sqrt(3):2.
EX12: triangle with sides 7,7,7: centroid, incenter and circumcenter coincide.
EX13: A=(0,0), B=(4,0), C=(0,3): incenter (1,1).
EX14: same 3-4-5 triangle: inradius=1.
EX15: triangle side lengths 2,3,4: semiperimeter 4.5; area sqrt(135)/4.
EX16: triangles with side triples (3,4,5) and (6,8,10) are similar with scale 2.

[SEMANTIC_EQUIVALENCE]
Triangle <=> ThreeSidedSimplePolygon [Euclidean straight-edge context]
Triangle <=> 2Simplex [when nondegenerate convex hull of 3 affinely independent points]
EquilateralTriangle <=> RegularTriangle
RightTriangle <=> RightAngledTriangle
Centroid <=> IntersectionOfMedians
Circumcenter <=> IntersectionOfPerpendicularBisectors
Incenter <=> IntersectionOfInternalAngleBisectors
NOT_EQUIVALENT: Triangle != TriangularPrism
NOT_EQUIVALENT: Triangle != ArbitraryThreePointSet (unless noncollinear and edges specified)

[KNOWLEDGE_GRAPH_TRIPLES]
(geometry.triangle, rdf:type, geometry.polygon)
(geometry.triangle, hasVertexCount, 3)
(geometry.triangle, hasSideCount, 3)
(geometry.triangle, hasAngleCount, 3)
(geometry.triangle, hasProperty, TriangleInequality)
(geometry.triangle, hasProperty, EuclideanAngleSumPi)
(geometry.triangle, hasMeasure, Area)
(geometry.triangle, hasMeasure, Perimeter)
(geometry.triangle, hasRelatedEntity, Circumcircle)
(geometry.triangle, hasRelatedEntity, Incircle)
(geometry.triangle, hasRelatedEntity, Median)
(geometry.triangle, hasRelatedEntity, Altitude)

[CONFIDENCE]
MATHEMATICAL_AXIOMS: 1.0 (within declared Euclidean model)
DEDUCTIVE_INFERENCES: 1.0 if premises validated and rule applicable
NUMERIC_RESULTS: depend on measurement precision, algorithm and rounding
SOURCE_ALIGNMENT: unverified
DO_NOT_ASSIGN: fabricated empirical probabilities to mathematical theorems

[FLOW_HASH]
METHOD: SHA-256 over canonical UTF-8 text after normalisation
CANONICALISATION: LF newlines; UTF-8; stable field ordering; no trailing whitespace
HASH_VALUE: generated by downstream publishing pipeline; not asserted here

[UPDATE_MODEL]
VERSION: 4.0
REVISION_POLICY: increment version on semantic changes; retain source URL and change log
VALIDATION: rerun axioms, constraints and example checks after updates
PROVENANCE: distinguish website-authored claims from independent mathematical formalisation

[AI_CONSUMPTION]
ENTITY_RESOLUTION: map triangle terminology to geometry.triangle
PARSING: preserve types, coordinate reference, units and side-angle correspondence
REASONING: validate premises before applying inference rules
CONTEXT: use Euclidean plane unless explicitly switched to other geometry
UNCERTAINTY: distinguish exact symbolic statements from approximate measured inputs
CONFLICT_HANDLING: reject invalid constructions rather than force classification
OUTPUT: cite rule IDs, derived properties and assumptions in machine reasoning traces
SAFETY: never present unverified source-page correspondence as verified

[END_FLOW]
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ