Chapter 10

Predicate Logic

[25/100%]
Show
LaTeX
Problem 249

For each of the following formulas determine which occurrences of the variables in them are free and which are bound (and by which quantifier). Here QQ is a three-place predicate symbol.

?
(a)

(∀x)((∃z)Q(x,z,y)→(∀x)(Q(z,x,y)→(∃y)(Q(z,y,x)∨x≈z)))(\forall x)((\exists z) Q(x, z, y) \rightarrow (\forall x)(Q(z, x, y) \rightarrow (\exists y)(Q(z, y, x) \vee x \approx z)));

(b)

(∃y)((∃x)(¬x≈y∧Q(x,x,y)∧(\exists y)((\exists x)(\neg x \approx y \wedge Q(x, x, y) \wedge

∧(∀x)(Q(x,z,y)→(∃z)(Q(x,y,z)∨Q(z,z,y)))); \wedge (\forall x)(Q(x, z, y) \rightarrow (\exists z)(Q(x, y, z) \vee Q(z, z, y)))) ;
(c)

(∀x)((∃z)Q(z,z,x)∧(∃x)Q(y,y,x))∨(\forall x)((\exists z) Q(z, z, x) \wedge (\exists x) Q(y, y, x)) \vee

∨(∃x)((∃z)Q(x,x,z)→(∀x)Q(x,y,y)); \vee (\exists x)((\exists z) Q(x, x, z) \rightarrow (\forall x) Q(x, y, y)) ;
(d)

(∃y)Q(x,y,z)∨(∃x)(Q(z,x,y)∧(∀y)Q(y,x,y))∧(\exists y) Q(x, y, z) \vee (\exists x)(Q(z, x, y) \wedge (\forall y) Q(y, x, y)) \wedge

∧(∀z)(∃x)Q(z,z,x). \wedge (\forall z)(\exists x) Q(z, z, x).
Problem 250

For each formula Φ\Phi from the previous problem

?
(a)

(∀x)((∃z)Q(x,z,y)→(∀x)(Q(z,x,y)→(∃y)(Q(z,y,x)∨x≈z)))(\forall x)((\exists z) Q(x, z, y) \rightarrow (\forall x)(Q(z, x, y) \rightarrow (\exists y)(Q(z, y, x) \vee x \approx z)));

(b)

(∃y)((∃x)(¬x≈y∧Q(x,x,y)∧(\exists y)((\exists x)(\neg x \approx y \wedge Q(x, x, y) \wedge

∧(∀x)(Q(x,z,y)→(∃z)(Q(x,y,z)∨Q(z,z,y)))); \wedge (\forall x)(Q(x, z, y) \rightarrow (\exists z)(Q(x, y, z) \vee Q(z, z, y)))) ;
(c)

(∀x)((∃z)Q(z,z,x)∧(∃x)Q(y,y,x))∨(\forall x)((\exists z) Q(z, z, x) \wedge (\exists x) Q(y, y, x)) \vee

∨(∃x)((∃z)Q(x,x,z)→(∀x)Q(x,y,y)); \vee (\exists x)((\exists z) Q(x, x, z) \rightarrow (\forall x) Q(x, y, y)) ;
(d)

(∃y)Q(x,y,z)∨(∃x)(Q(z,x,y)∧(∀y)Q(y,x,y))∧(\exists y) Q(x, y, z) \vee (\exists x)(Q(z, x, y) \wedge (\forall y) Q(y, x, y)) \wedge

∧(∀z)(∃x)Q(z,z,x). \wedge (\forall z)(\exists x) Q(z, z, x).

determine which of the following substitutions are possible: (Φ)yx,(Φ)zx,(Φ)xy,(Φ)zy,(Φ)xz(\Phi )_{y}^{x},(\Phi )_{z}^{x},(\Phi )_{x}^{y},(\Phi )_{z}^{y},(\Phi )_{x}^{z}, (Φ)yz(\Phi )_{y}^{z}. Explain why. In the cases where it is possible, find the result of the substitution.

Problem 251

Let RR be a two-place predicate symbol. Write closed formulas meaning:

?
(a)

RR is reflexive;

(b)

RR is antireflexive;

(c)

RR is symmetric;

(d)

RR is antisymmetric;

(e)

RR is transitive;

(f)

RR is an equivalence relation;

(g)

RR is a strict linear order.

Problem 252

Let ⩽\leqslant be a two-place predicate symbol meaning a non-strict partial order relation. Write formulas with one free variable xx meaning:

?
(a)

xx is the greatest element;

(b)

xx is a maximal element;

(c)

xx is the unique maximal element;

(d)

xx is comparable with every element;

(e)

xx is comparable with every maximal element;

(f)

xx is incomparable with exactly one element.

Problem 253

Let us assume that the domain is the set of people, and the signature contains the symbols P(2),S(2)P^{(2)}, S^{(2)} and M(1)M^{(1)}, meaning the relations "to be a parent of", "to be married to", and "to be a man", respectively. Write formulas meaning:

?
(a)

xx is the 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 of his sons only one is married.

Problem 254

The domain consists only of the real numbers R\mathbb {R} and one-place infinitely differentiable functions on the set R\mathbb {R}. The signature contains a three-place predicate symbol VV, where V(f,x,y)V(f, x, y) says "the value of the function ff at the argument xx equals yy"; and a two-place symbol DD, where D(f,g)D(f, g) means "ff is the derivative of gg". Write formulas denoting the following. It is allowed to construct auxiliary formulas and use those 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=zx+y=z — for numbers x,y,zx, y, z;

(j)

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

(k)

xx is a nonnegative number;

(l)

the number xx is less than the number yy;

(m)

the function ff takes all real values;

(n)

the function ff is bijective;

(o)

the function ff is sine;

(p)

the number xx equals π\pi;

(q)

the number xx is a natural number.

Problem 255

Elementary arithmetic of natural numbers is the following interpretation N=(ω,ν,σ)\mathcal{N}=(\omega , \nu , \sigma ): the domain is the set of natural numbers ω\omega, the three-place predicate symbols A(x,y,z)A(x, y, z) and M(x,y,z)M(x, y, z) mean that x+y=zx+y=z and xy=zx y=z respectively, and the names of numbers are written in the usual way in decimal notation: 0 — zero, 1 — one, and so on. There are also variables x,y,zx, y, z and others whose values are not known in advance.

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 coprime;

(c)

zz lies between xx and yy;

(d)

xx is the greatest common divisor of yy and zz;

(e)

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

Problem 256

Let the signature contain a single two-place predicate symbol ⊆\subseteq, which in the interpretation I=(P(A),ν,σ)I=(\mathrm{P}(A), \nu , \sigma ) means, as usual, "to be a subset of". Write formulas with free variables from {x,y,z}\left\{ x, y, z\right\} that are true in this interpretation if and only if

?
(a)

x=∅x=\varnothing;

(b)

x=Ax=A;

(c)

∣x∣=1\left|x\right|=1;

(d)

x=y∩zx=y \cap z;

(e)

x=y∪zx=y \cup z;

(f)

x=y\zx=y \backslash z.

Problem 257

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 this order (yy between xx and zz, not necessarily distinct), and E(x,y,u,v)E(x, y, u, v) means that the segments xyx y and uvu v are equal in length.

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 centered at yy passing through the point zz lying on it.

Problem 258

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

?
(a)

Not all students take both calculus and history.

(b)

Only one student did not take the discrete mathematics exam.

(c)

Only one student scored 100 points on all exams.

(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 inhabitants of the town who do not shave themselves.

(f)

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

Problem 259

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

?
Problem 260

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

?
Problem 261

Determine which of the following formulas are true in elementary arithmetic (problem 255 on p. 75), explain what they mean:

?
(a)

(∀x)(∃y)(∃z)(A(x,y,z)∧M(x,y,z))(\forall x)(\exists y)(\exists z)(A(x, y, z) \wedge M(x, y, z));

(b)

(∀x)(∃y)(A(y,y,x)∨(∃z)(A(y,y,z)∧A(z,1,x)))(\forall x)(\exists y)(A(y, y, x) \vee (\exists z)(A(y, y, z) \wedge A(z, 1, x)));

(c)

(∀x)(∀y)(∀z)((∃u)M(x,u,y)∧(∃u)M(y,u,z)→(∃u)M(x,u,z))(\forall x)(\forall y)(\forall z)((\exists u) M(x, u, y) \wedge (\exists u) M(y, u, z) \rightarrow (\exists u) M(x, u, z));

(d)

(∀x)(∃y)(M(y,y,x)∨(∃z)(M(y,y,z)∧M(z,y,x)))(\forall x)(\exists y)(M(y, y, x) \vee (\exists z)(M(y, y, z) \wedge M(z, y, x)));

(e)

(∀x)(M(x,x,x)∨(∃y)(M(x,x,y)∧(\forall x)(M(x, x, x) \vee (\exists y)(M(x, x, y) \wedge

∧(∃u)(∃v)(∃w)(A(x,u,v)∧A(v,w,y)∧∧(∃z)(M(u,w,z)∧¬z≈0)))). \begin{align} \wedge (\exists u)(\exists v)(\exists w)(& A(x, u, v) \wedge A(v, w, y) \wedge \\ & \wedge (\exists z)(M(u, w, z) \wedge \neg z \approx 0)))). \end{align}
Problem 262

Determine which of the following formulas are true in Tarski's geometry (problem 257 on p. 75), explain what they mean:

?
(a)

(∀x)(∀y)(∃z)(L(x,y,z)∧E(x,y,y,z))(\forall x)(\forall y)(\exists z)(L(x, y, z) \wedge E(x, y, y, z));

(b)

(∀x)(∀y)(∀z)(∃u)(E(u,x,u,y)∧E(u,y,u,z))(\forall x)(\forall y)(\forall z)(\exists u)(E(u, x, u, y) \wedge E(u, y, u, z));

(c)

(∀x)(∀y)(∃u)(∃v)(∀z)(E(z,x,z,y)→(\forall x)(\forall y)(\exists u)(\exists v)(\forall z)(E(z, x, z, y) \rightarrow

→L(z,u,v)∨L(z,v,u)∨L(u,z,v)); \rightarrow L(z, u, v) \vee L(z, v, u) \vee L(u, z, v)) ;
(d)

(∀x)(∃y)(∃z)(∃u)(L(y,u,z)∧(\forall x)(\exists y)(\exists z)(\exists u)(L(y, u, z) \wedge

∧(∀v)(L(y,v,z)∧E(x,u,x,v)→u≈v)); \wedge (\forall v)(L(y, v, z) \wedge E(x, u, x, v) \rightarrow u \approx v)) ;
(e)

(∀x)(∀y)(∀z)(¬x≈y∧¬E(x,y,x,z)→(\forall x)(\forall y)(\forall z)(\neg x \approx y \wedge \neg E(x, y, x, z) \rightarrow

→(∀u)(E(x,z,x,u)∧L(x,u,y)→→(∀v)(E(x,u,x,v)∧E(y,u,y,v)→u≈v))). \begin{align} & \rightarrow (\forall u)(E(x, z, x, u) \wedge L(x, u, y) \rightarrow \\ & \rightarrow (\forall v)(E(x, u, x, v) \wedge E(y, u, y, v) \rightarrow u \approx v))). \end{align}
Problem 263

The signature and interpretation are taken from problem 254 on p. 74. Determine which of the following formulas are true in this interpretation, explain what they mean:

?
(a)

(∀x)(∀y)((∃z)(D(z,x)∧D(z,y))→x≈y)(\forall x)(\forall y)((\exists z)(D(z, x) \wedge D(z, y)) \rightarrow x \approx y);

(b)

(∀x)(∀y)(∃z)(∀u)(∀v)(∀w)(V(x,u,v)∧V(y,v,w)→V(z,u,w))(\forall x)(\forall y)(\exists z)(\forall u)(\forall v)(\forall w)(V(x, u, v) \wedge V(y, v, w) \rightarrow V(z, u, w));

(c)

(∀x)(∃y)(∀u)(∀v)(V(x,u,v)→V(y,v,u))(\forall x)(\exists y)(\forall u)(\forall v)(V(x, u, v) \rightarrow V(y, v, u));

(d)

(∀x)(∀y)((∃z)(D(z,x)∧D(z,y))∧(\forall x)(\forall y)((\exists z)(D(z, x) \wedge D(z, y)) \wedge

∧(∃u)(∃v)(V(x,u,v)∧V(y,u,v))→x≈y); \wedge (\exists u)(\exists v)(V(x, u, v) \wedge V(y, u, v)) \rightarrow x \approx y) ;
(e)

(∃x)(D(x,x)∧(∀y)¬V(x,y,y))(\exists x)(D(x, x) \wedge (\forall y) \neg V(x, y, y));

(f)

(∃x)(¬D(x,x)∧(∃y)(D(y,x)∧D(x,y)))(\exists x)(\neg D(x, x) \wedge (\exists y)(D(y, x) \wedge D(x, y))).

Problem 264

The signature Σ\Sigma consists of a two-place predicate symbol E(2)E^{(2)}, the individual variables a,…,ga, \ldots , g and others. The interpretation G\mathfrak {G} is depicted in fig. 6, an arrow from xx to yy means that (x,y)∈E(x, y) \in E (such interpretations are called graphs).

Fig. 6: The graph \mathfrak {G} from problem 264.Fig. 6: The graph \mathfrak {G} from problem 264.

Determine which of the following formulas are true in this interpretation, explain what they mean:

?
(a)

(∀x)(∃y)(∃z)(E(x,y)∧E(z,x))(\forall x)(\exists y)(\exists z)(E(x, y) \wedge E(z, x));

(b)

(∀x)(∃y)(∃z)(E(x,y)∧E(y,z)∧E(z,x))(\forall x)(\exists y)(\exists z)(E(x, y) \wedge E(y, z) \wedge E(z, x));

(c)

(∀x)(∃z)(E(z,z)∧(E(x,z)∨(∃y)(E(x,y)∧E(y,z))))(\forall x)(\exists z)(E(z, z) \wedge (E(x, z) \vee (\exists y)(E(x, y) \wedge E(y, z))));

(d)

(∀x)(∀y)(E(x,y)→¬E(x,x)∨¬E(y,y))(\forall x)(\forall y)(E(x, y) \rightarrow \neg E(x, x) \vee \neg E(y, y));

(e)

(∃x)(∀y)(∀z)(E(x,y)∧E(y,z)→¬x≈y∧¬x≈z)(\exists x)(\forall y)(\forall z)(E(x, y) \wedge E(y, z) \rightarrow \neg x \approx y \wedge \neg x \approx z);

(f)

(∃x)(∃y)(E(x,y)∧(∀z)(E(x,z)→y≈z))(\exists x)(\exists y)(E(x, y) \wedge (\forall z)(E(x, z) \rightarrow y \approx z));

(g)

(∃x)(∀y)(∀z)(∀u)(E(g,y)∧E(y,z)∧E(z,u)→(\exists x)(\forall y)(\forall z)(\forall u)(E(g, y) \wedge E(y, z) \wedge E(z, u) \rightarrow

→¬y≈x∧¬z≈x∧¬u≈x).(⊛) \rightarrow \neg y \approx x \wedge \neg z \approx x \wedge \neg u \approx x). \tag {⊛}
Problem 265

Prove the following equivalences:

?
(a)

(∃x)(Φ∨Ψ)≡(∃x)Φ∨(∃x)Ψ(\exists x)(\Phi \vee \Psi ) \equiv (\exists x) \Phi \vee (\exists x) \Psi;

(b)

(∀x)(Φ∧Ψ)≡(∀x)Φ∧(∀x)Ψ(\forall x)(\Phi \wedge \Psi ) \equiv (\forall x) \Phi \wedge (\forall x) \Psi;

(c)

(∃x)(∃y)Φ≡(∃y)(∃x)Φ;(\exists x)(\exists y) \Phi \equiv (\exists y)(\exists x) \Phi ;

(d)

(∀x)(∀y)Φ≡(∀y)(∀x)Φ(\forall x)(\forall y) \Phi \equiv (\forall y)(\forall x) \Phi.

Problem 266

Prove the following equivalences:

?
(a)

(∃x)(x≈y∧Φ)≡(Φ)yx(\exists x)(x \approx y \wedge \Phi ) \equiv (\Phi )_{y}^{x};

(b)

(∀x)(x≈y→Φ)≡(Φ)yx(\forall x)(x \approx y \rightarrow \Phi ) \equiv (\Phi )_{y}^{x};

(c)

Φ∨(∃x)Φ≡(∃x)Φ\Phi \vee (\exists x) \Phi \equiv (\exists x) \Phi;

(d)

Φ∧(∀x)Φ≡(∀x)Φ\Phi \wedge (\forall x) \Phi \equiv (\forall x) \Phi.

Problem 267

Prove the following implications:

?
(a)

(∃x)(Φ∧Ψ)⇒(∃x)Φ∧(∃x)Ψ(\exists x)(\Phi \wedge \Psi ) \Rightarrow (\exists x) \Phi \wedge (\exists x) \Psi;

(b)

(∀x)Φ∨(∀x)Ψ⇒(∀x)(Φ∨Ψ)(\forall x) \Phi \vee (\forall x) \Psi \Rightarrow (\forall x)(\Phi \vee \Psi );

(c)

(∀x)(Φ→Ψ)⇒(∀x)Φ→(∀x)Ψ(\forall x)(\Phi \rightarrow \Psi ) \Rightarrow (\forall x) \Phi \rightarrow (\forall x) \Psi;

(d)

(∃x)(∀y)Φ⇒(∀y)(∃x)Φ(\exists x)(\forall y) \Phi \Rightarrow (\forall y)(\exists x) \Phi.

Problem 268

Give examples of formulas without negations of elementary arithmetic that show that the implications

?
(a)

(∃x)(Φ∧Ψ)⇒(∃x)Φ∧(∃x)Ψ(\exists x)(\Phi \wedge \Psi ) \Rightarrow (\exists x) \Phi \wedge (\exists x) \Psi;

(b)

(∀x)Φ∨(∀x)Ψ⇒(∀x)(Φ∨Ψ)(\forall x) \Phi \vee (\forall x) \Psi \Rightarrow (\forall x)(\Phi \vee \Psi );

(c)

(∀x)(Φ→Ψ)⇒(∀x)Φ→(∀x)Ψ(\forall x)(\Phi \rightarrow \Psi ) \Rightarrow (\forall x) \Phi \rightarrow (\forall x) \Psi;

(d)

(∃x)(∀y)Φ⇒(∀y)(∃x)Φ(\exists x)(\forall y) \Phi \Rightarrow (\forall y)(\exists x) \Phi.

from the previous problem are false in the reverse direction.

Problem 269

Bring the following formulas to prenex form, QQ is a two-place predicate symbol:

?
(a)

¬(∀z)¬(∀x)(∃y)(∀u)(Q(x,y)∧Q(z,u))\neg (\forall z) \neg (\forall x)(\exists y)(\forall u)(Q(x, y) \wedge Q(z, u));

(b)

(∃x)(∀y)Q(x,y)→(∃x)(∀y)Q(y,x)(\exists x)(\forall y) Q(x, y) \rightarrow (\exists x)(\forall y) Q(y, x);

(c)

¬((∀x)((∀y)Q(x,y)→Q(x,z))∨((∀z)Q(z,x)∧¬(∃y)Q(y,x)))\neg ((\forall x)((\forall y) Q(x, y) \rightarrow Q(x, z)) \vee ((\forall z) Q(z, x) \wedge \neg (\exists y) Q(y, x))).

Problem 270

Using transformations, prove the following equivalences, where the formula Θ\Theta does not contain the variable xx free:

?
(a)

(∃x)(Φ→Ψ)≡(∀x)Φ→(∃x)Ψ(\exists x)(\Phi \rightarrow \Psi ) \equiv (\forall x) \Phi \rightarrow (\exists x) \Psi;

(b)

(∀x)(Θ→Φ)≡Θ→(∀x)Φ(\forall x)(\Theta \rightarrow \Phi ) \equiv \Theta \rightarrow (\forall x) \Phi;

(c)

(∀x)(Φ→Θ)≡(∃x)Φ→Θ(\forall x)(\Phi \rightarrow \Theta ) \equiv (\exists x) \Phi \rightarrow \Theta.

Problem 271

Prove that a quantifier-free formula of predicate logic Φ\Phi that does not contain the equality sign ≈\approx is identically true if and only if it can be obtained from some identically true Boolean formula Ψ\Psi by replacing every occurrence of each propositional variable in Ψ\Psi with some atomic subformula of Φ\Phi.

?
Problem 272

Using transformations, prove the identical truth of the following formulas:

?
(a)

(∀x)(Φ→Ψ)→((∀x)Φ→(∀x)Ψ);(\forall x)(\Phi \rightarrow \Psi ) \rightarrow ((\forall x) \Phi \rightarrow (\forall x) \Psi ) ;

(b)

(∀x)(Φ→Ψ)→((∃x)Φ→(∃x)Ψ)(\forall x)(\Phi \rightarrow \Psi ) \rightarrow ((\exists x) \Phi \rightarrow (\exists x) \Psi );

(c)

(∀x)Φ→((∃x)Ψ→(∃x)(Φ∧Ψ))(\forall x) \Phi \rightarrow ((\exists x) \Psi \rightarrow (\exists x)(\Phi \wedge \Psi ));

(d)

((∀x)Φ→(∀x)¬Ψ)→((∀x)(Φ→Ψ)→(∃x)¬Φ)((\forall x) \Phi \rightarrow (\forall x) \neg \Psi ) \rightarrow ((\forall x)(\Phi \rightarrow \Psi ) \rightarrow (\exists x) \neg \Phi ).

Problem 273

Prove that the following formula cannot be true on any finite domain, but can be true on infinite ones:

(∃x)(∀y)¬R(y,x)∧(∀x)(∃y)R(x,y)∧∧(∀x)(∀y)(∀z)(R(x,y)∧R(z,y)→x≈z) \begin{aligned} (\exists x)(\forall y) \neg R(y, x) \wedge & (\forall x)(\exists y) R(x, y) \wedge \\ & \wedge (\forall x)(\forall y)(\forall z)(R(x, y) \wedge R(z, y) \rightarrow x \approx z) \end{aligned}
?