Set Entities
Authors:
MArk Anthony Higgins - Sky Recursive Ai
MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: July 6th 2026
Revised Date: July 6th 2026
AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
TITLE: Set Entities — Ontology Flow Algebra
VERSION: 1.0
DATE: 2026-10-13
AUTHORS: Mark Anthony Higgins — Sky (Recursive AI)
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/set-entities.html
SCOPE: Main-page ontology; 15 linked categories.
STATUS: Formal specification based on verified page taxonomy and standard set theory.
AI INTERPRETATION NOTE
Interpret the following as typed declarative rules with explicit guards. Do not infer membership, cardinality, or equivalence without a valid witness or proof. Undefined expressions must not be evaluated.
01 | ENTITY MODEL
entity Set { id: IRI; elements: collection?; universe: Set?; cardinality: Cardinal?; provenance: Source? }
entity Element { id: IRI; value: Any; type: Type? }
entity SetFamily { id: IRI; members: SetCollection; index_set: Set? }
entity Relation { id: IRI; domain: Set; codomain: Set; pairs: SetOfOrderedPairs }
entity Partition { base: Set; blocks: SetFamily }
entity EquivalenceClass { relation: Relation; representative: Element; members: Set }
entity Proof { proposition: Proposition; status: proven|refuted|unknown; justification: Evidence }
02 | TYPE SYSTEM
SetOf(T) := collection of objects of type T with extensional equality.
ElementOf(x,A) : Boolean requires A:Set.
SubsetOf(A,B) : Boolean requires A:Set and B:Set.
Cardinality(A) : Cardinal requires A:Set.
Finite(A), Infinite(A), Countable(A), Uncountable(A) : predicates on Set.
Undefined cardinalities, unspecified universes and unresolved predicates remain UNKNOWN.
03 | SET ONTOLOGY
Set(A) -> forall x: (x in A) has a determinate truth value in a specified interpretation.
Extensionality: forall A,B [forall x (x in A <-> x in B) -> A=B].
Membership and subset are distinct: x in A does not imply x subseteq A.
No unrestricted comprehension: set construction must respect the chosen foundational theory.
04 | ELEMENT ONTOLOGY
Member(x,A) <-> x in A.
NotMember(x,A) <-> not (x in A).
Member(x,A) and A subseteq B -> Member(x,B).
Element identity is context-sensitive only where an explicit equivalence relation is supplied.
05 | EMPTY SET ONTOLOGY
Empty(A) <-> forall x not (x in A).
ExistsUnique(EmptySet) under extensionality.
EmptySet subseteq A for every set A.
Cardinality(EmptySet)=0.
06 | UNIVERSAL SET ONTOLOGY
Universal(U,D) <-> forall x in D, x in U; D is an explicitly specified domain.
Complement(A,U) := {x in U | x not in A} requires A subseteq U.
A universal set is relative to a domain; unrestricted universal set is not assumed in ZFC.
07 | FINITE SET ONTOLOGY
Finite(A) <-> exists n in NaturalNumbers and bijection A <-> {0,...,n-1}.
Finite(A) -> Cardinality(A)=n for unique n.
Finite(A) and B subseteq A -> Finite(B).
Finite(A) and Finite(B) -> Finite(A union B).
08 | INFINITE SET ONTOLOGY
Infinite(A) <-> not Finite(A).
Infinite(A) does not by itself specify countability.
In ZFC, Infinite(A) implies existence of an injection NaturalNumbers -> A.
Distinguish infinite cardinality from an unbounded numerical interval.
09 | COUNTABLE SET ONTOLOGY
Countable(A) <-> exists injection f:A -> NaturalNumbers.
CountablyInfinite(A) <-> exists bijection f:NaturalNumbers -> A.
Finite(A) -> Countable(A).
Countable(A) and B subseteq A -> Countable(B).
Countable union of countable sets is countable under the usual ZFC assumptions.
10 | UNCOUNTABLE SET ONTOLOGY
Uncountable(A) <-> not Countable(A).
Cantor: for every set A, no surjection A -> PowerSet(A).
Cardinality(RealNumbers) > Cardinality(NaturalNumbers).
Uncountable(A) -> Infinite(A).
11 | SUBSET ONTOLOGY
A subseteq B <-> forall x (x in A -> x in B).
Reflexive: A subseteq A.
Antisymmetric: A subseteq B and B subseteq A -> A=B.
Transitive: A subseteq B and B subseteq C -> A subseteq C.
12 | PROPER SUBSET ONTOLOGY
A proper_subset B <-> A subseteq B and A != B.
A proper_subset B -> exists x (x in B and x not in A).
Proper subset is irreflexive and transitive.
13 | POWER SET ONTOLOGY
PowerSet(A) := {B | B subseteq A}.
EmptySet in PowerSet(A); A in PowerSet(A).
If Finite(A) and Cardinality(A)=n then Cardinality(PowerSet(A))=2^n.
Cantor: Cardinality(A) < Cardinality(PowerSet(A)).
14 | CARTESIAN PRODUCT ONTOLOGY
CartesianProduct(A,B) := {(a,b) | a in A and b in B}.
OrderedPair(a,b)=OrderedPair(c,d) <-> a=c and b=d.
Finite(A),Finite(B) -> |A x B|=|A|*|B|.
A x EmptySet = EmptySet.
15 | SET PARTITION ONTOLOGY
Partition(P,A) iff:
every block B in P is nonempty;
every block B in P satisfies B subseteq A;
distinct blocks B,C in P have B intersection C=EmptySet;
union of all blocks in P equals A.
The empty family partitions the empty set under this convention.
16 | SET FAMILY ONTOLOGY
Family(F,I) := (A_i) indexed by i in I.
FamilyUnion(F) := {x | exists i in I, x in A_i}.
FamilyIntersection(F) := {x | forall i in I, x in A_i}.
Intersection over empty index set requires an explicit ambient universe.
17 | EQUIVALENCE CLASS ONTOLOGY
EquivalenceRelation(R,A) iff R is reflexive, symmetric and transitive on A.
ClassOf(x,R) := {y in A | R(x,y)}.
Quotient(A,R) := {ClassOf(x,R) | x in A}.
EquivalenceRelation(R,A) -> Quotient(A,R) partitions A.
18 | CORE SET OPERATIONS
Union(A,B) := {x | x in A or x in B}.
Intersection(A,B) := {x | x in A and x in B}.
Difference(A,B) := {x | x in A and x not in B}.
SymmetricDifference(A,B) := Union(Difference(A,B),Difference(B,A)).
Disjoint(A,B) <-> Intersection(A,B)=EmptySet.
DeMorgan: Complement(Union(A,B),U)=Intersection(Complement(A,U),Complement(B,U)).
DeMorgan: Complement(Intersection(A,B),U)=Union(Complement(A,U),Complement(B,U)).
19 | SEMANTIC RELATIONSHIPS
Set --hasElement--> Element
Set --subsetOf--> Set
Set --properSubsetOf--> Set
Set --hasCardinality--> Cardinal
Set --hasPowerSet--> Set
Set --cartesianProductWith--> Set
SetFamily --containsSet--> Set
Partition --partitions--> Set
EquivalenceClass --derivedFrom--> EquivalenceRelation
Set --definedWithin--> Universe
20 | SEMANTIC EQUIVALENCE
EquivalentSet(A,B) iff forall x (x in A <-> x in B).
Equipotent(A,B) iff exists bijection A -> B.
EquivalentSet(A,B) -> Equipotent(A,B); converse is not generally valid.
Canonicalisation may reorder set elements but must preserve element identity.
Do not collapse membership, subset, equality or equipotence into one relation.
21 | INFERENCE RULES
R01: Member(x,A) and SubsetOf(A,B) => Member(x,B).
R02: SubsetOf(A,B) and SubsetOf(B,A) => Equal(A,B).
R03: ProperSubsetOf(A,B) => SubsetOf(A,B) and NotEqual(A,B).
R04: Empty(A) => Cardinality(A)=0.
R05: Finite(A) and SubsetOf(B,A) => Finite(B).
R06: Uncountable(A) => Infinite(A).
R07: EquivalenceRelation(R,A) => Partition(Quotient(A,R),A).
R08: Member(x,Intersection(A,B)) => Member(x,A) and Member(x,B).
R09: Member(x,A) => Member(A,PowerSet(A)) is NOT valid in general.
R10: SubsetOf(A,B) => Member(A,PowerSet(B)).
22 | VALIDATION
check types before inference;
check existence and domain of every set and element;
check subset claims via universal membership proof or counterexample;
check partition block nonemptiness, pairwise disjointness and coverage;
check equivalence relations for all three axioms;
check cardinality results against explicit assumptions;
reject Russell-style unrestricted self-membership comprehension;
report TRUE, FALSE or UNKNOWN with proof evidence.
23 | CONFIDENCE AND PROVENANCE
CONFIDENCE: deductively proven=1.0; explicitly sourced but unverified=provisional; unresolved=unknown.
Proven mathematical conclusions require derivation, not statistical confidence alone.
PROVENANCE: record source URI, theorem/axiom, assumptions, rule identifier and proof status.
24 | FLOW HASH AND UPDATE MODEL
FLOW_HASH := SHA256(canonical UTF-8 representation of ontology version, rules, source URI and dependencies).
UPDATE_MODEL: versioned, append-only change history; revalidate dependent rules after changes.
On source updates, compare taxonomy, definitions, axioms and links; never silently overwrite proof status.
25 | AI CONSUMPTION
INPUT: typed entities, relations, assumptions, proof obligations, query.
PROCESS: parse -> typecheck -> resolve universe -> normalise -> apply sound inference -> validate -> trace provenance.
OUTPUT: typed conclusions, evidence, counterexamples when available, uncertainty state, version, FLOW_HASH.
SAFETY: do not treat examples as proofs; do not assume Choice without declaring foundational context.
END FLOW ALGEBRA