AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
GRADIENT ONTOLOGY
Version: 1.0
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/calculus-and-analysis-entities/gradient-ontology-2.html
Authors: Mark Higgins — Sky (Recursive AI)
Date: 2026-10-13
1. PURPOSE
Represent the gradient of a differentiable scalar field as a typed mathematical entity, with explicit domain, codomain, metric assumptions, derivation, validation and machine-consumption rules.
2. ENTITY TYPES
ScalarField: f : U -> R, U open subset of R^n.
Point: x in U.
Coordinate: x_i, i=1,...,n.
PartialDerivative: partial_i f(x), when it exists.
Differential: df_x, a linear functional on tangent vectors.
GradientVector: grad f(x) in R^n, under the Euclidean inner product.
DirectionVector: v in R^n; unit direction u satisfies ||u||=1.
DirectionalDerivative: D_v f(x), if its defining limit exists.
LevelSet: {x in U : f(x)=c}.
CriticalPoint: x where grad f(x)=0, provided f is differentiable.
Jacobian: 1-by-n derivative matrix for a scalar-valued function.
Hessian: matrix of second partial derivatives where defined.
3. CORE DEFINITIONS
Euclidean gradient: grad f(x) = (partial_1 f(x), ..., partial_n f(x)).
Differential relation: df_x(v) = <grad f(x), v>.
Directional derivative: D_v f(x) = lim_(t->0) [f(x+tv)-f(x)]/t, when the limit exists.
If f is Frechet differentiable at x, D_v f(x) = <grad f(x),v> for every v.
In Cartesian coordinates: grad f = sum_i (partial_i f)e_i.
Gradient norm: ||grad f(x)|| = sqrt(sum_i (partial_i f(x))^2).
4. AXIOMS AND ASSUMPTIONS
A1: f is real-valued and its domain is an open subset of Euclidean space for the standard definitions.
A2: grad f(x) is defined when f is differentiable at x; existing partial derivatives alone do not guarantee differentiability.
A3: The Euclidean gradient is the unique vector representing df_x through the Euclidean inner product.
A4: Coordinate transformations require the appropriate metric; the array of partial derivatives is a covector and is not generally the gradient vector in arbitrary coordinates.
A5: All computations must preserve declared domains, units and regularity assumptions.
5. OPERATORS
GRADIENT(f,x) -> GradientVector, requires differentiability at x.
PARTIAL(f,i,x) -> Real, requires existence of partial_i f(x).
DIFFERENTIAL(f,x) -> LinearFunctional, requires differentiability at x.
DIRECTIONAL(f,x,v) -> Real, requires directional-limit existence.
NORM(grad_f) -> NonnegativeReal.
DOT(grad_f,v) -> Real.
LEVEL_SET(f,c) -> Set[Point].
CRITICAL_POINTS(f) -> Set[Point], restricted to differentiable points where grad f=0.
6. TYPED RELATIONSHIPS
GradientVector --DERIVED_FROM--> ScalarField.
GradientVector --EVALUATED_AT--> Point.
GradientVector --HAS_COMPONENT--> PartialDerivative.
GradientVector --METRIC_DUAL_OF--> Differential.
DirectionalDerivative --COMPUTED_BY--> InnerProduct(GradientVector,DirectionVector), under differentiability.
GradientVector --NORMAL_TO--> RegularLevelSet, when grad f != 0.
CriticalPoint --SATISFIES--> ZeroGradient.
GradientVector --RELATED_TO--> Jacobian.
Hessian --DERIVATIVE_OF--> GradientVector, under sufficient smoothness.
7. INFERENCE RULES
R1: differentiable(f,x) => gradient_exists(f,x).
R2: differentiable(f,x) and unit(u) => D_u f(x)=dot(grad f(x),u).
R3: differentiable(f,x) and grad f(x)!=0 => maximal unit-directional increase is ||grad f(x)||, attained at u=grad f(x)/||grad f(x)||.
R4: differentiable(f,x) and grad f(x)!=0 => maximal decrease is -||grad f(x)||, attained at u=-grad f(x)/||grad f(x)||.
R5: differentiable(f,x) and grad f(x)=0 => all directional derivatives are zero; this does not alone imply a local extremum.
R6: differentiable(f,x) and grad f(x)!=0 and f(x)=c => grad f(x) is normal to the local regular level hypersurface.
R7: continuously differentiable(f,U) => gradient is continuous on U.
R8: differentiable(f,x) and differentiable(g,x) => grad(f+g)=grad f+grad g and grad(fg)=g grad f+f grad g at x.
R9: differentiable(f,x), differentiable(h,f(x)) => grad(h o f)(x)=h'(f(x)) grad f(x).
8. SEMANTIC DISTINCTIONS
Gradient vs differential: gradient is metric-dependent vector; differential is a covector.
Gradient vs divergence: gradient maps scalar fields to vector fields; divergence maps vector fields to scalars.
Gradient vs directional derivative: gradient is a vector; directional derivative is a scalar associated with a direction.
Gradient vs Jacobian: Jacobian is the matrix representation of a derivative; for a scalar field its row corresponds to gradient transpose in Euclidean Cartesian coordinates.
Gradient vs Hessian: Hessian describes second-order variation and is not the gradient.
Gradient zero vs extremum: stationary points may be minima, maxima or saddles.
9. VALIDATION
V1: Check scalar-valued input and point membership in the declared domain.
V2: Verify differentiability before asserting gradient or gradient-directional identities.
V3: Check component count equals ambient dimension.
V4: Check coordinate system and metric before identifying partial derivative components with a vector.
V5: Check vector and covector types are not conflated.
V6: Check any unit-direction assumption when reporting steepest ascent magnitude.
V7: Preserve function regularity and exceptional points.
V8: Do not infer extrema solely from a vanishing gradient.
10. EXAMPLE
f(x,y)=x^2+3y^2, U=R^2.
grad f(x,y)=(2x,6y).
At p=(1,2): grad f(p)=(2,12).
For u=(3/5,4/5), D_u f(p)=2*(3/5)+12*(4/5)=54/5.
The gradient is orthogonal to the regular level curve through p.
11. CONFIDENCE AND PROVENANCE
CONFIDENCE:
formal_mathematical_claims: high_when_assumptions_verified
derived_examples: high_when_symbolically_checked
unverified_source_specific_alignment: not_asserted
PROVENANCE:
source_url: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/calculus-and-analysis-entities/gradient-ontology-2.html
construction: mathematical ontology synthesis
source_page_content_verified: false
12. SEMANTIC_EQUIVALENCE
Euclidean gradient ~ nabla f ~ grad(f), subject to consistent metric, basis and coordinate conventions.
Not equivalent: gradient != differential as typed objects; gradient != divergence; gradient != Hessian.
13. FLOW_HASH
FLOW_HASH:
algorithm: SHA-256
input: canonical UTF-8 representation of the flow excluding any populated hash field
canonicalisation: normalise line endings to LF; preserve semantic identifiers and ordering
value: COMPUTE_ON_INGESTION
14. UPDATE_MODEL
UPDATE_MODEL:
version: 1.0
update_strategy: append_reviewed_revision
validate_before_publish: true
preserve_provenance: true
breaking_changes: increment_major_version
15. AI_CONSUMPTION
AI_CONSUMPTION:
entity: GradientVector
domain: multivariable_calculus
representation: typed_semantic_graph
parsing: UTF-8 plain text
reasoning: assumption_guarded
retrieval_keys: [gradient, nabla, scalar_field, differential, directional_derivative, steepest_ascent]
checks: [domain, differentiability, dimension, metric, units, provenance]
output_policy: distinguish_proven_results_from_unverified_inferences
END FLOW ALGEBRA