Skip to main content

Critical Point Ontology

Calculus and Analysis Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 13 October 2026
Audio Overview
FLOW ALGEBRA
CRITICAL POINT ONTOLOGY
Version: 1.0
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/calculus-and-analysis-entities/critical-point-ontology.html
Authors: Mark Higgins — Sky (Recursive AI)
Project: Kireth Semantic Library | https://kirethresearch.org

1. PURPOSE
Model critical points of real-valued functions, their derivative conditions, classifications, mathematical dependencies, and machine-readable inference rules. A critical point is a domain point at which the derivative vanishes or does not exist, subject to the adopted definition and domain assumptions.

2. TYPED ENTITIES
ENTITY Function {domain: Set, codomain: Set, expression: Optional[Expression], differentiability: Optional[Predicate]}
ENTITY DomainPoint {coordinates: Vector, belongs_to_domain: Boolean}
ENTITY CriticalPoint {point: DomainPoint, function: Function, reason: CriticalReason, classification: CriticalClass, confidence: Real[0,1]}
ENUM CriticalReason = {ZERO_DERIVATIVE, UNDEFINED_DERIVATIVE, ZERO_GRADIENT, UNDEFINED_GRADIENT, CONSTRAINED_STATIONARITY}
ENUM CriticalClass = {LOCAL_MINIMUM, LOCAL_MAXIMUM, SADDLE, FLAT_NONEXTREMUM, UNCLASSIFIED}
ENTITY Gradient {components: Vector, evaluated_at: DomainPoint}
ENTITY Hessian {matrix: SquareMatrix, evaluated_at: DomainPoint}
ENTITY Constraint {predicate: Predicate, regularity: Optional[Predicate]}
ENTITY Neighbourhood {centre: DomainPoint, radius: PositiveReal}
ENTITY TestResult {method: String, outcome: CriticalClass, assumptions: List[Predicate]}

3. MATHEMATICAL DEFINITIONS
For f: U subset R -> R, c in U is a critical number (under the common introductory convention) when f'(c)=0 or f'(c) does not exist. Some texts reserve 'stationary point' for f'(c)=0 and restrict critical points to interior domain points.
For differentiable f: U subset R^n -> R, with U open, a stationary point x* satisfies grad f(x*) = 0.
A local minimum at x* means there exists r>0 such that f(x*) <= f(x) for all x in U intersect B_r(x*); a local maximum reverses the inequality.
A saddle point is a stationary point that is neither a local minimum nor a local maximum, with arbitrarily close points attaining values both above and below f(x*) (under the usual local definition).
For differentiable f on an open domain, a local extremum x* implies grad f(x*)=0 (Fermat's necessary condition).

4. CLASSIFICATION RULES
RULE FermatNecessary: differentiable(f,x) AND interior(x,domain(f)) AND local_extremum(f,x) -> gradient_zero(f,x).
RULE FirstDerivativeSignMin: derivative_sign_left(f,c)=NEGATIVE AND derivative_sign_right(f,c)=POSITIVE -> LOCAL_MINIMUM.
RULE FirstDerivativeSignMax: derivative_sign_left(f,c)=POSITIVE AND derivative_sign_right(f,c)=NEGATIVE -> LOCAL_MAXIMUM.
RULE SecondDerivativeMin1D: f'(c)=0 AND f''(c)>0 -> STRICT_LOCAL_MINIMUM.
RULE SecondDerivativeMax1D: f'(c)=0 AND f''(c)<0 -> STRICT_LOCAL_MAXIMUM.
RULE SecondDerivativeInconclusive: f'(c)=0 AND f''(c)=0 -> UNCLASSIFIED (test inconclusive).
RULE HessianMin: grad(f,x)=0 AND Hessian(f,x) positive_definite -> STRICT_LOCAL_MINIMUM.
RULE HessianMax: grad(f,x)=0 AND Hessian(f,x) negative_definite -> STRICT_LOCAL_MAXIMUM.
RULE HessianSaddle: grad(f,x)=0 AND Hessian(f,x) indefinite -> SADDLE.
RULE HessianInconclusive: grad(f,x)=0 AND Hessian(f,x) semidefinite_or_singular -> UNCLASSIFIED (second-order test may be inconclusive).
RULE BoundaryCandidate: x in boundary(domain(f)) -> examine separately for constrained/domain extrema; gradient_zero not required.
RULE ConstrainedCandidate: equality_constraints_regular AND local_constrained_extremum -> exists multipliers lambda with grad(f,x)=sum_i lambda_i grad(g_i,x); sign convention immaterial.

5. RELATIONSHIPS
CriticalPoint --IS_POINT_OF--> Function
CriticalPoint --LOCATED_IN--> Domain
CriticalPoint --IDENTIFIED_BY--> DerivativeTest
CriticalPoint --MAY_BE_CLASSIFIED_AS--> LocalMinimum | LocalMaximum | SaddlePoint | FlatNonextremum
StationaryPoint --SUBTYPE_OF--> CriticalPoint (under inclusive definition)
Gradient --DERIVED_FROM--> Function
Hessian --DERIVED_FROM--> SecondPartialDerivatives
Constraint --RESTRICTS--> FeasibleSet
CriticalPoint --RELATED_TO--> Optimisation | DifferentialCalculus | MultivariableCalculus | DynamicalSystems

6. EXECUTABLE FLOW
flow "CriticalPointClassification" v1.0
input: f, domain, candidate_point, derivative_data?, hessian_data?, constraints?
preconditions:
  - candidate_point belongs_to domain
steps:
  - identify whether point is interior or boundary
  - establish derivative/gradient existence
  - if interior and derivative exists, test for zero derivative/gradient
  - if derivative undefined, record non-differentiable candidate under inclusive convention
  - if constrained, evaluate feasible-direction or multiplier conditions under qualification assumptions
  - apply sign, Hessian, or higher-order tests when assumptions hold
  - return classification with evidence and unresolved conditions
output: CriticalPoint | NotCritical | BoundaryCandidate | Inconclusive

7. SEMANTIC DISTINCTIONS
critical_point != necessarily local_extremum
stationary_point != necessarily saddle_point
zero_gradient != sufficient_for_extremum
undefined_derivative != automatically discontinuity
boundary_extremum != necessarily interior_critical_point
positive_semidefinite_hessian != sufficient_for_local_minimum
critical_point_of_function != critical_value_of_function (critical value is f(x*)).

8. VALIDATION
ASSERT each critical point belongs to function domain.
ASSERT derivative claims include differentiability scope and variable specification.
ASSERT Hessian-based classifications require a twice continuously differentiable function in a neighbourhood (sufficient standard assumption).
ASSERT constrained classifications record constraint qualifications.
ASSERT inconclusive tests do not imply an extremum.
ASSERT local classification is not conflated with global optimisation.

9. EXAMPLES
f(x)=x^2: x=0 is stationary, strict local/global minimum.
f(x)=x^3: x=0 is stationary, not a local extremum.
f(x)=abs(x): x=0 is a non-differentiable local minimum.
f(x,y)=x^2-y^2: (0,0) is a saddle, Hessian indefinite.
f(x,y)=x^4+y^4: (0,0) is a strict minimum though Hessian is zero; second-order test inconclusive.

10. CONFIDENCE & PROVENANCE
CONFIDENCE: theorem-based conclusions 1.0 only when assumptions are verified; heuristic or numerical classifications require stated tolerances and uncertainty.
PROVENANCE: record source URI, mathematical convention, assumptions, calculation method, and validation status.

11. SEMANTIC_EQUIVALENCE
stationary_point <-> zero_first_derivative_point (1D, differentiable)
stationary_point <-> zero_gradient_point (multivariable, differentiable)
critical_number <-> critical_domain_coordinate (where terminology matches)
Do not equate critical point with critical value.

12. FLOW_HASH & UPDATE_MODEL
FLOW_HASH: SHA-256 of canonical UTF-8 representation of flow specification, excluding mutable hash field; compute upon publication.
UPDATE_MODEL: increment version when definitions, relationships, assumptions, or inference rules change; retain revision history and previous hashes.

13. AI_CONSUMPTION
Expose entity types, typed relations, domain assumptions, theorem preconditions, test outcomes, counterexamples, and provenance. Require evidence-backed classifications; return INCONCLUSIVE when necessary data or conditions are absent. Avoid inferring global optimality from local derivative tests.

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