Skip to main content

Mathematical Quantity Ontology

Measurement and Dimensional Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 14 October 2026
Audio Overview
FLOW ALGEBRA
TITLE: Mathematical Quantity Ontology
VERSION: 1.0
DATE: 2026-10-14
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/measurement-and-dimensional-entities/mathematical-quantity-ontology.html
AUTHORS: Mark Higgins — Sky (Recursive AI)
LIBRARY: Kireth Semantic Library

1. PURPOSE
Represent mathematical quantities as typed, value-bearing entities, distinguish abstract numbers from dimensioned quantities, and enable safe symbolic and numerical reasoning about magnitude, units, dimensions, uncertainty and relationships.

2. ENTITY TYPES
ENTITY MathematicalQuantity: {id, name, quantity_kind, value, value_type, dimension, unit?, uncertainty?, provenance?, context?}
ENTITY QuantityKind: {id, name, dimension_signature, permitted_units[]}
ENTITY NumericValue: {representation, number_or_expression, precision?}
ENTITY Unit: {symbol, dimension_signature, scale_to_reference, offset_to_reference?}
ENTITY Dimension: {base_exponents: map<B-aseDimension, rational>}
ENTITY Measurement: {quantity_id, measured_value, method?, timestamp?, uncertainty?}
ENTITY Uncertainty: {model: standard|interval|distribution, magnitude?, coverage_factor?, interval?}
ENTITY QuantityRelation: {subject, predicate, object, conditions?}
ENTITY ReferenceStandard: {id, authority, version?}

3. RELATIONSHIPS
MathematicalQuantity --HAS_KIND--> QuantityKind
MathematicalQuantity --HAS_VALUE--> NumericValue
MathematicalQuantity --HAS_DIMENSION--> Dimension
MathematicalQuantity --EXPRESSED_IN--> Unit
Measurement --ESTIMATES--> MathematicalQuantity
Measurement --HAS_UNCERTAINTY--> Uncertainty
Unit --CONFORMS_TO--> ReferenceStandard
MathematicalQuantity --DERIVED_FROM--> MathematicalQuantity
QuantityKind --COMPATIBLE_WITH--> QuantityKind [subject to dimensional and semantic checks]

4. FORMAL SEMANTICS
Quantity Q = (v, u, D, k), where v is numerical value, u is unit, D is dimension vector, k is quantity kind.
For multiplicative units, physical magnitude = v * scale(u) in coherent reference units.
Dimension vector D(Q) = (e_length, e_mass, e_time, e_current, e_temperature, e_amount, e_luminous_intensity).
Dimensionless quantities have zero dimension exponents; they may still have distinct semantic kinds (e.g. angle versus ratio).
A quantity's coordinate value changes with unit; its represented physical quantity does not.

5. TYPED OPERATIONS
ADD(Q1,Q2): requires compatible dimensions and quantity kinds, plus conversion to a common unit; result retains the dimension.
SUBTRACT(Q1,Q2): same compatibility requirement, subject to affine-quantity rules.
MULTIPLY(Q1,Q2): dimensions add: D(result)=D(Q1)+D(Q2); units multiply.
DIVIDE(Q1,Q2): requires nonzero divisor; dimensions subtract.
POWER(Q,p): dimensions multiply by p, provided the operation is defined for the value and unit system.
CONVERT(Q,u_target): requires compatible dimensions and conversion semantics; output value changes, physical magnitude remains invariant.
COMPARE(Q1,Q2): requires compatible quantity kinds and a common reference unit.

6. INFERENCE RULES
R1: HAS_UNIT(Q,u) => HAS_DIMENSION(Q,D(u)), if unit metadata is valid.
R2: ADD(Q1,Q2) valid => D(Q1)=D(Q2).
R3: D(Q1*Q2)=D(Q1)+D(Q2).
R4: D(Q1/Q2)=D(Q1)-D(Q2), when Q2 != 0.
R5: CONVERT(Q,u2) => EQUIVALENT_PHYSICAL_QUANTITY(Q,Q2), subject to correct unit conversion.
R6: Two dimensionally equal quantities are not automatically semantically interchangeable.
R7: Measurement uncertainty propagates according to the uncertainty model, correlations and operation used; independence must not be assumed silently.

7. VALIDATION CONSTRAINTS
V1: Every quantity has a declared quantity kind, value type and dimension.
V2: Declared unit dimension equals declared quantity dimension.
V3: Values satisfy their numerical domain (real, complex, integer, interval or symbolic).
V4: Conversions preserve physical meaning and respect affine offsets when applicable.
V5: Addition and comparison reject incompatible kinds unless a justified mapping exists.
V6: Uncertainty is nonnegative where represented by standard deviation or interval half-width.
V7: Significant figures and measurement precision are not inferred from a bare exact number.
V8: Provenance and assumptions must be retained for measured or derived quantities.

8. WORKED EXAMPLES
EXAMPLE A: Length = 2 m + 30 cm = 2.3 m. Dimension: L^1.
EXAMPLE B: Speed = 120 m / 10 s = 12 m/s. Dimension: L^1 T^-1.
EXAMPLE C: Area = (3 m)*(4 m) = 12 m^2. Dimension: L^2.
EXAMPLE D: 25 degC corresponds to 298.15 K as an absolute temperature; a 25 degC temperature difference corresponds to 25 K, not 298.15 K.
EXAMPLE E: Energy and torque both have dimension M L^2 T^-2, but their semantic quantity kinds differ.

9. SEMANTIC EQUIVALENCE
ALIASES: mathematical quantity; quantity entity; dimensioned value (only when dimensioned); measurable quantity (only when measurement semantics apply).
NOT_EQUIVALENT: numerical value alone != quantity with unit; quantity kind != dimension; unit != dimension; uncertainty != error.
EQUIVALENCE_CHECK: compare quantity kind, dimension, reference-unit magnitude, context and declared tolerance.

10. CONFIDENCE
CONFIDENCE: {score: 0..1, evidence: provenance|formal_derivation|measurement|assertion, assumptions: [], limitations: []}
Confidence of an assertion is distinct from measurement uncertainty and numerical precision.

11. FLOW HASH AND UPDATE MODEL
FLOW_HASH: SHA-256 over canonical UTF-8 serialization of the ontology's normative entities, relations, rules and version metadata; calculate at deployment, never invent a digest.
UPDATE_MODEL: {version, modified_at, change_log, backward_compatibility, provenance, hash_recalculation_required: true}

12. AI CONSUMPTION
AI_CONSUMPTION:
  parse: typed_quantity_graph
  normalize: canonical_quantity_kinds_and_reference_units
  reason: dimension_check -> semantic_compatibility -> calculate -> propagate_uncertainty
  explain: show units, assumptions, conversion factors and provenance
  reject: incompatible_dimensions, invalid_domain, unsupported_conversion
  output: {value, unit, quantity_kind, dimension, uncertainty?, confidence?, provenance?}

13. CROSS-ONTOLOGY LINKS
PARENT: Measurement and Dimensional Entities
RELATED: Unit Ontology; Dimension Ontology; Measurement Ontology; Measurement Uncertainty Ontology; Dimensional Analysis Ontology; Mathematical Entity Ontology; Scalar Ontology; Vector Ontology.

14. SCOPE NOTE
This is a formal Flow Algebra companion drafted for the supplied page URL. Page-specific prose and its precise child-link taxonomy have not been verified in this file.

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