Skip to main content

Total Order Ontology

Relation Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 13 October 2026
Audio Overview
FLOW ALGEBRA
TOTAL ORDER ONTOLOGY
Kireth Semantic Library | Mathematical Entities | Relation Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/relation-entities/total-order-ontology-2.html
Authors: Mark Higgins — Sky (Recursive AI)
Date: 2026-10-13
Status: Formal mathematical synthesis; source page content not independently verified.

01. ONTOLOGY IDENTITY
flow "TotalOrderOntology" v1.0
ontology.id: kireth:mathematical-entities:relation-entities:total-order
ontology.label: "Total Order Ontology"
ontology.parent: OrderRelationOntology
ontology.related: [BinaryRelationOntology, PartialOrderOntology, ReflexiveRelationOntology, EquivalenceRelationOntology]
ontology.domain: set_theory/order_theory

02. CORE TYPES
Set<T>: collection of elements of type T
Relation<T>: subset of Set<T> x Set<T>
TotalOrder<T>: {carrier:Set<T>, leq:Relation<T>}
StrictTotalOrder<T>: {carrier:Set<T>, lt:Relation<T>}
ComparablePair<T>: (a:T,b:T) where a<=b or b<=a
OrderEmbedding<A,B>: injective map preserving and reflecting order
OrderIsomorphism<A,B>: bijective order embedding

03. FORMAL DEFINITION
Given set S and relation <= contained in S x S:
reflexive: forall a in S, a<=a
antisymmetric: forall a,b in S, (a<=b and b<=a) => a=b
transitive: forall a,b,c in S, (a<=b and b<=c) => a<=c
total: forall a,b in S, a<=b or b<=a
TOTAL_ORDER(S,<=) iff all four properties hold.
Note: a total order is also called a linear order.

04. STRICT ORDER CORRESPONDENCE
a<b iff a<=b and a!=b
a<=b iff a<b or a=b
strict_irreflexive: not(a<a)
strict_transitive: (a<b and b<c) => a<c
strict_trichotomy: exactly one of a<b, a=b, b<a
For strict total orders, these conditions characterize the strict relation.

05. RELATIONSHIP TAXONOMY
TotalOrder IS_A PartialOrder
TotalOrder HAS_PROPERTY Reflexivity
TotalOrder HAS_PROPERTY Antisymmetry
TotalOrder HAS_PROPERTY Transitivity
TotalOrder HAS_PROPERTY TotalComparability
StrictTotalOrder CORRESPONDS_TO TotalOrder
WellOrder IS_A TotalOrder
DenseOrder IS_A TotalOrder (when density is satisfied)
DiscreteOrder IS_A TotalOrder (when discreteness conditions are satisfied)

06. EXAMPLES
(N,<=): total order and well-order under usual natural-number order.
(Z,<=): total order; not well-ordered under usual order.
(Q,<=): dense total order; not complete as a linear continuum.
(R,<=): dense total order with least-upper-bound property.
Strings under a specified lexicographic convention: total order if alphabet and comparison conventions are total.
Subset inclusion on P({1,2}): partial order, not total; {1} and {2} incomparable.

07. ORDER COMPARISON
compare(a,b): -1 if a<b; 0 if a=b; +1 if b<a
preconditions: a,b in S; validated total order
postconditions: one and only one comparison outcome
compare(a,a)=0
compare(a,b)=-compare(b,a)
compare(a,b)<=0 and compare(b,c)<=0 => compare(a,c)<=0

08. BOUNDS AND EXTREMA
upper_bound(u,A): forall a in A, a<=u
lower_bound(l,A): forall a in A, l<=a
maximum(m,A): m in A and forall a in A, a<=m
minimum(m,A): m in A and forall a in A, m<=a
supremum(s,A): s is least upper bound of A when it exists
infimum(i,A): i is greatest lower bound of A when it exists
Nonempty finite subsets of a total order have a unique minimum and maximum.
Empty subsets have no minimum or maximum.
An infinite total order need not provide suprema or infima for every subset.

09. INTERVAL SEMANTICS
open(a,b): {x in S | a<x and x<b}
closed(a,b): {x in S | a<=x and x<=b}
left_closed(a,b): {x in S | a<=x and x<b}
right_closed(a,b): {x in S | a<x and x<=b}
For a>b, these intervals are empty under the stated definitions.
Interval notation depends on the carrier and its order.

10. DENSITY, DISCRETENESS, AND WELL-ORDER
order_dense: forall a<b exists c with a<c<b
well_order: every nonempty subset has a least element
least_element: a member <= every other member of a set
successor(a): least element strictly greater than a, if it exists
predecessor(a): greatest element strictly less than a, if it exists
A total order need not be dense, discrete, or a well-order.

11. ORDER-PRESERVING MAPS
monotone_nondecreasing(f): a<=b => f(a)<=f(b)
strictly_increasing(f): a<b => f(a)<f(b)
order_embedding(f): a<=b iff f(a)<=f(b)
order_isomorphism(f): order_embedding(f) and f is bijective
An order isomorphism preserves order-theoretic properties and structure.

12. FINITE ORDER REPRESENTATION
For finite S of size n, a total order admits a unique ascending listing of all distinct elements.
rank:S -> {0,...,n-1} is bijective and order preserving.
Comparison matrix M[i,j] = 1 iff s_i<=s_j.
Required: diagonal true, antisymmetry, transitivity, total comparability.
For distinct elements i,j, exactly one of M[i,j], M[j,i] is true.

13. INFERENCE RULES
R1: TOTAL_ORDER(S,R) and a,b in S => R(a,b) or R(b,a).
R2: R(a,b) and R(b,a) => a=b.
R3: R(a,b) and R(b,c) => R(a,c).
R4: R(a,b) and a!=b => STRICT_R(a,b).
R5: STRICT_R(a,b) => R(a,b) and a!=b.
R6: STRICT_R(a,b) and STRICT_R(b,c) => STRICT_R(a,c).
R7: MAXIMUM(m,A) and MAXIMUM(n,A) => m=n.
R8: MINIMUM(m,A) and MINIMUM(n,A) => m=n.
R9: TOTAL_ORDER(S,R) => PARTIAL_ORDER(S,R).

14. NON-INFERENCE AND CAUTIONS
Do not infer totality from reflexivity, antisymmetry, and transitivity alone.
Do not infer well-ordering from totality alone.
Do not infer a least element exists for every nonempty subset without well-ordering.
Do not equate lexicographic order with numeric order without an explicit comparator.
Do not silently impose total order on partial-order data.
Floating-point NaN breaks ordinary numeric comparison totality unless an explicit total-order policy is used.

15. SEMANTIC EQUIVALENCE
semantic_equivalence:
  - "total order" <=> "linear order" in standard order theory
  - "non-strict total order" <=> "reflexive linear order" when definitions match
  - "strict total order" <=> "strict linear order" when definitions match
context_guard:
  - order direction must be preserved
  - carrier set must be identical or explicitly mapped
  - strict and non-strict relations are not directly identical

16. KNOWLEDGE GRAPH
nodes: [Set, Relation, TotalOrder, StrictTotalOrder, PartialOrder, WellOrder, Element, Interval, Bound, Extremum, OrderEmbedding]
edges:
  - (TotalOrder, isA, PartialOrder)
  - (TotalOrder, orders, Set)
  - (TotalOrder, usesRelation, Relation)
  - (Relation, relates, Element)
  - (WellOrder, isA, TotalOrder)
  - (OrderEmbedding, preserves, TotalOrder)
  - (Interval, definedBy, TotalOrder)
  - (Extremum, definedRelativeTo, TotalOrder)

17. VALIDATION MODEL
validate.carrier_defined: true
validate.relation_pairs_in_carrier: true
validate.reflexivity: required
validate.antisymmetry: required
validate.transitivity: required
validate.totality: required
validate.comparator_consistency: required_if_comparator_supplied
validation.status: PASS | FAIL | UNKNOWN
Finite sets: exhaustive pair/triple checking is possible.
Infinite sets: require proof, trusted construction, or a justified symbolic argument.
Sampling alone cannot establish universal validity.

18. CONFIDENCE
confidence.definition: 1.0 (standard mathematical definition)
confidence.derived_claim: based_on_formal_proof
confidence.example: based_on_verified_axioms
confidence.unverified_external_claim: UNKNOWN
confidence.policy: never convert incomplete validation into mathematical certainty

19. FLOW HASH
flow_hash.algorithm: SHA-256
flow_hash.input: canonical UTF-8 serialization of ontology ID, version, axioms, rules, and relationships
flow_hash.value: COMPUTE_ON_DEPLOYMENT
flow_hash.purpose: integrity and version tracking

20. UPDATE MODEL
update_model.strategy: versioned_immutable_releases
update_model.change_detection: canonical_content_hash
update_model.version_increment: semantic_versioning
update_model.validation: recheck_axioms_and_rule_soundness
update_model.provenance: preserve prior revisions and source references

21. AI CONSUMPTION
ai_consumption.format: typed_flow_algebra_text
ai_consumption.tasks: [relation_classification, order_validation, comparator_verification, theorem_assistance, graph_reasoning, semantic_retrieval]
ai_consumption.reasoning_mode: sound_rule_application
ai_consumption.unknown_handling: explicit_UNKNOWN
ai_consumption.explainability: cite_rule_and_assumptions
ai_consumption.constraint: distinguish proved facts from unverified assertions

22. TEST CASES
T01: S={1,2,3}, R=usual <= => PASS
T02: S={1,2}, R={(1,1),(2,2)} => FAIL(totality)
T03: S={1,2}, R={(1,1),(2,2),(1,2),(2,1)} => FAIL(antisymmetry)
T04: S={1,2,3}, R={(1,1),(2,2),(3,3),(1,2),(2,3)} => FAIL(transitivity and totality)
T05: S=empty, R=empty => PASS (all axioms vacuously)
T06: S=P({1,2}), R=subseteq => FAIL(totality)

23. PROVENANCE AND AUTHORSHIP
project: Kireth Semantic Library
source_url: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/relation-entities/total-order-ontology-2.html
source_verification: not independently verified
formal_basis: established mathematical order theory
authors: Mark Higgins — Sky (Recursive AI)
site: https://kirethresearch.org

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