1. Foundations


 

1.1 Mathematical logic

 

1.1.5 Problems

 

Problems for Propositions and propositional formulas

 

Problem (Examples of propositions)

Which of the following statements are propositions, and which are not propositions?

(i) Berlin is the capital of Germany.
(ii) All students work hard.
(iii) It rained all day yesterday.
(iv) Travel broadens the mind.
(v) The class has already started.
(vi) Mathematics is really difficult?

 

Problem (Own examples of propositions)

Formulate at least

(i) two own examples of propositions,
(ii) two own examples of linguistic statements which are not propositions.

 

Problem (Propositional formulas)

Give examples of formulas \( {\mathcal R}(x) \) with one, \( {\mathcal S}(x,y) \) with two, and \( {\mathcal T}(x,y,z) \) with three variables such that

(i) \( {\mathcal R}(6) \) is true,
(ii) \( {\mathcal S}(1,7) \) is true,
(iii) \( {\mathcal T}(1,3,12) \) is true.

 

Problem (Unsolved problems in mathematics)

Formulate two unsolved mathematical problems.

 

Problem (Unsolved problems in mathematics)

Write down all prime numbers up to 500, and highlight all twin primes. What does the twin prime conjecture state?

 

Problem (Prime triples)

Prime triples are triples of three consecutive prime numbers \( (p,p+2,p+4). \) Prove that \( (3,5,7) \) is the only prime triple. Proceed as follows:

\( \circ \) Suppose there is a prime triple with \( p\gt 3. \)
\( \circ \) Dividing \( p \) by \( 3 \) gives the remainer \( 1 \) or \( 2. \)
\( \circ \) Detemine the remainder of \( p+2 \) and \( p+4 \) after dividing these numbers by \( 3. \)

What are the next steps?

 

Problems for Logical connectives

 

Problems for Propositional laws of equivalence

 

Problem (Law of double negation)

Prove the following equivalence using a truth table. \[ \neg\neg a\equiv a \]

 

Problem (Idempotence laws of propositional logic)

Prove the following equivalences using truth tables.

(i) \( a\equiv a\vee a \)
(ii) \( a\equiv a\wedge a \)

 

Problem (Commutative laws of propositional logic)

Prove the following equivalences using truth tables.

(i) \( a\vee b\equiv b\vee a \)
(ii) \( a\wedge b\equiv b\wedge a \)

 

Problem (Associative laws of propositional logic)

Prove the following equivalences using truth tables.

(i) \( a\vee(b\vee c)\equiv(a\vee b)\vee c \)
(ii) \( a\wedge(b\wedge c)\equiv(a\wedge b)\wedge c \)

 

Problem (Distributive laws of propositional logic)

Prove the following equivalences using truth tables.

(i) \( a\wedge(b\vee c)\equiv(a\wedge b)\vee(a\wedge c) \)
(ii) \( a\vee(b\wedge c)\equiv(a\vee b)\wedge(a\vee c) \)

 

Problem (Merging of disjunction and conjunction)

Prove the following equivalences using truth tables.

(i) \( a\equiv a\wedge(a\vee b) \)
(ii) \( a\equiv a\vee(a\wedge b) \)

 

Problem (Equvialences of implication)

Prove the following equivalences using truth tables.

(i) \( a\to b\equiv \neg a\vee b a \)
(ii) \( a\to b\equiv \neg b\to\neg a \)
(iii) \( a\leftrightarrow b\equiv(a\vee\neg b)\wedge(\neg a\vee b) \)

 

Problem (de Morgan's laws of propositional logic)

Prove the following equivalences using truth tables.

(i) \( \neg(a\wedge b)\equiv\neg a\vee\neg b \)
(ii) \( \neg(a\vee b)\equiv\neg a\wedge\neg b \)

 

Problems for Methods of proof

 

Problem (Tautologies and contradictions)

Prove that the negation of a tautology gives a contradiction and vice versa.

 

Problem (Examples of propositional tautologies I)

Prove that the following propositions are propositional tautologies:

(i) \( a\vee(b\wedge\neg b)\to a \)
(ii) \( a\wedge(b\vee\neg b)\to a \)

Proposition (ii) is also known as reductio ad absurdum.

 

Problem (Examples of propositional tautologies II)

Prove that the following propositions are propositional tautologies:

(i) Law of the excluded middle \( a\vee\neg a \)
(ii) Law of contradiction \( \neg(a\wedge\neg a) \)
(iii) Law of double negation \( \neg(\neg a)\to a \)
(iv) Law of contraposition \( (a\to b)\to(\neg b\to\neg a) \)

 

Problem (Examples of propositional tautologies III)

Prove that the following propositions are propositional tautologies:

(i) Law of modus ponens \( (a\to b)\wedge a\to b \)
(ii) Law of modus tollens \( (a\to b)\wedge\neg b\to\neg a \)
(iii) Law of modus barbara \( (a\to b)\wedge(b\to c)\to(a\to c) \)

 

Problem (Further tautologies for an axiomatic approach)

The following rules are used in → R.E. Hodel chapter 3, section 3.1 for an axiomatic approach of propositional logic. Prove that these rules are propositional tautologies.

(i) Contraction rule \( a\vee a\to a \)
(ii) Expansion rule \( a\to a\vee b \)
(iii) Cut rule \( (a\vee b)\wedge(\neg a\vee c)\to(b\vee c) \)

 

Problem (Further propositional tautologies)

Prove that the following propositions are propositional tautologies:

(i) \( a\to((a\to b)\to b) \)
(ii) \( a\to(b\to(a\to b)) \)
(iii) \( \neg(a\to a)\to b \)
(iv) \( \neg(a\to b)\to\neg b \)
(v) \( \neg(a\to b)\to a \)

 

1.1.6 Questions

 

1. What do we understand by a proposition?
2. What do we understand by the principle of bivalence?
3. Define the connectives \( \neg, \) \( \wedge, \) \( \vee, \) \( \to \) and \( \leftrightarrow \) by means of a truth table.
4. When are two propositions semantically equivalent?
5. What do we understand by a tautology?
6. What does the law of excluded middle state?
7. What does the law of contradition states?
8. What does the law of double negation states?
9. What does the law of contraposition states?
10. What does the law of modus ponens states?
11. What does the law of modus tollens states?
12. What does the law of modus barbara states?

 


 

1.2 Set theory

 

1.2.1 Characterisation of sets

 

We do not define the term set. Rather, we give two possibilities to characterise sets, namely,

\( \circ \) by specifying their elements \( m_1, \) \( m_2, \) \( m_3 \) etc., and then we write

\[ M=\{m_1,m_2,m_3,\ldots\}, \]

  where the order of the elements does not have to be considered;
\( \circ \) by specifying a defining property, for example

\[ M=\{x\in X\,:\,p(x)\}, \]

  i.e. \( M \) consists of all those elements \( x\in X \) for which \( p(x) \) is true.

 

The relation \( \in \) is a dichotomy in the following sense \[ \mbox{either}\quad x\in X\quad\mbox{or}\quad\neg(x\in X), \] there is no third possibility, and so, for example, the proposition \[ p(x)\,:\,(x\in X)\wedge(x\not\in X), \] where \( x\not\in X \) means \( \neg(x\in X), \) is a contradiction.

 

Examples:

 

Specifying the elements:

(i) The set \( M=\{1\} \) consists of the only element \( 1. \)
(ii) The set \( M=\{1,\{1\}\} \) consists of the both elements \( 1 \) and \( \{1\}. \)
(iii) The set \( \mathbb N=\{1,2,3,\ldots\} \) is the set of the natural numbers without \( 0. \)

 

Specifying a defining property:

(iv) It holds \( \{x\in\mathbb R\,:\,x^2=\sqrt{2}\}=\{\sqrt{2},-\sqrt{2}\}\,. \)
(v) It holds \( \{n\in\mathbb N\,:\,2^n\lt n^2\}=\{3\}\,. \)

 

The relation \( = \) between two set is defined in → this paragraph.

 

The empty set \( \emptyset \) contains no element by agreement. It is a subset of every set, see → this paragraph. The Zermelo-Fraenkel axiomatic set theory ensures the existence of one and only one empty set. In particular, \[ \{x\in X\,:\,p(x)\} \] is a possible representation of the empty set if \( p(x) \) is contradictory. Every set other than the empty set contains at least one element.

 

A set is called finite if the number of its elements is a finite number. Otherwise it is called infinite.

 

Video tutorial

Problems

 


 

 

1.2.2 Set relations and set operations

 

We begin with the following set relations.

 

Definition: Let \( A \) and \( B \) be two arbitrary sets. Then we write

  \( A=B \) \( A \) is equal to \( B \) \( x\in A\,\leftrightarrow x\in B \)
  \( A\subseteq B \) \( A \) is a subset of \( B \) \( x\in A\,\to x\in B \)
  \( A\subset B \) \( A \) is a proper subset of \( B \) \( A\subseteq B\,\wedge\,A\not=B \)

 

where \( A\not= B \) means \( \neg(A=B). \)

 

Set equality \( A=B \) can be expressed using the subset relation \[ A=B\quad\mbox{if and only if}\quad A\subseteq B\ \mbox{and}\ B\subseteq A. \] Finally, \( A\supseteq B \) means \( B\subseteq A \) and \( A\supset B \) means \( B\subset A. \)

 

Now we come to basic set operations.

 

Definition: Let \( A \) and \( B \) be two arbitrary sets. Then we define their union, their intersection, and their difference as

  \( A\cup B \) \( A \) union \( B \) \( \{x\,:\,x\in A\vee x\in B\} \)
  \( A\cap B \) \( A \) intersect \( B \) \( \{x\,:\,x\in A\wedge x\in B\} \)
  \( A\setminus B \) \( A \) minus \( B \) \( \{x\,:\,x\in A\wedge x\not\in B\} \)

 

Example: Let the set \( \Omega=\{0,1,2,3,4,5,6\} \) be given together with the subsets \[ A=\{1,2,3\}\,,\quad B=\{2,3,4\}\,. \] Then we determine

 

\( \circ \) \( \Omega\setminus A=\{0,4,5,6\} \)
\( \circ \) \( A\cup B=\{1,2,3,4\} \)
\( \circ \) \( A\cap B=\{2,3\} \)
\( \circ \) \( A\setminus B=\{1\} \)
\( \circ \) \( B\setminus A=\{4\} \)

 

Definition: Let \( A \) and \( B \) be two arbitrary sets. Then we define their cartesian product as \[ A\times B:=\{(x,y)\,:\,x\in A,\ y\in B\}\,. \]

 

The symbol \( a:=b \) means that the new term \( a \) is defined as the known term \( b. \)

 

Example: The cartesian product of the set \( A=\{1,2,3\} \) and \( B=\{a,b\} \) ist \[ A\times B=\{(1,a),(2,a),(3,a),(1,b),(2,b),(3,b)\}\,. \]

 

Definition: Let \( A\subseteq X \) be a subset of a superset \( X. \) Then we define the complement of \( A \) w.r.t. \( X \) as \[ A^c:=\{x\,:\,x\in X\setminus A\} \]

 

Union, intersection, difference, cartesian product and complement of sets are again sets.

 

Video tutorial

Problems

 


 

 

1.2.3 Idempotence, commutativity, associativity

 

We begin with the following idempotence laws of set theory.

 

Proposition: Let \( A \) be an arbitrary set. Then there hold

(i) \( A\cup A=A \)
(ii) \( A\cap A=A \)

 

Proof: We only prove (i), and (ii) is left as an exercise. We use the idempotence laws of propositional logic from → this paragraph to calculate \[ A\cup A =\{x\,:\,x\in A\vee x\in A\} =\{x\,:\,x\in A\} =A, \] and (i) follows.\( \qquad\Box \)

 

Next we prove that the operators \( \cup \) and \( \cap \) are commutative.

 

Proposition: Let \( A \) and \( B \) be two arbitrary set. Then there hold

(i) \( A\cup B=B\cup A \)
(ii) \( A\cap B=B\cap A \)

 

Proof: The commutative laws of propositional logic from → this paragraph yield \[ A\cup B =\{x\,:\,x\in A\vee x\in B\} =\{x\,:\,x\in B\vee x\in A\} =B\cup A, \] and this shows (i). Statement (ii) is left as an exercise.\( \qquad\Box \)

 

There also hold the associative laws of set theory.

 

Proposition: Let \( A, \) \( B \) and \( C \) be two arbitrary set. Then there hold

(i) \( (A\cup B)\cup C=A\cup(B\cup C) \)
(ii) \( (A\cap B)\cap C=A\cap(B\cap C) \)

 

Proof: We prove (i). Using the associative rules from → this paragraph we get \begin{align} (A\cup B)\cup C &= \{x\,:\,x\in A\vee x\in(A\cup B)\vee x\in C\} \\[0.6ex] &= \{x\,:\,x\in(A\cup B)\cup C\} \\[0.6ex] &= \{x\,:\,x\in A\cup(B\cup C)\} \\[0.6ex] &= \{x\,:\,x\in A\vee x\in(B\cup C)\} \\[0.6ex] &= A\cup(B\cup C) \end{align} Statement (ii) is left as an exercise.\( \qquad\Box \)

 

Video tutorial

Problems

 


 

 

1.2.4 Operations with the empty set

 

We represent the empty set \( \emptyset \) by a set \[ \{x\,:\,q(x)\} \] with a contradiction \( x, \) i.e. \( q(x) \) is false for all possible \( x. \) Now, if \( p(x) \) denotes any proposition, we have \[ p(x)\vee q(x)\equiv p(x),\quad p(x)\wedge q(x)\equiv q(x) \] which can be proved by means of truth tables.

 

Proposition: Let \( A \) be an arbitrary set. Then there hold

(i) \( A\cup\emptyset=A \)
(ii) \( A\cap\emptyset=A \)

 

Proof: We prove (i), and (ii) remains as an exercise. Let \( \emptyset \) be represented by \( \{x\,:\,q(x)\} \) with a contradiction \( q(x). \) Then \[ A\cup\emptyset=\{x\,:\,x\in A\vee q(x)\}=\{x\,:\,x\in A\}=A, \] and the statement follows.\( \qquad\Box \)

 

Proposition: Let \( A \) be an arbitrary set. Then there hold

(i) \( A\setminus A=\emptyset \)
(ii) \( A\setminus\emptyset=A \)

 

Proof: We prove (i), and (ii) remains as an exercise. The proposition \( (x\in A)\wedge(x\not\in A) \) is a contradiction and, therefore, \[ \{x\,:\,(x\in A)\wedge(x\not\in A)\} \] represents the empty set. Thus, we obtain \[ A\setminus A=\{x\,:\,(x\in A)\wedge(x\not\in A)\}=\emptyset \] which proves the statement.\( \qquad\Box \)

 

Video tutorial

Problems

 


 

 

1.2.5 Calculus rules for sets

 

Generalizing the identities from propositional logic \[ a\wedge(b\vee c)=(a\wedge b)\vee(a\wedge c),\quad a\vee(b\wedge c)=(a\vee b)\wedge(a\vee c) \] we infer the following distribution laws of set theory.

 

Proposition:

Let \( A, \) \( B \) and \( C \) be three sets. Then there hold

(i) \( A\cap(B\cup C)=(A\cap B)\cup(A\cap C) \)
(ii) \( A\cup(B\cap C)=(A\cup B)\cap(A\cup C \)

 

Proof: We prove (i) and leave (ii) as an exercise. Choose an \( x\in A\cap(B\cup C) \) arbitrarily. Then, using the distribution laws of propositional logic in the third line, applied to the propositions \( x\in A \) etc., we get

\[ \begin{array}{lll} x\in A\cap(B\cup C) & \longrightarrow & (x\in A)\wedge(x\in B\cup C) \\ & \longrightarrow & (x\in A)\wedge(x\in B\vee x\in C) \\ & \longrightarrow & (x\in A\wedge x\in B)\vee(x\in A\wedge x\in C) \\ & \longrightarrow & (x\in A\cap B)\vee(x\in A\cap C) \\ & \longrightarrow & x\in(A\cap B)\cup(A\cap C). \end{array} \]

Thus, it holds \( x\in(A\cap B)\cup(A\cap C) \) under the assumption \( x\in A\cap(B\cup C), \) and since \( x \) is chosen arbitrarily, we infer the implication \[ A\cap(B\cup C)\subseteq(A\cap B)\cup(A\cap C). \] The reverse implication \( \supseteq \) also remains as an exercise.\( \qquad\Box \)

 

The de Morgan laws of propositional logic can be transferred to set theory as follows.

 

Proposition:

Let \( A \) and \( B \) be two subsets of a superset \( X. \) Then there hold

(i) \( X\setminus(A\cup B)=(X\setminus A)\cap(X\setminus B) \)
(ii) \( X\setminus(A\cap B)=(X\setminus A)\cup(X\setminus B) \)

 

Video tutorial

Problems

 


 

 

1.2.9 Problems

 

Characterisation of sets

 

Problem (Elements of sets)

Determine all elements of the following sets.

 

(i) \( M=\{(x,y)\in\mathbb N\,:\,1\le x\le 17\ \text{and}\ x\ \mbox{is a prime number}\} \)
(ii) \( M=\{(x,y)\in\mathbb N\times\mathbb N\,:\,x-y\ \text{is divisible by}\ 2\ \mbox{without remainder}\} \)
(iii) \( M=\{(x,y)\in\mathbb Z\times\mathbb Z\,:\,x-y\ \text{is divisible by}\ 3\ \text{without remainder}\} \)

 

Here \( \mathbb N=\{1,2,3,\ldots\} \) is the set of the natural numbers and \( \mathbb Z=\{\ldots,-2,-1,0,1,2,\ldots\} \) the set of the integers.

 

Problem (Finding characterising properties)

Find a characterising property for each of the following sets.

 

(i) \( M=\{0,2,4,6,8,\ldots\} \)
(ii) \( M=\{2,4,8,16,32,64,\ldots\} \)
(iii) \( M=\{2,3,5,7,11,13,17,19,\ldots\} \)
(iv) \( M=\{0.1,0.01,0.001,0.0001,0.00001,\ldots\} \)

 

Problem (An example of the empty set)

Determine the elements of the following sets. Which set is emtpy?

 

(i) \( M=\{m\in\mathbb N\,:\,m+1=0\} \)
(ii) \( M=\{m\in\mathbb Z\,:\,m+1=0\} \)

 

Problems for Set relations and set operations

 

Problem (Exercise on set operations)

Let a base set \( \Omega=\{0,1,2,3,4,5,6\} \) and subsets \[ A=\{1,2,3\}\,,\quad B=\{2,3,4\} \] of \( \Omega \) be given. Determine \[ \Omega\setminus A,\quad \Omega\setminus B,\quad A\cup B,\quad A\cap B,\quad A\setminus B,\quad B\setminus A. \]

 

Problem (Cartesian products of sets)

Determine the cartesian product \( M\times N \) of the following sets:

 

(i) \( M=\{1,2,3,4\} \) and \( N=\{a,b\} \)
(i) \( M=\{a,b,c\} \) and \( N=\{x,y\} \)
(iii) \( M=\{1,2,3,4,\ldots\} \) and \( N=\{1,2,3,4,\ldots\} \)
(iv) \( M=\{x\in\mathbb N\,:\,2\le x\le 3\} \) and \( N=\{x\in\mathbb N\,:\,6\le x\lt 9\} \)

 

Problems for Idempotence, commutativity, associativity

 

Problem (Idempotence law of set theory)

Let \( A \) be a set. Prove \[ A\cap A=A. \]

 

Problem (Commutative law of set theory)

Let \( A \) and \( B \) be a two set. Prove \[ A\cap B=B\cap A. \]

 

Problem (Associative law of set theory)

Let \( A, \) \( B \) and \( C \) be a three set. Prove \[ (A\cap B)\cap C=A\cap(B\cap C). \]

 

Operations with the empty set

 

Problem (Disjunction and conjunction with a contradiction)

Let \( p \) be a proposition, and let \( q \) be a contradiction. Prove \[ p\vee q\equiv p,\quad p\wedge q\equiv q. \]

 

Problem (Intersection with the empty set)

Let \( A \) be a set. Prove \[ A\cap\emptyset=\emptyset. \]

 

Problem (Subtracting the empty set)

Let \( A \) be a set. Prove \[ A\setminus\emptyset=A. \]

 

Problem (Calculating with the complement)

Let \( A\subseteq X \) be a subset of a superset \( X, \) and let \( A^c \) denote the complement of \( A \) w.r.t. \( X. \) Prove:

 

(i) \( A\cap A^c=\emptyset \)
(ii) \( A\cup A^c=X \)
(iii) \( (A^c)^c=A \)

 

Problems for Calculus rules for sets

 

Problem (Distribution laws of set theory)

Let \( A, \) \( B \) and \( C \) be three sets. Prove \[ A\cup(B\cap C)=(A\cup B)\cap(A\cup C). \]

 

Problem (Merging intersection and union)

Let \( A \) and \( B \) be two sets. Prove:

 

(i) \( A\cup(A\cap B)=A \)
(ii) \( A\cap(A\cup B)=A \)

 

Problem (de Morgan laws of set theory)

Let \( A \) and \( B \) be two subsets of a supersete \( X. \) Prove:

 

(i) \( X\setminus(A\cup B)=(X\setminus A)\cap(X\setminus B) \)
(ii) \( X\setminus(A\cap B)=(X\setminus A)\cup(X\setminus B) \)

 

Problem (Difference of three sets)

Let \( A, \) \( B \) and \( C \) be three sets. Prove:

 

(i) \( (A\setminus B)\setminus C=A\setminus(B\cup C) \)
(ii) \( A\setminus(B\setminus C)=(A\setminus B)\cap(A\cap C) \)

 

Problem (Further distributive laws)

Let \( A, \) \( B \) and \( C \) be three sets. Prove:

 

(i) \( (A\cap B)\setminus C=(A\setminus C)\cap(B\setminus C) \)
(ii) \( (A\cup B)\setminus C=(A\setminus C)\cup(B\setminus C) \)
(iii) \( A\setminus(B\cap C)=(A\setminus B)\cup(A\setminus C) \)
(iv) \( A\setminus(B\cup C)=(A\setminus B)\cap(A\setminus C) \)

 

Problem (Mixed operations I)

Let \( A \) and \( B \) be two sets. Prove:

 

(i) \( A=(A\setminus B)\cup(A\cap B) \)
(ii) \( \emptyset=(A\setminus B)\cap(A\cap B) \)

 

Problem (Mixed operations II)

Let \( A \) and \( B \) be subsets of a superset \( X \) with complements \( A^c \) and \( B^c \) in \( X. \) Prove:

 

(i) \( (A\cup B)^c=A^c\cap B^c \)
(ii) \( (A\cap B)^c=A^c\cup B^c \)

 

Problem (Difference and complement)

Let \( A \) and \( B \) be subsets of a superset \( X \) with complements \( A^c \) and \( B^c \) in \( X. \) Prove:

 

(i) \( A\setminus B=A\cap B^c \)
(ii) \( (A\setminus B)^c=A^c\cup B \)

 

Problem: (Contained in or even equal?)

Let \( A, \) \( B, \) \( C, \) \( D \) be any sets. Which of the following statements is true, which is false? Prove or give a counterexample.

 

(i) \( (A\cap C)\cup(B\cap D)\subseteq(A\cup B)\cap(C\cup D) \)
(ii) \( (A\cap C)\cup(B\cap D)=(A\cup B)\cap(C\cup D) \)

 

Problem (Symmetric difference)

The symmetris difference of two sets \( A \) and ( B \) is defined as \[ A\triangle B:=(A\setminus B)\cup(B\setminus A). \] Prove:

 

(i) \( A\triangle B=B\triangle A \)
(ii) \( (A\triangle B)\triangle C=A\triangle(B\triangle C) \)
(iii) \( A\cup(B\triangle C)=(A\cup B)\triangle(A\cup C) \)
(iv) \( A\cap(B\triangle C)=(A\cap B)\triangle(A\cap C) \)

 

Problems for Maps between sets

 

Problem (Injective und surjective mappings)

Find own examples of sets \( A, \) \( B \) a mappings \( f\colon A\to B \) such that:

 

(i) \( f \) is neither injective nor surjective
(ii) \( f \) is injective but not surjective
(iii) \( f \) is surjective but not injective
(iv) \( f \) is injective as well as surjective

 

Problem (Mapping subsets)

Let \( f\colon A\to B \) be a mapping between two sets \( A \) and \( B, \) and let \( M,N\subseteq A \) be two subsets of \( A \) such that \( M\subseteq N. \) Prove \[ f(M)\subseteq f(N). \]

 

Problem (Associativity of the composition)

Let three mappings \( f, \) \( g \) and \( h \) be given such that \[ f\colon A\longrightarrow B,\quad g\colon B\longrightarrow C,\quad h\colon C\longrightarrow D \] with three sets \( A, \) \( B \) and \( C. \) Prove \[ h\circ(g\circ f)=(h\circ g)\circ f, \] where the composition \( \circ \) is defined as follows \[ \begin{array}{l} g\circ f\colon A\longrightarrow C\quad\mbox{means} \\[0.4ex] (g\circ f)(a):=g(f(a))\quad\text{for}\ a\in A\quad\text{etc.} \end{array} \]

 

Problem (Non-commutativity of the composition)

Give an example which shows that the composition of two mappings \( f\colon A\to A \) and \( g\colon A\to A \) on a set \( A \) is not necessarily commutative, i.e. it does not hold \[ (f\circ g)(a)=(g\circ f)(a)\quad\text{for all}\ a\in A. \] Can you give an example for which this relation is true?

 

Problem (Set mapping and its inverse)

Let \( A \) and \( B \) be two non-empty sets, and let \( f\colon A\to B \) and \( g\colon B\to A \) be two mappings with the property \[ g\circ f(a)=a\quad\text{for all}\ a\in A. \] Prove:

 

(i) \( f \) is injective
(ii) \( g \) is surjective

 

Problem (Properties of the composition)

Let \( f\colon A\to B \) and \( g\colon B\to C \) be two mappings between the sets \( A, \) \( B \) and \( C. \) Prove:

 

(i) If \( g\circ f \) is bijective, then \( f \) is injective and \( g \) is surjective.
(ii) If \( f \) is injective and \( g \) is surjective, then \( g\circ f \) is not necessarily bijective.
(iii) If \( f \) and \( g \) are injective, then \( g\circ f \) is injective.
(iv) If \( f \) and \( g \) are surjective, then \( g\circ f \) is surjective.
(v) If \( g\circ f \) is surjective, then \( g \) is surjective.
(vi) If \( f \) and \( g \) are bijective, then \( g\circ f \) is bijective.

 

Problem (Union, intersection and difference I)

Let \( f\colon X\to Y \) be a mapping between the sets \( X \) and \( Y. \) Prove that for all \( A,B\subseteq X \) with \( A\cap B\not=\emptyset \) the following are true:

 

(i) \( f(A\cup B)=f(A)\cup f(B) \)
(ii) \( f(A\cap B)\subseteq f(A)\cap f(B) \)
(iii) \( f(A\cap B)=f(A)\cap f(B) \) if \( f \) is injective
(iv) \( f(A\setminus B)\subseteq f(A) \)

 

Problem (Injectivity and surjectivity on complements)

Let \( f\colon X\to X \) be a mapping on a superset \( X, \) and let \( A\subseteq X \) be a subset with complement \( A^c\subseteq X. \) Prove:

 

(i) If \( f \) is injective, then it holds \( f(A^c)\subseteq f(A)^c. \)
(ii) Is \( f \) is surjective, then it holds \( f(A)^c\subseteq f(A^c). \)

 

Problem (Composition of a mapping and its inverse)

Let \( f\colon X\to Y \) be a mapping, and let \( A\subseteq X \) and \( B\subseteq Y \) be subsets. Prove:

 

(i) \( A\subseteq f^{-1}(f(A)) \)
(ii) \( f(f^{-1}(B))\subseteq B \)

 

Problem (Example of an invertible mapping)

Let \( A,B=\{1,2,3,4\} \) be two sets, and let the mapping \( f\colon A\to B \) be given as \[ f(1)=4,\quad f(2)=1,\quad f(3)=3,\quad f(4)=2. \] Determine the inverse \( f^{-1}. \)

 

Problem (Union, intersection and difference II)

Let \( f\colon A\to B \) be a mapping between the non-empty sets \( A \) und \( B. \) Let \( \Omega,\Theta\subset B \) be two proper subsets. Prove:

 

(i) \( f^{-1}(\Omega\cup\Theta)=f^{-1}(\Omega)\cup f^{-1}(\Theta) \)
(ii) \( f^{-1}(\Omega\cap\Theta)=f^{-1}(\Omega)\cap f^{-1}(\Theta) \)
(iii) \( f^{-1}(\Omega\setminus\Theta)=f^{-1}(\Omega)\setminus f^{-1}(\Theta) \)

 

Problem (Strictly monotone functions are injective)

Let the function \( f\colon\mathbb R\to\mathbb R \) be strictly monotone, i.e. it holds \[ \begin{array}{ll} \text{either} &\quad f(x_1)\lt f(x_2)\quad\text{for all}\ x_1,x_2\in\mathbb R\ \text{with}\ x_1\lt x_2 \\[0.6ex] \text{or} &\quad f(x_1)\gt f(x_2)\quad\text{for alle}\ x_1,x_2\in\mathbb R\ \text{with}\ x_1\lt x_2\,. \end{array} \] Prove that \( f \) is injective.

 

Problem (Mappings on finite sets)

Let \( A \) and \( B \) be two finite sets. Prove:

 

(i) If \( |A|\gt|B| \) then there is no injective mapping \( f\colon A\to B. \)
(ii) If \( |A|\lt|B| \) then there is no sujective mapping \( f\colon A\to B. \)

 

Let additionally \( |A|=|B|. \) Prove:

 

(iii) The mapping \( f\colon A\to B \) is injective if and only if \( f \) is surjective.

 

Cardinality of sets

 

Problem: (Power sets of finite sets)

Determine the power sets of the following sets \( M: \)

 

(i) \( M=\emptyset \)
(ii) \( M=\{a\} \)
(iii) \( M=\{a,b\} \)
(iv) \( M=\{a,b,c\} \)
(v) \( M={\mathcal P}(\emptyset) \)
(vi) \( M={\mathcal P}(\{a\}) \)

 

Problem (Power set on union and intersection)

Let \( A \) and \( B \) be two sets.

 

(i) Find a counterexample to prove that the following identity is not true

\[ {\mathcal P}(A\cup B)={\mathcal P}(A)\cup{\mathcal P}(B). \]

(ii) Prove the identity

\[ {\mathcal P}(A\cap B)={\mathcal P}(A)\cap{\mathcal P}(B). \]

Damit ist alles gezeigt.\( \qquad\Box \)

 

Quantifiers

 

Problem: (Mathematical propositions with quantifiers)

By \( \mathbb Z=\{\ldots,-3,-2,-1,0,1,2,3,\ldots\} \) we denote the set of integers. Reformulate the following propositions as formulas using quantifiers. Which proposition is true, which is false?

 

(i) There exist \( x\in\mathbb Z \) and \( y\in\mathbb Z \) such that \( x+y=0. \)
(ii) For all \( x\in\mathbb Z \) there exists \( y\in\mathbb Z \) such that \( x+y=0. \)
(iii) There exists \( x\in\mathbb Z \) such that \( x+y=0 \) holds true for all \( y\in\mathbb Z. \)
(iv) For all \( x\in\mathbb Z \) and for all \( y\in\mathbb Z \) it holds \( x+y=0. \)

 

Problem: (From Peano's axioms for natural numbers)

By \( \mathbb N=\{1,2,3,\ldots\} \) we denote the set of natural numbers. Reformulate the following axioms for \( \mathbb N \) as formulas using quantifiers.

 

(i) For every \( n\in\mathbb N \) there exist a successor \( n'\in\mathbb N. \)
(ii) There does not exist a natural number \( n\in\mathbb N \) such that \( n'=1. \)
(iii) If \( m,n\in\mathbb N \) and \( m=n, \) then \( m'=n'. \)

 

Problem: (Rewriting formulas in words)

Rewrite the following formulas with your own words.

 

(i) \( \exists m\in\mathbb N\,\forall n\in\mathbb N\,(m\lt n) \)
(ii) \( \exists m\in\mathbb Z\,\forall n\in\mathbb N\,(m\lt n) \)
(iii) \( \forall m\in\mathbb N\,\exists n\in\mathbb N\,(n\lt m) \)
(iv) \( \forall m\in\mathbb N\,\exists n\in\mathbb Z\,(n\lt m) \)

 

Problem: (Rewriting formulas in words)

Negate the following definition of continuity of a function \( f\colon\Omega\to\mathbb R \) at a point \( x_0\in\Omega: \) \[ \forall\varepsilon\gt 0\,\exists\delta\gt 0\,\forall x\in\Omega\,(|x-x_0|\lt\delta\to|f(x)-f(x_0)|\lt\varepsilon). \]

 


 

 

1.2.10 Questions

 

1. How can we characterise sets?
2. Define the set relations \( =, \) \( \subseteq, \) \( \subset, \) \( \supseteq \) and \( \supset? \)
3. Define the set operations \( \cup, \) \( \cap, \) \( \setminus \) and \( \times? \)
4. What do we understand by the complement of a set?
5. What are the idempotence laws of set theory?
6. What are the commutative laws of set theory?
7. What are the distributive laws of set theory?
8. What are the de Morgan laws of set theory?
9. When is a mapping \( f\colon A\to B \) called surjective?
10. When is a mapping \( f\colon A\to B \) called injective?
11. When is a mapping \( f\colon A\to B \) called bijective?
12. What do we understand by the inverse mapping of a mapping \( f\colon A\to B? \)
13. When is a set called finite?
14. What do we understand by the cardinality of a finite set?
15. When do two sets have the same cardinality?
16. What do we understand by the power set of a set?
17. How many elements has the power set of a finite set with \( n \) elements?
18. Define the universal quantifier \( \forall. \)
19. Define the existential quantifier \( \exists. \)
20. How do we negate the universal quantifier \( \forall? \)
21. How do we negate the existential quantifier \( \exists? \)