Binary Relation
Context: FIT1058_MOC Β· a subset of a Cartesian Product Β· generalises the function Β· classified by Properties of Binary Relations
Quick Revision
- π― Objective: a subset recording which elements are related β pairs, not single-valued.
- π¦ Core Components: domain/codomain β forward/backward lookup β inverse relation.
- β‘ Key Constraint: a function is the single-valued + total special case; the inverse relation always exists.
π Core
1. The Relation (Subset of a Product)
- Definition β , a set of ordered pairs recording βrelatedβ.
- On β the case ().
- Notation β .
2. Function as Special Case
- Functional constraint β for every , exactly one with .
- General relation β an element relates to zero, one, or many.
- Every function is a relation β not conversely.
3. Operations
- Active domain/image β first/second coordinates actually used.
- Lookups β ; .
- Inverse β swaps every pair β always exists.
Key identities:
βοΈ Core Decision Matrix
| Object | Constraint | Count () |
|---|---|---|
| relation | none | |
| function | single-valued + total | |
| inverse relation | swap pairs | always exists |
| inverse function | bijection required | conditional |
When It Flips: relations model orders (), graph edges, and database rows; they are sets of pairs, so , apply. The Function (Mathematics) is the single-valued, total specialisation.
π Exam Execution Trace
Manual Execution Trace
, (""):
| Step / State | Query | Result |
|---|---|---|
| 0 (Init) | β | β |
| 1 | ||
| 2 | ||
| 3 |
β οΈ Common Mistakes
- π‘ Inverse relation β inverse function β exists for any relation (swap pairs); itβs a function only if is a bijection.
π§ Active Recall
Define a binary relation, and the extra constraint that makes one a function.
- Hint: Subset + functional constraint.
Answer
- Short answer: A relation is any ; a function requires exactly one per (total + single-valued).
- Why: Every function is a relation β not conversely; general relations allow 0/1/many.
Why does the inverse relation always exist while an inverse function may not?
- Hint: Swap vs bijection.
Answer
- Short answer: swaps pairs β always valid; an inverse function needs bijective.
- Why: Single-valued/total β non-injective βΉ many preimages; non-surjective βΉ missing preimages.