Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 7

Bijective Proofs for Set Equivalence

Recommended resources

Hello! It's great to see you again. Last time, we explored the "Stars and Bars" method, a clever technique for counting distributions and integer solutions. The magic of that method was in how we transformed one problem (distributing items) into another, simpler one (arranging symbols). We relied on the fact that for every valid distribution, there was exactly one unique arrangement of stars and bars, and vice-versa.

Today, we're going to formalize this powerful idea. The concept of a one-to-one correspondence is called a bijection, and using it to prove that two sets are the same size is a fundamental technique in advanced combinatorics called a bijective proof or proof by bijection. Your goal of solving Olympiad-level problems requires a deep understanding of this method, as it provides elegant arguments that are often more insightful than algebraic manipulation. This lesson will equip you with the tools to construct and use these proofs.

Solutions to Previous Practice Problems

Before we dive in, let's quickly go over the solutions to the problems from our lesson on Stars and Bars.

  1. Integer Solutions I: We need to find the number of non-negative integer solutions to . Here, (stars) and (variables/bins). The formula is .

  2. Candy Distribution:
    a. 20 identical candies, 5 children. This is . The number of ways is:

    b. Each child receives at least two pieces. We first give each of the 5 children 2 pieces, using up pieces. We have pieces left to distribute without restriction. Now, .

  3. Investment Portfolio: This is equivalent to distributing 100 identical "thousand-dollar units" into 4 distinct funds. .

  4. Rolling Dice: We need to find the number of integer solutions to where . This problem involves an upper bound, which we haven't covered yet (it requires the Principle of Inclusion-Exclusion, a future topic). This was a challenge problem to show the limits of our current tool. For those curious, the answer is 25. The solutions are permutations of (1,5,6), (2,4,6), (2,5,5), (3,3,6), (3,4,5), and (4,4,4).


What is a Bijection?

A bijective proof is a strategy for showing that two sets, and , have the same size by finding a perfect pairing between their elements. This perfect pairing is a function called a bijection.

To be precise, a function is a:

  • Injection (one-to-one): If every element in the domain maps to a unique element in the codomain . Formally, if , then .
  • Surjection (onto): If every element in the codomain is mapped to by at least one element from the domain .
  • Bijection: If it is both an injection and a surjection.

The image below gives a great visual summary of these concepts.

This diagram illustrates the three main types of functions. An injective function ensures no two elements from set A map to the same element in set B. A surjective function ensures every element in B is "hit" by at least one element from A. A bijective function does both, creating a perfect one-to-one correspondence.

The fundamental idea is simple: if you can pair up every element of with exactly one element of , with no elements left over on either side, then the two sets must have the same number of elements.

To learn the formal details, let's turn to a clear guide on the topic.

Bijections | An Invitation to Enumeration

This resource provides rigorous definitions and outlines the two primary methods for proving that a function is a bijection.

Please read the first part of this chapter. Start from the beginning and read down to the end of the section just before the example on permutation matrices. Pay close attention to the formal definitions, the lemma stating that a function is a bijection if and only if it has an inverse, and the two methods for proving a bijection.

To summarize the reading, we can prove a function is a bijection by either:

  1. Showing it is both injective and surjective.
  2. Defining an inverse function and showing that for all and for all .

For many combinatorial proofs, the second method is more direct and intuitive.


The Bijective Proof in Action

Let's start with a classic, visual example that is foundational in combinatorics.

Example 1: Lattice Paths

How many paths are there from the origin to the point if you are only allowed to take unit steps up (U) or to the right (R)?

This is a counting problem. We want to find the size of the set of all such paths. Let's call this set . Directly counting these paths by drawing them would be impossible for large and . Instead, we can create a bijection to a set we already know how to count.

Consider the set of all strings of length that contain exactly 'R's and 'U's. We know how to count this from our first lesson: it's the number of ways to choose positions for the 'R's out of total positions, which is .

Now, let's define the bijection.

[PDF] Bijections - Yufei Zhao

This PDF from a Math Olympiad course by Yufei Zhao provides a concise and clear explanation of the lattice path bijection.

Read the first page of the document, from the start down to the end of the section on Problem 1. Focus on how a path is encoded and how this creates a bijection.

As the reading explains, we can define a function where takes a path and outputs the sequence of moves (e.g., RRU...). This function is a bijection:

  • It's well-defined: Every path from to must consist of exactly right moves and up moves, so its encoding will be a string in set .
  • It has an inverse: Given any string in , we can uniquely construct the path it represents by starting at and following the sequence of moves.

Since we have a bijection between and , we know . Therefore, the number of lattice paths is .

Example 2: A Familiar Identity

Let's prove the identity using a bijective argument. While you can prove this by expanding the factorials, the bijective proof reveals why it's true from a combinatorial perspective.

We need to find two sets, one of size and one of size , and show they are in bijection.

  • Let be a set of elements.
  • Let be the set of all -element subsets of . By definition, .
  • Let be the set of all -element subsets of . By definition, .

How can we create a perfect pairing between these two sets?

Bijections | An Invitation to Enumeration

This section of the "Bijections" chapter provides a perfect, concise proof for this identity.

Please read the first example in the "Combinatorial Proofs" section, which starts with the identity we are discussing.

The bijection is the complement function. For any -element subset , its complement is a unique -element subset in . The inverse of this function is itself: taking the complement twice returns the original set. Since a bijection exists, , proving the identity.

Example 3: A Deeper Result from Partitions

A partition of a positive integer is a way of writing as a sum of positive integers, where the order doesn't matter. For example, the partitions of 4 are: 4, 3+1, 2+2, 2+1+1, 1+1+1+1.

Let's prove a beautiful result using a bijection:

The number of partitions of into exactly parts is equal to the number of partitions of whose largest part is exactly .

For , the partitions into 3 parts are:

  • 4 + 1 + 1
  • 3 + 2 + 1
  • 2 + 2 + 2

The partitions with largest part 3 are:

  • 3 + 3
  • 3 + 2 + 1
  • 3 + 1 + 1 + 1

Both sets have size 3. This seems to hold! But how do we prove it for any and ? The key is a visual representation called a Ferrers diagram.

[PDF] Bijections - Yufei Zhao

This section explains Ferrers diagrams and uses a clever bijection called conjugation to prove the partition identity.

Read from the heading Problem 2 down to just before Problem 3. Pay close attention to the definition of a Ferrers diagram and the operation of taking its conjugate.

The bijection here is conjugation: reflecting the Ferrers diagram across its main diagonal. This operation swaps the number of rows and columns.

  • The number of parts in a partition corresponds to the number of rows in its diagram.
  • The size of the largest part corresponds to the number of columns (the length of the first row).

By taking the conjugate, we create a bijection between partitions with rows (i.e., parts) and partitions with columns (i.e., largest part is ). This proves the two sets have the same size, without any complex counting!


Practice Problems

Now it's your turn to build some bijections. For each problem, the goal is not just to get the answer, but to explicitly define the two sets and the bijection between them.

  1. The Committee and the Chair: Prove the identity with a combinatorial argument.
    Hint: Consider the task of forming a committee of people from a group of , and then selecting one person from the committee to be the chair. Count the number of ways to do this in two different orders. This is known as "counting in two ways" or a "double counting proof," which is a cousin of the bijective proof.

  2. Even vs. Odd Subsets: Prove that for any non-empty set with elements, the number of subsets with an even number of elements is equal to the number of subsets with an odd number of elements (both are ).
    Hint: Let be the set of even-sized subsets and be the set of odd-sized subsets. Pick one special element, say . Define a function based on whether is in a given subset. What does the function do if is present? What if it's absent? Show that this function is a bijection.

  3. Compositions and Subsets: In the last lesson, we found that the number of positive integer solutions to is . We also know that the number of -element subsets of is . Construct an explicit bijection between these two sets:

    • Set : The set of compositions (ordered tuples) such that and their sum is .
    • Set : The set of all -element subsets of .
      Describe a function and its inverse .

Conclusion

Today you've learned one of the most elegant and powerful proof techniques in combinatorics. A bijective proof shifts the focus from "how many?" to "what is the underlying structure?". By finding a one-to-one correspondence, you can prove that two seemingly different collections of objects are, from a combinatorial perspective, the same.

Key Takeaways:

  • A bijection is a function that is both one-to-one (injective) and onto (surjective).
  • If a bijection exists between two finite sets and , then .
  • A bijective proof establishes that by constructing an explicit bijection between and .
  • To prove a function is a bijection, you can either show it's injective and surjective, or you can construct its inverse.
  • This method can be used to prove combinatorial identities and establish surprising connections between different types of objects (like lattice paths and strings, or partitions and their conjugates).

In our next lesson, we will continue to use bijective arguments, but we'll focus on applying them to prove a wider range of combinatorial identities without relying on algebraic formulas.