We say that a rectangle with side lengths and fits inside a rectangle with side lengths and if either and or and . For instance, a rectangle with side lengths and fits inside another rectangle with side lengths and , and also fits inside a rectangle with side lengths and .
Suppose is a set of rectangles, all with integer side lengths between and inclusive. Show that there are three rectangles , , and in such that fits inside , and fits inside .
Solutions — 2
Solution 1
We write if fits inside . (Note that is a preorder: it is reflexive and transitive. It might not be a partial order because two different rectangles might have matching widths and lengths.)
We call an -element subset of an -chain if its elements can be listed in "increasing order", i.e. in the form
An -chain is allowed to contain congruent rectangles; for example, all rectangles may be congruent to each other. We call an anti-chain if it contains no 2-chains. In particular, no two rectangles are congruent in an anti-chain. For each rectangle in , we select a chain with as a maximal element, and which has maximal cardinality among chains having as a maximal element. Let be the size of .
Claim 1: The subset is an anti-chain for all .
To prove this claim, it suffices to show that if for distinct , then is an anti-chain. But this is easy since if and if , then is a chain with maximal element and size , contradicting the definition of .
Claim 2: An anti-chain of has at most elements.
Let be an anti-chain with elements: , where the width and length of are and , respectively, with .
We assume that the rectangles are ordered so that for . If for some , then it is clear that is a chain, contradicting our anti-chain assumption. Similarly, we deduce that must be strictly decreasing in . Thus, we have numbers
There are at least distinct numbers above, and all are between and , so and we deduce Claim 2.
Combining Claim 1 and Claim 2, we see that has at most elements. Since this is less than the cardinality of , we must have for some , as required.
Solution 2
We represent a rectangle by the ordered pair of its side lengths, where . We shall write if and . When the are positive, this means that a rectangle with side lengths and fits inside a rectangle with side lengths and . A set of ordered pairs will be called a chain if its elements can be listed as such that whenever .
Let be the set of all pairs of integers that satisfy . Of course, is empty if and it contains exactly one element, namely , if . More generally, if , the number of elements in is equal to the triangular number
To see this, observe that, for , the pair is in exactly for values of , namely .
Because we do not identify congruent rectangles that are different, some pairs may appear more than once in the set mentioned in the problem. We will describe by selecting a subset of and attaching to each of its elements a multiplicity. Multiplicities are positive integers and they represent the number of rectangles in that have the given side lengths.
More formally, is represented by together with a map that takes values in the positive integers. We will then write . The number of elements in is equal to . A chain in is a chain in , but when we calculate its length, we take multiplicities into account. For example, if contains just one element but the multiplicity of it is three, then contains a chain of length three, consisting of three congruent rectangles, the side lengths of which give the element of .
We are going to prove the following slightly more general statement by induction on for odd .
Claim. If where is a subset of , is odd and is a map such that , then contains a chain with at least three elements.
Note that the validity of this claim depends on only and not on the individual values of and , because is equivalent to for any integer .
Let be the subset of that consists of those pairs for which or . If we have . Note that is a chain for any , because
A crucial observation for the proof is that for the set is the disjoint union of and .
In the inductive step we use the claim for when we prove the claim for . Because we deal with odd only, it suffices to consider in the base case of the induction.
If , the set contains three elements, namely , so it is a chain. Therefore, any possible set in this case is a chain as well.
For the inductive step, we assume that contains a three-element chain if it contains at least elements, and .
Suppose contains at least elements and . We consider and . Because is a chain, , which is with the multiplicities given by , is a chain as well. If this set with multiplicities contains at least three elements, the proof is finished. Otherwise, , i.e. equipped with the multiplicities given by , contains at least elements, hence it contains a chain with at least three elements by the inductive assumption. This proves the claim.
The statement of the problem follows now because for and is supposed to contain elements.