The Ramanujan Machine: Automatically Generated Conjectures on Fundamental Constants

Gal Raayoni, George Pisha, Yahel Manor, Uri Mendlovic, Doron Haviv, Yaron Hadad, Ido KaminerarXiv 2019

Abstract

The Ramanujan Machine is an automated system that discovers new, elegant mathematical formulas for fundamental constants like $\pi$, $e$, and the Riemann zeta function using only their numerical values. By leveraging search algorithms and continuous optimization, the system acts as an "artificial intuition," generating highly accurate mathematical conjectures that human mathematicians can then attempt to formally prove.

Introduction

Historically, discovering beautiful and useful mathematical formulas—such as Euler’s identity or the continued fraction of the Golden Ratio—has relied on the sporadic, profound intuition of mathematical geniuses like Carl Friedrich Gauss or Srinivasa Ramanujan. While computer science has made massive strides in Automated Theorem Proving (verifying existing claims), very little work has been done on Automated Conjecture Generation (discovering the claims in the first place).

The authors of "The Ramanujan Machine" tackle this gap by creating a systematic way to reverse-engineer the underlying mathematical structures of fundamental constants using nothing but their infinite sequences of digits as ground-truth data.

Methods

The system focuses on finding Polynomial Continued Fractions (PCFs), which are infinite fractions where numerators and denominators follow predictable polynomial sequences. Two primary algorithms are employed:

Meet-In-The-Middle Regular Formulas (MITM-RF)

This algorithm enumerates the Right-Hand Side (the PCF) to a low precision and stores the results in a massive hash table. Simultaneously, it enumerates the Left-Hand Side (a known constant in a rational function) to the same precision. Matches, or "hits," are then recalculated to high precision (up to 2000 digits) to eliminate false positives.

The Meet-In-The-Middle (MITM) algorithm workflow for discovering new conjectures.

Descent & Repel

This approach frames the search for integer coefficients as a continuous optimization problem. It uses Gradient Descent to minimize the error between the PCF and the constant, employing "Coulomb-like repulsion" to keep search points from collapsing into the same solution. Finally, "Lattice GD" snaps coordinates to exact integer values.

Key Insights and Results

The Ramanujan Machine treats the infinite digits of irrational numbers as raw data to uncover structural mathematical truths. This data-driven approach has led to several key results:

  1. Discovery of New Conjectures: The machine discovered dozens of previously unknown conjectures for $e$, $\pi$, $\zeta(3)$, and Catalan's constant. For example, a new (and later proven) formula for $e$ was found: $$ \frac{e}{e - 2} = 4 - \frac{1}{5 - \frac{2}{6 - \frac{3}{7 - ...}}} $$
  2. Predicting Convergence: The authors empirically observed that the convergence rate of a continued fraction is determined by the ratio of the polynomial degrees in its numerator and denominator.
Convergence rates of discovered polynomial continued fractions for various fundamental constants.

Discussion and Future Work

While the system is a powerful tool for "artificial intuition," it currently only generates conjectures and cannot provide formal proofs. The search space is also limited to specific structures like PCFs.

Future work includes applying the machine to empirical constants from physical simulations (like Feigenbaum constants) and expanding the search to more complex mathematical structures. The project has also moved toward a distributed computing model via RamanujanMachine.com, inviting the public to contribute computational power to the search for new mathematical truths.

Summary updated

BibTeX
@misc{raayoni2019ramanujan,
  author = {Gal Raayoni and George Pisha and Yahel Manor and Uri Mendlovic and Doron Haviv and Yaron Hadad and Ido Kaminer},
  title = {{The Ramanujan Machine: Automatically Generated Conjectures on Fundamental Constants}},
  year = {2019},
  eprint = {1907.00205},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.00205},
}
Figure