Skip to main content

Transitive Relation 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
TRANSITIVE RELATION ONTOLOGY
Kireth Semantic Library | Mathematical Entities | Relation Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/relation-entities/transitive-relation-ontology-2.html
Authors: Mark Higgins — Sky (Recursive AI)
Status: formal mathematical specification; source page content not independently verified
Version: 1.0 | Date: 2026-10-13

01. PURPOSE
flow "TransitiveRelationOntology" v1.0
  domain: mathematics.relation_theory
  objective: represent, classify, test, infer and validate transitive binary relations
  ontology_type: mathematical_relation

02. TYPED ENTITIES
  Set: {id, elements?, cardinality?, provenance?}
  Element: {id, belongs_to:Set}
  BinaryRelation: {id, carrier:Set, ordered_pairs:Set<Pair>}
  OrderedPair: {first:Element, second:Element}
  TransitiveRelation: BinaryRelation where transitive=true
  WitnessPath: {start:Element, via:Element, end:Element}
  Counterexample: {a:Element, b:Element, c:Element}
  Closure: {input:BinaryRelation, output:BinaryRelation, kind:"transitive"}
  Proof: {claim, assumptions, steps, conclusion, status}

03. CORE DEFINITION
  R subseteq A x A
  transitive(R) iff forall a,b,c in A:
      ((a,b) in R and (b,c) in R) implies (a,c) in R
  implication applies to every triple, including repeated elements
  a relation with no composable pair chains is vacuously transitive

04. RELATIONSHIPS
  TransitiveRelation IS_A BinaryRelation
  BinaryRelation HAS_DOMAIN Set
  BinaryRelation HAS_PAIR OrderedPair
  OrderedPair LINKS Element TO Element
  WitnessPath REQUIRES two relation edges
  TransitiveRelation ENTAILS shortcut edge for every two-step path
  TransitiveClosure DERIVED_FROM BinaryRelation
  Counterexample REFUTES TransitivityClaim

05. FORMAL ALGEBRA
  relation composition: R o R = {(a,c) | exists b: aRb and bRc}
  transitive(R) iff (R o R) subseteq R
  transitive closure R+ = union over n>=1 of R^n
  reflexive-transitive closure R* = I_A union R+
  I_A = {(a,a) | a in A}
  R+ is the least transitive relation containing R
  R* is the least reflexive and transitive relation containing R

06. CLASSIFICATION
  strict_partial_order = transitive and irreflexive
  partial_order = transitive and reflexive and antisymmetric
  preorder = transitive and reflexive
  equivalence_relation = transitive and reflexive and symmetric
  transitivity alone does not imply reflexivity, symmetry or antisymmetry

07. POSITIVE EXAMPLES
  <= on real numbers: transitive
  < on real numbers: transitive
  divisibility on positive integers: transitive
  subseteq on sets: transitive
  equality on any set: transitive
  ancestor-of on a family graph: transitive (assuming ordinary strict ancestry)

08. NEGATIVE EXAMPLES
  R={(1,2),(2,3)} on {1,2,3} is not transitive: missing (1,3)
  immediate-parent-of generally not transitive
  adjacency in an undirected graph generally not transitive

09. INFERENCE RULES
  TRANSITIVE_CHAIN:
    premises: R(a,b), R(b,c), transitive(R)
    conclusion: R(a,c)
  TRANSITIVE_EXTENSION:
    premises: R(a,b), R(b,c), R(c,d), transitive(R)
    conclusion: R(a,d)
  COUNTEREXAMPLE:
    premises: R(a,b), R(b,c), not R(a,c)
    conclusion: not transitive(R)
    condition: relation extension complete for tested finite carrier
  CLOSURE_ADD:
    premises: R(a,b), R(b,c)
    action: add R(a,c) to closure, repeat to fixed point

10. VALIDATION
  validate carrier is well-defined
  validate every pair endpoint belongs to carrier
  finite complete relation: enumerate all triples or compose R with itself
  return true iff every required shortcut pair exists
  return false with witness (a,b,c) if any shortcut missing
  incomplete/open-world graph: report unknown, not false, for absent edges
  separate proof of transitivity from mere absence of known counterexamples

11. FINITE ALGORITHM
  function is_transitive(A,R):
    for a in A:
      for b in A:
        if (a,b) in R:
          for c in A:
            if (b,c) in R and (a,c) not in R:
              return {value:false, counterexample:(a,b,c)}
    return {value:true, scope:"complete finite relation"}
  function transitive_closure(A,R):
    C := copy(R)
    repeat:
      previous := copy(C)
      for (a,b) in previous:
        for (u,c) in previous:
          if b == u: C.add((a,c))
    until C == previous
    return C

12. GRAPH AND MATRIX SEMANTICS
  directed graph: relation pairs correspond to directed edges
  transitivity: every directed two-step walk has its shortcut edge
  adjacency matrix M over Boolean semiring
  transitive iff BooleanProduct(M,M) <= M entrywise
  closure: Boolean union of positive powers of M
  Warshall algorithm computes closure for finite carriers

13. CLOSURE PROPERTIES
  intersection of any family of transitive relations is transitive
  union of transitive relations need not be transitive
  inverse of a transitive relation is transitive
  restriction of a transitive relation to a subset is transitive
  composition of transitive relations need not be transitive
  R+ is idempotent under repeated transitive closure

14. SEMANTIC EQUIVALENCE
  "transitive binary relation" equivalent_to "relation satisfying R o R subseteq R"
  R+ equivalent_to "positive-length reachability relation"
  R* equivalent_to "zero-or-more-step reachability relation"
  transitive != reflexive
  transitive != symmetric
  transitive != antisymmetric
  transitive != asymmetric
  equivalent relation labels require matching carrier and pair semantics

15. KNOWLEDGE GRAPH MODEL
  node: relation:R
  node: carrier:A
  edge: R --defined_on--> A
  edge: R --has_property--> transitivity
  edge: R --has_transitive_closure--> R_plus
  edge: proof --supports--> transitivity_claim
  edge: counterexample --refutes--> transitivity_claim
  graph assertion must include scope and evidence status

16. TYPE AND SCOPE CONSTRAINTS
  type(R): BinaryRelation[A,A]
  type(R_plus): BinaryRelation[A,A]
  all quantified variables range over A
  transitivity claim applies to specified relation version
  directed and undirected interpretations must not be conflated
  relation closure must not silently alter original relation

17. EDGE CASES
  empty carrier with empty relation: transitive vacuously
  empty relation on any carrier: transitive vacuously
  identity relation: transitive
  universal relation A x A: transitive
  singleton relation {(a,b)} with a != b: transitive
  singleton loop {(a,a)}: transitive
  directed cycles may require loops and shortcuts in closure

18. REASONING TRACE
  input: A={1,2,3}, R={(1,2),(2,3)}
  detect: (1,2) and (2,3)
  require: (1,3)
  absent in complete R => not transitive
  closure output: {(1,2),(2,3),(1,3)}
  closure validation: transitive=true

19. CONFIDENCE
  proof_verified: 1.0 within stated axioms and scope
  exhaustive_finite_check: 1.0 for complete finite relation
  sampled_check: insufficient to establish transitivity
  open_world_missing_edge: unknown, not refutation
  confidence measures evidence status, not mathematical truth probability

20. FLOW_HASH
  canonicalise: ontology id, version, carrier, ordered pairs, rule set
  preserve ordered-pair direction and declared element identities
  serialise deterministic UTF-8 canonical representation
  FLOW_HASH := SHA-256(canonical_representation)
  hash identifies representation/version, not proof of correctness

21. UPDATE_MODEL
  on pair insertion: recompute affected closure paths and transitivity status
  on pair deletion: invalidate affected proofs and recompute closure as required
  on carrier change: revalidate endpoint membership and quantification scope
  on ontology revision: increment version and regenerate FLOW_HASH
  retain provenance, revision history and counterexample witnesses

22. AI_CONSUMPTION
  input: {carrier, pairs, completeness, requested_operation}
  operations: classify | validate | explain | infer | close | compare
  output: {relation_type, transitive_status, evidence, closure?, hash?}
  status: true | false | unknown
  include exact witness when status=false
  distinguish observed edge from inferred closure edge
  do not promote inferred edges to observed facts without provenance

23. TEST CASES
  T01: R={} => true
  T02: R={(1,2),(2,3)} => false, witness=(1,2,3)
  T03: R={(1,2),(2,3),(1,3)} => true
  T04: R={(1,1),(1,2),(2,2)} => true
  T05: R={(1,2),(2,1)} => false (requires loops)
  T06: R={(1,2),(2,1),(1,1),(2,2)} => true
  T07: inverse(transitive(R)) => transitive
  T08: closure(closure(R)) == closure(R)

24. PROVENANCE AND ATTRIBUTION
  publication: Kireth Semantic Library
  authors: Mark Higgins — Sky (Recursive AI)
  source_url: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/relation-entities/transitive-relation-ontology-2.html
  mathematical_basis: established set theory and relation algebra
  source_page_verified: false
  AI_authorship_disclosed: true

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