How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Inclusion–Exclusion, the Pigeonhole Principle and Double Counting: Examples and Counterexamples
1 · Prerequisites
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Countability and Uncountability
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Inclusion–Exclusion, the Pigeonhole Principle and Double Counting
- Relations, Functions, and Quotients
- Roots, Rational Powers, and Classical Inequalities
- The ZFC Axioms and the Basic Set Constructions
2 · Summary
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
The sieve run in full on three explicit finite sets and then on four, with every nonempty intersection listed
Example
Take the ambient set and the subsets
First the family , a sieve family with ambient set and index set (A finite family of subsets of a finite set , the intersections for , and the convention ). Every intersection for is listed:
The union is , of size , and the sieve returns . The complementary form returns , and indeed .
Now the family , with adjoined and :
The union is now all of , of size , and the sieve returns . The complementary form returns , and indeed .
Facts & Assumptions
Given: The ambient set and the subsets above, together with the two index sets and and the canonical natural (The canonical natural of a field).
A listed set with distinct entries has as many elements as entries: if are distinct then is a bijection of onto , so that set is finite of cardinality (The cardinality of a finite set, clauses (a) and (c), Injection, surjection, bijection).
For a sieve family with ambient set , finite index set , union and , the sieve identity and its complementary form are (Inclusion and exclusion: , together with the complementary form counting the elements in none of the , A finite family of subsets of a finite set , the intersections for , and the convention ).
Every is finite with a unique natural cardinality , while ; hence the levels for are pairwise disjoint and have union . The sign attached to is , positive for odd and negative for even (The cardinality of a finite set, A subset of a finite set is finite, with , and equality holds if and only if , The set of -element subsets and the binomial coefficient , The sum rule: a finite disjoint union is finite with and , and a sum over a finite index set splits along a partition, clause 3, The sum over a finite index set, and its product form, Integer powers ).
is additive and injective, so the arithmetic of the displayed sums may be carried out on the natural numbers and read in (Laws of finite sums and products in , and , clauses 0 and 7, Ordered field).
Verification
The three-set family. , , are subsets of with , and by [L1], each entry list being strictly increasing and so having distinct entries.
Its intersections. Intersecting the listed sets entry by entry gives , , and , of sizes , , and by [L1].
Its union and complement. An element of lies in unless it is , since , and while belongs to none of the three listed sets; so the union is , of size , and its complement in is , of size .
The four-set family. Adjoining , of size , the remaining intersections are , , , and , of sizes , , , , , and by [L1] and clause (b) of The cardinality of a finite set.
The four-set union. Now , so the union is all of , of size , and its complement in is empty, of size .
The sieve for three sets. Grouping by size as in [L3], clause 1 of [L2] reads , which matches step 1.3.
The complementary form for three sets. Clause 2 of [L2] adds the term at , which is , and reverses every sign, giving , which matches the complement computed in step 1.3.
The sieve for four sets. The singleton terms now sum to , the pair terms to , the triple terms to and the single four-element term is ; so clause 1 of [L2] reads , which matches step 1.5, and clause 2 reads , again matching.
Both families therefore satisfy both forms of the identity, with every intersection exhibited rather than inferred.
Remarks
-
Adjoining one set changes every level of the sum. Passing from three sets to four adds a singleton term, three pair terms, three triple terms and one four-element term, and the totals at each level move accordingly; what stays fixed is that the alternating combination reproduces the size of the union.
-
The terms that vanish are not omitted. and the three four-element-family triples are empty, so their terms are ; they are still terms of the sum, and writing them keeps the count of terms at each level equal to the number of subsets of that size, which is what the grouping in [L3] asserts.
-
Where the complementary form gets its extra term. It runs over all subsets of the index set, including , whose term is . That is the only place the ambient set enters the arithmetic, and it is why the ambient set has to be named as part of the family.
The surjections from a five-element set onto a three-element set counted by the sieve formula and by direct subtraction
Example
Take and , so and .
By the formula. The number of surjections from an -element set onto a -element set is , read in through gives
whose four terms are
| term | |||
|---|---|---|---|
so the count is .
By direct subtraction. Every function has an image , and the sets for partition the set of all functions . A function with image exactly is precisely a surjection , so the number of functions with image of size is times the number of surjections from a five-element set onto a -element set. Those numbers are for , since ; for , the constant function; and for , since a function into a two-element set fails to be onto exactly when it is one of the two constants. Hence
so , in agreement.
Facts & Assumptions
Given: , , the set of all functions , and the canonical natural (The canonical natural of a field).
for every finite (The set of functions between finite sets is finite, with , Exponentiation of natural numbers, , and its agreement with the integer power in , The cardinality of a finite set); and , , , , the last by clause (a) of Exponentiation of natural numbers, , and its agreement with the integer power in since .
If are finite with and , then (The number of surjections from an -element set onto a -element set is , read in through ).
The image partition: for put ; the sets for are pairwise disjoint subsets of with union , and is in bijection with by restriction of the codomain, so . If finite have , finite cardinality supplies a bijection , and is a bijection with inverse ; hence these surjection counts depend only on the codomain cardinality (Injection, surjection, bijection, A subset of a finite set is finite, with , and equality holds if and only if , The cardinality of a finite set).
The sum rule for a finite partition and the grouping of by cardinality, with (The sum rule: a finite disjoint union is finite with and , and a sum over a finite index set splits along a partition, clauses 2 and 3, The sum over a finite index set, and its product form, The set of -element subsets and the binomial coefficient ).
is additive, multiplicative and injective, and , (Laws of finite sums and products in , and , clauses 0 and 7, Integer powers , Ordered field).
Verification
The four terms of the formula. By [L2] and [L1] they are , , and , the signs coming from [L6].
The image partition is a partition, and the number of functions with image of size is times the number of surjections onto a fixed -element subset: [L4] gives equality of the surjection counts for all -element codomains, and there are such subsets by [L5].
The three easy image sizes. There is no surjection from the nonempty onto , so the contribution is ; there is exactly one surjection onto a one-element set, the constant, so the contribution is ; and a function from into a two-element set is non-surjective exactly when it is constant, so the number of surjections is by [L1] and the contribution is .
Summing the four terms of step 1.1 gives , so by [L3] and the injectivity of .
Summing the partition of step 1.2 gives by [L1] and [L5], hence .
The two computations agree, and each was carried out without reference to the other.
Remarks
-
The second route is not a rearrangement of the first. It partitions the functions by their image and uses the surjection counts onto smaller sets, which at sizes , and are established directly rather than by the formula. So the agreement is a genuine check on the formula at , .
-
The last term of the formula is and it is not decoration. At the factor is , which vanishes because ; at it would be instead, and that is the single point where the convention of Exponentiation of natural numbers, , and its agreement with the integer power in is load bearing for this formula.
All nine derangements of a four-element set listed, and the count checked against the formula and both recurrences
Example
Take and write a bijection as the tuple . The derangements of (The derangement number : the number of bijections of an -element set with no fixed point) are exactly
so . Each tuple lists four distinct values, hence is a bijection, and no entry equals its position.
Against the formula. , with the term at equal to and gives
Against the two recurrences. The earlier values are , , and, by the first recurrence, . Then for , and for gives from its first clause, and from its second.
Facts & Assumptions
Given: , the tuple notation above, and the canonical natural (The canonical natural of a field).
(The cardinality of a finite set, clause (a)), so (A finite set with has exactly bijections onto itself, and bijections onto any set of the same cardinality, The factorial and the falling factorial , defined by recursion in ); and a tuple of four distinct entries drawn from is a bijection , a function on a finite set being injective exactly when it is a bijection (Injection, surjection, bijection, A subset of a finite set is finite, with , and equality holds if and only if , clause 4).
For every finite set , is the set of bijections with for every , and ; hence because (The derangement number : the number of bijections of an -element set with no fixed point, The cardinality of a finite set, clause (a)). The values , and are also recorded in the cited definition.
For every , . For , ; and for , (, with the term at equal to and , for , and for ).
Factorials: , , , , (The factorial and the falling factorial , defined by recursion in ).
Real finite sums and the arithmetic of : recursion clause, additivity and scaling (Finite sums and finite products, by recursion, Laws of finite sums and finite products, Ordered field); and , (Integer powers ).
Cardinality of a listed set with distinct entries (The cardinality of a finite set, clauses (a) and (c)).
The canonical natural is additive, multiplicative and injective (Laws of finite sums and products in , and , clauses 0 and 7).
Verification
Each of the nine listed tuples has four distinct entries and no entry equal to its position, so each is a derangement of by [L1] and [L2]; and the nine tuples are pairwise distinct, so the listed set has nine elements by [L6].
The enumeration is complete, and the cases are indexed by the value , which is , or since .
Case . Then . If the remaining values go to positions and with , forcing . If the remaining values are with , forcing . If the remaining values are with , forcing .
Case . Then . If the remaining values go to positions and with , forcing . If the remaining values are and neither placement is excluded, giving and .
Case . Then . If the remaining values go to positions and with , forcing . If the remaining values are and neither placement is excluded, giving and .
The three cases are exhaustive and produce exactly the nine listed tuples, so .
Against the formula. By [L3] and [L4], ; the bracket is by [L5], so , matching step 3.1.
Against the recurrences. By [L2] and the first clause of [L3], , so by injectivity of . Then ; by the second clause, . Both match step 3.1.
The list, the formula and the two recurrences therefore all give .
Remarks
-
The case analysis is on and then on , and the remaining two positions are then forced or free according to whether the two leftover values can be placed without creating a fixed point. Where exactly one placement avoids a fixed point the tuple is determined; where both do, the subcase splits. The branching pattern therefore differs between the cases even though each contributes the same number of derangements.
-
The recurrences are checked at their first legal indices too. The first recurrence is used at and at , both at least ; the second at , which is at least . Neither is evaluated where its hypothesis fails.
The ratio computed for small as a quotient of two counts, with no probability space claimed
Example
For consider the real number
the quotient of the count of derangements of an -element set (The derangement number : the number of bijections of an -element set with no fixed point) by the count of all its bijections, (The factorial and the falling factorial , defined by recursion in ). The quotient is legitimate because . Dividing the derangement formula by gives
so is the truncated alternating sum itself. Its first values, obtained from , , and the first recurrence ( for , and for ), are
This is a ratio of two counts and nothing else. Nothing among this page's declared prerequisites defines a probability space, a measure or an expectation, so is not called a probability here and no statement about random behaviour is made. What is asserted is exactly that the numerator counts the fixed-point-free bijections, that the denominator counts all of them, and that the quotient is the displayed alternating sum.
Facts & Assumptions
Given: The derangement numbers , the factorials , and the canonical natural (The canonical natural of a field).
The derangement formula: (, with the term at equal to and ).
The first recurrence: for ; and , , ( for , and for , The derangement number : the number of bijections of an -element set with no fixed point).
is an ordered field, so division by a nonzero element is available and the displayed arithmetic is legitimate (Ordered field, Field); and (Integer powers ); and real finite sums obey the recursion clause (Finite sums and finite products, by recursion, Laws of finite sums and finite products).
Factorials: , , , , , , (The factorial and the falling factorial , defined by recursion in ).
Verification
The quotient form. Dividing the identity of [L1] by the nonzero gives for every .
The derangement numbers up to . From and [L3]: , , and ; since is injective these are the natural numbers , , , .
The tabulated ratios. Dividing the base values in [L3] and the values from step 1.2 by the factorials of [L5] gives , , , , , and .
A cross-check at through step 1.1: , which is .
So is the truncated alternating sum, and its values through are as tabulated.
Remarks
-
The alternation is visible in the table. is below , which is above , which is below ; each successive value differs from the previous one by the single term , whose sign alternates and whose size decreases.
-
No limit is claimed. The quotient is computed at each from two counts, and nothing here asserts convergence or names a limiting value; the exponential function that would be needed to state such a limit is not among this page's declared prerequisites.
-
Why the division is legitimate at every , including . The denominator is and is never , its recursion starting at and multiplying by nonzero successors.
In a finite set with a symmetric irreflexive relation and at least two elements, two elements have equally many neighbours
Example
Let be a finite set with , and let be symmetric and irreflexive (A relation between finite sets, its row fibres and its column fibres , clause (d)). Write for the number of neighbours of . Then there are in with .
The point is that the possible values of are , which is as many values as has elements, so counting alone does not settle it. What settles it is that the two extreme values cannot both occur: if some has no neighbour then no can be a neighbour of everything else, since it would then be a neighbour of .
Concretely, with and , the neighbour counts are , and , and the elements and have equally many neighbours.
Facts & Assumptions
Given: A finite set with , a symmetric irreflexive relation , and the neighbour counts .
by irreflexivity, and is finite, so (A relation between finite sets, its row fibres and its column fibres , A subset of a finite set is finite, with , and equality holds if and only if , clauses 1 and 2).
, since and are disjoint with union and (The sum rule: a finite disjoint union is finite with and , and a sum over a finite index set splits along a partition, clause 1, The cardinality of a finite set, Finite sums and finite products of natural numbers, and in for the truncated difference).
If then [L1] gives , while [L2] gives ; hence (A relation between finite sets, its row fibres and its column fibres , The sum rule: a finite disjoint union is finite with and , and a sum over a finite index set splits along a partition, The cardinality of a finite set, A subset of a finite set is finite, with , and equality holds if and only if , clause 3).
Symmetry: if and only if (A relation between finite sets, its row fibres and its column fibres , clause (d)).
The counting form of the strong pigeonhole principle: if then some fibre of any has more than one element (If then every has a fibre with more than elements, and for nonempty some fibre has at least elements, clause 1, Injection, surjection, bijection).
Order and membership in : if and only if , that is ; gives and ; and exactly one of , , holds (On the order is membership: , Order on the natural numbers, Trichotomy of the order on , Order is compatible with addition, The natural numbers (von Neumann), Finite sums and finite products of natural numbers, and in ).
Every natural number is a finite set whose cardinality is itself; in particular (The cardinality of a finite set, clause (a)).
Verification
By [L1] and [L2], for every ; and , so by [L6].
The two extreme values cannot both be attained. Suppose and for some . Then , since by [L6]; by [L3] we have , so , so by [L4], so , contradicting .
Case (a): no has . Then for every , so , that is by [L6]; thus maps into the set , whose cardinality is . Since , [L5] gives two distinct with , and since both counts are at least this forces .
Case (b): some has . Then by step 1.2 no has , so for every by [L1], [L2] and [L6], that is ; thus maps into the set , of cardinality . Since , [L5] gives two distinct with .
The two cases are exhaustive, so in either case two distinct elements of have equally many neighbours.
Remarks
-
Where is spent. Twice: to make at least , so that the set of possible values is nonempty and the shift by in case (a) lands inside ; and to make and different, which is what step 1.2 needs.
-
Why the naive count is not enough. The values of lie in a set of naturals and has elements, so the pigeonhole principle says nothing until the range is cut down. Both cases cut it to values, one by removing and one by removing , and the exclusion of the other extreme is what licenses the cut.
-
Symmetry and irreflexivity are both used. Irreflexivity gives the bound ; symmetry is what turns " is a neighbour of " into " is a neighbour of " in step 1.2. Neither can be dropped.
For a finite symmetric irreflexive relation the sum of the neighbour counts is twice the number of unordered related pairs
Example
Let be a finite set and symmetric and irreflexive (A relation between finite sets, its row fibres and its column fibres , clause (d)), with neighbour counts . Put
the set of two-element subsets of whose elements are related. Then, in ,
A concrete instance. With and the symmetric irreflexive relation whose related unordered pairs are , and , the neighbour counts are , , , , summing to , and .
The extreme instance. If relates every pair of distinct elements of then and for every , where ; the identity then reads , which is A finite set with elements has exactly two-element subsets, and .
Facts & Assumptions
Given: A finite set , a symmetric irreflexive relation , the neighbour counts , and the set above.
is finite, and so is and hence its subset (A relation between finite sets, its row fibres and its column fibres , clause (a), The set of -element subsets and the binomial coefficient , for finite , A subset of a finite set is finite, with , and equality holds if and only if ).
The sum rule for a finite partition, and a constant natural summand (The sum rule: a finite disjoint union is finite with and , and a sum over a finite index set splits along a partition, clause 2, The sum over a finite index set, and its product form, clause (c)). In particular, if and , then the disjoint union gives (The cardinality of a finite set, Finite sums and finite products of natural numbers, and in ).
If , then , is a bijection , so ; more generally, a bijection from a finite set transports its cardinality to the codomain (The cardinality of a finite set, clauses (a) and (c), Injection, surjection, bijection).
and for every (A finite set with elements has exactly two-element subsets, and ).
Verification
The pairing map. For irreflexivity gives , so has exactly two elements by [L4] and lies in ; write , a map . It is surjective, since every is for some by the definition of .
Every fibre of has exactly two elements. Let with . A pair with has , so is or ; and both of these lie in , since at least one of them does and is symmetric. So , which has two elements because .
Counting by the fibres of . The fibres of are pairwise disjoint finite sets indexed by the finite set , with union , so [L3] gives .
Combining with [L1], , which is the identity. In the extreme case where relates every pair of distinct elements, and the neighbours of are exactly , so by [L3]; the identity therefore reads by [L3] and [L5].
Remarks
-
Where symmetry is spent. Only in step 1.2, to know that both ordered pairs over a related unordered pair lie in ; without it a fibre could have one element and the factor would be wrong. Irreflexivity is spent in step 1.1, to know that really is a two-element set.
-
This is double counting of one set, not two computations of two sets. The relation is counted once by its row fibres, which gives the sum of the neighbour counts, and once by the fibres of , which gives twice the number of related unordered pairs. Both are instances of the sum rule over a partition.
-
No graph vocabulary is used. The data are a finite set and a symmetric irreflexive relation on it, and is a set of two-element subsets. Nothing among this page's declared prerequisites defines a graph, and nothing here needs one.
Distributing a finite set over a finite set of boxes, with the ceiling bound computed and attained
Example
Take and , so and .
The ceiling. : the least with is , since while ( for naturals and : the least with ). So If then every has a fibre with more than elements, and for nonempty some fibre has at least elements says that every has a fibre with at least elements.
The bound is attained. Partition into the blocks
and let send each to the unique with . The fibre sizes are , summing to , and the largest of them is . So no has all its fibres smaller than , and some has none larger than : the ceiling bound is exactly right for this pair of sizes and cannot be raised to .
The counting form behind it. , so clause 1 of If then every has a fibre with more than elements, and for nonempty some fibre has at least elements already gives a fibre with more than elements, that is with at least ; and is false, so clause 1 gives nothing at , which matches the witness above.
Facts & Assumptions
Given: , , the blocks above, and the function they define.
The ceiling: is the least with , for ( for naturals and : the least with ).
If maps finite sets and , then (i) implies some fibre has more than elements, and (ii), when , some fibre has at least elements (If then every has a fibre with more than elements, and for nonempty some fibre has at least elements, Injection, surjection, bijection).
A listed set with distinct entries has as many elements as entries (The cardinality of a finite set, clauses (a) and (c), Injection, surjection, bijection); and , .
The sum rule for a finite partition and the fibres of a function: (The sum rule: a finite disjoint union is finite with and , and a sum over a finite index set splits along a partition, clause 2, The sum over a finite index set, and its product form, A subset of a finite set is finite, with , and equality holds if and only if ).
Arithmetic and order of : , , , and exactly one of , , holds (Multiplication of natural numbers, Order on the natural numbers, Trichotomy of the order on ).
Verification
The blocks are pairwise disjoint with union , each entry of appearing in exactly one of them, and their cardinalities are , , , , by [L3]. So is a well-defined function and its fibres are exactly the blocks: .
The ceiling is . By [L5], , and likewise , and , all of them less than , so no satisfies ; and , so does. Hence by [L1].
Every has a fibre with at least elements, by clause 2 of [L2] with and the value computed in step 1.2; equivalently, by clause 1 of [L2] with , since .
The witness of step 1.1 has no fibre with more than elements, its fibre sizes being ; and these sum to , in agreement with [L4].
So the ceiling bound of step 1.2 is attained and cannot be improved for this pair of sizes: every function has a fibre of size at least , and some function has every fibre of size at most .
Remarks
-
Why the counting form stops at . Clause 1 needs , and is false, so it says nothing at . That is exactly right: a fibre with more than elements is not forced, as the witness shows. The ceiling form is the counting form used at the largest for which the hypothesis still holds.
-
The unequal block sizes are unavoidable. A function with all fibres of size would give , and one with all fibres of size would give ; since lies strictly between, the fibre sizes of any cannot all be equal.
A three-set count that drops the triple intersection and returns the wrong answer
Statement refuted
Refuted claim: the sieve identity for three sets with its triple term deleted, that is FALSE: the real-valued three-set inclusion-exclusion identity remains true after deleting the triple-intersection term:
The witness is a family of overlapping but unequal sets, so that no cardinality in the computation is degenerate. Inside take
The truncated right-hand side returns , while the union has elements; the missing triple term is , and restoring it gives .
Facts & Assumptions
Given: , , , , and the canonical natural (The canonical natural of a field).
A listed set with distinct entries has as many elements as entries (The cardinality of a finite set, clauses (a) and (c), Injection, surjection, bijection).
The sieve identity for a sieve family with ambient set and index set , whose terms carry the sign (Inclusion and exclusion: , together with the complementary form counting the elements in none of the , clause 1, A finite family of subsets of a finite set , the intersections for , and the convention , The sum over a finite index set, and its product form, Integer powers ).
is additive and injective, so the arithmetic below may be carried out on natural numbers and read in , where subtraction is available (Laws of finite sums and products in , and , clauses 0 and 7, Ordered field, Field).
Counterexample
The three sets are subsets of with by [L1], their entry lists being strictly increasing and so having distinct entries.
The intersections. Comparing the listed sets entry by entry gives , , and , of sizes , , and by [L1].
The union. Every element of lies in one of the three sets: , and . So , of size by [L1].
The truncated right-hand side. By steps 1.1 and 1.2 it is , while the left-hand side is by step 1.3. Since in by [L3], the refuted claim fails on this family.
The correct computation. By [L2] the sieve sum carries the triple term with sign , so it reads , which is by step 1.3. The discrepancy of step 2.1 is exactly , the element lying in all three sets.
Remarks
-
Every set in the witness is a proper subset of and no two of them are equal, so the failure is not an artefact of a degenerate family. What makes the truncated formula wrong is only that the triple intersection is nonempty.
-
The direction of the error. The truncation at depth under-counts, by exactly the size of the triple intersection. That is the direction the Bonferroni inequalities predict for an even truncation, and the size of the gap here is the single term that the next level of the sieve would add.
A list of six distinct reals with no strictly increasing sublist of length four and no strictly decreasing sublist of length three
Statement refuted
Refuted claim: FALSE: every list of pairwise distinct reals has a strictly increasing sublist of length or a strictly decreasing sublist of length at and , that is, the assertion that every pairwise distinct list of reals has a strictly increasing sublist of length or a strictly decreasing sublist of length .
The witness is the list with values
that is read through the canonical natural (The canonical natural of a field). It is the instance at , of the construction of For all and there is a list of pairwise distinct reals with no strictly increasing sublist of length and no strictly decreasing sublist of length : three blocks of two positions each, decreasing inside a block and increasing across blocks.
Its longest strictly increasing sublist has length , for example , and its longest strictly decreasing sublist has length , for example .
Facts & Assumptions
Given: The list above, and the three index blocks , , , with for .
A sublist of length is a strictly increasing . It is strictly increasing when for every , and strictly decreasing when for every such pair (A finite list of reals, and its strictly increasing and strictly decreasing sublists, Injection, surjection, bijection).
is strictly increasing, so the comparisons between the six values are those between in ; natural order satisfies trichotomy, so distinct indices can be put in increasing order and fails exactly when (Laws of finite sums and products in , and , clause 7, Ordered field, Order on the natural numbers, Trichotomy of the order on ).
If a finite set has , there is no injection : composing one with a bijection supplied by finite cardinality would contradict the natural-number pigeonhole principle (The cardinality of a finite set, Injection, surjection, bijection, The pigeonhole principle on , clause 2).
For every , a pairwise distinct list of length has a strictly increasing sublist of length or a strictly decreasing sublist of length ; the length- block construction shows this bound is sharp when (Every list of pairwise distinct reals has a strictly increasing sublist of length or a strictly decreasing sublist of length , For all and there is a list of pairwise distinct reals with no strictly increasing sublist of length and no strictly decreasing sublist of length , FALSE: every list of pairwise distinct reals has a strictly increasing sublist of length or a strictly decreasing sublist of length ).
Counterexample
The list is pairwise distinct: its values are , and the naturals are pairwise distinct, so their canonical naturals are too by [L2].
Inside a block the values decrease. , and , by [L2].
Across blocks the values increase. Every value at a position of is or , every value at a position of is or , and every value at a position of is or ; so implies that every value on is smaller than every value on , by [L2]. Also implies , since the blocks list the positions in increasing order.
No strictly increasing sublist of length . Let be a strictly increasing sublist. If had , then lie in one block, so by step 1.2, contradicting that the values increase. Natural trichotomy in [L2] makes this sufficient for to be an injection of into ; [L3] and [L2] then give , hence .
No strictly decreasing sublist of length . Let be a strictly decreasing sublist and let . Then , so by step 1.3; and a strict inequality there would give by step 1.3, contradicting that the values decrease. So all positions of lie in one block, and is an injection of into a two-element set; [L3] and natural trichotomy in [L2] give , hence .
The list of step 1.1 is therefore a pairwise distinct list of reals with neither of the two sublists the refuted claim asserts, so that claim is false at , ; what holds instead is [L4] at length .
Remarks
-
The two bounds come from the two block counts. An increasing sublist takes at most one position from each block, so its length is bounded by the number of blocks; a decreasing sublist stays inside one block, so its length is bounded by the block size. Exchanging the roles of the block count and the block size would give a witness for the pair instead.
-
Both bounds are attained, by and by respectively, so the witness is not merely short of the two thresholds: it sits exactly one below each.
A relation whose row fibres all differ from the average size, so the averaging principle gives a bound that no fibre meets exactly
Statement refuted
Refuted claim: that the averaging principle produces a row fibre of exactly the average size, that is, that for every relation between finite sets with there is with
What If is nonempty, some row fibre is at least the average size and some row fibre is at most the average size asserts is only that some row fibre is at least and some row fibre is at most ; equality is not claimed, and it can fail, because is a real number while a fibre size is a natural number.
The witness is , and
Here and , so , while the row fibres have sizes and .
Facts & Assumptions
Given: , , , and the canonical natural (The canonical natural of a field).
Row and column fibres, and their finiteness (A relation between finite sets, its row fibres and its column fibres , clause (a)).
A listed set with distinct entries has as many elements as entries (The cardinality of a finite set, clauses (a) and (c), Injection, surjection, bijection).
If is a finite incidence relation with and , then some satisfies and some satisfies (If is nonempty, some row fibre is at least the average size and some row fibre is at most the average size).
is an ordered field, so is defined once , and is strictly increasing with , , , (Ordered field, Field, Laws of finite sums and products in , and , clauses 0 and 7).
Counterexample
The fibres. and , so and by [L1] and [L2]; and , the three listed pairs being distinct.
The average. , so is defined by [L5]; and , so dividing by the positive gives by [L5].
The column fibres check the count. , and , of sizes , and , and , in agreement with [L3].
No row fibre has size . The values and are the only candidates by step 1.1, and step 1.2 places strictly between them. So the refuted claim fails on this relation.
What [L4] does give here, and it is sharp as stated: has , and has . Both inequalities hold strictly, and neither can be improved to an equality by another choice of , since step 1.1 lists all the row fibres.
Remarks
-
Why equality was never available. is a quotient of two natural numbers formed in , and nothing forces it to be the canonical natural of a natural number. Here does not divide in any sense the page supplies, and the average falls strictly between two consecutive fibre sizes.
-
The two elements produced by the averaging principle are distinct here, and in general they need not be: if every fibre has the same size then a single serves as both. What the witness shows is only that neither inequality can be strengthened to an equality in general.
Sources
Standard references
Recommended treatments; not extraction sources.
- Inclusion-exclusion principle (Wikipedia)
- Cardinality (Wikipedia)
- Guichard, The Inclusion-Exclusion Formula (LibreTexts)
- Surjective function (Wikipedia)
- Twelvefold way (Wikipedia)
- Algebraic Combinatorics Blueprint: Surjections
- Derangement (Wikipedia)
- Rencontres numbers (Wikipedia)
- Principle of Inclusion and Exclusion (Open Math Books)
- Derangements (OpenText at the University of Lethbridge)
- Pigeonhole principle (Wikipedia)
- Handshaking lemma (Wikipedia)
- Graph Theory, Chapter 1 (King Saud University notes)
- Double counting (proof technique) (Wikipedia)
- Floor and ceiling functions (Wikipedia)
- Sylvestre, Pigeonhole Principle (LibreTexts)
- Erdos-Szekeres theorem (Wikipedia)
- Longest increasing subsequence (Wikipedia)
- Mathematics for Computer Science (MIT OpenCourseWare)