Chapter 8

Complete Sets of Functions and Post's Theorem

[42/100%]
Show
LaTeX
Problem 193

Determine which of the following formulas define self-dual functions:

?
(a)

Φ1=x∨(¬y∧z);\Phi_{1}=x \vee (\neg y \wedge z) ;

(b)

Φ2=(¬x∧y)∨(z∧¬(x⊕y))\Phi_{2}=(\neg x \wedge y) \vee (z \wedge \neg (x \oplus y));

(c)

Φ3=(x∧¬z)∨(y∧¬z)∨(x∧y)\Phi_{3}=(x \wedge \neg z) \vee (y \wedge \neg z) \vee (x \wedge y);

(d)

Φ4=(¬x→(y∨z))→(¬y∧z)\Phi_{4}=(\neg x \rightarrow (y \vee z)) \rightarrow (\neg y \wedge z).

Problem 194

Determine which of the following formulas define monotone functions:

?
(a)

Φ1=(y→¬x)→(y∧z);\Phi_{1}=(y \rightarrow \neg x) \rightarrow (y \wedge z) ;

(b)

Φ2=(¬(x∧y)∨¬z)→(¬x→(y∧z))\Phi_{2}=(\neg (x \wedge y) \vee \neg z) \rightarrow (\neg x \rightarrow (y \wedge z));

(c)

Φ3=(¬x→(y∧¬z))→y\Phi_{3}=(\neg x \rightarrow (y \wedge \neg z)) \rightarrow y;

(d)

Φ4=¬z→(y∧¬x)\Phi_{4}=\neg z \rightarrow (y \wedge \neg x).

Problem 195

Prove the completeness of the set {↓}\left\{ \downarrow \right\}, consisting only of the Peirce arrow, by directly expressing negation, disjunction, and conjunction through it.

?
Problem 196

Prove that the set {∨,∧,→}\left\{ \vee , \wedge , \rightarrow \right\} is not complete. Can it be made complete by adding some constant?

?
Problem 197

Determine the membership of each of the functions presented in the table in fig. 4 on the next page in each of the sets S0,S1,S,L\mathcal{S}_{0}, \mathcal{S}_{1}, \mathcal{S}, \mathcal{L} and M\mathcal{M}.

x1x_{1}x2x_{2}x3x_{3}f1f_{1}f2f_{2}f3f_{3}f4f_{4}f5f_{5}f6f_{6}f7f_{7}
0001100001
0010101001
0100011100
0111000110
1001011011
1010000001
1100110100
1110111100
: Fig. 4: Functions from problem 197.
?
Problem 198

Using the results of problem 197, determine which of the triples of functions presented in fig. 4 on the next page are complete sets. Are there complete sets of two functions among them? Of one function? Which of them will be bases?

?
Problem 199

Which functions should be removed from the set F={f,g,h}F=\left\{ f, g, h\right\} so that it becomes a basis?

f(x,y)=x∨y;g(x,y)=x→¬y;h(x,y)=x⊕y. f(x, y)=x \vee y ; \quad g(x, y)=x \rightarrow \neg y ; \quad h(x, y)=x \oplus y.
?
Problem 200

Find all bases that can be obtained by removing functions from the set {0,1,∧,∨,→}\left\{ 0,1, \wedge , \vee , \rightarrow \right\}.

?
Problem 201

Find all bases composed of the functions in fig. 5. For each of them express both constants, negation ¬\neg, and implication → by means of the functions of the basis.

x1x_{1}x2x_{2}x3x_{3}ffgghh
000110
001010
010001
011100
100001
101110
110111
111010
: Fig. 5: Functions f,g,hf, g, h.
?
Problem 202

Express the functions 0,1,∨,∧,↔0,1, \vee , \wedge , \leftrightarrow by means of formulas built from the functions of the complete set {¬,→}\left\{ \neg , \rightarrow \right\}.

?
Problem 203

Boolean functions are given by the sequence of their values under a lexicographic ordering of the arguments. Find all bases that can be composed from the following functions.

?
(a)

f1=(00111100)f_{1}=(00111100);

(b)

f2=(10100101)f_{2}=(10100101);

(c)

f3=(01101001)f_{3}=(01101001);

(d)

f4=(10010110)f_{4}=(10010110);

(e)

f5=(11101000)f_{5}=(11101000);

(f)

f6=(01110001)f_{6}=(01110001);

(g)

f7=(10011011)f_{7}=(10011011);

(h)

f8=(11001000)f_{8}=(11001000);

For each basis show how to construct the constants, negation, and conjunction (or disjunction) using its elements.

(i)

f9=(01010111)f_{9}=(01010111);

(j)

f10=(00010101)f_{10}=(00010101).

Problem 204

Determine how, given a DNF (CNF), to determine whether it preserves zero or one without computing its values.

?
Problem 205

Prove that the closure of the set {∧,∨,→}\left\{ \wedge , \vee , \rightarrow \right\} is S1\mathcal{S}_{1}. Can the same be asserted for the set {∧,→}\left\{ \wedge , \rightarrow \right\}?

?
Problem 206

Prove that the closure of each of the sets {↔,∧},{↔,∨}\left\{ \leftrightarrow , \wedge \right\} ,\left\{ \leftrightarrow , \vee \right\}, {↔,→}\left\{ \leftrightarrow , \rightarrow \right\} is S1\mathcal{S}_{1}.

?
Problem 207

Find the closure of the set {∧,⊕}\left\{ \wedge , \oplus \right\}.

?
Problem 208

Let us call a function f(x1,…,xn)f\left(x_{1}, \ldots , x_{n}\right) linear in the variable xix_{i} if ff can be represented in the form f(x1,…,xn)=g(x1,…,xn)⊕αixif\left(x_{1}, \ldots , x_{n}\right)=g\left(x_{1}, \ldots , x_{n}\right) \oplus \alpha_{i} x_{i}, where g(x1,…,xn)g\left(x_{1}, \ldots , x_{n}\right) is some function not depending on xix_{i}, and αi∈{0,1}\alpha_{i} \in \left\{ 0,1\right\}. Prove that a Boolean function f(x1,…,xn)f\left(x_{1}, \ldots , x_{n}\right) is linear if and only if it is linear in all the variables.

?
Problem 209

Prove that a function f(x1,…,xn)f\left(x_{1}, \ldots , x_{n}\right) is linear in the variable xix_{i} if and only if, whenever the value of the variable xix_{i} changes, the value of the function either always changes (that is, for all values of the remaining variables) or never changes (that is, ff does not depend on xix_{i}).

?
Problem 210

Prove that the closure of the set {↔}\left\{ \leftrightarrow \right\} is S1∩L\mathcal{S}_{1} \cap \mathcal{L}.

?
Problem 211

Prove that for monotone functions f(n)∈Mf^{(n)} \in \mathcal{M} the following representation holds

f(x1,…,xn)=(xi∧f(x1,…,xi−1,1,xi+1,…,xn))∨∨f(x1,…,xi−1,0,xi+1,…,xn) \begin{aligned} f\left(x_{1}, \ldots , x_{n}\right)=\left(x _{ i } \wedge f \left(x_{1}, \ldots , x_{i-1},\right.\right. & \left.\left.1, x_{i+1}, \ldots , x_{n}\right)\right) \vee \\ & \vee f\left(x_{1}, \ldots , x_{i-1}, 0, x_{i+1}, \ldots , x_{n}\right) \end{aligned}

for all i=1,…,ni=1, \ldots , n. From this deduce (by induction on nn) that for every monotone function distinct from a constant there exist DNF and CNF representing it that contain no negations of variables.

?
Problem 212

Prove that a Boolean function f(n)f^{(n)} is monotone if and only if it is monotone in each argument: for all i=1,…,ni=1, \ldots , n and all σ1,…,σn∈B\sigma_{1}, \ldots , \sigma_{n} \in \mathbb {B} the inequality

f(σ1,…,σi−1,0,σi+1,…,σn)⩽f(σ1,…,σi−1,1,σi+1,…,σn). f\left(\sigma _{1}, \ldots , \sigma _{i-1}, 0, \sigma _{i+1}, \ldots , \sigma _{n}\right) \leqslant f\left(\sigma _{1}, \ldots , \sigma _{i-1}, 1, \sigma _{i+1}, \ldots , \sigma _{n}\right).

holds.

?
Problem 213

Prove that a Boolean function f(x1,…,xn)f\left(x_{1}, \ldots , x_{n}\right) distinct from a constant is monotone if and only if its reduced DNF contains no negations.

?
Problem 214

Construct all monotone functions of the form f(x,y,z)f(x, y, z).

?
Problem 215

Determine the closure of the set {∧,∨}\left\{ \wedge , \vee \right\}.

?
Problem 216

Prove that the number of monotone Boolean functions of the form f(x1,…,xn)f\left(x_{1}, \ldots , x_{n}\right) is one greater than the number of subsets VV of the set P{x1,…,xn}\mathrm{P}\left\{ x_{1}, \ldots , x_{n}\right\} made up of pairwise incomparable sets with respect to ⊆\subseteq.

?
Problem 217

Prove that a Boolean function ff is self-dual if and only if f∗=ff^{*}=f (see problem 151 on p. 49).

?
Problem 218

Prove that a Boolean function f(x1,…,xn)f\left(x_{1}, \ldots , x_{n}\right) is self-dual if and only if it satisfies the property from problem 166 on p. 54.

?
Problem 219

Prove that the dual of a linear (monotone) function is again a linear (respectively, monotone) function. Determine how the dual function f∗f^{*} behaves if ff preserves zero or one (see problem 151 on p. 49).

?
Problem 220

Prove that an nn-ary Boolean function f(x1,…,xn)f\left(x_{1}, \ldots , x_{n}\right) is self-dual if and only if

f(x1,…,xn)=g(x1⊕x2,…,x1⊕xn)⊕x1 f\left(x_{1}, \ldots , x_{n}\right)=g\left(x_{1} \oplus x_{2}, \ldots , x_{1} \oplus x_{n}\right) \oplus x_{1}

for some (n−1)(n-1)-ary Boolean function gg.

?
Problem 221

Determine the number of functions from Pn\mathcal{P}_{n} belonging to each of the sets S0,S1,S\mathcal{S}_{0}, \mathcal{S}_{1}, \mathcal{S} and L\mathcal{L}.

?
Problem 222

Find the number of Boolean functions of nn variables that are simultaneously self-dual and linear.

?
Problem 223

Find the number of Boolean functions of nn variables that are simultaneously monotone and linear.

?
Problem 224

Determine the number of functions from Pn\mathcal{P}_{n} belonging to each of the classes:

?
(a)

S0∩S1\mathcal{S}_{0} \cap \mathcal{S}_{1};

(b)

S0∪S1\mathcal{S}_{0} \cup \mathcal{S}_{1};

(c)

S∩S0\mathcal{S} \cap \mathcal{S}_{0};

(d)

L∩S0;\mathcal{L} \cap \mathcal{S}_{0} ;

(e)

L∩S1\mathcal{L} \cap \mathcal{S}_{1};

(f)

S∩S0∩S1\mathcal{S} \cap \mathcal{S}_{0} \cap \mathcal{S}_{1};

(g)

(S\S0)∩S1\left(\mathcal{S} \backslash \mathcal{S}_{0}\right) \cap \mathcal{S}_{1};

(h)

M\S0\mathcal{M} \backslash \mathcal{S}_{0};

(i)

M\S1\mathcal{M} \backslash \mathcal{S}_{1}.

Problem 225

How many monotone Boolean functions of nn variables are there whose values depend only on the number of ones in the tuple of arguments?

?
Problem 226

Prove that in the set Pn\mathcal{P}_{n} there are at least 2Cn⌊n/2⌋2^{C_{n}^{\lfloor n / 2\rfloor }} monotone functions.

?
Problem 227

Prove that if f(x1,…,xn)f\left(x_{1}, \ldots , x_{n}\right) is a linear function distinct from a constant, then the number of ones in the truth table equals 2n−12^{n-1}. Is the converse true?

?
Problem 228

Prove that if a function ff is built only using disjunction and implication, then the number of ones in the truth table is at least half. Is the converse true?

?
Problem 229

Prove that in the condition of problem 205 on p. 63 the conjunction cannot be removed.

?
Problem 230

Find all three-place Boolean functions ff that by themselves form a complete set {f}\left\{ f\right\}. Find their number.

?
Problem 231

Prove that if a two-place Boolean function preserves zero and one, then it is monotone. Show that this is already false for three-place functions.

?
Problem 232

Prove that if a two-place Boolean function is self-dual, then it is linear. Show that this is already false for three-place functions.

?
Problem 233

Prove that if a basis contains no functions of arity more than two, then it contains no more than three functions. Give an example showing that the number three cannot be decreased.

?
Problem 234

Prove that if a basis contains no zero-place functions and none of the functions has dummy arguments, then it contains no more than three functions. Give an example showing that the number three cannot be decreased.

?