Maths Olympiad Prep

Track / Stage 8 / 14 of 180 #1714 of 1964

Problem 1714

IMO Shortlist mid-range; USAMO P2/P5
Combinatorics Difficulty 8.0 Prove it

Put A={yes,no}\mathbb{A}=\{ \mathrm{yes}, \mathrm{no} \}. A function f ⁣:AnAf\colon \mathbb{A}^n\rightarrow \mathbb{A} is called a decision function if
(a) the value of the function changes if we change all of its arguments; and
(b) the values does not change if we replace any of the arguments by the function value.
A function d ⁣:AnAd\colon \mathbb{A}^n \rightarrow \mathbb{A} is called a dictatoric function, if there is an index ii such that the value of the function equals its iith argument.
The democratic function is the function m ⁣:A3Am\colon \mathbb{A}^3 \rightarrow \mathbb{A} that outputs the majority of its arguments.
Prove that any decision function is a composition of dictatoric and democratic functions.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

To prove that any decision function f:AnA f: \mathbb{A}^n \rightarrow \mathbb{A} can be represented as a composition of dictatoric and democratic functions, we will proceed through the following steps:

1. **Define the sets Ac A_c and As A_s :**
- xAc \mathbf{x} \in A_c if f(x1,x) f(x_1, \mathbf{x}) changes its value when x1 x_1 changes its value.
- xAs \mathbf{x} \in A_s if f(x1,x) f(x_1, \mathbf{x}) does not change its value when x1 x_1 changes its value.

2. **Properties of f f over Ac A_c and As A_s :**
- For any xAc \mathbf{x} \in A_c , f(0,x)=0 f(0, \mathbf{x}) = 0 and f(1,x)=1 f(1, \mathbf{x}) = 1 . Thus, f(x1,x)=x1 f(x_1, \mathbf{x}) = x_1 .
- If xAc \mathbf{x} \in A_c , then xAc \overline{\mathbf{x}} \in A_c . Similarly, if xAs \mathbf{x} \in A_s , then xAs \overline{\mathbf{x}} \in A_s .

3. **Case when As= A_s = \emptyset :**
- If As= A_s = \emptyset , then f(x1,x2,,xn)=x1 f(x_1, x_2, \dots, x_n) = x_1 , which means f f is a dictatoric function.

4. **Case when As A_s \neq \emptyset :**
- Define fs f_s over As A_s as fs(x):=f(0,x)=f(1,x) f_s(\mathbf{x}) := f(0, \mathbf{x}) = f(1, \mathbf{x}) for xAs \mathbf{x} \in A_s .
- Note that fs f_s is a decision function over As A_s .

5. **Constructing a decision function φ \varphi over An1 \mathbb{A}^{n-1} :**
- Define φ:An1A \varphi: \mathbb{A}^{n-1} \to \mathbb{A} as:
φ(x):={fc(x)if xAcfs(x)if xAs \varphi(\mathbf{x}) := \begin{cases} f_c(\mathbf{x}) & \text{if } \mathbf{x} \in A_c \\ f_s(\mathbf{x}) & \text{if } \mathbf{x} \in A_s \end{cases}
- Verify that φ \varphi is a decision function:
- For part (a), since Ac A_c and As A_s are closed under negation, φ \varphi changes its value if all arguments are negated.
- For part (b), consider the two cases:
1. If xAs \mathbf{x} \in A_s , then substituting any coordinate of x \mathbf{x} with fs(x) f_s(\mathbf{x}) does not leave As A_s , so φ \varphi remains unchanged.
2. If xAc \mathbf{x} \in A_c , substituting any coordinate of x \mathbf{x} with fc(x) f_c(\mathbf{x}) either keeps x \mathbf{x} in Ac A_c or moves it to As A_s , in both cases φ \varphi remains unchanged.

6. **Constructing the final decision function f f :**
- Define fi:An1A f_i: \mathbb{A}^{n-1} \to \mathbb{A} for i=2,3,,n i = 2, 3, \dots, n as the corresponding sewing of pi p_i over Ac A_c and fs f_s over As A_s .
- The final function f f can be represented as:
f(x1,x)=Vote2n3(x1,x1,,x1,f2(x),f3(x),,fn(x)) f(x_1, \mathbf{x}) = \text{Vote}_{2n-3}(x_1, x_1, \dots, x_1, f_2(\mathbf{x}), f_3(\mathbf{x}), \dots, f_n(\mathbf{x}))
where x1 x_1 is taken n2 n-2 times as an argument.

7. **Reduction of Vote2k1 \text{Vote}_{2k-1} to compositions of Vote3 \text{Vote}_3 :**
- For example:
Vote2k1(x1,x2,,x2k1)=Votem(Vote3(x1,x2,Vote2k3(x3,,x2k1)),) \text{Vote}_{2k-1}(x_1, x_2, \dots, x_{2k-1}) = \text{Vote}_m(\text{Vote}_3(x_1, x_2, \text{Vote}_{2k-3}(x_3, \dots, x_{2k-1})), \dots)
where m m is either k k or k+1 k+1 depending on the parity of k k .

By following these steps, we have shown that any decision function can be represented as a composition of dictatoric and democratic functions.

\blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.