In physics and cosmology, the mathematical universe hypothesis (MUH), also known as the Ultimate Ensemble, is a speculative "theory of everything" (TOE) proposed by the cosmologist Max Tegmark.
Tegmark's MUH is: Our external physical reality is a mathematical structure. That is, the physical universe is mathematics in a well-defined sense, and "in those [worlds] complex enough to contain self-aware substructures [they] will subjectively perceive themselves as existing in a physically 'real' world". The hypothesis suggests that worlds corresponding to different sets of initial conditions, physical constants, or altogether different equations may be considered equally real. Tegmark elaborates the MUH into the computable universe hypothesis (CUH), which posits that all computable mathematical structures (in Gödel's sense) exist.
The theory can be considered a form of Pythagoreanism or Platonism in that it posits the existence of mathematical entities; a form of mathematical monism in that it denies that anything exists except mathematical objects; and a formal expression of ontic structural realism.
Tegmark claims that the hypothesis has no free parameters and is not observationally ruled out. Thus, he reasons, it is preferred over other theories-of-everything by Occam's Razor. He suggests conscious experience would take the form of mathematical "self-aware substructures" that exist in a physically "real" world.