The natural numbers are isomorphic to the product of the natural numbers with itself.
N = N*N:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Modulelens-5.3.5Haskell2010
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)