DarthDemono's Notes for ELTE

Solutions Theorems with Proofs

78 min read

Solutions — Theorems with Proofs (Part 2)

Full statements and proofs for every item in the theorem list. Where the exam lets you choose ("any two", "any one"), proofs for all the reasonable options are given so you can pick whichever you're asked for or were taught to prefer. Recall the scoring: theorem/statement = 1 mark, proof = 3 marks (split as 0.5/0.5 and 1.5/1.5 when two statements are asked).

⚠️ Sourcing note: Sections 6–9 (composition of relations and functions) are not covered by any file in your project — only "Examples" decks for relations exist there, not the main lecture deck with the actual theorem statements/proofs (the list cites "slide 13" and "slide 29" of a deck that isn't among your uploads). The proofs below for those four items use standard definitions consistent with your confirmed course conventions (the SS-then-RR composition order, R⊆X×YR\subseteq X\times Y notation), but please check them against your actual lecture slides if you get the chance, in case your course phrases the definition of "function" or uses different variable names.


1. Properties of logical operators (slide 8)

Proposition. For every proposition p,q,rp,q,r, the following are tautologies (always true).

All ten properties are proved below by truth table — for any two propositions/connectives, two sides of a biconditional are logically equivalent exactly when they have the same truth value in every row.

Idempotence

p∨p⇔pp∧p⇔pp\lor p \Leftrightarrow p \qquad p\land p \Leftrightarrow p
pp p∨pp\lor p p∧pp\land p
T T T
F F F

Both columns equal pp in every row, so both equivalences are tautologies. ■\blacksquare

Commutativity

p∨q⇔q∨pp∧q⇔q∧pp\lor q \Leftrightarrow q\lor p \qquad p\land q \Leftrightarrow q\land p
pp qq p∨qp\lor q q∨pq\lor p p∧qp\land q q∧pq\land p
T T T T T T
T F T T F F
F T T T F F
F F F F F F

The p∨qp\lor q and q∨pq\lor p columns agree row-by-row, and likewise for p∧qp\land q and q∧pq\land p. ■\blacksquare

Absorption laws

(p∨q)∧p⇔p(p∧q)∨p⇔p(p\lor q)\land p \Leftrightarrow p \qquad (p\land q)\lor p \Leftrightarrow p
pp qq p∨qp\lor q (p∨q)∧p(p\lor q)\land p p∧qp\land q (p∧q)∨p(p\land q)\lor p
T T T T T T
T F T T F T
F T T F F F
F F F F F F

Both derived columns match the pp-column in every row. ■\blacksquare

Associativity

p∨(q∨r)⇔(p∨q)∨rp∧(q∧r)⇔(p∧q)∧rp\lor(q\lor r) \Leftrightarrow (p\lor q)\lor r \qquad p\land(q\land r) \Leftrightarrow (p\land q)\land r
pp qq rr q∨rq\lor r p∨(q∨r)p\lor(q\lor r) p∨qp\lor q (p∨q)∨r(p\lor q)\lor r q∧rq\land r p∧(q∧r)p\land(q\land r) p∧qp\land q (p∧q)∧r(p\land q)\land r
T T T T T T T T T T T
T T F T T T T F F T F
T F T T T T T F F F F
T F F F T T T F F F F
F T T T T T T T F F F
F T F T T T T F F F F
F F T T T F T F F F F
F F F F F F F F F F F

In every row, p∨(q∨r)p\lor(q\lor r) matches (p∨q)∨r(p\lor q)\lor r, and p∧(q∧r)p\land(q\land r) matches (p∧q)∧r(p\land q)\land r. ■\blacksquare

De Morgan's laws

¬(p∨q)⇔¬p∧¬q¬(p∧q)⇔¬p∨¬q\neg(p\lor q) \Leftrightarrow \neg p\land\neg q \qquad \neg(p\land q) \Leftrightarrow \neg p\lor\neg q
pp qq p∨qp\lor q ¬(p∨q)\neg(p\lor q) ¬p∧¬q\neg p\land\neg q p∧qp\land q ¬(p∧q)\neg(p\land q) ¬p∨¬q\neg p\lor\neg q
T T T F F T F F
T F T F F F T T
F T T F F F T T
F F F T T F T T

¬(p∨q)\neg(p\lor q) matches ¬p∧¬q\neg p\land\neg q, and ¬(p∧q)\neg(p\land q) matches ¬p∨¬q\neg p\lor\neg q, in every row. ■\blacksquare

Distributivity

p∧(q∨r)⇔(p∧q)∨(p∧r)p\land(q\lor r) \Leftrightarrow (p\land q)\lor(p\land r)
pp qq rr q∨rq\lor r p∧(q∨r)p\land(q\lor r) p∧qp\land q p∧rp\land r (p∧q)∨(p∧r)(p\land q)\lor(p\land r)
T T T T T T T T
T T F T T T F T
T F T T T F T T
T F F F F F F F
F T T T F F F F
F T F T F F F F
F F T T F F F F
F F F F F F F F
p∨(q∧r)⇔(p∨q)∧(p∨r)p\lor(q\land r) \Leftrightarrow (p\lor q)\land(p\lor r)
pp qq rr q∧rq\land r p∨(q∧r)p\lor(q\land r) p∨qp\lor q p∨rp\lor r (p∨q)∧(p∨r)(p\lor q)\land(p\lor r)
T T T T T T T T
T T F F T T T T
T F T F T T T T
T F F F T T T T
F T T T T T T T
F T F F F T F F
F F T F F F T F
F F F F F F F F

Both columns match in every row, in each table. ■\blacksquare

Inference rules

Law of contrapositive: (p⇒q)⇔(¬q⇒¬p)(p\Rightarrow q) \Leftrightarrow (\neg q\Rightarrow\neg p)

pp qq p⇒qp\Rightarrow q ¬q\neg q ¬p\neg p ¬q⇒¬p\neg q\Rightarrow\neg p
T T T F F T
T F F T F F
F T T F T T
F F T T T T

The two implication columns agree in every row. ■\blacksquare

Modus ponens: ((p⇒q)∧p)⇒q((p\Rightarrow q)\land p)\Rightarrow q

pp qq p⇒qp\Rightarrow q (p⇒q)∧p(p\Rightarrow q)\land p ((p⇒q)∧p)⇒q((p\Rightarrow q)\land p)\Rightarrow q
T T T T T
T F F F T
F T T F T
F F T F T

The final column is T in every row, so the formula is a tautology. ■\blacksquare

Syllogism: ((p⇒q)∧(q⇒r))⇒(p⇒r)((p\Rightarrow q)\land(q\Rightarrow r))\Rightarrow(p\Rightarrow r)

pp qq rr p⇒qp\Rightarrow q q⇒rq\Rightarrow r (p⇒q)∧(q⇒r)(p\Rightarrow q)\land(q\Rightarrow r) p⇒rp\Rightarrow r full formula
T T T T T T T T
T T F T F F F T
T F T F T F T T
T F F F T F F T
F T T T T T T T
F T F T F F T T
F F T T T T T T
F F F T T T T T

The final column is T throughout. ■\blacksquare

Property 10: ((p⇒q)∧(q⇒p))⇔(p⇔q)((p\Rightarrow q)\land(q\Rightarrow p)) \Leftrightarrow (p\Leftrightarrow q)

pp qq p⇒qp\Rightarrow q q⇒pq\Rightarrow p (p⇒q)∧(q⇒p)(p\Rightarrow q)\land(q\Rightarrow p) p⇔qp\Leftrightarrow q
T T T T T T
T F F T F F
F T T F F F
F F T T T T

The two right columns agree in every row. ■\blacksquare


2. Properties of the subset relation (slide 6)

Proposition. For every set A,B,CA,B,C:

Transitivity: (A⊆B∧B⊆C)⇒A⊆C(A\subseteq B \land B\subseteq C) \Rightarrow A\subseteq C.

Proof. Assume A⊆BA\subseteq B and B⊆CB\subseteq C. By definition of ⊆\subseteq, ∀x(x∈A⇒x∈B)\forall x(x\in A\Rightarrow x\in B) and ∀x(x∈B⇒x∈C)\forall x(x\in B\Rightarrow x\in C). Fix any xx with x∈Ax\in A. Then x∈Bx\in B (first assumption), and so x∈Cx\in C (second assumption). Hence ∀x(x∈A⇒x∈C)\forall x(x\in A\Rightarrow x\in C), i.e. A⊆CA\subseteq C. ■\blacksquare

Antisymmetry: (A⊆B∧B⊆A)⇒A=B(A\subseteq B \land B\subseteq A) \Rightarrow A=B.

Proof. Assume A⊆BA\subseteq B and B⊆AB\subseteq A. By definition of ⊆\subseteq: ∀x(x∈A⇒x∈B)\forall x(x\in A\Rightarrow x\in B) and ∀x(x∈B⇒x∈A)\forall x(x\in B\Rightarrow x\in A). Combining these, ∀x(x∈A⇔x∈B)\forall x(x\in A\Leftrightarrow x\in B). By the definition of set equality (two sets are equal iff they have exactly the same elements), this means A=BA=B. ■\blacksquare

(The remaining two properties on this slide — ∅⊆A\varnothing\subseteq A and A⊆AA\subseteq A — are not listed as askable proof questions, but are quick to note: ∅⊆A\varnothing\subseteq A holds vacuously since there is no x∈∅x\in\varnothing, so the implication x∈∅⇒x∈Ax\in\varnothing\Rightarrow x\in A is true for every xx; A⊆AA\subseteq A holds since x∈A⇒x∈Ax\in A\Rightarrow x\in A is trivially true.)


3. Properties of set union and set intersection (slide 12)

Proposition. For every set A,B,CA,B,C:

Properties of union

1. Idempotence: A∪A=AA\cup A = A. Proof. x∈A∪A⇔(1)x∈A∨x∈A⇔(2)x∈Ax\in A\cup A \overset{(1)}{\Leftrightarrow} x\in A\lor x\in A \overset{(2)}{\Leftrightarrow} x\in A. (1) definition of ∪\cup; (2) idempotence of ∨\lor. ■\blacksquare

2. Associativity: A∪(B∪C)=(A∪B)∪CA\cup(B\cup C) = (A\cup B)\cup C. Proof. x∈A∪(B∪C)⇔(1)x∈A∨x∈B∪C⇔(1)x∈A∨(x∈B∨x∈C)⇔(2)(x∈A∨x∈B)∨x∈C⇔(1)x∈A∪B∨x∈C⇔(1)x∈(A∪B)∪Cx\in A\cup(B\cup C) \overset{(1)}{\Leftrightarrow} x\in A \lor x\in B\cup C \overset{(1)}{\Leftrightarrow} x\in A\lor(x\in B\lor x\in C) \overset{(2)}{\Leftrightarrow} (x\in A\lor x\in B)\lor x\in C \overset{(1)}{\Leftrightarrow} x\in A\cup B \lor x\in C \overset{(1)}{\Leftrightarrow} x\in(A\cup B)\cup C. (1) definition of ∪\cup; (2) associativity of ∨\lor. ■\blacksquare

3. Commutativity: A∪B=B∪AA\cup B = B\cup A. Proof. x∈A∪B⇔(1)x∈A∨x∈B⇔(2)x∈B∨x∈A⇔(1)x∈B∪Ax\in A\cup B \overset{(1)}{\Leftrightarrow} x\in A\lor x\in B \overset{(2)}{\Leftrightarrow} x\in B\lor x\in A \overset{(1)}{\Leftrightarrow} x\in B\cup A. (1) definition of ∪\cup; (2) commutativity of ∨\lor. ■\blacksquare

4. Property of ∅\varnothing: A∪∅=AA\cup\varnothing = A. Proof. x∈A∪∅⇔(1)x∈A∨x∈∅⇔(2)x∈A∨F⇔(3)x∈Ax\in A\cup\varnothing \overset{(1)}{\Leftrightarrow} x\in A\lor x\in\varnothing \overset{(2)}{\Leftrightarrow} x\in A \lor \text{F} \overset{(3)}{\Leftrightarrow} x\in A. (1) definition of ∪\cup; (2) definition of ∅\varnothing (no element belongs to it); (3) p∨F⇔pp\lor\text{F}\Leftrightarrow p. ■\blacksquare

5. A⊆B⇔A∪B=BA\subseteq B \Leftrightarrow A\cup B = B. Proof. (⇒\Rightarrow) Suppose A⊆BA\subseteq B. We always have B⊆A∪BB\subseteq A\cup B (every element of BB is in A∪BA\cup B, by definition of ∪\cup). Conversely, if x∈A∪Bx\in A\cup B then x∈Ax\in A or x∈Bx\in B; in the first case x∈Bx\in B too, since A⊆BA\subseteq B; in the second case x∈Bx\in B trivially. So A∪B⊆BA\cup B\subseteq B. By antisymmetry of ⊆\subseteq (Section 2), A∪B=BA\cup B=B. (⇐\Leftarrow) Suppose A∪B=BA\cup B=B. For any x∈Ax\in A, we have x∈A∪Bx\in A\cup B (by definition of ∪\cup), hence x∈Bx\in B (since A∪B=BA\cup B=B). So A⊆BA\subseteq B. ■\blacksquare

Properties of intersection

1. Idempotence: A∩A=AA\cap A = A. Proof. x∈A∩A⇔(1)x∈A∧x∈A⇔(2)x∈Ax\in A\cap A \overset{(1)}{\Leftrightarrow} x\in A\land x\in A \overset{(2)}{\Leftrightarrow} x\in A. (1) definition of ∩\cap; (2) idempotence of ∧\land. ■\blacksquare

2. Associativity: A∩(B∩C)=(A∩B)∩CA\cap(B\cap C) = (A\cap B)\cap C. Proof. Analogous to union, using associativity of ∧\land in place of ∨\lor: x∈A∩(B∩C)⇔(1)x∈A∧(x∈B∧x∈C)⇔(2)(x∈A∧x∈B)∧x∈C⇔(1)x∈(A∩B)∩Cx\in A\cap(B\cap C) \overset{(1)}{\Leftrightarrow} x\in A\land(x\in B\land x\in C) \overset{(2)}{\Leftrightarrow} (x\in A\land x\in B)\land x\in C \overset{(1)}{\Leftrightarrow} x\in(A\cap B)\cap C. ■\blacksquare

3. Commutativity: A∩B=B∩AA\cap B = B\cap A. Proof. x∈A∩B⇔(1)x∈A∧x∈B⇔(2)x∈B∧x∈A⇔(1)x∈B∩Ax\in A\cap B \overset{(1)}{\Leftrightarrow} x\in A\land x\in B \overset{(2)}{\Leftrightarrow} x\in B\land x\in A \overset{(1)}{\Leftrightarrow} x\in B\cap A. (1) definition of ∩\cap; (2) commutativity of ∧\land. ■\blacksquare

4. Property of ∅\varnothing: A∩∅=∅A\cap\varnothing = \varnothing. Proof. x∈A∩∅⇔(1)x∈A∧x∈∅⇔(2)x∈A∧F⇔(3)F⇔(2)x∈∅x\in A\cap\varnothing \overset{(1)}{\Leftrightarrow} x\in A\land x\in\varnothing \overset{(2)}{\Leftrightarrow} x\in A\land\text{F} \overset{(3)}{\Leftrightarrow}\text{F} \overset{(2)}{\Leftrightarrow} x\in\varnothing. (1) definition of ∩\cap; (2) definition of ∅\varnothing; (3) p∧F⇔Fp\land\text{F}\Leftrightarrow\text{F}. ■\blacksquare

5. A⊆B⇔A∩B=AA\subseteq B \Leftrightarrow A\cap B = A. Proof. (⇒\Rightarrow) Suppose A⊆BA\subseteq B. We always have A∩B⊆AA\cap B\subseteq A. Conversely, if x∈Ax\in A then, since A⊆BA\subseteq B, also x∈Bx\in B; hence x∈A∩Bx\in A\cap B. So A⊆A∩BA\subseteq A\cap B. By antisymmetry of ⊆\subseteq, A∩B=AA\cap B = A. (⇐\Leftarrow) Suppose A∩B=AA\cap B=A. For any x∈Ax\in A, since A=A∩BA=A\cap B we get x∈A∩Bx\in A\cap B, hence x∈Bx\in B. So A⊆BA\subseteq B. ■\blacksquare


4. Distributivity of set union and set intersection (slide 14)

Proposition. For every set A,B,CA,B,C:

A∩(B∪C)=(A∩B)∪(A∩C)A∪(B∩C)=(A∪B)∩(A∪C)A\cap(B\cup C) = (A\cap B)\cup(A\cap C) \qquad A\cup(B\cap C) = (A\cup B)\cap(A\cup C)

Proof of A∩(B∪C)=(A∩B)∪(A∩C)A\cap(B\cup C) = (A\cap B)\cup(A\cap C).

x∈A∩(B∪C)⇔(1)x∈A∧x∈B∪C⇔(2)x∈A∧(x∈B∨x∈C)⇔(3)(x∈A∧x∈B)∨(x∈A∧x∈C)⇔(1)x∈A∩B∨x∈A∩C⇔(2)x∈(A∩B)∪(A∩C)x\in A\cap(B\cup C) \overset{(1)}{\Leftrightarrow} x\in A\land x\in B\cup C \overset{(2)}{\Leftrightarrow} x\in A\land(x\in B\lor x\in C) \overset{(3)}{\Leftrightarrow} (x\in A\land x\in B)\lor(x\in A\land x\in C) \overset{(1)}{\Leftrightarrow} x\in A\cap B \lor x\in A\cap C \overset{(2)}{\Leftrightarrow} x\in(A\cap B)\cup(A\cap C)
  1. (1) definition of ∩\cap; (2) definition of ∪\cup; (3) distributivity of ∧\land over ∨\lor. ■\blacksquare

Proof of A∪(B∩C)=(A∪B)∩(A∪C)A\cup(B\cap C) = (A\cup B)\cap(A\cup C).

x∈A∪(B∩C)⇔(1)x∈A∨x∈B∩C⇔(2)x∈A∨(x∈B∧x∈C)⇔(3)(x∈A∨x∈B)∧(x∈A∨x∈C)⇔(1)x∈A∪B∧x∈A∪C⇔(2)x∈(A∪B)∩(A∪C)x\in A\cup(B\cap C) \overset{(1)}{\Leftrightarrow} x\in A\lor x\in B\cap C \overset{(2)}{\Leftrightarrow} x\in A\lor(x\in B\land x\in C) \overset{(3)}{\Leftrightarrow} (x\in A\lor x\in B)\land(x\in A\lor x\in C) \overset{(1)}{\Leftrightarrow} x\in A\cup B \land x\in A\cup C \overset{(2)}{\Leftrightarrow} x\in(A\cup B)\cap(A\cup C)
  1. (1) definition of ∪\cup; (2) definition of ∩\cap; (3) distributivity of ∨\lor over ∧\land. ■\blacksquare

5. Properties of set complement (slide 17)

Proposition. Let UU be the universal set. For every A,B⊆UA,B\subseteq U:

1. A‾‾=A\overline{\overline{A}} = A. Proof. x∈A‾‾⇔(1)¬(x∈A‾)⇔(1)¬¬(x∈A)⇔x∈Ax\in\overline{\overline{A}} \overset{(1)}{\Leftrightarrow} \neg(x\in\overline{A}) \overset{(1)}{\Leftrightarrow} \neg\neg(x\in A) \Leftrightarrow x\in A. (1) definition of complement; the last step is double-negation elimination. ■\blacksquare

2. ∅‾=U\overline{\varnothing} = U. Proof. x∈∅‾⇔(1)¬(x∈∅)⇔(2)x∈Ux\in\overline{\varnothing} \overset{(1)}{\Leftrightarrow} \neg(x\in\varnothing) \overset{(2)}{\Leftrightarrow} x\in U. (1) definition of complement; (2) by definition of ∅\varnothing and UU (nothing is in ∅\varnothing, everything relevant is in UU). ■\blacksquare

3. U‾=∅\overline{U} = \varnothing. Proof. x∈U‾⇔(1)¬(x∈U)⇔(2)x∈∅x\in\overline{U} \overset{(1)}{\Leftrightarrow} \neg(x\in U) \overset{(2)}{\Leftrightarrow} x\in\varnothing. (1) definition of complement; (2) by definition of ∅\varnothing and UU. ■\blacksquare

4. A∩A‾=∅A\cap\overline{A} = \varnothing. Proof. x∈A∩A‾⇔(1)x∈A∧x∈A‾⇔(2)x∈A∧¬(x∈A)⇔(3)x∈∅x\in A\cap\overline{A} \overset{(1)}{\Leftrightarrow} x\in A\land x\in\overline{A} \overset{(2)}{\Leftrightarrow} x\in A\land\neg(x\in A) \overset{(3)}{\Leftrightarrow} x\in\varnothing. (1) definition of ∩\cap; (2) definition of complement; (3) by definition of ∧\land and ∅\varnothing (a statement and its negation are never both true). ■\blacksquare

5. A∪A‾=UA\cup\overline{A} = U. Proof. x∈A∪A‾⇔(1)x∈A∨x∈A‾⇔(2)x∈A∨¬(x∈A)⇔(3)x∈Ux\in A\cup\overline{A} \overset{(1)}{\Leftrightarrow} x\in A\lor x\in\overline{A} \overset{(2)}{\Leftrightarrow} x\in A\lor\neg(x\in A) \overset{(3)}{\Leftrightarrow} x\in U. (1) definition of ∪\cup; (2) definition of complement; (3) by definition of ∨\lor and UU (a statement or its negation is always true). ■\blacksquare

6. A⊆B⇔B‾⊆A‾A\subseteq B \Leftrightarrow \overline{B}\subseteq\overline{A}. Proof.

A⊆B⇔(1)∀x(x∈A⇒x∈B)⇔(2)∀x(¬(x∈B)⇒¬(x∈A))⇔(3)∀x(x∈B‾⇒x∈A‾)⇔(1)B‾⊆A‾A\subseteq B \overset{(1)}{\Leftrightarrow} \forall x(x\in A\Rightarrow x\in B) \overset{(2)}{\Leftrightarrow} \forall x(\neg(x\in B)\Rightarrow\neg(x\in A)) \overset{(3)}{\Leftrightarrow} \forall x(x\in\overline{B}\Rightarrow x\in\overline{A}) \overset{(1)}{\Leftrightarrow} \overline{B}\subseteq\overline{A}
  1. (1) definition of ⊆\subseteq; (2) law of contrapositive; (3) definition of complement. ■\blacksquare

7. A∩B‾=A‾∪B‾\overline{A\cap B} = \overline{A}\cup\overline{B} (De Morgan's law for ∩\cap). Proof. x∈A∩B‾⇔(1)¬(x∈A∩B)⇔(2)¬(x∈A∧x∈B)⇔(3)¬(x∈A)∨¬(x∈B)⇔(1)x∈A‾∨x∈B‾⇔(4)x∈A‾∪B‾x\in\overline{A\cap B} \overset{(1)}{\Leftrightarrow} \neg(x\in A\cap B) \overset{(2)}{\Leftrightarrow} \neg(x\in A \land x\in B) \overset{(3)}{\Leftrightarrow} \neg(x\in A)\lor\neg(x\in B) \overset{(1)}{\Leftrightarrow} x\in\overline{A}\lor x\in\overline{B} \overset{(4)}{\Leftrightarrow} x\in\overline{A}\cup\overline{B}. (1) definition of complement; (2) definition of ∩\cap; (3) De Morgan's law for the logical operators ∧,∨\land,\lor; (4) definition of ∪\cup. ■\blacksquare

8. A∪B‾=A‾∩B‾\overline{A\cup B} = \overline{A}\cap\overline{B} (De Morgan's law for ∪\cup). Proof. x∈A∪B‾⇔(1)¬(x∈A∪B)⇔(2)¬(x∈A∨x∈B)⇔(3)¬(x∈A)∧¬(x∈B)⇔(1)x∈A‾∧x∈B‾⇔(4)x∈A‾∩B‾x\in\overline{A\cup B} \overset{(1)}{\Leftrightarrow} \neg(x\in A\cup B) \overset{(2)}{\Leftrightarrow} \neg(x\in A \lor x\in B) \overset{(3)}{\Leftrightarrow} \neg(x\in A)\land\neg(x\in B) \overset{(1)}{\Leftrightarrow} x\in\overline{A}\land x\in\overline{B} \overset{(4)}{\Leftrightarrow} x\in\overline{A}\cap\overline{B}. (1) definition of complement; (2) definition of ∪\cup; (3) De Morgan's law for the logical operators ∨,∧\lor,\land; (4) definition of ∩\cap. ■\blacksquare

(Properties 7 and 8 are the De Morgan's laws for sets.)


6. Associativity of composition of binary relations (slide 13) ⚠️ not in project files — see note above

Proposition. For all relations R⊆X×YR\subseteq X\times Y, S⊆Y×ZS\subseteq Y\times Z, T⊆Z×WT\subseteq Z\times W, the composition of binary relations is associative:

T∘(S∘R)=(T∘S)∘R.T\circ(S\circ R) = (T\circ S)\circ R.

Here, recall composition is defined so that (x,z)∈S∘R  ⟺  ∃y:(x,y)∈R∧(y,z)∈S(x,z)\in S\circ R \iff \exists y: (x,y)\in R \land (y,z)\in S — i.e. RR is applied first, then SS (your course's confirmed convention).

Proof. For any x∈Xx\in X and w∈Ww\in W:

(x,w)∈T∘(S∘R)⇔(1)∃z:(x,z)∈S∘R ∧ (z,w)∈T⇔(1)∃z:(∃y:(x,y)∈R∧(y,z)∈S)∧(z,w)∈T⇔(2)∃y ∃z:(x,y)∈R∧(y,z)∈S∧(z,w)∈T⇔(2)∃y:(x,y)∈R∧(∃z:(y,z)∈S∧(z,w)∈T)⇔(1)∃y:(x,y)∈R∧(y,w)∈T∘S⇔(1)(x,w)∈(T∘S)∘R \begin{aligned} (x,w)\in T\circ(S\circ R) &\overset{(1)}{\Leftrightarrow} \exists z: (x,z)\in S\circ R \ \land\ (z,w)\in T \\ &\overset{(1)}{\Leftrightarrow} \exists z: \big(\exists y: (x,y)\in R \land (y,z)\in S\big) \land (z,w)\in T \\ &\overset{(2)}{\Leftrightarrow} \exists y\,\exists z: (x,y)\in R \land (y,z)\in S \land (z,w)\in T \\ &\overset{(2)}{\Leftrightarrow} \exists y: (x,y)\in R \land \big(\exists z: (y,z)\in S \land (z,w)\in T\big) \\ &\overset{(1)}{\Leftrightarrow} \exists y: (x,y)\in R \land (y,w)\in T\circ S \\ &\overset{(1)}{\Leftrightarrow} (x,w)\in (T\circ S)\circ R \end{aligned}
  1. (1) definition of composition (applied to the inner and outer compositions); (2) reordering and regrouping of the existential quantifiers and conjunctions, which is always logically valid. Since (x,w)(x,w) was arbitrary, T∘(S∘R)=(T∘S)∘RT\circ(S\circ R) = (T\circ S)\circ R. ■\blacksquare

7. Inverse of the composition of binary relations (slide 13) ⚠️ not in project files — see note above

Proposition. For all relations R⊆X×YR\subseteq X\times Y and S⊆Y×ZS\subseteq Y\times Z:

(S∘R)−1=R−1∘S−1.(S\circ R)^{-1} = R^{-1}\circ S^{-1}.

Proof. For any z∈Zz\in Z and x∈Xx\in X:

(z,x)∈R−1∘S−1⇔(1)∃y:(z,y)∈S−1∧(y,x)∈R−1⇔(2)∃y:(y,z)∈S∧(x,y)∈R⇔∃y:(x,y)∈R∧(y,z)∈S⇔(1)(x,z)∈S∘R⇔(2)(z,x)∈(S∘R)−1 \begin{aligned} (z,x)\in R^{-1}\circ S^{-1} &\overset{(1)}{\Leftrightarrow} \exists y: (z,y)\in S^{-1} \land (y,x)\in R^{-1} \\ &\overset{(2)}{\Leftrightarrow} \exists y: (y,z)\in S \land (x,y)\in R \\ &\Leftrightarrow \exists y: (x,y)\in R \land (y,z)\in S \\ &\overset{(1)}{\Leftrightarrow} (x,z)\in S\circ R \\ &\overset{(2)}{\Leftrightarrow} (z,x)\in (S\circ R)^{-1} \end{aligned}
  1. (1) definition of composition; (2) definition of inverse relation (swap coordinates). Since (z,x)(z,x) was arbitrary, (S∘R)−1=R−1∘S−1(S\circ R)^{-1} = R^{-1}\circ S^{-1}. ■\blacksquare

8. Composition of functions is a function (slide 29) ⚠️ not in project files — see note above

Definition (function). A relation f⊆X×Yf\subseteq X\times Y is a function from XX to YY if ∀x∈X ∃! y∈Y:(x,y)∈f\forall x\in X\,\exists!\, y\in Y: (x,y)\in f (every x∈Xx\in X has exactly one image under ff).

Theorem. Let f:X→Yf:X\to Y and g:Y→Zg:Y\to Z be functions. Then the composition g∘fg\circ f (apply ff first, then gg) is a function from XX to ZZ.

Proof. Let x∈Xx\in X be arbitrary; we must show there is exactly one z∈Zz\in Z with (x,z)∈g∘f(x,z)\in g\circ f.

Existence. Since ff is a function and x∈Xx\in X, there exists a (unique) y∈Yy\in Y with (x,y)∈f(x,y)\in f. Since gg is a function and y∈Yy\in Y, there exists a (unique) z∈Zz\in Z with (y,z)∈g(y,z)\in g. By definition of composition, (x,z)∈g∘f(x,z)\in g\circ f.

Uniqueness. Suppose (x,z1)∈g∘f(x,z_1)\in g\circ f and (x,z2)∈g∘f(x,z_2)\in g\circ f. By definition of composition, there exist y1,y2∈Yy_1,y_2\in Y with (x,y1)∈f,(y1,z1)∈g(x,y_1)\in f, (y_1,z_1)\in g and (x,y2)∈f,(y2,z2)∈g(x,y_2)\in f, (y_2,z_2)\in g. Since ff is a function, (x,y1)∈f(x,y_1)\in f and (x,y2)∈f(x,y_2)\in f force y1=y2y_1=y_2 (call this common value yy). Then (y,z1)∈g(y,z_1)\in g and (y,z2)∈g(y,z_2)\in g; since gg is a function, z1=z2z_1=z_2.

So every x∈Xx\in X has exactly one image under g∘fg\circ f, i.e. g∘fg\circ f is a function from XX to ZZ. ■\blacksquare


9. Composition of injective functions is injective (slide 29) ⚠️ not in project files — see note above

Definition (injective). A function f:X→Yf:X\to Y is injective if ∀x1,x2∈X:f(x1)=f(x2)⇒x1=x2\forall x_1,x_2\in X: f(x_1)=f(x_2) \Rightarrow x_1=x_2.

Theorem. Let f:X→Yf:X\to Y and g:Y→Zg:Y\to Z be injective functions. Then g∘f:X→Zg\circ f: X\to Z is injective.

Proof. Let x1,x2∈Xx_1,x_2\in X with (g∘f)(x1)=(g∘f)(x2)(g\circ f)(x_1) = (g\circ f)(x_2), i.e. g(f(x1))=g(f(x2))g(f(x_1)) = g(f(x_2)). Since gg is injective, this forces f(x1)=f(x2)f(x_1) = f(x_2). Since ff is injective, this in turn forces x1=x2x_1 = x_2. Hence g∘fg\circ f is injective. ■\blacksquare


10. Properties of conjugation and absolute value (slide 14)

Let z=a+biz=a+bi, w=c+diw=c+di with a,b,c,d∈Ra,b,c,d\in\mathbb{R} be complex numbers. All ten properties below (excluding the triangle inequality, which is not required) can be proved directly from the algebraic form; any two of the conjugation properties or any two of the absolute-value properties may be asked.

Conjugation properties

1. z‾‾=z\overline{\overline{z}} = z. Proof. z‾=a−bi\overline{z} = a-bi, so z‾‾=a−bi‾=a+bi=z\overline{\overline{z}} = \overline{a-bi} = a+bi = z. ■\blacksquare

2. z+w‾=z‾+w‾\overline{z+w} = \overline{z}+\overline{w}. Proof. z+w=(a+c)+(b+d)iz+w = (a+c)+(b+d)i, so z+w‾=(a+c)−(b+d)i=(a−bi)+(c−di)=z‾+w‾\overline{z+w} = (a+c)-(b+d)i = (a-bi)+(c-di) = \overline{z}+\overline{w}. ■\blacksquare

3. zw‾=z‾⋅w‾\overline{zw} = \overline{z}\cdot\overline{w}. Proof. zw=(ac−bd)+(ad+bc)izw = (ac-bd)+(ad+bc)i, so zw‾=(ac−bd)−(ad+bc)i\overline{zw} = (ac-bd)-(ad+bc)i. On the other hand, z‾⋅w‾=(a−bi)(c−di)=ac−adi−bci+bdi2=(ac−bd)−(ad+bc)i\overline{z}\cdot\overline{w} = (a-bi)(c-di) = ac - adi - bci + bdi^2 = (ac-bd) - (ad+bc)i. The two sides agree. ■\blacksquare

4. z+z‾=2Re⁡(z)z+\overline{z} = 2\operatorname{Re}(z). Proof. z+z‾=(a+bi)+(a−bi)=2a=2Re⁡(z)z+\overline{z} = (a+bi)+(a-bi) = 2a = 2\operatorname{Re}(z). ■\blacksquare

5. z−z‾=2Im⁡(z)⋅iz-\overline{z} = 2\operatorname{Im}(z)\cdot i. Proof. z−z‾=(a+bi)−(a−bi)=2bi=2Im⁡(z)⋅iz-\overline{z} = (a+bi)-(a-bi) = 2bi = 2\operatorname{Im}(z)\cdot i. ■\blacksquare

6. z⋅z‾=∣z∣2z\cdot\overline{z} = |z|^2. Proof. z⋅z‾=(a+bi)(a−bi)=a2+b2=∣z∣2z\cdot\overline{z} = (a+bi)(a-bi) = a^2+b^2 = |z|^2. ■\blacksquare

7. If z≠0z\neq 0 then z−1=z‾∣z∣2z^{-1} = \dfrac{\overline{z}}{|z|^2}. Proof. By property 6, z⋅z‾=∣z∣2z\cdot\overline{z}=|z|^2. Since z≠0z\neq 0, also ∣z∣2≠0|z|^2\neq 0, so we may divide both sides by ∣z∣2|z|^2: z⋅z‾∣z∣2=1z\cdot\dfrac{\overline{z}}{|z|^2}=1. This shows z‾∣z∣2\dfrac{\overline{z}}{|z|^2} is the multiplicative inverse of zz. ■\blacksquare

8. ∣0∣=0|0|=0, and if z≠0z\neq 0 then ∣z∣>0|z|>0. Proof. ∣0∣=02+02=0|0|=\sqrt{0^2+0^2}=0. If z≠0z\neq0 then a≠0a\neq0 or b≠0b\neq0, so a2+b2>0a^2+b^2>0, hence ∣z∣=a2+b2>0|z|=\sqrt{a^2+b^2}>0. ■\blacksquare

9. ∣z‾∣=∣z∣|\overline{z}| = |z|. Proof. ∣z‾∣=∣a−bi∣=a2+(−b)2=a2+b2=∣z∣|\overline{z}| = |a-bi| = \sqrt{a^2+(-b)^2} = \sqrt{a^2+b^2} = |z|. ■\blacksquare

10. ∣zw∣=∣z∣⋅∣w∣|zw| = |z|\cdot|w|. Proof. Using property 6 repeatedly: ∣zw∣2=(zw)(zw)‾=prop. 3zw z‾ w‾=(zz‾)(ww‾)=prop. 6∣z∣2∣w∣2=(∣z∣∣w∣)2|zw|^2 = (zw)\overline{(zw)} \overset{\text{prop. 3}}{=} zw\,\overline{z}\,\overline{w} = (z\overline{z})(w\overline{w}) \overset{\text{prop. 6}}{=} |z|^2|w|^2 = (|z||w|)^2. Since absolute values are non-negative, taking square roots gives ∣zw∣=∣z∣∣w∣|zw|=|z||w|. ■\blacksquare


11. Multiplication in polar form (slide 19)

Theorem. Let z,w∈Cz,w\in\mathbb{C} be nonzero complex numbers given in polar form, z=∣z∣(cos⁡φ+isin⁡φ)z=|z|(\cos\varphi+i\sin\varphi) and w=∣w∣(cos⁡ψ+isin⁡ψ)w=|w|(\cos\psi+i\sin\psi), where ∣z∣,∣w∣|z|,|w| are their absolute values and φ,ψ\varphi,\psi are arguments. Then the product zwzw in polar form is

zw=∣z∣∣w∣(cos⁡(φ+ψ)+isin⁡(φ+ψ)),zw = |z||w|\big(\cos(\varphi+\psi) + i\sin(\varphi+\psi)\big),

i.e. multiplying two complex numbers multiplies their absolute values and adds their arguments.

Proof.

zw=∣z∣(cos⁡φ+isin⁡φ)⋅∣w∣(cos⁡ψ+isin⁡ψ)=(1)∣z∣∣w∣ (cos⁡φ+isin⁡φ)(cos⁡ψ+isin⁡ψ)=(2)∣z∣∣w∣ (cos⁡φcos⁡ψ−sin⁡φsin⁡ψ+i(cos⁡φsin⁡ψ+sin⁡φcos⁡ψ))=(3)∣z∣∣w∣(cos⁡(φ+ψ)+isin⁡(φ+ψ)) \begin{aligned} zw &= |z|(\cos\varphi+i\sin\varphi)\cdot|w|(\cos\psi+i\sin\psi)\\ &\overset{(1)}{=} |z||w|\,(\cos\varphi+i\sin\varphi)(\cos\psi+i\sin\psi)\\ &\overset{(2)}{=} |z||w|\,\big(\cos\varphi\cos\psi - \sin\varphi\sin\psi + i(\cos\varphi\sin\psi+\sin\varphi\cos\psi)\big)\\ &\overset{(3)}{=} |z||w|\big(\cos(\varphi+\psi) + i\sin(\varphi+\psi)\big) \end{aligned}
  1. (1) commutativity of multiplication; (2) expanding the product using i2=−1i^2=-1; (3) the trigonometric addition formulas cos⁡(φ+ψ)=cos⁡φcos⁡ψ−sin⁡φsin⁡ψ\cos(\varphi+\psi)=\cos\varphi\cos\psi-\sin\varphi\sin\psi and sin⁡(φ+ψ)=cos⁡φsin⁡ψ+sin⁡φcos⁡ψ\sin(\varphi+\psi)=\cos\varphi\sin\psi+\sin\varphi\cos\psi. ■\blacksquare

12. nthn^{\text{th}} roots of a complex number (slide 21)

Theorem. Let z=∣z∣(cos⁡φ+isin⁡φ)z=|z|(\cos\varphi+i\sin\varphi) be a nonzero complex number and n∈N+n\in\mathbb{N}^+. The nthn^{\text{th}} roots of zz — i.e. the complex numbers ww with wn=zw^n=z — are

wk=∣z∣n(cos⁡ ⁣(φn+2kπn)+isin⁡ ⁣(φn+2kπn)),k=0,1,…,n−1.w_k = \sqrt[n]{|z|}\left(\cos\!\left(\frac{\varphi}{n}+\frac{2k\pi}{n}\right) + i\sin\!\left(\frac{\varphi}{n}+\frac{2k\pi}{n}\right)\right), \qquad k=0,1,\ldots,n-1.

Proof. We use the fact (from De Moivre's formula) that for any w=∣w∣(cos⁡ψ+isin⁡ψ)w=|w|(\cos\psi+i\sin\psi), wn=∣w∣n(cos⁡nψ+isin⁡nψ)w^n = |w|^n(\cos n\psi+i\sin n\psi). We also use the fact that two complex numbers in polar form are equal exactly when their absolute values agree and their arguments differ by an integer multiple of 2π2\pi:

∣z∣(cos⁡φ+isin⁡φ)=∣w∣(cos⁡ψ+isin⁡ψ)  ⟺  ∣z∣=∣w∣ and φ=ψ+2kπ for some k∈Z.|z|(\cos\varphi+i\sin\varphi) = |w|(\cos\psi+i\sin\psi) \iff |z|=|w| \ \text{and}\ \varphi=\psi+2k\pi \text{ for some } k\in\mathbb{Z}.

Now, wn=zw^n=z is equivalent to ∣w∣n(cos⁡nψ+isin⁡nψ)=∣z∣(cos⁡φ+isin⁡φ)|w|^n(\cos n\psi+i\sin n\psi) = |z|(\cos\varphi+i\sin\varphi), which by the fact above holds if and only if:

∣w∣n=∣z∣  ⟺  ∣w∣=∣z∣n,andnψ=φ+2kπ for some k∈Z  ⟺  ψ=φn+2kπn for some k∈Z.|w|^n = |z| \iff |w| = \sqrt[n]{|z|}, \qquad\text{and}\qquad n\psi = \varphi+2k\pi \text{ for some } k\in\mathbb{Z} \iff \psi = \frac{\varphi}{n}+\frac{2k\pi}{n} \text{ for some } k\in\mathbb{Z}.

As kk ranges over all integers, ψ=φn+2kπn\psi=\frac{\varphi}{n}+\frac{2k\pi}{n} takes exactly nn distinct values modulo 2π2\pi, obtained by letting k=0,1,…,n−1k=0,1,\ldots,n-1 (further integer values of kk just repeat these arguments, shifted by a multiple of 2π2\pi). Hence zz has exactly nn distinct nthn^{\text{th}} roots, given by wkw_k for k=0,1,…,n−1k=0,1,\ldots,n-1 as stated. ■\blacksquare


13. Permutations without repetition (slide 7)

Theorem. Let n∈Nn\in\mathbb{N}. The number of permutations of an nn-element set (the number of ways to order all nn of its elements in a sequence) is Pn=n!P_n = n!.

Proof (combinatorial argument). The first element of the sequence can be chosen in nn different ways. After this, the second element can be chosen in n−1n-1 different ways (one element has already been used), the third in n−2n-2 ways, and so on, until the last element, which can be chosen in exactly 11 way. By the multiplication principle, the total number of orderings is n⋅(n−1)⋅…⋅2⋅1=n!n\cdot(n-1)\cdot\ldots\cdot 2\cdot 1 = n!. ■\blacksquare

Proof (by induction on nn, more formal). Let ∣A∣=n|A|=n. Base step: n=0n=0. There is exactly 11 way to order 00 elements (the empty sequence), so P0=1=0!P_0=1=0!. Inductive step: Suppose n>0n>0 and Pn−1=(n−1)!P_{n-1}=(n-1)! (inductive hypothesis). The first element of the sequence can be chosen in nn ways; by the inductive hypothesis, the remaining n−1n-1 elements can then be ordered in (n−1)!(n-1)! ways. By the multiplication principle, the nn elements can be ordered in n⋅(n−1)!=n!n\cdot(n-1)! = n! ways, so Pn=n!P_n=n!. ■\blacksquare


14. Permutations with repetition (slide 11)

Definition. Let a1,a2,…,ama_1,a_2,\ldots,a_m be mm distinct objects and k1,k2,…,km∈Nk_1,k_2,\ldots,k_m\in\mathbb{N}. A sequence of length n=k1+k2+…+kmn=k_1+k_2+\ldots+k_m containing each aia_i exactly kik_i times is a permutation with repetition of a1,…,ama_1,\ldots,a_m with repetition numbers k1,…,kmk_1,\ldots,k_m.

Theorem. The number of permutations with repetition of mm distinct objects with repetition numbers k1,k2,…,kmk_1,k_2,\ldots,k_m is

n!k1!⋅k2!⋅…⋅km!,where n=k1+k2+…+km.\frac{n!}{k_1!\cdot k_2!\cdot\ldots\cdot k_m!}, \qquad \text{where } n=k_1+k_2+\ldots+k_m.

Proof. If all n=k1+…+kmn=k_1+\ldots+k_m elements were treated as distinguishable (e.g. by labelling repeated copies), there would be n!n! possible orderings. However, we do not wish to distinguish between identical copies of the same object: for each kind ii, only the set of positions occupied by copies of aia_i matters, not which particular copy sits where. Fixing the kik_i positions assigned to kind ii, the copies of aia_i occupying these positions can be permuted among themselves in ki!k_i! ways without producing a different sequence. Hence in the count of n!n!, every genuinely distinct sequence (with repetition) was counted k1!⋅k2!⋅…⋅km!k_1!\cdot k_2!\cdot\ldots\cdot k_m! times. Dividing out this overcounting, the number of permutations with repetition is n!k1!⋅k2!⋅…⋅km!\dfrac{n!}{k_1!\cdot k_2!\cdot\ldots\cdot k_m!}. ■\blacksquare


15. Variations without repetition (slide 13)

Definition. Let AA be a set and k∈Nk\in\mathbb{N}. A sequence of length kk formed from elements of AA, containing each element of AA at most once, is a kk-variation (without repetition) of AA.

Theorem. Let k∈N+k\in\mathbb{N}^+. The number of kk-variations without repetition of an nn-element set is

Vnk=n⋅(n−1)⋅…⋅(n−k+1)=n!(n−k)!if k≤n,and 0 otherwise.V_n^k = n\cdot(n-1)\cdot\ldots\cdot(n-k+1) = \frac{n!}{(n-k)!} \quad\text{if } k\leq n, \qquad \text{and } 0 \text{ otherwise.}

Proof. Let k≤nk\leq n. The first element of the sequence can be chosen in nn different ways from the set AA. After this, the second element can be chosen in n−1n-1 different ways (the element already used cannot be chosen again). Continuing this way, the third element can be chosen in n−2n-2 ways, and so on, until the kthk^{\text{th}} element, which can be chosen in n−k+1n-k+1 ways. By the multiplication principle, the total number of kk-variations is n⋅(n−1)⋅…⋅(n−k+1)=n!(n−k)!n\cdot(n-1)\cdot\ldots\cdot(n-k+1) = \dfrac{n!}{(n-k)!}. If k>nk>n, there are not enough distinct elements in AA to fill kk positions without repetition, so AA has no kk-variation without repetition. ■\blacksquare


16. Variations with repetition (slide 15)

Definition. Let AA be a set and k∈Nk\in\mathbb{N}. A sequence of length kk formed from elements of AA, where any element of AA may occur more than once, is a kk-variation with repetition of AA.

Theorem. Let n,k∈Nn,k\in\mathbb{N}. The number of kk-variations with repetition of an nn-element set is nkn^k.

Proof. The first element of the sequence can be chosen in nn different ways. Since repetition is allowed, the second element can again be chosen in nn different ways, independently of the first; likewise for every subsequent position. By the multiplication principle, the total number of sequences of length kk is n⋅n⋅…⋅n⏟k times=nk\underbrace{n\cdot n\cdot\ldots\cdot n}_{k \text{ times}} = n^k. ■\blacksquare


17. Combinations without repetition (slide 18)

Definition. Let k∈Nk\in\mathbb{N}. A kk-element subset of a set AA is a kk-combination (without repetition) of AA. For n,k∈Nn,k\in\mathbb{N} with k≤nk\le n, the binomial coefficient is defined as (nk)=n!k!(n−k)!\binom{n}{k} = \dfrac{n!}{k!(n-k)!}.

Theorem. Let n,k∈Nn,k\in\mathbb{N}. The number of kk-combinations of an nn-element set is

Cnk=(nk)=n!k!(n−k)!if k≤n,and 0 otherwise.C_n^k = \binom{n}{k} = \frac{n!}{k!(n-k)!} \quad\text{if } k\leq n, \qquad \text{and } 0 \text{ otherwise.}

Proof. Let AA be an nn-element set and suppose k≤nk\le n. First, count the kk-variations without repetition of AA — i.e. sequences of kk distinct elements where order matters — there are n!(n−k)!\frac{n!}{(n-k)!} of these (Section 15). Now, if we stop distinguishing the order of the kk chosen elements, each kk-element subset of AA corresponds to exactly k!k! of these ordered sequences (the number of ways to arrange kk elements into order). So the count n!(n−k)!\frac{n!}{(n-k)!} over-counts each subset by a factor of k!k!. Dividing out gives the number of kk-element subsets: n!k!(n−k)!\dfrac{n!}{k!(n-k)!}. If k>nk>n, an nn-element set clearly has no kk-element subsets. ■\blacksquare


18. Combinations with repetition (slide 21)

Definition. Let k∈Nk\in\mathbb{N}. A kk-combination with repetition (or kk-multiset) from a set AA is a selection of kk elements from AA, where repetition is allowed and order does not matter (only how many times each element of AA is chosen).

Theorem. Let n∈N+n\in\mathbb{N}^+, k∈Nk\in\mathbb{N}. The number of kk-combinations with repetition of an nn-element set is

(n+k−1k).\binom{n+k-1}{k}.

Proof. Let A={a1,a2,…,an}A=\{a_1,a_2,\ldots,a_n\}. Every kk-combination with repetition of AA can be encoded as a 00–11 sequence: write the number of times a1a_1 was chosen as that many 11's, then a 00 as a separator, then the number of times a2a_2 was chosen as that many 11's, then a separator, and so on up to ana_n. Such a sequence contains exactly kk ones (the total number of elements chosen) and n−1n-1 zeros (the separators between the nn kinds of element), so it has length n−1+kn-1+k. Conversely, every such 00–11 sequence of length n+k−1n+k-1 with exactly kk ones corresponds to exactly one kk-combination with repetition. The number of such sequences equals the number of ways to choose which kk of the n+k−1n+k-1 positions hold the 11's, which is (n+k−1k)\binom{n+k-1}{k}. Hence the number of kk-combinations with repetition of AA is (n+k−1k)\binom{n+k-1}{k}. ■\blacksquare


19. Binomial theorem (slide 24)

Theorem. For any x,y∈Rx,y\in\mathbb{R} and n∈Nn\in\mathbb{N},

(x+y)n=∑k=0n(nk)xkyn−k.(x+y)^n = \sum_{k=0}^{n}\binom{n}{k}x^k y^{n-k}.

Proof. Write (x+y)n(x+y)^n as a product of nn factors: (x+y)n=(x+y)⋅(x+y)⋅…⋅(x+y)(x+y)^n = (x+y)\cdot(x+y)\cdot\ldots\cdot(x+y). By the distributive law, expanding this product gives a sum of terms, each obtained by choosing either xx or yy from each of the nn brackets and multiplying the choices together. Every such term has the form xkyn−kx^k y^{n-k} for some 0≤k≤n0\le k\le n (where kk is the number of brackets from which xx was chosen). For a fixed kk, the term xkyn−kx^k y^{n-k} appears once for every way of choosing which kk of the nn brackets contribute an xx (the rest then contribute yy); this can be done in (nk)\binom{n}{k} different ways. Hence the coefficient of xkyn−kx^k y^{n-k} in the expansion is (nk)\binom{n}{k}, giving (x+y)n=∑k=0n(nk)xkyn−k(x+y)^n=\sum_{k=0}^n\binom{n}{k}x^k y^{n-k}. ■\blacksquare


20. Properties of binomial coefficients (slide 25)

Proposition. For every n,k∈Nn,k\in\mathbb{N} with k≤nk\leq n:

1. Symmetry rule: (nk)=(nn−k)\dbinom{n}{k} = \dbinom{n}{n-k}.

Proof. By the theorem on combinations without repetition, (nk)\binom{n}{k} equals the number of kk-element subsets of an nn-element set AA. We count these subsets a second way: for each kk-element subset S⊆AS\subseteq A, the complementary set A∖SA\setminus S is an (n−k)(n-k)-element subset of AA, and this correspondence S↦A∖SS \mapsto A\setminus S is a bijection between kk-element subsets and (n−k)(n-k)-element subsets of AA. So the number of kk-element subsets equals the number of (n−k)(n-k)-element subsets, i.e. (nk)=(nn−k)\binom{n}{k}=\binom{n}{n-k}. ■\blacksquare

2. Pascal's identity: (n+1k+1)=(nk)+(nk+1)\dbinom{n+1}{k+1} = \dbinom{n}{k}+\dbinom{n}{k+1} if n>kn>k.

Proof. Let AA be an (n+1)(n+1)-element set; by definition AA has (n+1k+1)\binom{n+1}{k+1} subsets of size k+1k+1. We count these subsets a second way. Fix one element x0∈Ax_0\in A. The (k+1)(k+1)-element subsets of AA split into two disjoint groups:

  • those containing x0x_0: choosing such a subset amounts to choosing the remaining kk elements from A∖{x0}A\setminus\{x_0\} (which has nn elements), giving (nk)\binom{n}{k} subsets;
  • those not containing x0x_0: such a subset must have all k+1k+1 of its elements chosen from A∖{x0}A\setminus\{x_0\}, giving (nk+1)\binom{n}{k+1} subsets.

Adding these two disjoint counts gives the total: (n+1k+1)=(nk)+(nk+1)\binom{n+1}{k+1} = \binom{n}{k}+\binom{n}{k+1}. ■\blacksquare

For every n∈Nn\in\mathbb{N}:

3. ∑k=0n(nk)=2n\displaystyle\sum_{k=0}^{n}\binom{n}{k} = 2^n.

Proof. By the theorem on combinations without repetition, for each 0≤k≤n0\le k\le n, (nk)\binom{n}{k} is the number of kk-element subsets of an nn-element set AA. Summing over all kk from 00 to nn counts every subset of AA exactly once (each subset has some definite size between 00 and nn), so the sum equals the total number of subsets of AA, which is ∣P(A)∣=2n|\mathcal{P}(A)| = 2^n (Section "Sets"). ■\blacksquare

4. ∑k=0n(−1)k(nk)=0\displaystyle\sum_{k=0}^{n}(-1)^k\binom{n}{k} = 0.

Proof. Apply the Binomial theorem with x=−1,y=1x=-1, y=1: (−1+1)n=∑k=0n(nk)(−1)k1n−k=∑k=0n(−1)k(nk)(-1+1)^n = \sum_{k=0}^n \binom{n}{k}(-1)^k 1^{n-k} = \sum_{k=0}^n (-1)^k\binom{n}{k}. Since (−1+1)n=0n=0(-1+1)^n = 0^n = 0 (for n≥1n\ge 1; for n=0n=0 both sides equal 11 trivially, consistent with the convention 00=10^0=1), we get ∑k=0n(−1)k(nk)=0\sum_{k=0}^n(-1)^k\binom{n}{k}=0. ■\blacksquare


21. Handshaking theorem (slide 6)

Theorem (Handshaking theorem). Let G=(φ,E,V)G=(\varphi,E,V) be a graph (where φ\varphi assigns to each edge its endpoint(s), EE is the edge set and VV the vertex set), and for v∈Vv\in V let d(v)d(v) denote the degree of vv (the number of edges incident to vv, counting each loop twice). Then the sum of the degrees of all vertices of GG equals twice the number of edges:

∑v∈Vd(v)=2∣E∣.\sum_{v\in V} d(v) = 2|E|.

Proof (by induction on the number of edges). Base step: If ∣E∣=0|E|=0, there are no edges, so every vertex has degree 00; both sides of the equality are 00. Inductive step: Suppose the statement holds whenever a graph has nn edges, for some n∈Nn\in\mathbb{N} (inductive hypothesis). Let GG be a graph with n+1n+1 edges. Remove one edge ee from GG to obtain a graph G′G' with nn edges; by the inductive hypothesis, ∑v∈VdG′(v)=2n\sum_{v\in V} d_{G'}(v) = 2n. Now add the edge ee back to G′G' to recover GG. Adding ee increases the degree-sum by exactly 22: if ee joins two distinct vertices, each of their degrees increases by 11 (total +2+2); if ee is a loop at a single vertex, that vertex's degree increases by 22 (since a loop is counted twice in the degree). Either way, ∑v∈VdG(v)=∑v∈VdG′(v)+2=2n+2=2(n+1)=2∣E∣\sum_{v\in V} d_G(v) = \sum_{v\in V} d_{G'}(v) + 2 = 2n+2 = 2(n+1) = 2|E|. So the statement holds for GG, completing the induction. ■\blacksquare


End of answer key. Sections 6–9 should be double-checked against your actual relations/functions lecture slides if you can get hold of them, since that deck wasn't part of your uploaded project files.