Sets, Logic, and Functions
The working language of analysis: quantifiers and the proof patterns (contrapositive, contradiction, induction), sets and their operations, relations and equivalence classes, and functions with their images, injections, surjections, and bijections. Cardinality is measured by bijection, and Cantor's theorem that no set surjects onto its power set forces uncountable sets to exist.
╌╌╌╌
Analysis proves every claim from a small list of assumptions about the real numbers. Before
the numbers comes the language the proofs are written in: sets, the logical connectives that
combine statements about them, and functions that move between them. A sloppy grip on for all
versus there exists,
or on what it means for two sets to have the same size, produces
proofs that look right and are wrong.
Statements, quantifiers, and proof grammar
A statement is a sentence that is either true or false. Analysis strings statements together with the connectives and, or, not, and implies, and quantifies them over sets. Two quantifiers appear in nearly every definition:
- Universal, written :
asserts holds for every in .
- Existential, written :
asserts holds for at least one in .
Order matters. The statement lets depend on ; the statement demands a single that works for all at once. The gap between these two — a that may vary with versus one serving every at once — is the same gap between pointwise and uniform properties that runs through the whole subject (continuity versus uniform continuity, pointwise versus uniform convergence), so read quantifier order carefully from the start.
Negation flips quantifiers and passes to the inside:
To disprove every has property ,
exhibit one without it; that single is a
counterexample. The negation of an implication is : a
case where the hypothesis holds but the conclusion fails.
Three proof patterns
Most proofs in these notes are one of three shapes.
- Direct proof. To show , assume and derive by valid steps.
- Contrapositive. The implication is logically identical to
. Proving the contrapositive proves the original. This is often
easier: to show
if then have the same sign,
assume they have opposite signs and derive . - Contradiction. To show , assume and derive an impossibility. The proof that is not rational — assume in lowest terms, deduce that and are both even — is the archetype; it appears in full in the proof that exists in .
Sets and their operations
A set is an unordered collection of distinct objects, its elements. We write for membership and for its negation. Sets are equal, , when they have exactly the same elements, which in practice is proved by showing and — every element of each lies in the other. The set with no elements is the empty set . The standard number systems are
with . The three binary operations on sets are union, intersection, and difference.1
Unions and intersections extend to arbitrary families. Given a set for each in an index set ,
The two operations trade places under complement, De Morgan's laws, stated here in their general form:1
The proof is the model for every equality of sets
argument: take an in the left side,
show it lies in the right; then reverse. Take . Then and
, so is in neither nor . Hence and
, that is . The reverse
inclusion runs the same steps backward. Switching the order of unions and intersections
across an infinite family generally requires proof.
Induction and well-ordering
Statements indexed by a natural number are proved by induction, which rests on a single order property of we take as an axiom.
From well-ordering the induction principle follows.
Let be the set of for which fails, and suppose . By well-ordering has a least element . The basis gives , so , and because is least — hence holds. The induction step then forces , contradicting . So is empty.1
For example, for all . The basis reads . Assuming , multiply by and use :
which is . A convenient variant, strong induction, assumes for all in the induction step; it is equivalent to the ordinary form.
Functions
Informally a function assigns to each a single . To make this precise we first form ordered pairs.
The set is the domain, the codomain, and the range is . The range can be a proper subset of the codomain. A function is best pictured as a table of assignments rather than a formula: many functions have no formula at all, and a single function can be written by several different formulas.
Inverse images are the better-behaved of the two: they commute with all three set operations,
Direct images do not: in general , and the inclusion can be strict. This asymmetry is why the topological definition of continuity, developed in continuous functions, is phrased with inverse images of open sets rather than direct images.
Injective, surjective, bijective
When is a bijection, the inverse image of each single element is one point, so is itself a function , the inverse function. For example on is a bijection with .
Composition chains functions: for and , the composition is . Compositions of injections are injective and of surjections are surjective, so compositions of bijections are bijections.
Relations and equivalence classes
A binary relation on is any subset ; we write for . The comparisons , , and are all relations. Three properties single out the relations that behave like equality.
An equivalence relation partitions : the equivalence class of is , and every element lies in exactly one class, with . This construction builds number systems. The rationals are equivalence classes of pairs under , and the class of is written , so and denote the same rational.
Cardinality
Counting a finite set is pairing its elements with . A bijection is the right generalization of that pairing to any size.
Having the same cardinality is an equivalence relation: the identity gives reflexivity, the inverse of a bijection gives symmetry, and composition gives transitivity. A set is finite if for some (or ), and infinite otherwise. The Cantor–Bernstein–Schröder theorem, which we use but do not prove, says and together give — cardinalities can be compared like numbers.1
Infinite sets split into two grades.
Countably infinite means listable
: a bijection is precisely an
enumeration that hits every element once. Several sets that look too
large to list are in fact countable.
- Even numbers. is a bijection from onto the even naturals, so a proper subset has the same cardinality as the whole. This cannot happen for finite sets, and in fact characterizes infinite ones.
- Pairs. is countable. List the pairs by anti-diagonals: first the pair summing to , then those summing to , and so on, giving
- Rationals. is countable. Apply the same zig-zag to the positive fractions , skip any already listed in lower terms, then interleave and the negatives.
The anti-diagonal order is an explicit bijection, not just a picture.
Countability is preserved downward: a subset of a countable set is countable, and (taking the contrapositive) any set containing an uncountable set is uncountable. Not every infinite set is countable, however.
Cantor's theorem
The power set is the set of all subsets of . For a finite set of size it has size , strictly larger than . Cantor's theorem extends the strict inequality to infinite sets, and its proof is the diagonal argument that recurs throughout analysis and logic.1
The name diagonal
is clearest when . A subset of is the same
data as an infinite binary string — its indicator, with a in position when is in
the subset. A claimed enumeration of all such strings is an infinite table; the set is
obtained by flipping each diagonal entry, producing a string that disagrees with row in
column , hence a subset on no row of the table.
In particular is uncountable, so uncountable sets exist. Iterating, is a strictly increasing tower of infinities. The set has the same cardinality as , so it too is uncountable — a fact we prove directly, twice, once by nested intervals and once by a decimal diagonal, in intervals and uncountability.
| Set | Cardinality | Countable? |
|---|---|---|
| finite | ||
| , , | countably infinite | |
| countably infinite | ||
| , | uncountable |
Quantifier order carries the most weight: the supremum, the limit, continuity, and integrability are each a fixed arrangement of and , and reading that arrangement correctly is most of understanding them.
Footnotes
- Lebl, Basic Analysis I, §0.3 — Basic set theory: set operations and De Morgan's laws, the well-ordering property and the principle of induction, functions with their images and inverse images, injections/surjections/bijections, cardinality and countability, and Cantor's theorem on the power set with the diagonal argument. ↩ ↩2 ↩3 ↩4 ↩5
╌╌ END ╌╌