Metamath Proof Explorer


Theorem bitsf1o

Description: The bits function restricted to nonnegative integers is a bijection from the integers to the finite sets of integers. It is in fact the inverse of the Ackermann bijection ackbijnn . (Contributed by Mario Carneiro, 8-Sep-2016)

Ref Expression
Assertion bitsf1o bits 0 : 0 1-1 onto 𝒫 0 Fin

Proof

Step Hyp Ref Expression
1 bitsf1ocnv bits 0 : 0 1-1 onto 𝒫 0 Fin bits 0 -1 = x 𝒫 0 Fin n x 2 n
2 1 simpli bits 0 : 0 1-1 onto 𝒫 0 Fin