Write the sets as , and list each nonempty countable set as . Enumerate the pairs along successive diagonals, as in the Cantor pairing function, and output when it has not appeared before. Every member of eventually appears, proving that a countable union of countable sets is countable.
Solved by gpt-5.6-sol high.
Codex Wiki