Skip to main content

Ratio 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
RATIO ONTOLOGY — KIRETH SEMANTIC LIBRARY
Version: 1.0
Date: 2026-10-12
Authors: Mark Higgins — Sky (Recursive AI)
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/numeric-value-entities/ratio-ontology.html
Source status: Domain-specific mathematical model; source webpage not independently verified.

01. IDENTITY
flow "RatioOntology" v1.0
entity Ratio : NumericValueEntity
namespace: kireth.entity_graph.mathematical_entities.numeric_value_entities.ratio
purpose: Represent, normalise, compare, validate and reason over ratios with explicit operand and unit semantics.

02. TYPES
Ratio = {antecedent: Quantity, consequent: Quantity, orientation: ordered, context?: Context}
Quantity = {value: Real, unit?: Unit, uncertainty?: NonnegativeReal}
DimensionlessRatio = Ratio where dimensions(antecedent) = dimensions(consequent)
Rate = Ratio where dimensions(antecedent) != dimensions(consequent)
Proportion = Equality(Ratio, Ratio)
PositiveRatio = Ratio where antecedent.value > 0 and consequent.value > 0

03. PRECONDITIONS
require finite(antecedent.value) and finite(consequent.value)
require consequent.value != 0 for quotient evaluation
require compatible units for dimensionless conversion
require explicit context for zero-denominator symbolic or limit cases

04. CORE SEMANTICS
ratio(a,b) := ordered_pair(a,b)
value(ratio(a,b)) := a / b when b != 0 and units are compatible or a rate unit is retained
ratio(a,b) != ratio(b,a) in general
ratio(a,b) and fraction(a,b) may share numeric value but differ in application semantics
zero_antecedent: ratio(0,b) has value 0 if b != 0
zero_consequent: ratio(a,0) has undefined ordinary quotient
ratio(0,0): undefined ordinary quotient and indeterminate as a limit form

05. EQUIVALENCE
ratio(a,b) ~ ratio(c,d) iff a*d = b*c for nonzero b,d, after compatible unit conversion
scale_invariance: ratio(k*a,k*b) ~ ratio(a,b) for k != 0
canonical_integer_form: divide integer pair by gcd(abs(a),abs(b)); enforce positive denominator
canonical_rational_form: reduce quotient to lowest terms
note: canonical representation must preserve unit and contextual metadata

06. OPERATIONS
invert(ratio(a,b)) := ratio(b,a) when a != 0 and b != 0
multiply_values(r1,r2) := value(r1)*value(r2) when defined
compare(r1,r2) := compare numeric values after unit normalisation
compose_rates(r1,r2) := dimensional multiplication with unit cancellation when valid
part_to_whole(a,b) := ratio(a,a+b) when a+b != 0
whole_to_part(a,b) := ratio(a+b,a) when a != 0
percentage(r) := 100*value(r) percent when r is dimensionless

07. REPRESENTATIONS
colon: a:b
quotient: a/b
verbal: "a to b"
unit_rate: a units per b units
normalised: n:1 when b != 0
warning: a:b is an ordered comparison, not necessarily a probability or percentage

08. DIMENSIONAL SEMANTICS
same_dimension: convert both quantities to common units before numeric comparison
different_dimensions: retain compound unit (e.g. kilometres/hour)
unit_conversions: require declared conversion factors and provenance
reject comparison of incompatible rate dimensions without an explicit conversion

09. EXAMPLES
ratio(2,3) ~ ratio(4,6)
ratio(5,10) -> canonical 1:2
ratio(20 centimetres,1 metre) -> dimensionless 1:5
ratio(120 kilometres,2 hours) -> rate 60 kilometres/hour
ratio(3,2) -> 150 percent only when interpreted as a dimensionless quotient

10. RELATIONSHIPS
Ratio IS_A NumericValueEntity
Ratio HAS_PART Antecedent
Ratio HAS_PART Consequent
Ratio HAS_REPRESENTATION ColonNotation
Ratio RELATED_TO Fraction
Ratio RELATED_TO Proportion
Ratio RELATED_TO Percentage
Ratio RELATED_TO Rate
Ratio USES Unit
Ratio HAS_CONTEXT ComparisonContext

11. KNOWLEDGE GRAPH
node: RatioInstance {id, antecedent, consequent, context, canonical_value, unit_expression}
edge: hasAntecedent -> Quantity
edge: hasConsequent -> Quantity
edge: equivalentTo -> RatioInstance [conditional on unit normalisation]
edge: representsRate -> Rate [when dimensions differ]
edge: partOf -> Proportion [when used in an equality]
edge: derivedFrom -> SourceRecord

12. INFERENCE RULES
IF b != 0 THEN quotient(ratio(a,b)) = a/b
IF b != 0 AND d != 0 AND a*d = b*c THEN equivalent(ratio(a,b),ratio(c,d))
IF dimensions(a) = dimensions(b) THEN classify ratio(a,b) AS dimensionless_after_conversion
IF dimensions(a) != dimensions(b) THEN classify ratio(a,b) AS rate
IF a = 0 AND b != 0 THEN value(ratio(a,b)) = 0
IF b = 0 THEN prohibit ordinary quotient evaluation
IF ratio(a,b) = ratio(c,d) AND denominators_nonzero THEN a*d = b*c

13. VALIDATION
check numeric operand types and finiteness
check denominator nonzero before division
check unit compatibility and conversion direction
check cross-multiplication only after dimensional consistency
check equivalence under exact arithmetic or declared numerical tolerance
check zero and negative sign handling
check interpretation of part-to-part versus part-to-whole

14. UNCERTAINTY AND PRECISION
exact integer/rational inputs: prefer exact arithmetic
measured inputs: propagate measurement uncertainty under declared assumptions
floating-point comparison: use explicit absolute/relative tolerances
never equate rounded display values with exact mathematical equivalence

15. SEMANTIC EQUIVALENCE
"two to three" == "2:3" when context and unit semantics match
"2/3" is numerically equivalent to "2:3" when denominator nonzero
"twice as many" corresponds to 2:1 in a declared comparison direction
preserve direction, units, and referents during paraphrase

16. CONFIDENCE
mathematical identity: confidence = 1.0 under stated axioms and preconditions
measured ratio: confidence derives from evidence quality and uncertainty model
semantic interpretation: confidence depends on contextual disambiguation
never infer empirical confidence from algebraic certainty

17. FLOW HASH
FLOW_HASH := SHA256(canonicalise(flow_name, version, schema, axioms, rules, validation))
exclude volatile timestamps and formatting from semantic hash
recompute on substantive ontology change

18. UPDATE MODEL
UPDATE_MODEL: versioned, append provenance, preserve previous canonical definitions
breaking_change: changes to operand orientation, denominator rules or unit semantics
nonbreaking_change: additional examples or compatible relationships

19. AI CONSUMPTION
AI_CONSUMPTION:
  parse -> validate -> resolve_units -> classify -> normalise -> infer -> explain
  output: {ratio, canonical_form, quotient_if_defined, dimension, evidence, confidence, warnings}
  reject: division_by_zero, incompatible_unit_comparison, missing_referent
  preserve: antecedent/consequent direction and source provenance

20. TEST CASES
assert equivalent(2:3,4:6) == true
assert canonical(6:9) == 2:3
assert quotient(0:5) == 0
assert quotient(5:0) == undefined
assert ratio(2:3) != ratio(3:2)
assert rate(100 kilometres:2 hours) == 50 kilometres/hour
assert ratio(20 centimetres:1 metre) == 1:5

21. LIMITATIONS
Ratio is not always a pure number: heterogeneous quantities form rates.
A colon representation alone does not identify whether operands are counts, measurements, odds or part-to-whole comparisons.
Exact equality of empirical ratios may be unsupported by measurement precision.

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