Formalizing statements in logic

[53/66%]
Show
LaTeX

Determine which of the statements AA and BB follows from the other, using the symbols ⇒,⇔\Rightarrow , \Leftrightarrow :

?
(1)

A≡{each of the numbers a,b is divisible by 7},B≡{the sum a+b is divisible by 7}A \equiv \left\{ \text{each of the numbers }a, b\text{ is divisible by 7}\right\} , B \equiv \left\{ \text{the sum }a+b\text{ is divisible by 7}\right\};

(2)

A≡{the last digit of the number a is even},B≡{the number A is divisible by 4}A \equiv \left\{ \text{the last digit of the number } a \text{ is even}\right\} , B \equiv \left\{ \text{the number } A \text{ is divisible by 4}\right\};

(3)

A≡{triangle A1B1C1 is isosceles}A \equiv \left\{ \text{triangle } A_{1} B_{1} C_{1} \text{ is isosceles}\right\}, B≡{two medians of triangle A1B1C1 are equal to each other}B \equiv \left\{ \text{two medians of triangle } A_{1} B_{1} C_{1} \text{ are equal to each other}\right\};

(4)

A≡{from segments whose lengths equal a,b,c a triangle can be formed},B≡{the positive numbers a,b,c satisfy the inequalities a+b>c,b+c>a,c+a>b}A \equiv \left\{ \text{from segments whose lengths equal } a, b, c \text{ a triangle can be formed}\right\} , B \equiv \left\{ \text{the positive numbers } a, b, c \text{ satisfy the inequalities } a+b > c, b+c > a, c+a > b\right\}.

Let f(x)=ax2+bx+c(a≠0)f(x) = a x^{2}+b x+c(a \neq 0) be a quadratic trinomial, D=b2−4ac,x1D = b^{2}-4 a c, x_{1} and x2x_{2} the roots of the quadratic trinomial, x1⩽x2(D⩾0)x_{1} \leqslant x_{2}(D \geqslant 0), x0=−b2ax_{0} = -\frac{b}{2 a} the abscissa of the vertex of the parabola y=ax2+bx+cy = a x^{2}+b x+c, and let MM and KK be given numbers. Prove that:

?
(1)

{x1<M,x2<M}⇔{D⩾0,x0<M,af(M)>0}\left\{ x_{1} < M, x_{2} < M\right\} \Leftrightarrow \left\{ D \geqslant 0, x_{0} < M, af(M) > 0\right\};

(2)

{x1>M,x2>M}⇔{D⩾0,x0>M,af(M)>0}\left\{ x_{1} > M, x_{2} > M\right\} \Leftrightarrow \left\{ D \geqslant 0, x_{0} > M, af(M) > 0\right\};

(3)

{x1<M<x2}⇔{af(M)<0}\left\{ x_{1} < M < x_{2}\right\} \Leftrightarrow \left\{ a f(M) < 0\right\};

(4)

{K<x1<M,K<x2<M}⇔{D⩾0,K<x0<M,f(K)f(M)>0}\left\{ K < x_{1} < M, K < x_{2} < M\right\} \Leftrightarrow \left\{ D \geqslant 0, K < x_{0} < M, f(K) f(M) > 0\right\}

(5)

{x1<K<M<x2}⇔{af(K)<0,af(M)<0}\left\{ x_{1} < K < M < x_{2}\right\} \Leftrightarrow \left\{ a f(K) < 0, a f(M) < 0\right\}.

Let Ak(x)A_{k}(x) and Bk(x)B_{k}(x) (k=1,2,…,n)(k = 1,2, \ldots , n) be indeterminate (open) propositions defined on the set MM and such that:

A) for any x∈Mx \in M at least one of the propositions Ak(x)A_{k}(x) is true;

Б) Ak(x)⇒Bk(x),k=1,2,…,nA_{k}(x) \Rightarrow B_{k}(x), k = 1,2, \ldots , n;

В) the propositions B1(x),…,Bn(x)B_{1}(x), \ldots , B_{n}(x) are mutually exclusive, i.e., if one of them is true for each x∈Mx \in M, then all the others are false.

Prove that Bk(x)⇒Ak(x),k=1,2,…,nB_{k}(x) \Rightarrow A_{k}(x), \quad k = 1,2, \ldots , n, and that the propositions A1(x),…,An(x)A_{1}(x), \ldots , A_{n}(x) are mutually exclusive.

?

Let Ak,Bk(k=1,2,3)A_{k}, B_{k}(k = 1,2,3) be indeterminate propositions defined on the set of all triangles with sides a,b,ca, b, c and corresponding angles A,B,CA, B, C :

A1≡{ angle A is acute },A2≡{ angle A is right },A3≡{ angle A is obtuse }A_{1} \equiv \left\{ \text{ angle }A\text{ is acute }\right\} , A_{2} \equiv \left\{ \text{ angle }A\text{ is right }\right\} , A_{3} \equiv \left\{ \text{ angle }A\text{ is obtuse }\right\},

B1≡{a2<b2+c2},B2≡{a2=b2+c2},B3≡{a2>b2+c2}B_{1} \equiv \left\{ a^{2} < b^{2}+c^{2}\right\} , \quad B_{2} \equiv \left\{ a^{2} = b^{2}+c^{2}\right\} , \quad B_{3} \equiv \left\{ a^{2} > b^{2}+c^{2}\right\}.

Prove that Ak⇔Bk(k=1,2,3)A_{k} \Leftrightarrow B_{k}(k = 1,2,3).

Using the method of mathematical induction, solve problems 7-13.

?

Formulate and write, using the symbols ∃,∀\exists , \forall, the definitions of the fact that a function:

?
(1)

is unbounded above;

(2)

is unbounded below.

Formulate and write, using the symbols ∃,∀\exists , \forall, the statement that:

?
(1)

the function is not increasing;

(2)

the function is not decreasing;

(3)

the function is not monotone.

Formulate and write, using the symbols ∃,∀\exists , \forall, the statement that:

?
(1)

the number aa is not an upper bound of the function;

(2)

the number aa is not a lower bound of the function.

Formulate and write, using the symbols ∃,∀\exists , \forall, the statement that:

?
(1)

the value f(x0),x0∈Xf\left(x_{0}\right), x_{0} \in X, is not the largest;

(2)

the value f(x0),x0∈Xf\left(x_{0}\right), x_{0} \in X, is not the smallest value of the function on the set XX.

Give an example of a sequence {xn}\left\{ x_{n}\right\} satisfying the condition:

?
(1)

∀m∃n:xm≠xn\forall m \exists n: x_{m} \neq x_{n};

(2)

∃N∀n⩾N:xn<xN\exists N \forall n \geqslant N: x_{n} < x_{N};

(3)

∃N1∀n⩾N1:xN1>xn\exists N_{1} \forall n \geqslant N_{1}: x_{N_{1}} > x_{n} and ∃N2∀n⩾N2:xN2<xn\exists N_{2} \forall n \geqslant N_{2}: x_{N_{2}} < x_{n};

(4)

∃N∀n>N∀m>n\exists N \forall n > N \forall m > n : xn<xmx_{n} < x_{m};

(5)

∀n∃m>n∃k>n:xm<xn<xk\forall n \exists m > n \exists k > n: x_{m} < x_{n} < x_{k}.

Formulate, using the symbols ∃,∀\exists , \forall, the statement that:

?
(1)

the sequence {xn}\left\{ x_{n}\right\} is not increasing;

(2)

the sequence {xn}\left\{ x_{n}\right\} is not decreasing.

Formulate, in "ε−N\varepsilon -N" language, the negation of the statement that {xn}\left\{ x_{n}\right\} is an infinitesimal sequence, and write it using the symbols ∃,∀\exists , \forall.

?

Must the number aa necessarily be the limit of the sequence {xn}\left\{ x_{n}\right\}, if:

?
(1)

there exists a natural number NN such that for any ε>0\varepsilon > 0 and any n⩾Nn \geqslant N the inequality ∣xn−a∣<ε\left|x_{n}-a\right| < \varepsilon holds;

(2)

for any ε>0\varepsilon > 0 there exist natural numbers NN and n⩾Nn \geqslant N such that ∣xn−a∣<ε\left|x_{n}-a\right| < \varepsilon?

Let KK be the set of all convergent sequences, and let K1,K2,…,K8K_{1}, K_{2}, \ldots , K_{8} be the sets of all sequences satisfying, respectively, the conditions:

?
(1)

∃ε>0∃N∃n⩾N:∣xn∣<ε\exists \varepsilon > 0 \exists N \quad \exists n \geqslant N:\left|x_{n}\right| < \varepsilon;

(2)

∃ε>0∃N∀n⩾N:∣xn∣<ε\exists \varepsilon > 0 \exists N \quad \forall n \geqslant N:\left|x_{n}\right| < \varepsilon;

(3)

∃ε>0∀N∃n⩾N:∣xn∣<ε\exists \varepsilon > 0 \quad \forall N \quad \exists n \geqslant N:\left|x_{n}\right| < \varepsilon

(4)

∀ε>0∃N∃n⩾N:∣xn∣<ε\forall \varepsilon > 0 \exists N \exists n \geqslant N:\left|x_{n}\right| < \varepsilon;

(5)

∃ε>0∀N∀n⩾N:∣xn∣<ε\exists \varepsilon > 0 \forall N \quad \forall n \geqslant N:\left|x_{n}\right| < \varepsilon;

(6)

∀ε>0∃N∀n⩾N:∣xn∣<ε\forall \varepsilon > 0 \exists N \quad \forall n \geqslant N:\left|x_{n}\right| < \varepsilon;

(7)

∀ε>0∃N∀n⩾N:∣xn∣<ε\forall \varepsilon > 0 \exists N \quad \forall n \geqslant N:\left|x_{n}\right| < \varepsilon;

(8)

∀ε>0∀N∀n⩾N:∣xn∣<ε\forall \varepsilon > 0 \quad \forall N \quad \forall n \geqslant N:\left|x_{n}\right| < \varepsilon.

  1. Which of the following inclusions are true:

    1. K6⊂K2K_{6} \subset K_{2};

    2. K2⊂K6K_{2} \subset K_{6};

    3. K7⊂K2K_{7} \subset K_{2};

    4. K8⊂KK_{8} \subset K;

    5. K⊂K8K \subset K_{8}?

  2. For which j=1,2,…,8j = 1,2, \ldots , 8 does the inclusion Kj⊂KK_{j} \subset K hold?

  3. Which of the sets Kj(j=1,2,…,8)K_{j}(j = 1,2, \ldots , 8) contain both convergent and divergent sequences?

  4. Which of the sets Kj(j=1,2,…,8)K_{j}(j = 1,2, \ldots , 8) contain unbounded sequences?

  5. Which of the conditions 1)-8) is satisfied by every sequence?

  6. Which of the sets Kj(j=1,2,…,8)K_{j}(j = 1,2, \ldots , 8) coincide?

Prove that if the sequence {xn}\left\{ x_{n}\right\} satisfies the condition

∀ε>0∃a∃N∀n⩾N:∣xn−a∣<ε \forall \varepsilon > 0 \exists a \exists N \quad \forall n \geqslant N:\left|x_{n}-a\right| < \varepsilon

then {xn}\left\{ x_{n}\right\} is a convergent sequence. Prove that the converse also holds.

?

Prove that the sequence {xn}\left\{ x_{n}\right\} diverges if and only if

∃ε>0∀a∀N∃n⩾N:∣xn−a∣⩾ε \exists \varepsilon > 0 \forall a \forall N \quad \exists n \geqslant N:\left|x_{n}-a\right| \geqslant \varepsilon

(compare this notation with the definition of a divergent sequence in (3)).

?

Write, using the symbols ∀,∃\forall , \exists, the definition of the fact that:

?
(1)

lim⁡n→∞xn=∞\lim_{n \rightarrow \infty } x_{n} = \infty;

(2)

lim⁡n→∞xn=+∞\lim_{n \rightarrow \infty } x_{n} = +\infty;

(3)

lim⁡n→∞xn=−∞\lim_{n \rightarrow \infty } x_{n} = -\infty

Formulate in "ε−N\varepsilon -N language" and write, using the symbols ∃,∀\exists , \forall, the negations of the statements that:

?
(1)

lim⁡n→∞xn=∞\lim_{n \rightarrow \infty } x_{n} = \infty;

(2)

lim⁡n→∞xn=+∞\lim_{n \rightarrow \infty } x_{n} = +\infty;

(3)

lim⁡n→∞xn=−∞\lim_{n \rightarrow \infty } x_{n} = -\infty.

Formulate in positive form the statements:

?
(1)

the sequence does not tend to ∞\infty;

(2)

the sequence does not tend to +∞+\infty;

(3)

the sequence does not tend to κ−∞\mathbf{\kappa }-\infty.

Using the negation of the Cauchy condition, prove that the sequence {xn}\left\{ x_{n}\right\} diverges, if xnx_{n} equals

?
(1)

0,2(−1)nn0,2^{(-1)^{n} n}

(2)

ncos⁡πn−12n\frac{n \cos \pi n-1}{2 n},

(3)

(−1)n(1+1n)n(-1)^{n}\left(1+\frac{1}{n}\right)^{n},

(4)

(1+(−1)nn)n\left(1+\frac{(-1)^{n}}{n}\right)^{n};

(5)

122+232+…+n(n+1)2\frac{1}{2^{2}}+\frac{2}{3^{2}}+\ldots +\frac{n}{(n+1)^{2}}.

A database administrator discovered that one or more of the three records A,BA, B and CC in his database is erroneous. He established that

?
(a)

if record BB is correct, then AA is erroneous;

(b)

at least one record of the pair B,CB, C is correct, and at least one record of the pair A,CA, C is correct;

(c)

if AA is erroneous, then exactly one of the records BB or CC is correct (but not both). Express the administrator's knowledge as a formula of propositional logic. Can he conclude that record BB is erroneous? Can it be reliably asserted that the erroneous record is unique?

The programmer Pyotr used three integer variables x,y,zx, y, z in his C program. At a certain point in the program he placed the conditional statement:

if⁡(x∗y>=0∣∣x∗z>=0)x=1; else x=2;  \operatorname {if}(\mathrm{x} * \mathrm{y}>=0| | \mathrm{x} * \mathrm{z}>=0) \mathrm{x}=1 \text{; else } \mathrm{x}=2 \text{; }

Having analyzed his program, Pyotr established that before this statement is executed the following conditions hold:

?
(a)

if z<0z<0, then x<0x<0 or y⩾0y \geqslant 0;

(b)

x⩾0x \geqslant 0 or y<0y<0;

(c)

if y<0y<0, then exactly one of the variables xx or zz is negative, but not both. Express Pyotr's knowledge as a formula of propositional logic. Can he optimize the program by replacing the given conditional statement with the assignment x=1\mathrm{x}=1; or with the assignment x=2\mathrm{x}=2;? If ``yes'', with which one?

A committee consists of five members. Decisions are made by majority vote; however, if the chairman votes against'', the decision is not adopted. Construct a formula of propositional logic depending on five propositional variables $x_{1}, x_{2}, x_{3}, x_{4}, y$ ($x_{i}$ means that the $i$-th committee member votes for'', yy means that the chairman votes ``for''), whose value equals 1 if and only if the decision is adopted as a result of the vote.

?

In each of the following texts, pick out the elementary statements, denote them with propositional variables, and write down a formula of propositional logic that captures the content of the text.

?
(a)

Misha decided to do a small renovation in his apartment and either put up new wallpaper or repaint the floor. Along with the wallpaper he will need to replace the laminate flooring, change the door, and replace the window's double-glazed unit. After repainting the floor he needs to install a stretch ceiling, a new chandelier, and new furniture. If the laminate is replaced, new furniture will also have to be bought. Old wallpaper cannot be left with old furniture, and old furniture cannot be left with an old chandelier.

(b)

If it is frosty, it will be sunny, or if it is overcast it will snow; and if it is not frosty, it will be sunny, or if it is overcast it will rain. In case of rain or snow it will be damp, and in case of rain it will also be muddy. If it is sunny, there will be neither dampness nor mud.

(c)

When Vova is home, his cat eats or sleeps, and when Vova is away, it also plays. If the cat eats, food needs to be bought. If the cat plays, new furniture or new wallpaper will have to be bought. For food one must go to the Everything for Cats'' pet shop, and for furniture or wallpaper to the Everything for the Home'' hardware store. Either shop requires taking a taxi. Vova will not take a taxi to the ``Everything for the Home'' shop.

Using the signature from example 27 on p. 140 — the two-place predicate symbols P(2)P^{(2)} ("to be a parent of," so P(x,y)P(x,y) means "xx is a parent of yy") and S(2)S^{(2)} ("to be married to," S(x,y)S(x,y) means "xx is married to yy"), and the one-place predicate symbol M(1)M^{(1)} ("to be male") — write formulas meaning:

?
(a)

xx is a grandson of yy;

(b)

xx has at least two children;

(c)

xx and yy have one common child;

(d)

xx has an unmarried sister;

(e)

xx and yy are cousins;

(f)

xx is married, and only one of his sons is married.

The domain includes only the real numbers R\mathbb {R} and the one-place infinitely differentiable functions on the set R\mathbb {R}. The signature contains the three-place predicate symbol V,V(f,x,y)V, V(f, x, y) says "the value of the function ff at the argument xx equals yy"; and the two-place symbol DD, where D(f,g)D(f, g) means "ff is the derivative of gg". Write formulas denoting the following. You may build auxiliary formulas and use ones constructed earlier:

?
(a)

xx is a number;

(b)

ff is a function;

(c)

ff is a constant function;

(d)

ff is a function identically equal to zero;

(e)

x=0x=0;

(f)

ff is the identity function;

(g)

x=1x=1;

(h)

ff is the exponential exe^{x};

(i)

x+y=z−x+y=z- for numbers x,y,zx, y, z;

(j)

xy=zx y=z — for numbers x,y,zx, y, z;

(k)

xx is a non-negative number;

(l)

the number xx is less than the number yy;

(m)

the function ff takes all real values;

(n)

the function ff is one-to-one;

(o)

the function ff is sine;

(p)

the number xx equals π\pi;

(q)

the number xx is a natural number.

Write formulas with free variables from {x,y,z}\left\{ x, y, z\right\} that are true in elementary arithmetic of natural numbers if and only if

?
(a)

xx is an even number;

(b)

xx and yy are relatively prime;

(c)

zz lies in the interval between xx and yy;

(d)

xx is the greatest common divisor of yy and zz;

(e)

xx is the least common multiple of all numbers in the interval [y;z)[y ; z).

Let the signature contain two predicate symbols L(3)L^{(3)} and E(4)E^{(4)}. Tarski's geometry is the interpretation whose domain is the set of points in the Euclidean plane, L(x,y,z)L(x, y, z) means that the points x,yx, y, and zz lie on one line and in exactly that order (yy between xx and zz; not necessarily distinct), and E(x,y,u,v)E(x, y, u, v) means that the lengths of the segments xyx y and uvu v are equal.

Write formulas with free variables from the set {x,y,z,u}\left\{ x, y, z, u\right\} that are true in Tarski's geometry if and only if

?
(a)

x,yx, y, and zz form a triangle;

(b)

xx is the midpoint of the segment yzy z;

(c)

the ray xyx y is the bisector of the angle ∠zxu\angle z x u;

(d)

the angle ∠xyz\angle x y z is a right angle;

(e)

the points x,y,z,ux, y, z, u lie on one circle;

(f)

the triangle △xyz\triangle x y z is acute;

(g)

the segment xyx y is shorter than zuz u;

(h)

the point xx lies inside the circle with center yy and a point zz lying on it.

Represent each of the following sentences by a formula of predicate logic, defining in each case a suitable signature.

?
(a)

Not all students study both analysis and history.

(b)

Only one student did not take the discrete mathematics exam.

(c)

Only one student passed all exams with 100 points.

(d)

The maximum score obtained in discrete mathematics exceeds the maximum score obtained in computer science.

(e)

There is a barber who shaves only those residents of the town who do not shave themselves.

(f)

There are politicians who can fool all the people some of the time; there are politicians who can fool some people all the time; but no one can fool all the people all the time.

Write a formula of predicate logic that is true only in interpretations whose domain contains one element (two, three, ..., kk elements).

?

Write a formula of predicate logic that is true only in interpretations in which the (n+1)(n+1)-place relation FF represents a function.

?

Write formulas expressing the following integrity constraints for the database from example 35 on p. 162, and determine which of them hold for its given state:

Example 35: the database has schema {Employees(Number,FullName,Department,Position,Salary),Rooms(EmployeeNumber,Floor,RoomNumber),Equipment(Floor,RoomNumber,Name)}\left\{ \text{Employees}(\text{Number}, \text{FullName}, \text{Department}, \text{Position}, \text{Salary}), \text{Rooms}(\text{EmployeeNumber}, \text{Floor}, \text{RoomNumber}), \text{Equipment}(\text{Floor}, \text{RoomNumber}, \text{Name})\right\}, with its state given by:

?
(a)

in the relation Rooms, the set of attributes (EmployeeNumber, RoomNumber) is a key;

(b)

for every person in the relation Employees, their workplace is defined in the relation Rooms;

(c)

in the relation Rooms, the numbers of all rooms on the second floor are greater than 10 but less than 20, and the numbers of all rooms on the third floor are greater than 20.

The table shown in fig. 115 shows the encoding of the decimal digits from 0 to 9 by means of four propositional variables A,B,C,D∈BA, B, C, D \in \mathbb {B}. Combinations of values of A,B,CA, B, C and DD not listed in the table are erroneous codes. Which of the following Boolean formulas define the set of all erroneous codes:

?
(a)

(¬A→(B∧C))(\neg A \rightarrow (B \wedge C));

(b)

((A∧B)∨(C∧D))((A \wedge B) \vee (C \wedge D));

(c)

((A∧B)∨(A⊕C))((A \wedge B) \vee (A \oplus C));

(d)

((A∧¬B)∨(C∧D))((A \wedge \neg B) \vee (C \wedge D));

(e)

((A∧B)∨(A∧C))((A \wedge B) \vee (A \wedge C));

(f)

(A∧(B⊕C))(A \wedge (B \oplus C))?

Fig. 3: Table from problem 115.Fig. 3: Table from problem 115.

Using the code table from the previous problem and assuming that the code is not erroneous, construct a formula with four variables A,B,CA, B, C and DD that will have value 1 if and only if the encoded number

?
(a)

equals 6;

(b)

is divisible by 4;

(c)

is divisible by 3;

(d)

is prime;

(e)

is composite;

(f)

is a Fibonacci number.

The variables (A1,B1,C1,D1)(A_{1}, B_{1}, C_{1}, D_{1}) and (A2,B2,C2,D2)(A_{2}, B_{2}, C_{2}, D_{2}) encode the numbers x1x_{1} and x2x_{2} respectively (see problem 115). Assuming that neither code is erroneous, write a formula that will have value 1 if and only if

?
(a)

x1=x2x_{1}=x_{2};

(b)

x1<x2x_{1}<x_{2};

(c)

x1⩽x2x_{1} \leqslant x_{2}.

The variables (C1,D1)(C_{1}, D_{1}) and (C2,D2)(C_{2}, D_{2}) encode the numbers x1x_{1} and x2x_{2} respectively from the set {0,1,2,3}\left\{ 0,1,2,3\right\} (see problem 115). Write formulas pA,pB,pCp_{A}, p_{B}, p_{C} and pDp_{D} whose values encode the product of these numbers.

?

A database administrator has discovered that one or more of three records in his database A,BA, B and CC is erroneous. He has established that

?
(a)

if record BB is correct, then AA is erroneous;

(b)

at least one record of the pair B,CB, C is correct and at least one record of the pair A,CA, C is correct;

(c)

if AA is erroneous, then at least one of the records BB or CC is correct (but not both together). Describe the administrator's knowledge as a formula of propositional logic. Can he conclude that record BB is erroneous? Can it be reliably asserted that the erroneous record is unique?

The programmer Peter used three integer variables x,y,zx, y, z in his C program. At a certain point in the program he placed the conditional statement: if (x∗y>=0∣∣x∗z>=0)(\mathrm{x} * \mathrm{y}>=0| | \mathrm{x} * \mathrm{z}>=0) x=1\mathrm{x}=1; else x=2\mathrm{x}=2; Having analyzed his program, Peter established that before this statement is executed the following conditions hold:

?
(a)

if z<0z<0, then x<0x<0 or y⩾0y \geqslant 0;

(b)

x⩾0x \geqslant 0 or y<0y<0;

(c)

if y<0y<0, then at least one of the variables xx or zz is negative, but not both together.

Describe Peter's knowledge as a formula of propositional logic. Can he optimize the program by replacing the given conditional statement with the assignment x=1\mathrm{x}=1; or with the assignment x=2\mathrm{x}=2;? If "yes", then with which one?

A committee consists of five members. Decisions are made by majority vote, however, if the chairman votes "against", the decision is not adopted. Construct a formula of propositional logic depending on five propositional variables x1,x2,x3,x4,yx_{1}, x_{2}, x_{3}, x_{4}, y (xix_{i} means that the ii-th committee member votes "for", yy means that the chairman votes "for"), whose value equals 1 if and only if the decision is adopted as a result of the vote.

?

In each of the following texts identify the elementary statements, denote them by propositional variables, and write a formula of propositional logic reflecting the content of the text.

?
(a)

Misha decided to do a small renovation in his apartment and either put up new wallpaper or paint the floor. Along with the wallpaper he will need to renew the laminate flooring, replace the doors, and replace the double-glazed window. After painting the floor he needs to install a stretch ceiling, a new chandelier, and furniture. If the laminate flooring is renewed, then new furniture will also have to be bought. The old wallpaper cannot be left with the old furniture, nor can the old furniture be left with the old chandelier.

(b)

If there is frost, then it will be sunny, or if the weather is overcast it will snow, and if there is no frost, then it will be sunny, or if the weather is overcast it will rain. In case of rain or snow it will be damp, and in case of rain it will also be muddy. If it is sunny, then there will be neither dampness nor mud.

(c)

When Vova is at home, his cat eats or sleeps, and if Vova is not there, it also plays. If the cat eats, cat food needs to be bought. If the cat plays, new furniture or new wallpaper will have to be bought. For food one needs to go to the pet shop "Everything for Cats", and for furniture or wallpaper — to the hardware store "Everything for the Home". A taxi is needed to get to either shop. Vova will not take a taxi to the "Everything for the Home" store.

Detective Sh. Holmes suspects three persons of committing a crime: A,BA, B and CC. He has established that

?
(a)

if BB is the criminal, then CC is also the criminal;

(b)

someone from the pair A,CA, C is the criminal, but not both together;

(c)

if CC is not the criminal, then AA is not the criminal either.

Describe Sh. Holmes's knowledge as a formula of propositional logic and construct its truth table. Can he conclude that CC is the criminal? Can it be reliably asserted that the criminal acted alone?

Detective E. Poirot suspects three persons of committing a crime: A,BA, B and CC. They gave the following testimony: - AA: if BB is the criminal, then CC is innocent; - BB: if AA is guilty, then CC is also the criminal; - CC: AA is the criminal. E. Poirot has established that (а) if AA told the truth, then BB lied, and (б) CC's testimony is false. Describe E. Poirot's knowledge as a formula of propositional logic and construct its truth table. Can he conclude that BB is the criminal? Could the criminal have been alone?

?

Suppose that in every zoo that has lions and rhinoceroses there are no giraffes; in every zoo that has rhinoceroses and no giraffes there are lions; finally, in every zoo that has lions and giraffes there are also rhinoceroses. Do you think there can exist a zoo in which there are lions but neither giraffes nor rhinoceroses?

?

Anna, Beatrice, and Vera once discovered that they were all wearing identical jeans. It is known that Anna has jeans with pockets, narrow jeans, and faded jeans without pockets; Beatrice has jeans without pockets and faded narrow jeans with pockets. And finally, Vera has flared jeans and blue narrow jeans with pockets. What do their identical jeans look like?

?

A student who knew English poorly went on an internship in England. He needed to get to Manchester. He hitchhiked on the highway and stopped a car in which there were a father, a mother, and a daughter, who answered his question about their trip. He translated each phrase they said in two different ways and could not decide what the phrase actually meant. Here is what they said (the second possible meaning is given in parentheses).

Father: we are heading to Manchester (we are coming from Newcastle). Mother: we are not heading to Manchester, and we are coming from Newcastle (we did not stop in Liverpool and we are coming from Newcastle).

Daughter: we are not coming from Newcastle (we stopped in Liverpool). Should the student get into this car?

?

Lewis Carroll, the author of the widely known book "Alice in Wonderland" (it is less well known that he was a mathematician), liked to pose the following puzzle consisting of four statements: "One of two things: either the culprit left in a carriage, or the witness was mistaken. If the culprit had an accomplice, then he left in a carriage. The culprit had neither an accomplice nor a key; or he had both an accomplice and a key. The culprit had a key." What conclusion can be drawn from this?

?

A professor of economics formulated three rules for the students:

?
(a)

if investments do not increase, then either government spending will increase or unemployment will arise;

(b)

if government spending does not increase, then taxes will decrease;

(c)

if taxes decrease and investments increase, then unemployment will not arise.

It turned out that at the present moment investments have not increased. Can the students conclude that government spending will increase?

Formulate the following puzzles as instances of problems in NP, and then solve the puzzles by finding the witnesses to the instances:

?
(a)

Six men, A,B,C,D,E\mathrm{A}, \mathrm{B}, \mathrm{C}, \mathrm{D}, \mathrm{E}, and F, are the only members eligible for the offices of President, Vice-President, and Secretary in Club NP. The following preferences of these men are known:

  • A won’t be an officer unless E is President.

  • B won’t serve if he outranks C.

  • B won’t serve with F under any conditions.

  • C won’t serve with both E and F.

  • C won’t serve if F is President or B is Secretary.

  • D won’t serve with C or E unless he outranks them.

  • E won’t be Vice-President.

  • E won’t be Secretary if D is an officer.

  • E won’t serve with A unless F serves too.

  • F won’t serve unless either he or C is President.

How can the three offices be filled satisfying all above conditions?

(b)

Police arrested four men as the suspects of a murder case. They made the following statements when questioned:

John: "Nick did it." Nick: "Bill did it." Dan: "I didn't do it." Bill: "Nick lied when he said I did it."

If exactly one of them is the real murderer and exactly one of the above statements is true, who is the murderer?

(c)

Brown, Jones, and Smith are employed by the village of NP as fireman, policeman, and teacher, though not necessarily respectively. Someone in the village reported that:

  • Brown and the teacher are neighbors.

  • Jones and the teacher are neighbors.

  • Both Brown and Smith are neighbors of the fireman.

  • Both the policeman and the fireman are neighbors of Jones.

  • The men are all neighbors.

However, the truth of the matter is that only two of these statements are true. Can you determine the job which each man holds?

(d)

Both the Smiths and the Taylors have two young sons under eleven. The names of the boys, whose ages rounded off to the nearest year are all different, are Arthur, Bert, Carl, and David. Taking the ages of the boys only to the nearest year, the following statements are true:

  • Arthur is three years younger than his brother.

  • Bert is the oldest.

  • Carl is half as old as one of the Taylor boys.

  • David is five years older than the younger Smith boy.

  • The total ages of the boys in each family differ by the same amount today as they did five years ago.

How old is each boy, and what is each boy's family name?"

Formulate the following puzzle as a Boolean formula FF, and solve it by determining whether FF is satisfiable:

With five games left in the regular season, the team mathematician reported to the manager of the baseball team A: "We can still make the playoffs if we can beat team BB, and in case team BB beats team CC then team CC beats team DD, and in case we lose to team CC then team DD also beats either team BB or team CC." Later, among the remaining five games, each team won at least one game, but no team won all its remaining games, and there was no tie game. Did team A have any chance to make the playoffs? If so, how?

?

Formulate the following puzzle as a Boolean formula FF, and solve it by determining whether FF is satisfiable:

Three men named Lewis, Miller, and Nelson fill the positions of accountant, cashier, and manager in the leading department store in the City of NP. The following information about their jobs is known:

  • If Nelson is the cashier, Miller is the manager.

  • If Nelson is the manager, Miller is the accountant.

  • If Miller is not the cashier, Lewis is the manager.

  • If Lewis is the accountant, Nelson is the manager.

What is each man's job?

?

(Knight's Tour) Find a tour of the 8×88 \times 8 chessboard by a knight which visits each square exactly once and comes back to the starting square.

36334027442946
34372532472643
74393641284530
38358148314225
964135617244958
1455106152571821
6312531623205950
5415621160512219
: Figure 7.1: A knight’s tour.
?

References

[ККЧ+03] Кудрявцев Л.Д., Кутасов А.Д., Чехлов В.И., Шабунин М.И. Предел. Непрерывность. Дифференцируемость. 2-е изд., ФИЗМАТЛИТ, 2003.
[ДДК+21a] Дехтярь М.И., Дудаков С.М., Карлов М.И., Карлов Б.Н. Лекции по дискретной математике. 3-е изд., Тверской государственный университет, 2021.
[ДДК+21b] Дехтярь М.И., Дудаков С.М., Карлов Б.Н., Карлов М.И. Задачник по дискретной математике. 2-е изд., Тверской государственный университет, 2021.
[DuKo01] Du D., Ko K. Problem Solving in Automata, Languages, and Complexity. John Wiley & Sons, 2001.