Skip to main content

Countable Set Ontology

Set Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 13 October 2026
Audio Overview
FLOW ALGEBRA
COUNTABLE SET ONTOLOGY
Kireth Semantic Library | Entity Graph | Mathematical Entities | Set Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/set-entities/countable-set-ontology.html
Authors: Mark Higgins — Sky (Recursive AI)
Status: Mathematical specification based on established set theory; source webpage not independently verified.
Version: 1.0 | Date: 2026-10-13

01. PURPOSE
flow "CountableSetOntology" v1.0
  domain: mathematical_entities.set_entities
  entity: CountableSet
  goal: represent countability, enumerations, injections, bijections, and sound cardinality inferences

02. CORE TYPES
  Set[A]             := collection with extensional membership
  Natural            := {0,1,2,...}
  FiniteSet[A]       := Set[A] with finite cardinality
  CountablyInfinite  := Set[A] bijective with Natural
  Countable          := finite OR countably infinite
  Uncountable        := not Countable
  Enumeration[A]     := bijection Natural -> A for nonempty countably infinite A
  Injection[A,B]     := function A -> B with distinct inputs having distinct outputs
  Bijection[A,B]     := injective and surjective function A -> B

03. DEFINITIONS
  countable(A) <=> exists injection f: A -> Natural
  countably_infinite(A) <=> exists bijection f: Natural -> A
  finite(A) <=> exists n in Natural and bijection A -> {0,...,n-1}
  uncountable(A) <=> NOT countable(A)
  empty_set: finite and countable
  countable(A) does NOT imply infinite(A)

04. ENTITY SCHEMA
  CountableSet:
    id: URI
    label: string
    elements_domain: Type
    cardinality_class: finite | countably_infinite | unknown
    membership_predicate: optional predicate
    enumeration_witness: optional certified mapping
    injection_witness: optional certified mapping
    proof_reference: optional URI
    axiomatic_context: optional string
    verification_status: proven | assumed | unknown | refuted

05. RELATIONSHIPS
  is_a(CountableSet, Set)
  has_cardinality_class(Set, CardinalityClass)
  has_enumeration(Set, Enumeration)
  injects_into(Set, Natural)
  bijective_with(Set, Natural)
  is_subset_of(Set, Set)
  is_image_of(Set, Function)
  is_union_of(Set, FamilyOfSets)
  has_proof(Set, Proof)

06. CANONICAL EXAMPLES
  countable(empty_set) = true
  countable(Natural) = true
  countably_infinite(Integer) = true
  countably_infinite(Rational) = true
  countable(any finite set) = true
  uncountable(Real) = true
  uncountable((0,1)) = true
  countable(set of finite strings over a finite alphabet) = true
  countable(set of all finite binary strings) = true

07. ENUMERATION RULES
  enumerate(Natural): 0,1,2,3,...
  enumerate(Integer): 0,1,-1,2,-2,3,-3,...
  enumerate(Rational): traverse integer numerator and positive denominator pairs,
    remove duplicates and reduce to canonical fractions
  enumeration_witness must cover every element and avoid repetitions for bijection
  a surjective sequence Natural -> A establishes countability for nonempty A
  for finite A, a finite list suffices; do not demand bijection Natural -> A

08. SUBSET RULES
  IF countable(A) AND B subset_of A THEN countable(B)
  IF B subset_of A AND uncountable(B) THEN uncountable(A)
  IF finite(A) THEN countable(A)
  IF countably_infinite(A) AND B subset_of A THEN B may be finite OR countably_infinite

09. UNION RULES
  IF countable(A) AND countable(B) THEN countable(A union B)
  IF finite_family(F) AND all countable(F_i) THEN countable(union(F))
  IF countable_family(F) AND all countable(F_i) THEN countable(union(F))
    assumptions: standard set theory with sufficient countable choice, or supplied enumerations
  IF some uncountable member of F THEN uncountable(union(F))

10. PRODUCT RULES
  IF countable(A) AND countable(B) THEN countable(A x B)
  IF countably_infinite(A) AND countably_infinite(B) THEN countably_infinite(A x B)
  IF A empty OR B empty THEN A x B = empty
  IF finite nonempty A AND countably_infinite B THEN countably_infinite(A x B)
  finite products of countable sets are countable

11. IMAGE RULES
  IF countable(A) AND f: A -> B THEN countable(image(f))
  IF countable(A) AND f surjective onto B THEN countable(B)
  IF uncountable(A) AND f injective THEN uncountable(image(f))
  uncountable domain with non-injective map may have countable image

12. INFINITE COUNTABILITY TEST
  IF injection(A, Natural) AND infinite(A) THEN countably_infinite(A)
  IF bijection(A, Natural) THEN countably_infinite(A)
  IF surjection(Natural, A) AND nonempty(A) THEN countable(A)
  IF injection(Natural, A) alone THEN infinite(A), NOT necessarily countable(A)

13. UNCOUNTABILITY TEST
  diagonal_argument(Real_interval) => uncountable(Real_interval)
  Cantor_theorem: cardinality(P(A)) > cardinality(A)
  IF countably_infinite(A) THEN uncountable(P(A))
  IF uncountable(B) AND B subset_of A THEN uncountable(A)

14. ORDINAL AND CARDINAL SEMANTICS
  cardinality(countably_infinite_set) = aleph_0
  cardinality(finite_set) = n for some n in Natural
  countable(A) <=> |A| <= aleph_0
  distinguish order_type from cardinality
  different well-orders may share cardinality aleph_0

15. SEMANTIC EQUIVALENCE
  equivalent(countable(A), injection(A,Natural))
  equivalent(countably_infinite(A), bijection(A,Natural))
  equivalent(countably_infinite(A), infinite(A) AND countable(A))
  non_equivalent(countable(A), countably_infinite(A))
  non_equivalent(enumerable_by_finite_list, countably_infinite)
  canonicalise aliases: denumerable -> countably_infinite
  term "enumerable" requires context: may mean computably enumerable in computability theory

16. COMPUTABILITY DISTINCTION
  mathematically_countable != computably_enumerable
  a countable set need not have an effective enumeration in its given representation
  recursive_enumerability requires an algorithmic procedure
  store computability_status separately from cardinality_class

17. INFERENCE ENGINE
  infer_countable(A):
    accept finite proof OR injection into Natural OR surjection from Natural
    OR certified subset of countable set OR justified closure rule
  infer_countably_infinite(A):
    require countability proof AND infinitude proof, or explicit bijection
  infer_uncountable(A):
    require contradiction of countability, diagonal proof, or injection from known uncountable set
  unknown is not false; do not infer uncountable from absence of witness

18. VALIDATION
  validate_function_witness: check domain, codomain, totality, injectivity/surjectivity claims
  validate_enumeration: ensure completeness proof, not just first sample values
  validate_subset: require membership implication
  validate_axioms: record choice principles where relevant
  reject: "all infinite sets are countable"
  reject: "a proper subset must have smaller cardinality"
  reject: "every injection Natural -> A proves A countable"

19. CONFIDENCE
  confidence.proven: formally checked proof or standard theorem with valid premises
  confidence.supported: reliable mathematical derivation with documented assumptions
  confidence.unverified: proposed witness not yet validated
  confidence.refuted: counterexample or invalid inference demonstrated
  do not use numeric confidence as substitute for mathematical proof

20. FLOW HASH
  canonical_payload: ontology_id + version + definitions + axioms + rules + proof_refs
  flow_hash: SHA256(UTF8(canonical_payload))
  hash_generation: compute during deployment; never fabricate hash

21. UPDATE MODEL
  on_definition_change: increment version and invalidate dependent inferences
  on_new_proof: add provenance, revalidate impacted claims
  on_axiom_change: re-evaluate choice-sensitive statements
  on_witness_change: re-check function properties and cardinality conclusions

22. AI CONSUMPTION
  export:
    entity_type: CountableSet
    mathematical_domain: SetTheory
    definitions: typed predicates
    relationships: graph edges
    reasoning_rules: premise -> conclusion
    proof_obligations: witness and axiom checks
    provenance: source URL and proof references
    confidence: evidence status
    flow_hash: computed externally
  preserve distinction among finite, countably infinite, and uncountable
  preserve distinction between existence proofs and executable enumerators

23. TEST CASES
  assert countable({})
  assert countable({1,2,3})
  assert countably_infinite(Natural)
  assert countably_infinite(Integer)
  assert countably_infinite(Rational)
  assert uncountable(Real)
  assert countable(Natural x Natural)
  assert uncountable(P(Natural))
  assert NOT countably_infinite({1,2,3})

24. PROVENANCE AND CREDIT
  canonical_page: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/set-entities/countable-set-ontology.html
  attribution: Mark Higgins — Sky (Recursive AI)
  project: Kireth Research Semantic Library
  website: https://kirethresearch.org
  source_verification: not independently verified
  end_flow
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ