Skip to main content

Inequality Ontology

Equation and Statement Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 13 October 2026
Audio Overview
FLOW ALGEBRA
INEQUALITY ONTOLOGY
Kireth Semantic Library | Mathematical Entities | Equation and Statement Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/equation-and-statement-entities/inequality-ontology-2.html
Authors: Mark Higgins — Sky (Recursive AI)
Version: 1.0 | Date: 2026-10-13 | Language: en-GB
Status: Mathematics-grounded draft; source webpage not independently verified.

01. PURPOSE
flow "InequalityOntology" v1.0
  intent: represent, type, evaluate, transform, solve and reason about inequalities.
  scope: ordered domains, scalar inequalities, systems, intervals, constraints and proofs.
  exclude: assuming an order on complex numbers; unsafe algebraic transformations.

02. ENTITY MODEL
entity Inequality:
  id: URI
  left: -Expression
  relation: one_of [LT, LE, GT, GE, NE]
  right: -Expression
  domain: OrderedDomain | EqualityDomain
  assumptions: Set[Predicate]
  variables: Set[Variable]
  quantifiers: optional QuantifierStructure
  provenance: SourceReference
  confidence: ConfidenceRecord

03. CORE SEMANTICS
  LT(a,b) := a < b
  LE(a,b) := a <= b
  GT(a,b) := a > b
  GE(a,b) := a >= b
  NE(a,b) := a != b
  strict: [LT, GT]
  non_strict: [LE, GE]
  note: NE is a disequality, not an ordering relation.
  note: complex numbers have no compatible total field order.

04. DOMAIN REQUIREMENTS
  ordered_set: order relation with declared axioms.
  ordered_field: ordered set plus compatible field operations.
  real_domain: R with its usual total order.
  integer_domain: Z with its inherited order.
  rational_domain: Q with its inherited order.
  symbolic_domain: requires assumptions sufficient to establish comparisons.
  floating_point_domain: handle NaN, infinities and rounding explicitly.

05. RELATIONAL LAWS
  a < b => a <= b and a != b
  a <= b and b <= a => a = b
  a < b and b < c => a < c
  a <= b and b <= c => a <= c
  not(a < b) <=> a >= b [total order]
  not(a <= b) <=> a > b [total order]
  a < b <=> b > a
  a <= b <=> b >= a
  trichotomy: exactly one of a < b, a = b, a > b [total order].

06. ADDITIVE TRANSFORMATIONS
  a < b <=> a+c < b+c [ordered additive group]
  a <= b <=> a+c <= b+c [ordered additive group]
  subtracting c is adding -c.

07. MULTIPLICATIVE TRANSFORMATIONS
  c > 0 and a < b => ac < bc [ordered field]
  c < 0 and a < b => ac > bc [ordered field]
  c = 0: multiplication destroys strict inequality.
  division by c requires c != 0 and known sign.
  unknown sign: split into c > 0, c < 0, c = 0 cases.

08. NONLINEAR TRANSFORMATIONS
  applying strictly increasing f preserves strict order on its domain.
  applying strictly decreasing f reverses strict order on its domain.
  squaring is not globally order-preserving on R.
  x,y >= 0 and x < y => x^2 < y^2.
  reciprocal on positive reals: 0 < a < b => 1/b < 1/a.
  exponentiation and logarithms require base/domain restrictions.
  multiplying by expressions with unknown signs requires case analysis.

09. TYPES OF INEQUALITY
  linear: ax+b < c
  polynomial: p(x) >= 0
  rational: p(x)/q(x) <= 0, q(x) != 0
  absolute_value: |f(x)| < r
  exponential: a^x >= b, a > 0 and a != 1
  logarithmic: log_a(x) < c, x > 0, a > 0 and a != 1
  multivariate: f(x_1,...,x_n) <= g(x_1,...,x_n)
  chained: a < b <= c means (a < b) AND (b <= c).

10. SOLUTION SEMANTICS
  solution_set(I,D) := {assignment in D : evaluate(I,assignment)=true}.
  strict_boundary: excluded at equality endpoints.
  non_strict_boundary: included at equality endpoints.
  conjunction: intersection of solution sets.
  disjunction: union of solution sets.
  contradictory_constraints: empty solution set.
  universal_truth: solution set equals declared domain.

11. INTERVAL MAPPING
  x > a <=> (a,+infinity) over R
  x >= a <=> [a,+infinity) over R
  x < b <=> (-infinity,b) over R
  x <= b <=> (-infinity,b] over R
  a < x < b <=> (a,b) over R, provided a < b.
  infinities are never included as endpoints in ordinary R.

12. ABSOLUTE-VALUE RULES
  r > 0: |x| < r <=> -r < x < r.
  r >= 0: |x| <= r <=> -r <= x <= r.
  r >= 0: |x| > r <=> x < -r OR x > r.
  r < 0: |x| < r has no real solutions.
  r < 0: |x| > r holds for every real x.

13. SOLVER PIPELINE
  parse -> type_check -> normalise -> collect_assumptions
  -> identify_domain -> choose_sound_transforms
  -> branch_on_signs -> solve_candidates
  -> intersect_domain_restrictions -> verify_candidates
  -> emit_solution_set_and_proof_trace.

14. KNOWLEDGE GRAPH
  Inequality --hasLeftOperand--> Expression
  Inequality --hasRightOperand--> Expression
  Inequality --usesRelation--> ComparisonRelation
  Inequality --constrainedBy--> DomainConstraint
  Inequality --hasSolutionSet--> Set
  Inequality --derivedFrom--> MathematicalStatement
  Inequality --equivalentUnder--> AssumptionSet
  Inequality --verifiedBy--> ProofOrSolver
  Inequality --hasProvenance--> SourceReference

15. INFERENCE RULES
  rule TransitiveLT: LT(a,b) AND LT(b,c) => LT(a,c).
  rule AdditiveShift: LT(a,b) => LT(a+c,b+c).
  rule PositiveScale: LT(a,b) AND GT(c,0) => LT(ac,bc).
  rule NegativeScale: LT(a,b) AND LT(c,0) => GT(ac,bc).
  rule Weakening: LT(a,b) => LE(a,b).
  rule Antisymmetry: LE(a,b) AND LE(b,a) => EQ(a,b).
  guard: rules apply only in domains satisfying their prerequisites.

16. SEMANTIC EQUIVALENCE
  exact_equivalence: same solution set under the same domain and assumptions.
  conditional_equivalence: same solution set given recorded assumptions.
  implication: every solution of A is a solution of B.
  syntax_normalisation: never discard excluded denominator zeros.
  counterexample: witness assignment where claimed equivalence fails.

17. VALIDATION
  verify parsed expression arity and types.
  verify ordered-domain support for LT, LE, GT and GE.
  verify all denominators nonzero where evaluated.
  verify branch completeness for unknown multiplier signs.
  verify transformed and original predicates on candidate solutions.
  verify open/closed endpoints and quantifier scope.
  avoid interpreting floating-point NaN as ordinarily ordered.
  preserve units: only comparable quantities may be ordered.

18. CONFIDENCE
  confidence.kind: deductive | numerical | heuristic | unknown
  confidence.value: optional [0,1]
  confidence.evidence: proof_trace | verified_samples | source
  confidence.warning: numeric samples cannot establish universal truth.

19. FLOW_HASH
  canonical_payload: domain + normalised_ast + assumptions + semantics_version.
  FLOW_HASH: SHA256(UTF8(canonical_payload))
  note: hash is an identifier, not a mathematical proof.

20. UPDATE_MODEL
  immutable: established order axioms and sound derivation rules.
  versioned: ontology schema, notation conventions and inference engine.
  change_log: timestamp, author, reason, previous_hash, new_hash.
  migration: preserve prior identifiers and semantic mappings.

21. AI_CONSUMPTION
  output: typed AST, canonical predicate, assumptions, solution set,
          proof trace, confidence, provenance and FLOW_HASH.
  prohibit: asserting an inequality without evidence or sound inference.
  prefer: exact symbolic reasoning before numerical approximation.
  disclose: unresolved variables, domain ambiguity and solver limits.

22. TEST CASES
  2*x+1 < 7 over R => x < 3.
  -2*x < 6 over R => x > -3.
  x^2 < 4 over R => -2 < x < 2.
  1/x > 0 over R, x != 0 => x > 0.
  x/(x-1) >= 0 over R => (-infinity,0] UNION (1,+infinity).
  |x| <= 3 over R => [-3,3].
  x < x over R => empty set.

23. CROSS-ONTOLOGY LINKS
  parent: Equation and Statement Entities
  related: Mathematical Statement Ontology
  related: Equality Ontology
  related: Equation Ontology
  related: Identity Ontology
  related: Numeric Range Ontology
  related: Interval Ontology
  related: Absolute Value Ontology
  related: Variable Ontology
  related: Mathematical Expression Ontology

24. AUTHORSHIP AND LICENCE NOTE
  Joint authorship: Mark Higgins — Sky (Recursive AI)
  Research site: https://kirethresearch.org
  This flow is a declarative specification and reference ruleset;
  executing it requires an implementation of its operators and checks.
END FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ