Skip to main content

Inverse Function Ontology

Function and Mapping Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 13 October 2026
Audio Overview
FLOW ALGEBRA
INVERSE FUNCTION ONTOLOGY
Kireth Semantic Library | Mathematical Entities | Function and Mapping Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/function-and-mapping-entities/inverse-function-ontology-2.html
Authors: Mark Higgins — Sky (Recursive AI)
Version: 1.0 | Date: 2026-10-13 | Language: en-GB
Source status: Formal mathematical synthesis; source page not independently verified.

01. PURPOSE
flow "InverseFunctionOntology" v1.0
  objective: represent, validate and reason about inverse functions
  interpretation: mathematical inverse, not reciprocal and not preimage operator
  semantics: typed set-theoretic mappings with explicit domain and codomain

02. CORE TYPES
  Set[A]: collection of elements of type A
  Function[A,B]: total single-valued mapping A -> B
  PartialFunction[A,B]: single-valued mapping defined on a subset of A
  Relation[A,B]: subset of A x B
  Bijection[A,B]: Function[A,B] that is injective and surjective
  InverseFunction[B,A]: inverse of a Bijection[A,B]
  Identity[A]: id_A(a) = a for every a in A
  Image(f): {f(a) | a in domain(f)}
  Fibre(f,b): {a in domain(f) | f(a) = b}

03. ENTITIES
  FunctionEntity: id, domain, codomain, rule, provenance
  InverseFunctionEntity: id, inverse_of, domain, codomain, rule
  MappingPair: source, target
  ProofCertificate: proposition, assumptions, derivation, status
  DomainRestriction: parent_function, restricted_domain
  ValidationRecord: test_id, expected, observed, result

04. RELATIONSHIPS
  inverse_of(g,f): g = f^(-1)
  maps_from(f,A): domain(f) = A
  maps_to(f,B): codomain(f) = B
  has_image(f,S): image(f) = S
  is_bijective(f): injective(f) and surjective(f)
  composes_with(g,f): g o f is well typed
  restricts_to(f,D): D subseteq domain(f)
  has_left_inverse(f,g): g o f = id_A
  has_right_inverse(f,h): f o h = id_B

05. DEFINING AXIOM
  Given f:A -> B, an inverse function g:B -> A exists iff f is bijective.
  inverse_of(g,f) iff:
    forall a in A: g(f(a)) = a
    forall b in B: f(g(b)) = b
  Inverse is unique whenever it exists.
  domain(g) = B; codomain(g) = A.

06. INJECTIVITY
  injective(f) iff forall a1,a2 in A:
    f(a1) = f(a2) implies a1 = a2
  A left inverse implies injectivity.
  Injectivity alone permits inverse-on-image f^(-1):image(f) -> A.
  This inverse-on-image is not automatically an inverse B -> A.

07. SURJECTIVITY
  surjective(f) iff forall b in B:
    exists a in A: f(a) = b
  A right inverse implies surjectivity.
  Surjectivity alone does not ensure a unique inverse output.
  Right inverses may require a choice principle for arbitrary sets.

08. BIJECTIVITY
  bijective(f) iff injective(f) and surjective(f)
  Each b in B has exactly one preimage a in A.
  g(b) = unique a such that f(a) = b.
  No additional choice principle is required to invert a bijection.

09. COMPOSITION RULES
  (g o f)(a) = g(f(a)) when codomain(f) matches domain(g).
  inverse(f) o f = id_A
  f o inverse(f) = id_B
  inverse(inverse(f)) = f
  inverse(g o f) = inverse(f) o inverse(g)
    when f:A -> B and g:B -> C are bijections.
  id_A is its own inverse.

10. RESTRICTION AND INVERTIBILITY
  If f is not injective, restrict to D subseteq A where f|D is injective.
  Then f|D:D -> image(f|D) is bijective.
  Its inverse maps image(f|D) -> D.
  Restriction must be explicit and preserved in provenance.
  Example: square x^2 restricted to x >= 0 maps [0,infinity) bijectively
    to [0,infinity), with inverse sqrt(y).

11. INVERSE VERSUS RECIPROCAL
  inverse function: f^(-1)(y), undoes f under composition.
  reciprocal function: 1/f(x), requires f(x) != 0.
  These are not generally equivalent.
  Example: f(x)=2x has inverse y/2, reciprocal 1/(2x).

12. INVERSE VERSUS PREIMAGE
  preimage_of_set(f,T) = {a in A | f(a) in T}, T subseteq B.
  Preimage of a set exists for every function, even non-bijective ones.
  Inverse function exists on the full codomain only for bijections.
  For bijective f: inverse(f)[T] = preimage_of_set(f,T).
  Distinguish notation f^(-1)(b) from f^(-1)[T] by type.

13. GRAPH SEMANTICS
  For f:A subseteq R -> B subseteq R, graph(f) = {(x,f(x))}.
  graph(inverse(f)) = {(y,x) | (x,y) in graph(f)}.
  The inverse graph reflects the original graph across y=x.
  Reflection alone may yield a relation rather than a function.

14. REAL FUNCTION CONDITIONS
  Strict monotonicity on an interval implies injectivity.
  A continuous strictly monotone real function on an interval
    is invertible onto its image.
  Continuous injective real functions on intervals are strictly monotone.
  For differentiable invertible f with f'(x) != 0:
    (inverse(f))'(f(x)) = 1/f'(x).
  Do not infer differentiability of the inverse at points where f'=0.

15. EXAMPLES
  f:R -> R, f(x)=x+3; inverse(y)=y-3.
  f:R -> R, f(x)=2x+1; inverse(y)=(y-1)/2.
  f:R -> R, f(x)=x^3; inverse(y)=cube_root(y).
  exp:R -> (0,infinity); inverse=ln:(0,infinity) -> R.
  f:R -> R, f(x)=x^2; not invertible as declared.
  f:[0,infinity) -> [0,infinity), f(x)=x^2; inverse=sqrt.
  sin restricted to [-pi/2,pi/2] -> [-1,1]; inverse=arcsin.

16. NON-EXAMPLES AND COUNTEREXAMPLES
  Constant function on a domain of more than one element is not injective.
  f:R -> R, f(x)=exp(x) is not surjective onto R.
  f:R -> R, f(x)=x^2 is neither injective nor surjective.
  f:Z -> Z, f(n)=2n is injective but not surjective.
  f:R -> R, f(x)=x^3-x is surjective but not injective.

17. FINITE-SET VALIDATION
  If A and B finite, verify cardinality(A)=cardinality(B).
  Ensure each a in A has exactly one mapped b in B.
  Ensure each b in B occurs exactly once as an output.
  Build inverse pairs by swapping coordinates.
  Verify both identity compositions.
  Equal cardinalities alone do not prove a particular f bijective.

18. SYMBOLIC INVERSION PROCEDURE
  input: typed function f:A -> B
  precondition: domain and codomain explicitly supplied
  step_1: test injectivity and surjectivity
  step_2: solve y=f(x) for x, subject to A and B
  step_3: verify unique x for every y in B
  step_4: construct g:B -> A
  step_5: verify g(f(x))=x for all x in A
  step_6: verify f(g(y))=y for all y in B
  output: inverse and proof certificate, or noninvertible/undetermined

19. TYPE SAFETY
  Reject inverse claims missing declared domain or codomain.
  Reject outputs outside codomain(g).
  Reject ambiguous multi-valued branches without restrictions.
  Distinguish partial inverse from full inverse.
  Distinguish symbolic equality from numerical approximation.
  Preserve exact constants and branch choices.

20. KNOWLEDGE GRAPH MODEL
  node: Function(f)
  node: Set(A)
  node: Set(B)
  edge: f --hasDomain--> A
  edge: f --hasCodomain--> B
  edge: f --hasProperty--> Bijective
  node: Function(g)
  edge: g --inverseOf--> f
  edge: g --hasDomain--> B
  edge: g --hasCodomain--> A
  edge: f --composedWith(g)--> Identity(B)
  edge: g --composedWith(f)--> Identity(A)

21. INFERENCE RULES
  R1: bijective(f) => exists_unique inverse(f).
  R2: inverse_of(g,f) => bijective(f) and bijective(g).
  R3: inverse_of(g,f) => inverse_of(f,g).
  R4: inverse_of(g,f) => g o f = id_domain(f).
  R5: inverse_of(g,f) => f o g = id_codomain(f).
  R6: bijective(f) and bijective(g) and composable(g,f)
      => inverse(g o f) = inverse(f) o inverse(g).
  R7: noninjective(f) => no inverse on the declared full domain.
  R8: nonsurjective(f) => no inverse onto the declared codomain.

22. SEMANTIC EQUIVALENCE
  aliases: inverse mapping; bijective inverse; inverse function
  one-to-one correspondence: related but not identical entity type
  inverse relation: related; is a function exactly when original is bijective
  reciprocal: not semantically equivalent
  preimage: not semantically equivalent
  alpha-renaming of bound variables preserves semantics.
  Equality of inverse mappings requires matching typed extensional graphs.

23. CONFIDENCE
  proved: 1.00 when formally checked against explicit axioms
  verified_example: 0.99 when exact bidirectional composition verified
  numerical_evidence: below proof confidence; never assert theorem solely from samples
  undetermined: record unknown rather than fabricate a proof
  Confidence concerns evidence quality, not mathematical truth degree.

24. VALIDATION TESTS
  T01: inverse of x+3 over R -> R is x-3: PASS.
  T02: inverse of 2x+1 over R -> R is (x-1)/2: PASS.
  T03: inverse of x^2 over R -> R: REJECT.
  T04: inverse of x^2 over [0,infinity) -> [0,infinity): sqrt: PASS.
  T05: inverse of exp:R -> (0,infinity): ln: PASS.
  T06: inverse of exp:R -> R: REJECT.
  T07: inverse of f:Z -> Z, n -> 2n: REJECT.
  T08: inverse of identity on A: identity on A: PASS.
  T09: inverse(inverse(f))=f for bijective f: PASS.
  T10: inverse(g o f)=inverse(f) o inverse(g) for bijections: PASS.

25. FLOW HASH
  canonicalise: Unicode NFC, stable key ordering, normalised whitespace
  hash_algorithm: SHA-256
  hash_input: version + canonical ontology definitions + axioms + rules
  FLOW_HASH: compute at ingestion; do not substitute a fabricated digest
  exclude: transient timestamps and transport metadata

26. UPDATE MODEL
  immutable_core: defining inverse axioms and typed semantics
  versioning: semantic versioning for ontology changes
  on_update: rerun type checks, proof checks, test suite, hash computation
  breaking_change: domain/codomain meaning, rule semantics, inference semantics
  provenance: preserve prior versions and change history

27. AI CONSUMPTION
  input: typed function specification and mathematical assumptions
  parse: construct abstract syntax tree and mapping signature
  classify: injective, surjective, bijective, unknown
  reason: apply verified rules and constraints
  derive: inverse function only if justified
  emit: typed inverse, proof obligations, provenance, confidence
  guardrail: never claim global invertibility from local or sampled evidence

28. TERMINATION
  required_sections: 01..28
  integrity_check: all definitions, inference rules and tests present
  status: COMPLETE
  END FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ