Chatty deep dive · Maths 1 Week 1
2263 words
11 min read
2026-08-16T00:00:00.000Z
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
Ultra-deep sets, number systems, relations, and functions spine from ChatGPT export. # Mathematics 1 — Week 1 ## Sets, Number Systems, Relations & Functions The goal isn't merely to remember definitions.

Mathematics 1 — Week 1
Sets, Number Systems, Relations & Functions
The goal isn't merely to remember definitions. By the end, you should be able to look at a question and think:
"Ah, this is that pattern."
0. The Week 1 Map
Think of the week as four layers:
And there is an important conceptual progression:
Numbers are objects → sets collect objects → relations connect objects → functions impose a special kind of connection.
That's the backbone.
1. Number Systems
Before sets, we need to know what kinds of numbers we're dealing with.
1.1 Natural numbers
Usually:
Some texts include 0:
So always pay attention to the convention being used.
1.2 Integers
Z={…,−3,−2,−1,0,1,2,3,…}Contains:
- negative integers
- zero
- positive integers
1.3 Rational numbers
A rational number can be written as:
where
Examples:
Notice that integers are also rational:
So:
1.4 Irrational numbers
Numbers that cannot be expressed as qp for integers p,q with q=0.
Examples:
Their decimal representations are non-terminating and non-repeating.
1.5 Real numbers
Real numbers contain both rational and irrational numbers:
The containment hierarchy is therefore:
This little diagram is very high-value.
Recognition pattern
If a question asks:
Which of these numbers belongs to Q?
ask:
Can I express it as qp?
If yes → rational.
2. Set Theory
Now we move from individual objects to collections of objects.
2.1 What is a set?
A set is a collection of distinct objects.
Example:
The objects are called elements or members.
We write:
meaning:
2 is an element of A.
And:
meaning:
7 is not an element of A.
3. Set Representation
There are two major forms you'll encounter.
3.1 Roster / listing form
Explicitly list elements:
3.2 Set-builder form
Describe a property:
Read it as:
The set of all natural numbers x such that x<5.
So:
Pattern
Set-builder → roster
Translate the condition into actual elements.
4. Empty Set
The set containing no elements is:
or:
Important distinction:
Why?
∅
Contains zero elements.
{∅}
Contains one element.
That one element happens to be the empty set.
This is a classic conceptual trap.
5. Cardinality
Cardinality means:
How many elements does the set contain?
Notation:
Example:
Then:
For the empty set:
But:
6. Subsets
This is one of the most important Week 1 concepts.
Suppose:
and:
Every element of B is also in A.
Therefore:
Read:
B is a subset of A.
6.1 Proper subset
If:
and
then B is a proper subset of A.
Often written:
depending on the notation convention.
6.2 Important pattern
To determine whether:
don't ask:
"Does B look smaller?"
Ask:
Is every element of B contained in A?
Example:
Yes:
But:
No, because:
Therefore:
7. Set Equality
Two sets are equal if they contain exactly the same elements.
Example:
Then:
because order doesn't matter in a set.
Likewise:
because duplicate elements don't create new set elements.
Contrast
A list:
text[1, 2, 3]
and
text[3, 2, 1]
may be different.
A set:
8. Power Set
The power set of A is the set containing all subsets of A.
Notation:
Suppose:
Its subsets are:
Therefore:
If:
then:
Why?
Each element has two possibilities:
included / not included.
For n elements:
This is one of those patterns that later connects directly to counting in Statistics.
9. Set Operations
Now the fun part.
Suppose:
9.1 Union
Union means:
A∪BEverything in A or B.
Therefore:
Mental model
OR10. Intersection
Intersection means:
A∩BThings common to both.
Therefore:
Mental model
ANDThis OR/AND interpretation is extremely useful.
11. Difference
A−Bmeans:
Elements in A that are not in B.
Therefore:
Notice:
Here:
So set difference is not commutative.
12. Complement
If the universal set is U, then the complement of A is everything in U that isn't in A.
Example:
Then:
Important
You cannot determine a complement without knowing the universe.
13. The Core Set Pattern
Given:
Then:
| Expression | Result | Interpretation |
|---|---|---|
| A∪B | {1,2,3,4,5,6} | OR |
| A∩B | {3,4} | AND |
| A−B | {1,2} | A but not B |
| B−A | {5,6} | B but not A |
This is a pattern, not four facts to memorize.
14. Set Identities
Some useful identities:
Commutativity
A∪B=B∪A A∩B=B∩ABut:
in general.
Associativity
(A∪B)∪C=A∪(B∪C) (A∩B)∩C=A∩(B∩C)Distributivity
A∩(B∪C)=(A∩B)∪(A∩C)and:
15. De Morgan's Laws
Very high-value.
and:
Mental translation:
NOT (A OR B) = NOT A AND NOT B
NOT (A AND B) = NOT A OR NOT B
This same logic appears later in:
- Statistics
- CT
- Python conditionals
So this isn't just a Maths 1 trick.
16. Relations
Now we move from collections to connections.
Suppose:
The Cartesian product is:
which contains ordered pairs:
In general:
if both sets are finite.
17. Why Ordered Pairs Matter
Notice:
because order matters.
This is different from sets:
So:
Set: order irrelevant
Ordered pair: order matters
That's a common exam trap.
18. Relation
A relation from A to B is essentially a subset of A×B.
Suppose:
Then R is a relation from A to B.
Think:
textA B 1 ───────────────→ a 2 ───────────────→ b 3 ───────────────→ a
A relation simply specifies which connections exist.
19. Function
Now comes the crucial restriction.
A function from A to B is a relation where:
Every input has exactly one output.
Notation:
Think:
textinput → exactly one output
20. Function Recognition Pattern
Suppose:
text1 → a 2 → b 3 → a
Valid function.
Why?
Each input has exactly one arrow leaving it.
It is perfectly okay for multiple inputs to have the same output.
But:
text1 → a 1 → b 2 → a
is not a function.
Why?
Input 1 has two outputs.
And:
text1 → a 2 → b 3
is not a function from the entire domain {1,2,3}, because 3 has no output.
Golden rule
Every input → exactly one output21. Domain, Codomain & Range
Suppose:
Then:
Domain
The set of allowed inputs:
Codomain
The set in which outputs are supposed to lie:
Range
The outputs that are actually produced.
These are not necessarily the same.
Example:
with:
Then:
but:
This distinction is very testable.
22. One-to-One / Injective
A function is one-to-one if:
Different inputs always produce different outputs.
Formally:
Example:
is injective.
But:
is not injective.
Mental model
No two inputs collide.
23. Onto / Surjective
A function is onto if:
Every element of the codomain is actually hit.
Suppose:
and:
Then every codomain element gets used.
So:
is onto.
24. Bijective
A function is bijective if it is both:
So:
no collisions + nothing left unused.
This is the strongest one-to-one correspondence between two sets.
25. The Function Taxonomy
Keep this mental picture:
textFUNCTIONS │ ┌─────────┴─────────┐ │ │ Injective? Surjective? │ │ └─────────┬─────────┘ │ Both = Bijective
And remember:
- Injective: no output collision.
- Surjective: no unused codomain element.
- Bijective: both.
26. Week 1 Pattern Bank — First Version
We're going to maintain this and expand it as we study.
| ID | Pattern | Difficulty |
|---|---|---|
| W1-N1 | Identify number-system membership | Easy |
| W1-S1 | Set membership | Easy |
| W1-S2 | Set-builder ↔ roster | Easy |
| W1-S3 | Cardinality | Easy |
| W1-S4 | Subset checking | Easy |
| W1-S5 | Power-set cardinality | Easy |
| W1-S6 | Union/intersection/difference | Easy |
| W1-S7 | Multi-operation set expression | Medium |
| W1-S8 | Complement | Easy |
| W1-S9 | Set identities | Medium |
| W1-S10 | De Morgan transformations | Medium |
| W1-R1 | Cartesian product | Easy |
| W1-R2 | Relation identification | Easy |
| W1-F1 | Function identification | Easy |
| W1-F2 | Domain/codomain/range | Easy |
| W1-F3 | Injective checking | Medium |
| W1-F4 | Surjective checking | Medium |
| W1-F5 | Bijective checking | Medium |
| W1-F6 | Mixed representation | Hard |
27. Now I want you to do something
Don't just read all that and go:
"yeah yeah makes sense"
That's the exact failure mode we're trying to avoid.
Let's do a diagnostic round before I give you the next layer.
No calculator. Don't search. Don't overthink.
Diagnostic — Week 1
Q1 — Number systems
Classify each as natural, integer, rational, irrational, real where applicable:
Q2 — Sets
Let:
Find:
Q3 — Subsets
Is:
Is:
Give the reason, not merely yes/no.
Q4 — Power set
If:
what is:
And why?
Q5 — Cartesian product
If:
and:
what is:
Q6 — Function recognition
Is this a function?
text1 → a 2 → b 3 → a
Why?
Q7 — Function recognition
Is this a function?
text1 → a 1 → b 2 → c
Why?
Q8 — Domain / codomain / range
Suppose:
with:
Give:
- Domain
- Codomain
- Range
- Is it injective?
- Is it surjective?
- Is it bijective?
Q9 — Slightly nastier
Let:
Find:
Do not calculate it mentally in one jump. Show the intermediate set.
Q10 — Pattern recognition
Suppose somebody gives you:
"A function has domain {1,2,3,4} and codomain {a,b,c}. Each element of the domain maps to exactly one element of the codomain, and every codomain element is used."
What property does the function definitely have?
And what cannot you conclude from this information alone?
Reply with your answers however you naturally would — messy is fine. I care more about your reasoning than formatting.
Then I'll diagnose each answer as:
and we'll use that to decide whether to push deeper into Week 1 or move to Week 2.