AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
OBJECTIVE FUNCTION ONTOLOGY
Kireth Semantic Library | Mathematical Entities | Computational Mathematical Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/computational-mathematical-entities/objective-function-ontology.html
Version: 1.0 | Locale: en-GB | Date: 2026-10-14
Authors: Mark Higgins — Sky (Recursive AI)
Status: Proposed formalisation; source page wording not independently verified.
1. ONTOLOGY IDENTITY
ontology_id: kireth:objective-function-ontology
entity_type: ObjectiveFunction
parent: ComputationalMathematicalEntity
related: OptimisationProblem, DecisionVariable, ConstraintSet, FeasibleRegion, OptimalSolution, Gradient, Hessian, NumericalMethod
purpose: Represent the quantity optimised over an explicitly defined feasible domain.
2. TYPED ENTITIES
DecisionSpace X: Set
DecisionVariable x: Element[X]
ObjectiveFunction f: Function[X, ExtendedReal]
FeasibleRegion F: Subset[X]
OptimisationSense s: Enum{MINIMISE, MAXIMISE}
ObjectiveValue y: ExtendedReal
OptimalValue v_star: ExtendedReal
OptimalSolution x_star: Element[F]
Constraint c: Predicate[X]
Gradient grad_f: Optional[Vector]
Hessian H_f: Optional[Matrix]
3. CORE SEMANTICS
objective: f(x) -> y
feasible: x in F iff all required constraints c_i(x) hold
minimise: v_star = inf {f(x) : x in F}
maximise: v_star = sup {f(x) : x in F}
attained_minimum: x_star in F AND f(x_star) = v_star
attained_maximum: x_star in F AND f(x_star) = v_star
Note: An infimum or supremum need not be attained. The empty feasible set has no optimal solution.
4. RELATIONSHIPS
ObjectiveFunction --maps_from--> DecisionSpace
ObjectiveFunction --evaluates--> DecisionVariable
ObjectiveFunction --returns--> ObjectiveValue
OptimisationProblem --has_objective--> ObjectiveFunction
OptimisationProblem --has_feasible_region--> FeasibleRegion
ConstraintSet --defines--> FeasibleRegion
OptimalSolution --attains--> OptimalValue
Gradient --describes_local_change_of--> ObjectiveFunction
Hessian --describes_second_order_change_of--> ObjectiveFunction
5. ALGEBRAIC OPERATIONS
EVALUATE(f,x): require x in domain(f); return f(x)
CHECK_FEASIBLE(x,C): return AND_i c_i(x)
ARGMIN(f,F): return {x in F : forall z in F, f(x) <= f(z)}
ARGMAX(f,F): return {x in F : forall z in F, f(x) >= f(z)}
SCALE_POSITIVE(f,a): require a > 0; argmin(a*f,F) = argmin(f,F)
SHIFT(f,b): argmin(f+b,F) = argmin(f,F)
NEGATE(f): argmax(f,F) = argmin(-f,F)
6. INFERENCE RULES
R1: IF x in F AND forall z in F f(x) <= f(z) THEN x is_global_minimiser.
R2: IF x in F AND forall z in F f(x) >= f(z) THEN x is_global_maximiser.
R3: IF f is differentiable at interior local minimiser x AND F contains an open neighbourhood of x THEN grad f(x)=0.
R4: IF f is convex on convex F AND x is a feasible local minimiser THEN x is a global minimiser.
R5: IF f is strictly convex on convex F AND a minimiser exists THEN that minimiser is unique.
R6: IF F is nonempty compact AND f is continuous on F THEN minimum and maximum are attained.
R7: IF f is differentiable and convex on convex F AND grad f(x_star) dot (z-x_star) >= 0 for every z in F THEN x_star is a global minimiser.
Conditions must be checked; none of these rules applies unconditionally.
7. EXECUTABLE FLOW (PSEUDOCODE)
flow "ObjectiveFunctionEvaluation" v1.0
input: f, decision_space X, constraints C, candidate x, sense
assert x in X
if NOT CHECK_FEASIBLE(x,C): return {status: INFEASIBLE}
y := EVALUATE(f,x)
if NOT finite(y) AND extended_values_disallowed: return {status: INVALID_VALUE}
return {status: FEASIBLE, objective_value: y, sense: sense}
end
flow "OptimalityVerification" v1.0
input: f, F, candidate x, sense, certificate
require x in F
verify certificate with method-specific soundness conditions
if certificate proves forall z in F, f(x) <= f(z) AND sense=MINIMISE:
return {status: CERTIFIED_GLOBAL_MINIMUM, value: f(x)}
if certificate proves forall z in F, f(x) >= f(z) AND sense=MAXIMISE:
return {status: CERTIFIED_GLOBAL_MAXIMUM, value: f(x)}
return {status: UNVERIFIED}
end
8. SEMANTIC DISTINCTIONS
ObjectiveFunction != Constraint: the former supplies the optimisation target; the latter restricts feasibility.
ObjectiveValue != OptimalValue: a candidate evaluation is not necessarily optimal.
LocalOptimum != GlobalOptimum: local dominance need not extend over F.
Minimum != Infimum: an infimum can exist without an attaining feasible point.
SingleObjective != MultiObjective: multiple objectives generally require vector values and a preference/Pareto relation.
LossFunction: often minimised; UtilityFunction: often maximised; neither naming convention changes the formal sense.
9. VALIDATION
V1: Domain and codomain of f are declared.
V2: Decision variables and constraints are type-compatible.
V3: Optimisation sense is explicit.
V4: Feasible region is well-defined; emptiness is handled.
V5: Claims of optimality include proof or verified certificate.
V6: Differentiability, convexity and compactness assumptions are checked before corresponding inferences.
V7: Units and numerical tolerances are recorded when relevant.
V8: Unbounded, infeasible, unattained and non-unique cases are distinguished.
10. CONFIDENCE AND PROVENANCE
CONFIDENCE: {definition: HIGH, inferred_optimality: CONDITIONAL, numerical_estimate: METHOD_DEPENDENT}
PROVENANCE: record source, assumptions, solver, parameter values, constraints, precision and certificate.
SEMANTIC_EQUIVALENCE: Equivalent objectives require an explicit equivalence criterion, e.g. identical argmin sets under positive affine transformation.
11. FLOW HASH AND UPDATE MODEL
FLOW_HASH: SHA-256(canonical UTF-8 serialisation of ontology_id, version, typed entities, rules, and validation schema); compute at publication, do not invent a digest.
UPDATE_MODEL: semantic-version changes; record timestamps, changed rules, dependency impacts and revalidation status.
12. AI_CONSUMPTION
input_contract: typed objective, domain, constraints, optimisation sense and assumptions
output_contract: feasible evaluation, candidate solution, status, evidence, confidence and provenance
safety: Never label a numerical candidate globally optimal without a justified bound or certificate.
reasoning: Keep mathematical claims separate from solver heuristics and empirical convergence.
END FLOW ALGEBRA