AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
INVERSE RELATION ONTOLOGY
Kireth Semantic Library | Entity Graph | Mathematical Entities | Relation Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/relation-entities/inverse-relation-ontology.html
Authors: Mark Higgins — Sky (Recursive AI)
Version: 1.0 | Date: 2026-10-13 | Locale: en-GB
Status: Formal mathematical specification; source-page wording not independently verified.
01. PURPOSE
flow "InverseRelationOntology" v1.0
objective: represent, derive, validate and reason about the converse of a binary relation.
scope: set theory, relation algebra, logic, graphs and knowledge representation.
02. TYPED ENTITIES
Set: carrier collection of elements.
Element: member of a set.
OrderedPair[A,B]: pair (a,b) with a in A and b in B.
BinaryRelation[A,B]: subset of A × B.
InverseRelation[B,A]: subset of B × A.
RelationAssertion: proposition R(a,b).
Domain: {a in A | exists b in B: (a,b) in R}.
Range: {b in B | exists a in A: (a,b) in R}.
IdentityRelation[A]: {(a,a) | a in A}.
Composition: relation constructed by chaining compatible relations.
03. CORE DEFINITION
Given R subseteq A × B,
inverse(R) = R^{-1} = {(b,a) in B × A | (a,b) in R}.
predicate: inverse(R)(b,a) iff R(a,b).
Important: inverse relation is also called converse relation.
It is NOT generally an inverse function.
04. PRECONDITIONS
require typed carrier sets A and B.
require every pair in R has first component in A and second in B.
preserve the carrier-set typing even if domain(R) is a strict subset of A.
support empty and infinite relations without assuming enumeration.
05. CONSTRUCTION FLOW
input: R: BinaryRelation[A,B]
output: S: InverseRelation[B,A]
for_each (a,b) in R: emit (b,a) into S
ensure duplicates collapse under set semantics.
postcondition: forall a in A, b in B: S(b,a) iff R(a,b).
06. INVOLUTION
inverse(inverse(R)) = R.
inference: R(a,b) -> inverse(R)(b,a).
inference: inverse(R)(b,a) -> R(a,b).
validation: inversion twice restores the original relation exactly.
07. DOMAIN AND RANGE
domain(inverse(R)) = range(R).
range(inverse(R)) = domain(R).
carrier(inverse(R)) = B × A.
empty_relation: inverse(empty) = empty (with reversed carriers).
08. RELATIONAL OPERATIONS
inverse(R union S) = inverse(R) union inverse(S).
inverse(R intersection S) = inverse(R) intersection inverse(S).
inverse(R difference S) = inverse(R) difference inverse(S).
inverse(complement(R)) = complement(inverse(R)), with complements relative to A × B and B × A respectively.
inverse(identity(A)) = identity(A).
09. COMPOSITION
convention: (S compose R)(a,c) iff exists b: R(a,b) and S(b,c).
inverse(S compose R) = inverse(R) compose inverse(S).
ensure compatible carrier sets and correct composition direction.
10. RELATION PROPERTIES ON ONE CARRIER
if R subseteq A × A:
reflexive(R) iff reflexive(inverse(R)).
irreflexive(R) iff irreflexive(inverse(R)).
symmetric(R) iff inverse(R) = R.
antisymmetric(R) iff antisymmetric(inverse(R)).
asymmetric(R) iff asymmetric(inverse(R)).
transitive(R) iff transitive(inverse(R)).
equivalence_relation(R) iff equivalence_relation(inverse(R)).
partial_order(R) iff partial_order(inverse(R)).
Warning: reflexivity and order properties require an explicitly stated carrier.
11. FUNCTIONS AND INVERSES
A function f:A->B is a relation with exactly one output per input.
inverse(f) is always a relation B->A, but may not be a function.
inverse(f) is a function B->A iff f is bijective (for full carriers).
injective f: inverse relation is single-valued on image(f).
surjective f: inverse relation is defined for every element of B.
avoid conflating relation converse with reciprocal 1/f(x).
12. GRAPH INTERPRETATION
relation R subseteq V × V corresponds to directed edges a -> b.
inverse(R) reverses every directed edge b -> a.
adjacency_matrix(inverse(R)) = transpose(adjacency_matrix(R)).
undirected symmetric relations remain unchanged on inversion.
13. EXAMPLES
A={1,2}; B={x,y,z}; R={(1,x),(1,y),(2,y)}.
inverse(R)={(x,1),(y,1),(y,2)}.
domain(R)={1,2}; range(R)={x,y}.
domain(inverse(R))={x,y}; range(inverse(R))={1,2}.
R={(1,2),(2,3)} on integers -> inverse(R)={(2,1),(3,2)}.
14. KNOWLEDGE GRAPH RELATIONSHIPS
InverseRelation --inverseOf--> BinaryRelation.
BinaryRelation --hasDomainCarrier--> Set.
BinaryRelation --hasRangeCarrier--> Set.
RelationAssertion --hasSubject--> Element.
RelationAssertion --hasObject--> Element.
InverseRelation --swapsArgumentOrderOf--> BinaryRelation.
Relation --composesWith--> Relation.
Relation --hasProperty--> RelationProperty.
all triples carry provenance, context and relation identity.
15. SEMANTIC EQUIVALENCE
labels: inverse relation; converse relation; relational converse.
notation: R^{-1}; Rᵀ (transpose notation when explicitly defined).
equivalent predicates: R(a,b) <=> R^{-1}(b,a).
distinguish: inverse function, reciprocal number, logical negation, set complement.
use structural equivalence only with matching typed carriers.
16. REASONING RULES
rule inverse_intro: R(a,b) => InvR(b,a).
rule inverse_elim: InvR(b,a) => R(a,b).
rule double_inverse: inverse(inverse(R)) => R.
rule symmetry_test: symmetric(R) <=> inverse(R)=R (for R on A).
rule composition_inverse: inverse(S compose R) => inverse(R) compose inverse(S).
rule graph_edge_reverse: edge(a,b,R) => edge(b,a,inverse(R)).
each rule records premises, inferred result and proof justification.
17. VALIDATION
V01: every inverse pair reverses an original pair.
V02: no inverse pair exists without a matching original pair.
V03: swapped carrier typing is respected.
V04: double inversion equals original relation.
V05: domain/range swap is exact.
V06: composition inverse respects order reversal.
V07: graph adjacency transpose agrees with relation inversion.
V08: no unsupported assertion that an inverse relation is a function.
18. CONFIDENCE
CONFIDENCE:
mathematical_definition: 1.0 when formal premises and carriers are established.
derived_assertion: 1.0 only when logically proved from validated premises.
imported_graph_assertion: source-dependent; never automatically 1.0.
unknown_or_incomplete_data: explicit unknown, not false.
19. PROVENANCE
ontology_id: kireth:mathematical-entities:relation-entities:inverse-relation.
source_url: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/relation-entities/inverse-relation-ontology.html
mathematical_basis: standard binary relation and set-theoretic definitions.
authored_by: Mark Higgins — Sky (Recursive AI).
source_verification: not independently verified.
20. FLOW_HASH
FLOW_HASH:
algorithm: SHA-256.
input: canonical UTF-8 serialisation of ontology version, typed entities, axioms and rules.
exclude: mutable runtime timestamps and generated hash value.
policy: compute on ingestion; never invent a digest.
21. UPDATE_MODEL
UPDATE_MODEL:
change_detection: compare canonical hashes and semantic rule versions.
on_change: revalidate dependencies, inferred inverses and graph edges.
preserve: version history, provenance and migration notes.
invalidate: conclusions dependent on withdrawn or changed assertions.
22. AI_CONSUMPTION
AI_CONSUMPTION:
read: parse typed carriers, predicates, rules and validation requirements.
infer: apply inversion only to justified relation assertions.
represent: emit inverseOf and reversed subject/object triples.
explain: return premise, inference rule and provenance.
guardrails: avoid closed-world assumptions and inverse-function confusion.
output: typed assertions with confidence, proof status and source identifiers.
23. TEST CASES
T01: R=empty => inverse(R)=empty. PASS expected.
T02: R={(a,b)} => inverse(R)={(b,a)}. PASS expected.
T03: inverse(inverse(R))=R. PASS expected.
T04: symmetric R => inverse(R)=R. PASS expected.
T05: non-injective function => inverse relation not single-valued. PASS expected.
T06: inverse(S compose R)=inverse(R) compose inverse(S). PASS expected.
24. TERMINATION
end flow "InverseRelationOntology".
outcome: typed, auditable relation inversion and semantic reasoning.