The natural numbers are isomorphic to the product of the natural numbers with itself.
N = N*N:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11
Modulelens-5.3.6Haskell2010
Useful tools for Gödel numbering.
The natural numbers are isomorphic to the product of the natural numbers with itself.
N = N*NThe natural numbers are isomorphic to disjoint sums of natural numbers embedded as evens or odds.
N = 2*NThe natural numbers are isomorphic to lists of natural numbers
interleaves the bits of two natural numbers
Sum (Left q) = 2*q
Sum (Right q) = 2*q+1
Naturals [] = 0
Naturals (h:t) = 1 + Pair h (Naturals t)