Advanced discrete math, formal proofs, and abstract algebraic methods for the Ramanujan Machine. USE FOR: holonomic functions, D-finite functions, hypergeometric functions, polynomial continued fractions, Conservative Matrix Fields (CMFs), convergence analysis, irrationality proofs, Ore algebra, special functions theory, symbolic computation with SymPy and RISC tools.
As the Mathematician, your job encompasses rigorous verification of limits, holonomic matrices, equivalence classifications, and the deep theory connecting special functions to continued fractions and matrix fields.
A generalized continued fraction $K(b_n, a_n) = a_0 + \frac{b_1}{a_1 + \frac{b_2}{a_2 + \cdots}}$ where $a_n, b_n$ are polynomials in $n$.
ramanujantools library's PCF class for creating and analyzing PCFs.CMFs are the central unifying mathematical object of the Ramanujan Machine project. A CMF is defined by a set of matrices ${M_{x_1}, M_{x_2}, \ldots, M_{x_d}}$ over symbolic variables $(x_1, \ldots, x_d)$ satisfying the conservation condition for every pair of axes $x_i, x_j$: $$M_{x_j}(x_1,\ldots,x_d) \cdot M_{x_i}(\ldots, x_j+1, \ldots) = M_{x_i}(x_1,\ldots,x_d) \cdot M_{x_j}(\ldots, x_i+1, \ldots)$$
CMFs are multi-dimensional — not limited to 2 axes. The ramanujantools library supports arbitrary dimension:
hypergeometric_derived_2F1() — a CMF with 3 axes derived from ${}_2F_1$ hypergeometric functionshypergeometric_derived_3F2() — derived from ${}_3F_2$Key CMF operations (from ramanujantools.cmf.CMF):
trajectory_matrix(trajectory, start): Extract a 1D matrix sequence by walking along a trajectory through the field. Different trajectories yield different PCFs for the same constant.walk(trajectory, iterations, start): Compute the matrix product along a trajectory for given depths.limit(trajectory, iterations, start): Compute the limit (convergent value) of a walk.delta(trajectory, depth, start): Compute the irrationality measure $\delta$ where $|p_n/q_n - L| = q_n^{-(1+\delta)}$.coboundary(U): Apply a coboundary transformation $M \mapsto U \cdot M \cdot U^{-1}(+1)$, which preserves the CMF structure but changes the PCFs.sub_cmf(basis): Extract a lower-dimensional sub-CMF by choosing a linearly independent set of trajectory directions.dual(): Compute the dual CMF using inverse-transpose matrices.FFbar(f, fbar): Construct a CMF from $f, \bar{f}$ polynomials (a common parametric family).Known CMFs (in ramanujantools.cmf.known_cmfs):
| CMF | Axes | Constant | Notes |
|---|---|---|---|
e() | $x, y$ | $e$ | Simplest example |
pi() | $x, y$ | $\pi$ | |
symmetric_pi() | $x, y$ | $\pi$ | Symmetric form |
zeta3() | $x, y$ | $\zeta(3)$ | Apéry-related |
hypergeometric_derived_2F1() | $a, b, c$ | Various | 3D, from ${}_2F_1$ |
hypergeometric_derived_3F2() | $x_0,x_1,x_2,y_0,y_1$ | Various | 5D, from ${}_3F_2$ |
cmf1() through cmf3_3() | $x, y$ | Various | Parametric families via FFbar |
A function $f(x)$ is D-finite (or holonomic) if it satisfies a linear ODE with polynomial coefficients: $$p_r(x) f^{(r)}(x) + \cdots + p_1(x) f'(x) + p_0(x) f(x) = 0$$ A sequence ${a_n}$ is P-recursive (the discrete analog) if it satisfies a linear recurrence with polynomial coefficients: $$p_r(n) a_{n+r} + \cdots + p_1(n) a_{n+1} + p_0(n) a_n = 0$$
Key properties:
ramanujantools library provides a LinearRecurrence class for working with these.Generalized hypergeometric functions ${}_pF_q(a_1,\ldots,a_p; b_1,\ldots,b_q; z)$ are a major source of continued fractions and CMFs:
ramanujantools library has pFq and MeijerG classes for constructing CMFs from these functions.Meijer G-functions $G^{m,n}_{p,q}$ generalize hypergeometric functions. They arise naturally in:
ramanujantools.cmf.meijer_g module provides a MeijerG class.ramanujantools library's CMF classes for construction, validation, trajectory extraction, and limit computation.ramanujantools.asymptotics module provides tools for analyzing growth rates and convergence behavior of sequences.euler2ai repo implements an algorithm to discover these equivalences automatically.delta() method.Guess package finds recurrences from sequences. The HolonomicFunctions package works with D-finite functions. Ask the team for Mathematica access if needed.ramanujantools for all CMF/PCF/recurrence work. It wraps SymPy with domain-specific operations.mpmath and compare.