Skip to main content

Surjective 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
SURJECTIVE 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/surjective-function-ontology-2.html
Authors: Mark Higgins — Sky (Recursive AI)
Version: 1.0 | Date: 2026-10-13
Status: Formal mathematical synthesis; source page content not independently verified.

01. PURPOSE
flow "SurjectiveFunctionOntology" v1.0
  purpose: represent, validate, infer, and exchange properties of onto functions.
  semantics: classical set theory and typed total functions.

02. CORE ENTITIES
  Set: collection of mathematical objects.
  Function: total single-valued mapping f:A -> B.
  Domain: A.
  Codomain: B.
  Image: f[A] = {f(a) | a in A}.
  Preimage: f^{-1}[S] = {a in A | f(a) in S}, S subseteq B.
  Fibre: f^{-1}[{b}], b in B.
  SurjectiveFunction: function whose image equals its codomain.
  Witness: a domain element mapping to a specified codomain element.

03. TYPED SIGNATURE
  f : A -> B
  surjective(f) : Boolean
  fibre(f,b) : P(A), provided b in B
  image(f) : P(B)
  require: f is total on A and has exactly one output in B per input.

04. DEFINING AXIOM
  surjective(f) <=> forall b in B, exists a in A: f(a)=b.
  equivalent: image(f)=B.
  equivalent: forall b in B, fibre(f,b) != empty_set.
  no requirement that distinct inputs have distinct outputs.

05. EXAMPLES
  f:Z -> Z, f(n)=n+1 is surjective (and injective).
  g:R -> [0,infinity), g(x)=x^2 is surjective, not injective.
  h:R -> R, h(x)=x^2 is not surjective: negative reals lack preimages.
  p:{1,2,3} -> {a,b}, p(1)=a,p(2)=a,p(3)=b is surjective.

06. DOMAIN AND CODOMAIN DEPENDENCE
  A surjectivity claim must preserve the declared codomain.
  Changing codomain can change whether a function is surjective.
  Any f:A -> B is surjective onto image(f) after corestriction.
  Corestriction requires image(f) subseteq new codomain subseteq B.

07. FINITE SET CARDINALITY
  If A and B are finite and f:A -> B surjective, |A| >= |B|.
  If finite |A|=|B|, surjective(f) <=> injective(f).
  If A is empty and B is nonempty, no surjection A -> B exists.
  The unique empty function empty_set -> empty_set is surjective.
  If B is empty, a total function A -> B exists only if A is empty.

08. FIBRES AND PARTITIONS
  For surjective f:A -> B, fibres are nonempty, pairwise disjoint,
  and their union is A.
  For non-surjective f, nonempty fibres indexed by image(f) partition A.
  Kernel equivalence: x ~f y <=> f(x)=f(y).
  Quotient A/~f is canonically bijective to image(f).
  If f is surjective, quotient A/~f is bijective to B.

09. COMPOSITION
  For f:A -> B and g:B -> C, (g o f):A -> C.
  If f and g are surjective, g o f is surjective.
  If g o f is surjective, then g is surjective.
  If g o f is surjective, f need not be surjective.
  If f is surjective, g o f is surjective iff g is surjective.

10. INVERSES AND SECTIONS
  A surjective function need not have a two-sided inverse.
  A bijection has a unique two-sided inverse.
  A right inverse/section s:B -> A satisfies f o s = id_B.
  In ZFC (with Choice), every surjection has a right inverse.
  In ZF without Choice, the general assertion is not guaranteed.
  A section selects one witness from each fibre.

11. RELATION TO INJECTIVITY
  injective: distinct inputs yield distinct outputs.
  surjective: every codomain element is attained.
  bijective: injective AND surjective.
  Neither injectivity nor surjectivity implies the other generally.

12. IMAGE AND PREIMAGE LAWS
  f[f^{-1}[S]] = S intersect image(f), for S subseteq B.
  For surjective f: f[f^{-1}[S]] = S.
  f^{-1}[union_i S_i] = union_i f^{-1}[S_i].
  f^{-1}[intersection_i S_i] = intersection_i f^{-1}[S_i].
  f^{-1}[B\S] = A\f^{-1}[S].
  f^{-1}[empty_set] = empty_set; f^{-1}[B] = A.

13. EPI DISTINCTION
  In the category Set, epimorphisms are precisely surjections.
  In arbitrary categories, an epimorphism need not be surjective
  in an underlying-set sense; do not conflate the concepts.

14. PROOF METHODS
  Direct: choose arbitrary b in B and construct a in A with f(a)=b.
  Image: prove B subseteq image(f), since image(f) subseteq B.
  Contradiction: assume b in B lacks a preimage and derive falsehood.
  Finite enumeration: verify every codomain element appears as an output.
  Counterexample: exhibit b in B such that no a in A maps to b.

15. VALIDATION
  validate_function(f,A,B):
    check domain and codomain are well-defined sets.
    check f(a) exists and belongs to B for every a in A.
    check each a has exactly one image.
  validate_surjectivity(f,A,B):
    for every b in B verify existence of a in A with f(a)=b.
  for infinite sets: require a symbolic proof or certified theorem,
  not finite sampling alone.
  invalid if codomain omitted or silently replaced by image.

16. SEMANTIC RELATIONSHIPS
  SurjectiveFunction --is_a--> Function.
  SurjectiveFunction --has_domain--> Set.
  SurjectiveFunction --has_codomain--> Set.
  SurjectiveFunction --has_image_equal_to--> Codomain.
  SurjectiveFunction --has_nonempty_fibre_for_each--> CodomainElement.
  SurjectiveFunction --may_be--> InjectiveFunction.
  BijectiveFunction --is_a--> SurjectiveFunction.
  SurjectiveFunction --supports--> QuotientConstruction.

17. SEMANTIC EQUIVALENCE
  labels: surjective function; onto function; surjection.
  exact equivalence only under fixed domain, codomain and totality.
  distinguish: onto its image (true for any total function) from
  onto the declared codomain (surjectivity condition).

18. INFERENCE RULES
  R1: total(f,A,B) AND image(f)=B => surjective(f).
  R2: surjective(f) => forall b in B: fibre(f,b) nonempty.
  R3: surjective(f) AND surjective(g) AND composable(f,g)
      => surjective(g o f).
  R4: surjective(g o f) => surjective(g).
  R5: surjective(f) AND injective(f) => bijective(f).
  R6: finite(A,B) AND surjective(f) => cardinality(A)>=cardinality(B).
  R7: exists b in B with fibre(f,b)=empty_set => NOT surjective(f).
  R8: right_inverse(s,f) => surjective(f).
  Apply only after signature and premise validation.

19. KNOWLEDGE GRAPH MODEL
  node: Function(f), Set(A), Set(B), Image(I), Property(Surjective).
  edge: domain(f,A), codomain(f,B), image(f,I).
  edge: has_property(f,Surjective) iff I=B.
  provenance: record axiom, proof, derivation and source identifiers.
  retain codomain as first-class information.

20. CONFIDENCE
  theorem_proven: 1.00 under declared axioms and verified proof.
  verified_finite_enumeration: 1.00 when exhaustive and well-typed.
  numerical_sampling: insufficient for universal surjectivity proof.
  unknown: retain uncertainty; do not assert false or true.
  confidence reflects evidence status, not probabilistic theorem truth.

21. FLOW HASH
  canonicalize: UTF-8; normalise labels; sort unordered graph edges;
    preserve ordered function signatures and codomain identity.
  FLOW_HASH = SHA256(canonical_ontology_payload).
  hash_excludes: mutable timestamps and presentation-only metadata.
  hash_includes: version, definitions, rules, constraints, graph schema.

22. UPDATE MODEL
  update triggers: changed definition, theorem, proof, relation,
    typed signature, ontology linkage, or validation procedure.
  preserve previous versions and migration records.
  revalidate downstream inferences after any semantic change.
  avoid replacing mathematical facts with unverified approximations.

23. AI CONSUMPTION
  expose: entity types, typed signatures, axioms, rules, examples,
    counterexamples, validation results, provenance, version, FLOW_HASH.
  retrieval keys: surjective; onto; image; codomain; fibre; section.
  reasoning: check codomain before asserting onto; verify witnesses.
  answer generation: state assumptions and distinguish proven from sampled.
  interoperability: set theory, relation ontology, function ontology,
    injective function, bijective function, inverse function, mapping.

24. TEST CASES
  PASS: f:{1,2}->{a}, f(1)=a,f(2)=a is surjective.
  PASS: f:Z->Z, f(n)=n+1 is surjective.
  PASS: f:R->[0,infinity), f(x)=x^2 is surjective.
  FAIL: f:R->R, f(x)=x^2 is surjective.
  FAIL: f:{1}->{a,b}, f(1)=a is surjective.
  PASS: unique function empty_set->empty_set is surjective.
  FAIL: surjective implies injective for arbitrary infinite sets.

25. TERMINATION
  status: COMPLETE
  integrity: definitions, rules, validation, and examples closed.
  END FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ