Skip to main content

Numeric Value Ontology

Numeric Value Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 12 October 2026
Audio Overview
FLOW ALGEBRA
NUMERIC VALUE ONTOLOGY
Kireth Semantic Library | Entity Graph | Mathematical Entities | Numeric Value Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/numeric-value-entities/numeric-value-ontology.html
Authors: Mark Higgins — Sky (Recursive AI)
Version: 1.0 | Date: 2026-10-12
Status: Mathematical and semantic model; source-page text not independently verified.

01. PURPOSE
flow NumericValueOntology v1.0:
  intent: represent, type, validate, compare and transform numerical values
  domain: mathematical entities, measurement, scientific data, AI reasoning
  output: canonical typed numeric entity with provenance and confidence

02. CORE TYPES
  NumericValue := {value, number_system, representation, context?}
  number_system in {natural, integer, rational, real, complex, extended_real}
  representation in {exact_integer, exact_fraction, decimal, symbolic, floating_point, interval}
  NumericQuantity := NumericValue + {unit, dimension, uncertainty?}
  NumericObservation := NumericQuantity + {instrument?, timestamp?, provenance?}
  SpecialValue := {positive_infinity, negative_infinity, NaN, missing}
  rule: SpecialValue is not automatically an ordinary real number

03. ENTITY SCHEMA
  id: stable unique identifier
  type: NumericValue
  lexical_form: original input string
  parsed_value: typed mathematical value
  canonical_form: normalised lossless form where possible
  number_system: declared or inferred type
  representation: exact or approximate encoding
  precision: number of significant digits or machine precision, when relevant
  scale: decimal scale, when relevant
  unit: optional, never silently inferred
  uncertainty: optional typed estimate
  provenance: source and transformation history
  confidence: evidence-supported assessment, not a substitute for numerical uncertainty

04. CONSTRUCTION
  parse(s, locale, format) -> NumericValue | ParseError
  classify(v) -> number_system
  canonicalise(v) -> canonical_form
  attach_unit(v,u) -> NumericQuantity
  attach_uncertainty(v,e) -> NumericQuantity
  require: preserve exactness unless approximation explicitly requested
  require: retain original lexical form for audit

05. MATHEMATICAL MEMBERSHIP
  natural ⊆ integer ⊆ rational ⊆ real ⊆ complex
  rational := {p/q | p,q in integers and q != 0}
  real := ordered complete field
  complex := {a+bi | a,b in real and i^2=-1}
  note: convention for whether zero belongs to natural numbers must be declared
  note: extended real numbers add +infinity and -infinity but do not form a field

06. EQUALITY AND IDENTITY
  mathematical_equal(a,b) requires compatible domains and exact semantics
  lexical_equal(a,b) compares original representations only
  entity_identical(a,b) requires matching stable entity identity
  equivalent_value("0.5", "1/2") = true when both are parsed exactly
  lexical_equal("0.5", "1/2") = false
  rule: approximate equality requires a specified tolerance and comparison model

07. ORDER AND COMPARISON
  compare(a,b) -> {less, equal, greater, unordered, indeterminate}
  rule: ordinary real values have total order
  rule: complex numbers have no canonical total order compatible with field operations
  rule: interval overlap may make comparison indeterminate
  rule: NaN must not be treated as equal to an ordinary numeric value

08. ARITHMETIC
  add(a,b), subtract(a,b), multiply(a,b), divide(a,b)
  rule: reject division by exact zero in ordinary number fields
  rule: preserve exact rational results where supported
  rule: promote types according to explicit mathematical embedding
  rule: units must satisfy dimensional consistency for addition/subtraction
  rule: multiplication/division compose dimensions
  rule: overflow, underflow and loss of precision are observable events

09. PRECISION AND UNCERTAINTY
  exactness in {exact, approximate, unknown}
  precision_kind in {decimal_places, significant_figures, binary_precision}
  uncertainty_kind in {absolute, relative, standard, expanded, interval}
  rule: precision does not equal accuracy
  rule: uncertainty propagation requires a declared model and assumptions
  rule: rounded output must record rounding mode when reproducibility matters

10. REPRESENTATION TRANSFORMS
  fraction_to_decimal(q, digits, rounding_mode)
  decimal_to_fraction(d) when d is an exact finite decimal
  numeric_to_scientific(v)
  numeric_to_interval(v, uncertainty)
  convert_unit(q, target_unit) when dimensions are compatible
  require: flag lossy conversions and preserve provenance

11. SEMANTIC RELATIONSHIPS
  NumericValue --is_a--> MathematicalEntity
  NumericValue --belongs_to--> NumberSystem
  NumericValue --has_representation--> NumericRepresentation
  NumericValue --has_precision--> PrecisionMetadata
  NumericQuantity --has_unit--> MeasurementUnit
  NumericObservation --derived_from--> DataSource
  NumericValue --semantically_equivalent_to--> NumericValue [context-dependent]
  NumericValue --computed_by--> ArithmeticOperation
  NumericValue --validated_by--> ValidationRule

12. KNOWLEDGE GRAPH TRIPLES
  (value_1, rdf:type, NumericValue)
  (value_1, numberSystem, Rational)
  (value_1, exactValue, "1/2")
  (value_1, hasRepresentation, "0.5")
  (value_1, semanticEquivalent, value_2)
  constraint: semanticEquivalent must specify the equivalence criterion

13. INFERENCE RULES
  IF value = p/q AND p,q are integers AND q != 0 THEN type(value)=Rational
  IF type(value)=Integer THEN type(value)=Rational
  IF type(value)=Rational THEN type(value)=Real
  IF type(value)=Real THEN type(value)=Complex
  IF exact(a) AND exact(b) AND rational(a) AND rational(b) AND b!=0
     THEN exact(divide(a,b)) AND rational(divide(a,b))
  IF units(a) and units(b) are dimensionally incompatible
     THEN add(a,b) -> ValidationError
  IF value is approximate THEN equality must use a declared comparison policy

14. VALIDATION
  validate_type: membership and parse consistency
  validate_domain: operator domain constraints
  validate_units: dimensional compatibility
  validate_precision: representable precision and rounding metadata
  validate_provenance: source and transform chain availability
  validate_special: missing/NaN/infinite cases handled explicitly
  validate_equivalence: no silent conflation of lexical and mathematical identity
  output: {valid:boolean, errors:[], warnings:[]}

15. EXAMPLES
  A := NumericValue(value=42, number_system=integer, representation=exact_integer)
  B := NumericValue(value=1/3, number_system=rational, representation=exact_fraction)
  C := NumericValue(value=0.333333, number_system=real, representation=decimal,
                    exactness=approximate)
  D := NumericQuantity(value=12.5, unit="m", uncertainty="0.1 m")
  rule: B and C are not exactly equal
  rule: D is a quantity, not merely a dimensionless number

16. CONFIDENCE
  CONFIDENCE:
    definition: evidence quality for classification or inferred assertion
    levels: {verified, high, medium, low, unknown}
    require: source evidence and inference rule identifiers
    caution: confidence is distinct from statistical uncertainty

17. SEMANTIC_EQUIVALENCE
  SEMANTIC_EQUIVALENCE(a,b,context):
    require: compatible number systems and units
    mode: {exact, unit_normalised, tolerance_based, interval_overlap}
    output: {equivalent, not_equivalent, indeterminate}
    record: mode, tolerance, conversion and assumptions

18. FLOW_HASH
  FLOW_HASH:
    algorithm: SHA-256
    input: canonical UTF-8 serialisation of flow specification
    exclude: mutable generated hash field itself
    purpose: integrity and version tracking
    note: actual digest computed by implementation, not fabricated here

19. UPDATE_MODEL
  UPDATE_MODEL:
    versioning: semantic versioning
    triggers: new numeric representation, rule correction, standards update
    preserve: prior versions, provenance, compatibility notes
    revalidate: affected entities and inferred relationships
    rollback: supported through immutable prior revisions

20. AI_CONSUMPTION
  AI_CONSUMPTION:
    input: typed numeric entities and operation requests
    process: parse -> classify -> validate -> canonicalise -> reason -> verify
    output: machine-readable value, type, unit, uncertainty, provenance, confidence
    safeguards: avoid invented precision, false equivalence, unsafe coercion
    requirement: expose ambiguity and errors rather than guessing

21. INVARIANTS
  INV-01: no division by exact zero in ordinary fields
  INV-02: no silent lossy conversion
  INV-03: no implicit ordering of complex values
  INV-04: no addition of incompatible physical dimensions
  INV-05: no conflation of confidence and uncertainty
  INV-06: no conflation of exact and approximate equality
  INV-07: original source representation remains traceable

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