Chapter 5

Equivalence of Formulas

[16/94%]
Show
LaTeX
Problem 141

Prove that the formula Φ\Phi implies the formula Ψ\Psi if and only if Φ∧Ψ≡Φ\Phi \wedge \Psi \equiv \Phi, if and only if Φ∨Ψ≡Ψ.⊛\Phi \vee \Psi \equiv \Psi . \quad \circledast

?
Problem 142

Verify all the basic equivalences given at the beginning of the section by directly constructing truth tables for the functions represented by their left- and right-hand sides.

?
Problem 143

Let us call a logical product a formula of the form Φ1∧Φ2∧…∧Φn\Phi_{1} \wedge \Phi_{2} \wedge \ldots \wedge \Phi_{n}. We will call its subformulas Φi,1⩽i⩽n\Phi_{i}, 1 \leqslant i \leqslant n, factors. Similarly, let us call a logical sum a formula of the form Φ1∨Φ2∨…∨Φn\Phi_{1} \vee \Phi_{2} \vee \ldots \vee \Phi_{n}. We will call its subformulas Φi\Phi_{i}, 1⩽i⩽n1 \leqslant i \leqslant n, terms.

Show that the following rules for transforming logical products and sums can be derived from the basic identities:

?
(a)

if in a logical product at least one of the factors equals 0, then the whole product equals 0;

(b)

if in a logical sum at least one of the terms equals 1, then the whole sum equals 1;

(c)

if in a logical product n⩾2n \geqslant 2 and there is a factor equal to 1, then it can be struck out;

(d)

if in a logical sum n⩾2n \geqslant 2 and there is a term equal to 0, then it can be struck out.

Problem 144

Using the basic identities, prove the equivalence of the following pairs of formulas.

?
(a)

¬(x∨¬y)∧(x→¬y)\neg (x \vee \neg y) \wedge (x \rightarrow \neg y) and ¬x∧y\neg x \wedge y;

(b)

¬((x∧¬y)→(¬x∨z))\neg ((x \wedge \neg y) \rightarrow (\neg x \vee z)) and x∧¬y∧¬zx \wedge \neg y \wedge \neg z;

(c)

(x⊕y)→(x∧¬y)(x \oplus y) \rightarrow (x \wedge \neg y) and (¬x∧¬y)∨x(\neg x \wedge \neg y) \vee x.

Problem 145

Derive the absorption laws using the previous equivalences.

?
Problem 146

Prove the following equivalences:

?
(a)

Φ→0≡¬Φ\Phi \rightarrow 0 \equiv \neg \Phi;

(b)

1→Φ≡Φ1 \rightarrow \Phi \equiv \Phi;

(c)

(Φ→Ψ)→Ψ≡Φ∨Ψ(\Phi \rightarrow \Psi ) \rightarrow \Psi \equiv \Phi \vee \Psi;

(d)

¬Φ→Φ≡Φ\neg \Phi \rightarrow \Phi \equiv \Phi;

(e)

(Φ→Φ)→Φ≡Φ(\Phi \rightarrow \Phi ) \rightarrow \Phi \equiv \Phi;

(f)

Φ↔Ψ≡(Φ→Ψ)∧(Ψ→Φ);\Phi \leftrightarrow \Psi \equiv (\Phi \rightarrow \Psi ) \wedge (\Psi \rightarrow \Phi ) ;

(g)

 Φ∨(¬Φ∧Ψ)≡Φ∨Ψ~ \Phi \vee (\neg \Phi \wedge \Psi ) \equiv \Phi \vee \Psi;

(h)

(Φ→Ψ)⊕(Ψ→Φ)≡Φ⊕Ψ(\Phi \rightarrow \Psi ) \oplus (\Psi \rightarrow \Phi ) \equiv \Phi \oplus \Psi.

(i)

Φ→(Ψ∨Θ)≡(Φ∧¬Θ)→Ψ\Phi \rightarrow (\Psi \vee \Theta ) \equiv (\Phi \wedge \neg \Theta ) \rightarrow \Psi;

(j)

(Φ∧Θ)→Ψ≡Φ→(Ψ∨¬Θ)(\Phi \wedge \Theta ) \rightarrow \Psi \equiv \Phi \rightarrow (\Psi \vee \neg \Theta ).

Problem 147

Using the basic identities, prove that the following formulas are identically true:

?
(a)

(x→(y→x))(x \rightarrow (y \rightarrow x))

(b)

((x∧y)→x)((x \wedge y) \rightarrow x)

(c)

(x→(x∨y))(x \rightarrow (x \vee y))

(d)

((x→¬y)→¬(x∧y))((x \rightarrow \neg y) \rightarrow \neg (x \wedge y))

(e)

(((x→y)∧(y→z))→(x→z))(((x \rightarrow y) \wedge (y \rightarrow z)) \rightarrow (x \rightarrow z))

(f)

(((x→y)∨(x→z))→(x→(y∨z)))(((x \rightarrow y) \vee (x \rightarrow z)) \rightarrow (x \rightarrow (y \vee z)))

(g)

((x→y)→((x→¬y)→¬x))((x \rightarrow y) \rightarrow ((x \rightarrow \neg y) \rightarrow \neg x))

(h)

((x→(y→z))→((x→y)→(x→z)))((x \rightarrow (y \rightarrow z)) \rightarrow ((x \rightarrow y) \rightarrow (x \rightarrow z)))

Problem 148

Suppose that the interpretation JJ differs from the interpretation II only in that J(x)=I(Θ)J(x)=I(Θ). By induction on the construction of the formula Φ\Phi, prove that J(Φ)=I((Φ)Θx)J(\Phi )=I\left((\Phi )_{\Theta }^{x}\right).

?
Problem 149

Prove that if Φ≡Ψ\Phi \equiv \Psi, then (Φ)Θx≡(Ψ)Θx(\Phi )_{\Theta }^{x} \equiv (\Psi )_{\Theta }^{x}.

?
Problem 150

Let the formulas Φ0\Phi_{0} and Φ1\Phi_{1} be obtained from the formula Φ\Phi by replacing the variable xix_{i} with 0 and 1 respectively. Prove that the formula Φ\Phi is equivalent to each of the following:

?
(a)

(¬xi∧Φ0)∨(xi∧Φ1);\left(\neg x_{i} \wedge \Phi_{0}\right) \vee \left(x_{i} \wedge \Phi_{1}\right) ;

(b)

(¬xi→Φ0)∧(xi→Φ1)\left(\neg x_{i} \rightarrow \Phi_{0}\right) \wedge \left(x_{i} \rightarrow \Phi_{1}\right).

Problem 151

A Boolean function f∗(x1,…,xn)f^{*}\left(x_{1}, \ldots , x_{n}\right) is called dual to a function f(x1,…,xn)f\left(x_{1}, \ldots , x_{n}\right) if f∗(x1,…,xn)=¬f(¬x1,…,¬xn)f^{*}\left(x_{1}, \ldots , x_{n}\right)=\neg f\left(\neg x_{1}, \ldots , \neg x_{n}\right) for every tuple of values of the variables. For example, conjunction is dual to disjunction and vice versa.

?
(a)

Prove that the duality relation is symmetric.

(b)

Let f(y1,…,ym),g1(x1,…,xn),…,gm(x1,…,xn)f\left(y_{1}, \ldots , y_{m}\right), g_{1}\left(x_{1}, \ldots , x_{n}\right), \ldots , g_{m}\left(x_{1}, \ldots , x_{n}\right) be Boolean functions and

h(x1,…,xn)=f(g1(x1,…,xn),…,gm(x1,…,xn)). h\left(x_{1}, \ldots , x_{n}\right)=f\left(g_{1}\left(x_{1}, \ldots , x_{n}\right), \ldots , g_{m}\left(x_{1}, \ldots , x_{n}\right)\right).

Establish the following duality principle: the dual function of a superposition of functions equals the superposition of the dual functions:

h∗(x1,…,xn)=f∗(g1∗(x1,…,xn),…,gm∗(x1,…,xn)). h^{*}\left(x_{1}, \ldots , x_{n}\right)=f^{*}\left(g_{1}^{*}\left(x_{1}, \ldots , x_{n}\right), \ldots , g_{m}^{*}\left(x_{1}, \ldots , x_{n}\right)\right).
Problem 152

Construct the dual functions for the functions

?
(a)

¬\neg,

(b)

→,

(c)

⊕\oplus,

(d)

↑.

Problem 153

Construct the dual functions for the functions given by the following formulas:

?
(a)

(x→¬(¬y⊕x⊕z))(x \rightarrow \neg (\neg y \oplus x \oplus z));

(b)

((x↑y)⊕(¬x→z))((x \uparrow y) \oplus (\neg x \rightarrow z)); ⊛\circledast

(c)

((x∨¬y)→(¬x↓y))((x \vee \neg y) \rightarrow (\neg x \downarrow y)).

Problem 154
?
(a)

Prove that among 20 formulas in the variables x1,x2x_{1}, x_{2} there will always be two that are equivalent.

(b)

Is it true that among 20 formulas in the variables x1,x2x_{1}, x_{2} there will always be three that are pairwise equivalent?

(c)

Suppose there are kk formulas in nn variables x1,…,xnx_{1}, \ldots , x_{n}. We need to choose several pairwise equivalent formulas. What number of such formulas can be guaranteed to be found?

Problem 155

Let us call a formula Φ\Phi (and the function it defines) implicative if it is obtained by some placement of parentheses in the string x1→x2→⋯→xn−1→xnx_{1} \rightarrow x_{2} \rightarrow \cdots \rightarrow x_{n-1} \rightarrow x_{n}. Prove that

?
(a)

every implicative formula takes value 1 on at least one tuple;

(b)

every implicative formula takes value 0 on at least one tuple;

(c)

for every implicative formula with n⩾2n \geqslant 2 variables and every value σk\sigma_{k} of the variable xkx_{k}, it is possible to extend σk\sigma_{k} to a tuple of values σˉ\bar{\sigma } of all the variables on which the formula has value 1;

(d)

every implicative function has no dummy arguments;

(e)

no two distinct implicative formulas are equivalent.

Problem 156

Prove that a function ff can be obtained from some implicative function gg by substitution of variables:

f(x1,…,xn)=g(xi1,…,xim) f\left(x_{1}, \ldots , x_{n}\right)=g\left(x_{i_{1}}, \ldots , x_{i_{m}}\right)

if and only if ff is given by a formula of the form xi∨Ψx_{i} \vee \Psi for some variable xix_{i}.

?