Suppose I have $n$ propositional variables, $\{p_1,\ldots,p_n\}$ over which we truth tables and formulas over the language $\{\neg, \land, \lor, \top\}$. For the sake of this question, we define the depth of a formula by
- $\mathrm{depth}(p) = \mathrm{depth}(\top) = 0$,
- $\mathrm{depth}(\neg \phi) = \mathrm{depth}(\phi)$,
- $\mathrm{depth}(\phi \land \psi) = \mathrm{depth}(\phi \lor \psi) = 1 + \max(\mathrm{depth}(\phi), \mathrm{depth}(\psi))$.
I am interested in the question
What is the least integer $\chi(n)$ such that every truth table over $\{p_1,\ldots,p_n\}$ can be expressed with a formula of depth at most $\chi(n)$?
An easy upper bound is $\chi(n) = 2n - 2$, which we can show by induction. If $n = 1$ then the depth 0 formulas $p_1, \neg p_1, \top, \neg \top$ suffice. Inductively, given a truth table over $\{p_1,\ldots,p_n\}$, we split it in two: the part of the truth table where $p_n = 0$ and the part where $p_n = 1$. These then give us two formulas, $\phi_0, \phi_1$ in the variables $\{p_1,\ldots,p_{n-1}\}$, of depth at most $2n-4$. Then we can give our truth table via $(\phi_0 \land \neg p_n) \lor (\phi_1 \land p_n)$, which has depth $2n-2$.
My question is:
Is there a tighter bound on $\chi(n)$ than $2n-2$?
As a side note, I am also interested in bounding the length of the formula, rather than its depth, but that seems like a significantly more difficult question.