I am going through Bartle and Sherbert's Introduction to Real Analysis and doing all the exercises. I have just tried the last of section 1.3, which requires you to prove the aforesaid statement. I think I've come up with something satisfactory, but it looks nothing like the hint the book offers at the end.
I start by building a grid that includes all the finite subsets of N as follows. Each finite subset has a natural number n of elements (except the empty set, which has none), so each row includes all the subsets with the same number of elements (except the first row, which also includes the empty set. First row would start like this: ∅, {1}, {2}, {3} ... Second row would start like this: {1,2}, {1,3}, {1,4} ... Position within the row is determined by two aspects: we add up the elements of the sets and start with those who sum is the smallest possible natural number m that results from the sum of distinct elements of the sets in the row. For the first row, this is the empty set; for the second row, this is 3 (1+2) and so on. If two sets in the same row add up to the same m, their ordering is determined by checking the minimum element of those sets. The one with the smallest minimum goes first. If the sets share the same minimum, we proceed to check the next minimum of both sets once we've removed the first minimum, and so on recursively. For example, in row 2, both {1,4} and {2,3} add to 5, but as 1<2, {1,4} goes before the other.
I claim this grid includes all finite subsets of N and uniquely locates them through row and column position. Using this fact, a bijection be established between this set and the set NxN or ordered pairs of natural numbers. ∅ maps to {1,1},{1} maps to {1,2}, {1,2} maps to {2,1} and so forth.
Now the textbook chapter showed there's a bijection from N to NxN (call it f). We have just produced a bijection from P(N) to NxN (call it g), and as the inverse of a bijection is also a bijection, by composing f and the inverse of g we have created a bijection from N to P(N), which proves that P(N) is countable.
Is this correct? Have I missed something?
Leandro Caniglia: this is as introductory exercise (unit 1) for a Real Analysis textbook, so I imagine 100% rigor is probably not expected, but yes, you're right. I'm not sure how I could prove this statement. Like, any finite subset of N has to have a number n of elements, so it has to belong to one of the rows. Addition is defined for N, so said elements have to add to something. Order too, so an n-numbered set has to be isomewhere n its row. – Manuel Del Río Rodríguez Feb 29 '24 at 11:15