The natural numbers are isomorphic to the product of the natural numbers with itself.
N = N*N:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 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)