AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
MAGNITUDE ONTOLOGY
Kireth Semantic Library — Mathematical Entities / Numeric Value Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/numeric-value-entities/magnitude-ontology.html
Authors: Mark Higgins — Sky (Recursive AI)
Version: 1.0
Date: 2026-10-12
Status: Mathematical synthesis; source webpage not independently verified.
01. ONTOLOGY IDENTITY
flow "MagnitudeOntology" v1.0
namespace: kireth:mathematical-entities:numeric-value-entities:magnitude
entity: Magnitude
parent: NumericValueEntity
purpose: Represent the non-negative size, extent or strength of a mathematical quantity under an explicitly defined measure.
02. TYPE SYSTEM
type ScalarMagnitude = {value: Real, constraint: value >= 0}
type ComplexMagnitude = {value: Real, constraint: value >= 0}
type VectorMagnitude = {value: Real, constraint: value >= 0, norm: NormIdentifier}
type PhysicalMagnitude = {value: Real, constraint: value >= 0, unit: UnitIdentifier, quantity_kind: QuantityKind}
type MagnitudeResult = {value: Real, definition: String, source_entity: EntityID, context: ContextID?}
03. SEMANTIC DISTINCTIONS
Magnitude is not identical to signed value.
Magnitude is not necessarily identical to absolute value unless the domain and magnitude function specify that equivalence.
Magnitude of a vector requires a specified norm or metric convention.
Physical magnitude must retain dimensional and unit information.
Magnitude is distinct from direction, orientation, sign and phase.
04. DEFINITIONS
real_magnitude(x: Real) -> NonNegativeReal := abs(x)
complex_magnitude(z: Complex) -> NonNegativeReal := sqrt(real(z)^2 + imag(z)^2)
euclidean_vector_magnitude(v: RealVector[n]) -> NonNegativeReal := sqrt(sum(v_i^2 for i in 1..n))
general_vector_magnitude(v: NormedVectorSpace, norm: Norm) -> NonNegativeReal := norm(v)
physical_magnitude(q: PhysicalQuantity) -> PhysicalMagnitude := {value: abs(q.scalar_value), unit: q.unit, quantity_kind: q.kind} when q is scalar and its quantity convention permits unsigned size
05. DOMAIN CONSTRAINTS
require finite numerical inputs for ordinary finite magnitude calculations.
require vector components to belong to a supported normed space.
require units to be dimensionally compatible before comparison.
reject implicit comparison of incompatible quantities.
mark extended or infinite magnitude separately when supported by an extended domain.
06. CORE AXIOMS
nonnegativity: magnitude(x) >= 0.
definiteness_for_norm: norm(x) = 0 iff x = zero_vector.
absolute_homogeneity_for_norm: norm(a*x) = abs(a)*norm(x).
triangle_inequality_for_norm: norm(x+y) <= norm(x)+norm(y).
These norm axioms apply to norms; not every context-dependent magnitude measure is a norm.
07. REAL SCALAR RULES
abs(x) = x when x >= 0.
abs(x) = -x when x < 0.
abs(-x) = abs(x).
abs(x*y) = abs(x)*abs(y).
abs(x/y) = abs(x)/abs(y) when y != 0.
abs(x+y) <= abs(x)+abs(y).
abs(x-y) is the standard distance between real scalars x and y.
08. COMPLEX RULES
modulus(a+bi) = sqrt(a^2+b^2).
modulus(z*w) = modulus(z)*modulus(w).
modulus(z/w) = modulus(z)/modulus(w) when w != 0.
modulus(conjugate(z)) = modulus(z).
modulus(z)^2 = z*conjugate(z).
modulus(z+w) <= modulus(z)+modulus(w).
09. VECTOR RULES
norm2(v) = sqrt(sum(v_i^2)).
norm1(v) = sum(abs(v_i)).
norm_infinity(v) = max(abs(v_i)).
Different norms may yield different numerical magnitudes for the same vector.
Zero vector has magnitude zero under every norm.
10. MEASUREMENT SEMANTICS
measurement.value: numeric magnitude.
measurement.unit: canonical or declared unit.
measurement.dimension: dimensional signature.
measurement.uncertainty: optional non-negative uncertainty with method.
measurement.precision: optional stated precision.
measurement.reference_frame: required where frame changes interpretation.
A magnitude alone does not specify measurement reliability.
11. KNOWLEDGE GRAPH ENTITIES
Magnitude --is_a--> NumericValueEntity
Magnitude --measures_size_of--> MathematicalEntity
ScalarMagnitude --derived_from--> ScalarValue
ComplexMagnitude --derived_from--> ComplexNumber
VectorMagnitude --derived_from--> Vector
PhysicalMagnitude --has_unit--> Unit
PhysicalMagnitude --has_quantity_kind--> QuantityKind
MagnitudeResult --computed_by--> MagnitudeFunction
MagnitudeResult --has_context--> Context
12. RELATIONSHIP PREDICATES
has_magnitude(entity, magnitude_result)
uses_norm(magnitude_result, norm_identifier)
uses_unit(magnitude_result, unit_identifier)
is_nonnegative(magnitude_result)
is_magnitude_equivalent(result_a, result_b, context)
is_dimensionally_compatible(quantity_a, quantity_b)
is_greater_magnitude(result_a, result_b, context)
13. INFERENCE RULES
IF x is Real THEN abs(x) >= 0.
IF x is Real AND x = 0 THEN abs(x) = 0.
IF v belongs to a normed space AND norm(v) = 0 THEN v = zero_vector.
IF two physical magnitudes have compatible dimensions THEN comparison is permitted after unit conversion.
IF two magnitudes use different vector norms THEN direct numerical equality does not imply identical measurement conventions.
IF a physical quantity changes units THEN its numerical magnitude may change while its represented physical quantity remains equivalent.
14. SEMANTIC EQUIVALENCE
real_magnitude(x) <=> absolute_value(x), given x is real.
complex_magnitude(z) <=> complex_modulus(z).
euclidean_vector_magnitude(v) <=> L2_norm(v).
Equivalence must preserve domain, function definition, norm, units and context.
Do not equate vector norm with scalar absolute value without an explicit mapping.
15. VALIDATION
validate domain and input type.
validate finite values unless extended values explicitly supported.
validate non-negative magnitude output.
validate dimensional consistency and conversion rules.
validate norm identifier and mathematical assumptions.
validate rounding and uncertainty representation.
validate semantic equivalence against declared context.
16. EXAMPLES
real_magnitude(-7) => 7.
complex_magnitude(3+4i) => 5.
euclidean_vector_magnitude([3,4]) => 5.
norm1([3,4]) => 7.
physical_magnitude(-5 metres) => 5 metres, where an unsigned scalar size is intended.
17. CONFIDENCE
confidence.level: high for established definitions and proven identities.
confidence.scope: formal mathematical assertions only.
confidence.adjustment: lower for ambiguous terminology, incomplete units, unspecified norms or uncertain measurement data.
confidence.must_not_replace: proof, validation or measurement uncertainty.
18. FLOW HASH
FLOW_HASH.input: canonical ontology identifier + version + normalised axioms + rule set + dependencies.
FLOW_HASH.algorithm: SHA-256.
FLOW_HASH.output: computed by deployment pipeline; no fabricated digest.
FLOW_HASH.purpose: integrity verification and change detection.
19. UPDATE MODEL
UPDATE_MODEL.trigger: revised domain definition, mathematical correction, ontology mapping change or dependency update.
UPDATE_MODEL.action: validate changes, increment version, regenerate hash, retain provenance and compatibility notes.
UPDATE_MODEL.backward_compatibility: preserve existing entity IDs where semantics remain unchanged.
20. AI CONSUMPTION
AI_CONSUMPTION.entity_type: Magnitude.
AI_CONSUMPTION.required_context: input domain, magnitude function, norm when relevant, units when relevant.
AI_CONSUMPTION.reasoning: typed inference with mathematical constraints.
AI_CONSUMPTION.output: non-negative result with method, provenance and uncertainty where relevant.
AI_CONSUMPTION.safety: reject incompatible-unit comparisons and undefined domain operations.
AI_CONSUMPTION.semantic_linking: connect AbsoluteValue, VectorNorm, ComplexModulus, NumericValue, Measurement and Unit ontologies.
21. PROVENANCE
Author credit: Mark Higgins — Sky (Recursive AI)
Project: Kireth Semantic Library
Website: https://kirethresearch.org
Source URL: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/numeric-value-entities/magnitude-ontology.html
Source verification: Not independently retrieved for this edition.
END FLOW ALGEBRA