# 组合数学 (Spring 2015)/Existence problems

Jump to: navigation, search

## Existence by Counting

### Shannon's circuit lower bound

This is a fundamental problem in in Computer Science.

A boolean function is a function in the form ${\displaystyle f:\{0,1\}^{n}\rightarrow \{0,1\}}$.

Boolean circuit is a mathematical model of computation. Formally, a boolean circuit is a directed acyclic graph. Nodes with indegree zero are input nodes, labeled ${\displaystyle x_{1},x_{2},\ldots ,x_{n}}$. A circuit has a unique node with outdegree zero, called the output node. Every other node is a gate. There are three types of gates: AND, OR (both with indegree two), and NOT (with indegree one).

Computations in Turing machines can be simulated by circuits, and any boolean function in P can be computed by a circuit with polynomially many gates. Thus, if we can find a function in NP that cannot be computed by any circuit with polynomially many gates, then NP${\displaystyle \neq }$P.

The following theorem due to Shannon says that functions with exponentially large circuit complexity do exist.

 Theorem (Shannon 1949) There is a boolean function ${\displaystyle f:\{0,1\}^{n}\rightarrow \{0,1\}}$ with circuit complexity greater than ${\displaystyle {\frac {2^{n}}{3n}}}$.
Proof.
 We first count the number of boolean functions ${\displaystyle f:\{0,1\}^{n}\rightarrow \{0,1\}}$. There are ${\displaystyle 2^{2^{n}}}$ boolean functions ${\displaystyle f:\{0,1\}^{n}\rightarrow \{0,1\}}$. Then we count the number of boolean circuit with fixed number of gates. Fix an integer ${\displaystyle t}$, we count the number of circuits with ${\displaystyle t}$ gates. By the De Morgan's laws, we can assume that all NOTs are pushed back to the inputs. Each gate has one of the two types (AND or OR), and has two inputs. Each of the inputs to a gate is either a constant 0 or 1, an input variable ${\displaystyle x_{i}}$, an inverted input variable ${\displaystyle \neg x_{i}}$, or the output of another gate; thus, there are at most ${\displaystyle 2+2n+t-1}$ possible gate inputs. It follows that the number of circuits with ${\displaystyle t}$ gates is at most ${\displaystyle 2^{t}(t+2n+1)^{2t}}$. If ${\displaystyle t=2^{n}/3n}$, then ${\displaystyle {\frac {2^{t}(t+2n+1)^{2t}}{2^{2^{n}}}}=o(1)<1,}$ thus, ${\displaystyle 2^{t}(t+2n+1)^{2t}<2^{2^{n}}.}$ Each boolean circuit computes one boolean function. Therefore, there must exist a boolean function ${\displaystyle f}$ which cannot be computed by any circuits with ${\displaystyle 2^{n}/3n}$ gates.
${\displaystyle \square }$

Note that by Shannon's theorem, not only there exists a boolean function with exponentially large circuit complexity, but almost all boolean functions have exponentially large circuit complexity.

### Double counting

The double counting principle states the following obvious fact: if the elements of a set are counted in two different ways, the answers are the same.

#### Handshaking lemma

The following lemma is a standard demonstration of double counting.

 Handshaking Lemma At a party, the number of guests who shake hands an odd number of times is even.

We model this scenario as an undirected graph ${\displaystyle G(V,E)}$ with ${\displaystyle |V|=n}$ standing for the ${\displaystyle n}$ guests. There is an edge ${\displaystyle uv\in E}$ if ${\displaystyle u}$ and ${\displaystyle v}$ shake hands. Let ${\displaystyle d(v)}$ be the degree of vertex ${\displaystyle v}$, which represents the number of times that ${\displaystyle v}$ shakes hand. The handshaking lemma states that in any undirected graph, the number of vertices whose degrees are odd is even. It is sufficient to show that the sum of odd degrees is even.

The handshaking lemma is a direct consequence of the following lemma, which is proved by Euler in his 1736 paper on Seven Bridges of Königsberg that began the study of graph theory.

 Lemma (Euler 1736) ${\displaystyle \sum _{v\in V}d(v)=2|E|}$
Proof.
 We count the number of directed edges. A directed edge is an ordered pair ${\displaystyle (u,v)}$ such that ${\displaystyle \{u,v\}\in E}$. There are two ways to count the directed edges. First, we can enumerate by edges. Pick every edge ${\displaystyle uv\in E}$ and apply two directions ${\displaystyle (u,v)}$ and ${\displaystyle (v,u)}$ to the edge. This gives us ${\displaystyle 2|E|}$ directed edges. On the other hand, we can enumerate by vertices. Pick every vertex ${\displaystyle v\in V}$ and for each of its ${\displaystyle d(v)}$ neighbors, say ${\displaystyle u}$, generate a directed edge ${\displaystyle (v,u)}$. This gives us ${\displaystyle \sum _{v\in V}d(v)}$ directed edges. It is obvious that the two terms are equal, since we just count the same thing twice with different methods. The lemma follows.
${\displaystyle \square }$

The handshaking lemma is implied directly by the above lemma, since the sum of even degrees is even.

#### Sperner's lemma

A triangulation of a triangle ${\displaystyle abc}$ is a decomposition of ${\displaystyle abc}$ to small triangles (called cells), such that any two different cells are either disjoint, or share an edge, or a vertex.

A proper coloring of a triangulation of triangle ${\displaystyle abc}$ is a coloring of all vertices in the triangulation with three colors: red, blue, and green, such that the following constraints are satisfied:

• The three vertices ${\displaystyle a,b}$, and ${\displaystyle c}$ of the big triangle receive all three colors.
• The vertices in each of the three lines ${\displaystyle ab}$, ${\displaystyle bc}$, and ${\displaystyle ac}$ receive two colors.

The following figure is an example of a properly colored triangulation.

In 1928 young Emanuel Sperner gave a combinatorial proof of the famous Brouwer's fixed point theorem by proving the following lemma (now called Sperner's lemma), with an extremely elegant proof.

 Sperner's Lemma (1928) For any properly colored triangulation, there exists a cell receiving all three colors.
Proof.
 The proof is done by appropriately constructing a dual graph of the triangulation. The dual graph is defined as follows: Each cell in the triangulation corresponds to a distinct vertex in the dual graph. The outer space corresponds to a distinct vertex in the dual graph. An edge is added between two vertices in the dual graph if the corresponding cells share a ${\displaystyle {\color {Red}{\mbox{red}}}{\mbox{--}}{\color {Blue}{\mbox{blue}}}}$ edge. The following is an example of the dual graph of a properly colored triangulation: For vertices in the dual graph: If a cell receives all three colors, the corresponding vertex in the dual graph has degree 1; if a cell receives only ${\displaystyle {\color {Red}{\mbox{red}}}}$ and ${\displaystyle {\color {Blue}{\mbox{blue}}}}$, the corresponding vertex has degree 2; for all other cases (the cell is monochromatic, or does not have blue or red), the corresponding vertex has degree 0. Besides, the unique vertex corresponding to the outer space must have odd degree, since the number of ${\displaystyle {\color {Red}{\mbox{red}}}{\mbox{--}}{\color {Blue}{\mbox{blue}}}}$ transitions between a ${\displaystyle {\color {Red}{\mbox{red}}}}$ endpoint and a ${\displaystyle {\color {Blue}{\mbox{blue}}}}$ endpoint must be odd. By handshaking lemma, the number of odd-degree vertices in the dual graph is even, thus the number of cells receiving all three colors must be odd, which cannot be zero.
${\displaystyle \square }$

## The Pigeonhole Principle

The pigeonhole principle states the following "obvious" fact:

${\displaystyle n+1}$ pigeons cannot sit in ${\displaystyle n}$ holes so that every pigeon is alone in its hole.

This is one of the oldest non-constructive principles: it states only the existence of a pigeonhole with more than one pigeons and says nothing about how to find such a pigeonhole.

The general form of pigeonhole principle, also known as the averaging principle, is stated as follows.

 Generalized pigeonhole principle If a set consisting of more than ${\displaystyle mn}$ objects is partitioned into ${\displaystyle n}$ classes, then some class receives more than ${\displaystyle m}$ objects.

### Inevitable divisors

The following is one of Erdős' favorite initiation questions to mathematics. The proof uses the Pigeonhole Principle.

 Theorem For any subset ${\displaystyle S\subseteq \{1,2,\ldots ,2n\}}$ of size ${\displaystyle |S|>n\,}$, there are two numbers ${\displaystyle a,b\in S}$ such that ${\displaystyle a|b\,}$.
Proof.
 For every odd number ${\displaystyle m\in \{1,2,\ldots ,2n\}}$, let ${\displaystyle C_{m}=\{2^{k}m\mid k\geq 0,2^{k}m\leq 2n\}}$. It is easy to see that for any ${\displaystyle b from the same ${\displaystyle C_{m}}$, it holds that ${\displaystyle a|b}$. Every number ${\displaystyle a\in S}$ can be uniquely represented as ${\displaystyle a=2^{k}m}$ for some odd number ${\displaystyle m}$, thus belongs to exactly one of ${\displaystyle C_{m}}$, for odd ${\displaystyle m\in \{1,2,\ldots ,2n\}}$. There are ${\displaystyle n}$ odd numbers in ${\displaystyle \{1,2,\ldots ,2n\}}$, thus ${\displaystyle n}$ different ${\displaystyle C_{m}}$, but ${\displaystyle |S|>n}$, thus there must exist distinct ${\displaystyle a,b\in S}$, supposed that ${\displaystyle b, belonging to the same ${\displaystyle C_{m}}$, which implies that ${\displaystyle a|b}$.
${\displaystyle \square }$

### Monotonic subsequences

Let ${\displaystyle (a_{1},a_{2},\ldots ,a_{n})}$ be a sequence of ${\displaystyle n}$ distinct real numbers. A subsequence is a sequence of distinct terms of ${\displaystyle (a_{1},a_{2},\ldots ,a_{n})}$ appearing in the same order in which they appear in ${\displaystyle (a_{1},a_{2},\ldots ,a_{n})}$. Formally, a subsequence of ${\displaystyle (a_{1},a_{2},\ldots ,a_{n})}$ is an ${\displaystyle (a_{i_{1}},a_{i_{2}},\ldots ,a_{i_{k}})}$, with ${\displaystyle i_{1}.

A sequence ${\displaystyle (a_{1},a_{2},\ldots ,a_{n})}$ is increasing if ${\displaystyle a_{1}, and decreasing if ${\displaystyle a_{1}>a_{2}>\cdots >a_{n}}$.

We are interested in the longest increasing and decreasing subsequences of an ${\displaystyle a_{1}. It is intuitive that the length of both the longest increasing subsequence and the longest decreasing subsequence cannot be small simultaneously. A famous result of Erdős and Szekeres formally justifies this intuition. This is one of the first results in extremal combinatorics, published in the influential 1935 paper of Erdős and Szekeres.

 Theorem (Erdős-Szekeres 1935) A sequence of more than ${\displaystyle mn}$ different real numbers must contain either an increasing subsequence of length ${\displaystyle m+1}$, or a decreasing subsequence of length ${\displaystyle n+1}$.
Proof.
 (due to Seidenberg 1959) Let ${\displaystyle (a_{1},a_{2},\ldots ,a_{N})}$ be the original sequence of ${\displaystyle N>mn}$ distinct real numbers. Associate each ${\displaystyle a_{i}}$ a pair ${\displaystyle (x_{i},y_{i})}$, defined as: ${\displaystyle x_{i}}$: the length of the longest increasing subsequence ending at ${\displaystyle a_{i}}$; ${\displaystyle y_{i}}$: the length of the longest decreasing subsequence starting at ${\displaystyle a_{i}}$. A key observation is that ${\displaystyle (x_{i},y_{i})\neq (x_{j},y_{j})}$ whenever ${\displaystyle i\neq j}$. This is proved as follows: Case 1: If ${\displaystyle a_{i}, then the longest increasing subsequence ending at ${\displaystyle a_{i}}$ can be extended by adding on ${\displaystyle a_{j}}$, so ${\displaystyle x_{i}. Case 2: If ${\displaystyle a_{i}>a_{j}}$, then the longest decreasing subsequence starting at ${\displaystyle a_{j}}$ can be preceded by ${\displaystyle a_{i}}$, so ${\displaystyle y_{i}>y_{j}}$. Now we put ${\displaystyle N}$ "pigeons" ${\displaystyle a_{1},a_{2},\ldots ,a_{N}}$ into "pigeonholes" ${\displaystyle \{1,2,\ldots ,N\}\times \{1,2,\ldots ,N\}}$, such that ${\displaystyle a_{i}}$ is put into hole ${\displaystyle (x_{i},y_{i})}$, with at most one pigeon per each hole (since different ${\displaystyle a_{i}}$ has different ${\displaystyle (x_{i},y_{i})}$). The number of pigeons is ${\displaystyle N>mn}$. Due to pigeonhole principle, there must be a pigeon which is outside the region ${\displaystyle \{1,2,\ldots ,m\}\times \{1,2,\ldots ,n\}}$, which implies that there exists an ${\displaystyle a_{i}}$ with either ${\displaystyle x_{i}>m}$ or ${\displaystyle y_{i}>n}$. Due to our definition of ${\displaystyle (x_{i},y_{i})}$, there must be either an increasing subsequence of length ${\displaystyle m+1}$, or a decreasing subsequence of length ${\displaystyle n+1}$.
${\displaystyle \square }$

### Dirichlet's approximation

Let ${\displaystyle x}$ be an irrational number. We now want to approximate ${\displaystyle x}$ be a rational number (a fraction).

Since every real interval ${\displaystyle [a,b]}$ with ${\displaystyle a contains infinitely many rational numbers, there must exist rational numbers arbitrarily close to ${\displaystyle x}$. The trick is to let the denominator of the fraction sufficiently large.

Suppose however we restrict the rationals we may select to have denominators bounded by ${\displaystyle n}$. How closely we can approximate ${\displaystyle x}$ now?

The following important theorem is due to Dirichlet and his Schubfachprinzip ("drawer principle"). The theorem is fundamental in numer theory and real analysis, but the proof is combinatorial.

 Theorem (Dirichlet 1879) Let ${\displaystyle x}$ be an irrational number. For any natural number ${\displaystyle n}$, there is a rational number ${\displaystyle {\frac {p}{q}}}$ such that ${\displaystyle 1\leq q\leq n}$ and ${\displaystyle \left|x-{\frac {p}{q}}\right|<{\frac {1}{nq}}}$.
Proof.
 Let ${\displaystyle \{x\}=x-\lfloor x\rfloor }$ denote the fractional part of the real number ${\displaystyle x}$. It is obvious that ${\displaystyle \{x\}\in [0,1)}$ for any real number ${\displaystyle x}$. Consider the ${\displaystyle n+1}$ numbers ${\displaystyle \{kx\}}$, ${\displaystyle k=1,2,\ldots ,n+1}$. These ${\displaystyle n+1}$ numbers (pigeons) belong to the following ${\displaystyle n}$ intervals (pigeonholes): ${\displaystyle \left(0,{\frac {1}{n}}\right),\left({\frac {1}{n}},{\frac {2}{n}}\right),\ldots ,\left({\frac {n-1}{n}},1\right)}$. Since ${\displaystyle x}$ is irrational, ${\displaystyle \{kx\}}$ cannot coincide with any endpoint of the above intervals. By the pigeonhole principle, there exist ${\displaystyle 1\leq a, such that ${\displaystyle \{ax\},\{bx\}}$ are in the same interval, thus ${\displaystyle |\{bx\}-\{ax\}|<{\frac {1}{n}}}$. Therefore, ${\displaystyle |(b-a)x-\left(\lfloor bx\rfloor -\lfloor ax\rfloor \right)|<{\frac {1}{n}}}$. Let ${\displaystyle q=b-a}$ and ${\displaystyle p=\lfloor bx\rfloor -\lfloor ax\rfloor }$. We have ${\displaystyle |qx-p|<{\frac {1}{n}}}$ and ${\displaystyle 1\leq q\leq n}$. Dividing both sides by ${\displaystyle q}$, the theorem is proved.
${\displaystyle \square }$