[Math] Pigeonhole principle formula using Propositonal Logic

combinatoricsdiscrete mathematicspigeonhole-principlepropositional-calculus

According to the Pigeonhole Principle, if we try to place $n+1$ pigeons
in $n$ pigeonholes, then at least one pigeonhole must have two or more pigeons. For $i \in \{1, 2, \dots, n+1\}$ and $j \in \{1, 2, . . . , n\}$, let the atomic proposition $p_{i j}$ denote that the $i$-th pigeon is placed in the the $j$-th pigeonhole.

Write down a formula expressing the Pigeonhole Principle. What is the length of formula as a function of $n$?

Best Answer

Although you didn't say so in the question, your title indicates that you want a formula in propositional logic. So I'd express "each pigeon is in a hole" as $$ \bigwedge_{i=1}^{n+1}\bigvee_{j=1}^n p[i,j], $$ and I'd express "some hole contains two distinct pigeons" as $$ \bigvee_{j=1}^n\bigvee_{1\leq i<k\leq n+1}(p[i,j]\land p[k,j]). $$ Finally, I'd express the pigeonhole principle as the implication from the first of these formulas to the second. HOWEVER, some people understand the pigeonhole principle as including the additional hypothesis that each pigeon is in only one hole, which is formulated as $$ \bigwedge_{i=1}^{n+1}\bigwedge_{1\leq j<k\leq n}\neg(p[i,j]\land p[i,k]). $$ As for the length of the formula, that depends not only on whether you include the extra hypothesis but also on the details of the definition of length --- do you count occurrences of atomic formulas, or occurrences of connectives, or both, or something else?