Set (Mathematics)
Context: FIT1058_MOC Β· the simplest information structure Β· specified three ways Β· sized by its cardinality Β· the computational realisation is the Set (ADT)
Quick Revision
- π― Objective: an unordered, duplicate-free collection determined solely by membership β .
- π¦ Core Components: Roster β list | Condition β filter a superset | Construction rule β generate members.
- β‘ Key Constraint: cardinality drives all counting β , .
π Core
1. The Set (Membership Only)
- Definition β a collection of elements with no order, no repetition.
- Determined by β which objects belong β membership / non-membership .
- Foundational β defines types we compute with (integer type = membership of ).
2. Three Specifications
- Roster β , .
- By condition β β filter a larger set by a predicate.
- By construction β β generate members by a formula (colon = βsuch thatβ).
3. Cardinality & Assumptions
- Cardinality β = number of elements ().
- Elements may be sets β makes Power Set and Set Partition well-defined.
- Assumption β naive set theory; sets are primitive collections (no paradox axioms).
Key identities:
βοΈ Core Decision Matrix
| Specification | Form | Best when |
|---|---|---|
| Roster | small, explicit finite sets | |
| By condition | filtering an existing superset | |
| By construction | generating members by a rule | |
| Informal | illustration only β not a definition |
When It Flips: order and repetition carry no information () β this is exactly what separates a set from a tuple/sequence, where (the domain of the Cartesian Product). The computational counterpart is the Set (ADT) with
add/contains/remove.
π Exam Execution Trace
Manual Execution Trace
Testing membership of :
| Step / State | Candidate | Satisfies ? | ? |
|---|---|---|---|
| 0 (Init) | β | β | β |
| 1 | β | ||
| 2 | all satisfy | β | |
| 3 | false | β |
β οΈ Common Mistakes
- π‘ "" is an informal description, not a definition β it relies on guessing the pattern and never states the membership condition; use the condition/construction forms.
π§ Active Recall
Specify the even integers two formal ways, and explain why is not one.
- Hint: Predicate vs generator vs pattern-guessing.
Answer
- Short answer: By condition ; by construction .
- Why: No stated condition β the "" list only relies on inferring a pattern, so it never formally determines membership.
Why are , and the same set, and what structure distinguishes them?
- Hint: Membership alone matters.
Answer
- Short answer: All have members exactly ; order and multiplicity carry no information.
- Why: Use a tuple/multiset β if order matters, (Cartesian Product); if multiplicity matters, a multiset.
What is , and where does cardinality reappear in this unit?
- Hint: Size underlies counting.
Answer
- Short answer: .
- Why: Counting laws β (Power Set), (Binomial Coefficient), (Cartesian Product), (Set Complement and Difference).