In mathematics, the Miracle Octad Generator, or MOG, is a mathematical tool introduced by Rob T. Curtis for studying the Mathieu groups, binary Golay code and Leech lattice.