Many-body systems: proofs for every particle number N
Experimental. Everything on this page lives in
alkahest.experimentaland may change between minor releases.
FEX proves a closed form for every dimension d by writing it with
Sum(φ(Indexed(x, i)), i, 1, d). This page carries that idea to many-body
quantum mechanics. The structure here is pair sums
Σ_{1≤i<j≤N} φ(x_i, x_j) and Jastrow products ∏_{i<j} J(x_i, x_j), and
an eigenvalue equation Hψ = Eψ is proved for every particle number N,
not checked at a few.
Representation
A particle coordinate is an indexed symbol. Indexed(x, i) is used for one
coordinate per particle, and Indexed(x, i, c) with c = 1 … D for
D-dimensional particles; particle(x, i, c) builds either. Sums use the
existing Sum head. Products use the reserved head Product(body, k, lo, hi), which Prod builds; it is a binder like Sum, so subs never reaches
the bound index. An unordered pair sum is a nested sum with a dependent bound:
import alkahest as ak
import alkahest.experimental as akx
p = ak.ExprPool()
x, N = p.symbol("x"), p.symbol("N")
i, j, m = p.symbol("i"), p.symbol("j"), p.symbol("m")
lam, om = p.symbol("lambda"), p.symbol("omega")
xi, xj = akx.particle(x, i), akx.particle(x, j)
print(akx.pair_sum((xi - xj) ** -2, i, j, N))
# → Sum(Sum((Indexed(x, i) + (Indexed(x, j) * -1))^-2, j, (i + 1), N), i, 1, N)
jastrow = akx.pair_product(ak.abs(xi - xj) ** lam, i, j, N)
# With N fixed, expand_finite writes the sum out (dependent bounds included).
print(akx.expand_finite(ak.subs(akx.pair_sum(p.integer(1), i, j, N), {N: p.integer(4)}))) # → 6Calculus with a symbolic particle label
many_body_diff differentiates by x_m for a symbolic m. Every
Σ_j meets x_m once, which is the Kronecker-delta collapse:
∂/∂x_m Σ_{i<j} φ(x_i − x_j) = Σ_{j≠m} φ'(x_m − x_j)The result is written as Σ_{j=1}^{m−1} + Σ_{j=m+1}^{N}. Both halves are
read back as one sum over j ≠ m, so results can be fed into the other
functions.
u = akx.pair_sum((xi - xj) ** 2, i, j, N)
d = akx.many_body_diff(u, x, N, m)
body = 2 * (akx.particle(x, m) - xj)
expect = akx.Sum(body, j, 1, m - 1) + akx.Sum(body, j, m + 1, N)
print(akx.many_body_is_zero(d - expect, x, N)["proved"]) # → True
# The many-body Laplacian Σ_m Δ_m: four per pair.
print(ak.simplify(akx.many_body_laplacian(u, x, N) - 2 * N * (N - 1)).value) # → 0local_laplacian(ψ, x, N) returns Σ_m Δ_m ψ / ψ for a wavefunction in
product form. That covers Jastrow products, exponentials of pair sums and
products of one-body orbitals. It is computed as Σ_m (Δ_m U + |∇_m U|²),
with U = log ψ.
How identities are decided
Every expression is converted to a body form. That is a combination of
sums over ordered tuples of pairwise distinct particle labels, each of which
may avoid some marked labels such as the m above:
Σ_{(i₁,…,i_k) distinct, all ≠ m} f(x_m; x_{i₁}, …, x_{i_k})On body forms the operations of symbolic-N calculus are exact:
- Differentiation by
x_msplits each slot into "equal tom" and "not equal tom". - A product of two sums is a sum over the partial matchings of their
slots. For example,
(Σ_{j≠m} f)² = Σ_{j≠m} f² + Σ_{j≠l≠m} f f; the second sum is where the three-body terms of a Jastrow Laplacian come from. - A slot the summand ignores becomes a factor
N − (number of labels it must avoid). - Each summand is symmetrised over its dummy indices, which relabels them, and put in a rational normal form.
An identity is proved for all N when every symmetrised summand is
proved identically zero. Trigonometric summands are first rewritten with the
exact substitution t = tan(κy/2), which makes sin, cot and csc² of
coordinate differences rational. An example is the 1/sin² interaction of
a particle ring.
That condition is sufficient, but it is not claimed to be necessary. So a
normal form that is not zero is reported as "unknown", never as a
refutation.
The three-body identity behind Calogero's solution is decided this way. The
cyclic sum Σ 1/((x_i−x_j)(x_i−x_k)) vanishes, so
f = (akx.particle(x, m) - xj) ** -1
inner = akx.Sum(f, j, 1, m - 1) + akx.Sum(f, j, m + 1, N) # Σ_{j≠m}
lhs = akx.Sum(inner ** 2, m, 1, N)
rhs = 2 * akx.pair_sum((xi - xj) ** -2, i, j, N)
print(akx.many_body_is_zero(lhs - rhs, x, N))
# → {'status': 'proved_zero', 'method': 'body_normal_form', 'proved': True}Verifying Hψ = Eψ for every N
verify_many_body(ψ, V, E, x, N) checks H = −½ Σ_m Δ_m + V, where V is
any closed symbolic-N expression (one-body sums, pair sums) and E may
depend on N and on parameters. Pass kinetic= for another coefficient,
dim= for D-dimensional particles and concrete= to choose the
cross-check particle numbers.
The status values are:
"exactly_verified": the residualHψ/ψ − Eis a symbolic identity for everyN."refuted": the independent exact check at a concreteNproved the residual non-zero. This is the only way a refutation is reported."unverified": neither of the above.
Calogero–Moser (harmonic confinement, g = λ(λ − 1)):
psi = jastrow * ak.exp(-om * akx.Sum(xi ** 2, i, 1, N) / 2)
V = om ** 2 / 2 * akx.Sum(xi ** 2, i, 1, N) + lam * (lam - 1) * akx.pair_sum(
(xi - xj) ** -2, i, j, N
)
E0 = om * N / 2 + om * lam * N * (N - 1) / 2
r = akx.verify_many_body(psi, V, E0, x, N, concrete=(2, 3, 4))
print(r["status"], [(c["n"], c["status"]) for c in r["concrete"]])
# → exactly_verified [(2, 'proved_zero'), (3, 'proved_zero'), (4, 'proved_zero')]
# Negative controls: a wrong energy, and a wrong Jastrow exponent.
print(akx.verify_many_body(psi, V, E0 + om, x, N, concrete=(2,))["status"]) # → refuted
bad = akx.pair_product(ak.abs(xi - xj) ** (lam + 1), i, j, N) * ak.exp(
-om * akx.Sum(xi ** 2, i, 1, N) / 2
)
print(akx.verify_many_body(bad, V, E0, x, N, concrete=(2,))["status"]) # → refutedCalogero–Sutherland (N particles on a ring of length L):
L = p.symbol("L")
kappa = p.pi() / L
sn = ak.sin(kappa * (xi - xj))
psi_ring = akx.pair_product(ak.abs(sn) ** lam, i, j, N)
V_ring = lam * (lam - 1) * kappa ** 2 * akx.pair_sum(sn ** -2, i, j, N)
E_ring = kappa ** 2 * lam ** 2 * N * (N ** 2 - 1) / 6
print(akx.verify_many_body(psi_ring, V_ring, E_ring, x, N, concrete=(2, 3))["status"])
# → exactly_verifiedHere the three-body term is not zero. It is the constant
Σ_cyc cot(a−b) cot(a−c) = −1, which contributes −λ²κ² N(N−1)(N−2)/6 to
ΣΔψ/ψ, and the half-angle normal form finds it.
N coupled oscillators (Moshinsky's model, in D = 3). The confinement
is ω and the harmonic pair coupling is k = (Ω² − ω²)/N. The normal
modes are the centre of mass at ω and N − 1 relative modes at Ω:
Om = p.symbol("Omega")
P = akx.ParticleSystem(x, N, dim=3)
n2 = lambda a: sum(P.coord(a, c) ** 2 for c in (1, 2, 3))
r2 = lambda a, b: sum((P.coord(a, c) - P.coord(b, c)) ** 2 for c in (1, 2, 3))
psi3 = ak.exp(-om / 2 * akx.Sum(n2(i), i, 1, N)
- (Om - om) / (2 * N) * akx.pair_sum(r2(i, j), i, j, N))
V3 = om ** 2 / 2 * akx.Sum(n2(i), i, 1, N) + (Om ** 2 - om ** 2) / (2 * N) * akx.pair_sum(
r2(i, j), i, j, N
)
E3 = 3 * (om / 2 + (N - 1) * Om / 2)
print(P.verify(psi3, V3, E3, concrete=(2,))["status"]) # → exactly_verifiedDomain and soundness
ψenters only throughU = log ψ. For a realu, the functionslog |u|andlog udiffer by a locally constantiπ, so they have the same derivatives whereveru ≠ 0. A|·|whose argument may be complex is refused (E-MB-006), and coordinates are real. Every result therefore holds away from coincident points and from the zeros and singularities ofψ, whereHψ/ψis defined. In one dimension, for a Jastrow product∏|x_i − x_j|^λ, that means each ordered sectorx_{σ(1)} < … < x_{σ(N)}. The verification dict states this underdomain. Non-smooth heads (floor,sign,Piecewise, …) are refused (E-MB-003), since their derivatives would hold only off a set that is not reported. Behaviour at the coincidence hyperplanes (boundary conditions, self-adjointness for smallλ) is not checked.The concrete check
verify_many_body_concrete(ψ, V, E, x, N, n)is independent of the body-form algebra. It expands every sum and product atN = n, formsHψ/ψ − Eexplicitly in then·Dcoordinates and zero-tests it.proved_nonzerothere is an exact counterexample. The test suite also evaluatesHψ − Eψin floating point fromψitself, with|·|kept and finite differences, atN = 2 … 5.Scope. These restrictions apply:
- Particle sums run from
1toN, or form an ordered chaini < j(< l). - A chain summand must be exchange-symmetric. For a Jastrow factor, only the gradient of its logarithm needs to be symmetric.
- Free particle labels are taken to be pairwise distinct.
- Functions other than
+,·and positive integer powers may not be applied to a symbolic-Nsum. - At most six distinct slots are allowed per term.
Anything outside this raises
PairSumError(E-MB-001 … E-MB-010) instead of being approximated.- Particle sums run from
try:
akx.many_body_simplify(akx.pair_sum(xj - xi, i, j, N), x, N)
except akx.PairSumError as e:
print(e.code) # → E-MB-004 (not a sum over unordered pairs)Antisymmetry and Slater determinants
Fermionic wavefunctions are antisymmetric under the exchange of two particles; bosonic ones (and Jastrow factors) are symmetric. Alkahest decides these claims exactly. Each claim comes back as
"proved"— an exact identity;"refuted"— with a witness: an exact rational point and particle swap at which a rigorous ball enclosure ofψ(τx) ∓ ψ(x)excludes zero;"undecided"— neither could be established. Nothing is guessed, and a floating-point evaluation is never used as a proof.
Exchange symmetry at concrete N
exchange_symmetry(psi, particles, blocks=None) takes one coordinate symbol
per particle (1D) or a list of D symbols per particle. It checks the
adjacent transpositions (i, i+1), which generate the symmetric group, by
structural sign rules (a pair product's factors are matched up to sign in any
order, |u| = |v| when u = ±v, any function of invariant arguments is
invariant), then exact polynomial identities over ℚ, then the sound zero
test.
import alkahest as ak
from alkahest.experimental import exchange_symmetry
pool = ak.ExprPool()
x1, x2, x3 = (pool.symbol(f"x{i}") for i in (1, 2, 3))
gauss = ak.exp(pool.rational(-1, 2) * (x1**2 + x2**2 + x3**2))
# The free-fermion ground state in a 1D trap: Vandermonde × Gaussian.
psi = (x1 - x2) * (x1 - x3) * (x2 - x3) * gauss
rep = exchange_symmetry(psi, [x1, x2, x3])
print(rep.kind) # antisymmetric
print(rep.symmetric.status) # refuted (with a witness)
# A symmetric function wrongly claimed antisymmetric is refuted by a swap.
e2 = (x1 * x2 + x1 * x3 + x2 * x3) * gauss
bad = exchange_symmetry(e2, [x1, x2, x3])
w = bad.antisymmetric.witness
print(bad.antisymmetric.status, w["swap"]) # refuted (0, 1)
print(w["point"][0][1]) # an exact Fraction coordinateSpin sectors. A spin-resolved wavefunction need only be antisymmetric
within each spin block. Pass the blocks as a partition of the particle
indices, e.g. (N↑, N↓) = (2, 1):
psi_spin = (x2 - x1) * gauss # det↑(x1, x2) · det↓(x3)
print(exchange_symmetry(psi_spin, [x1, x2, x3], blocks=[[0, 1], [2]]).kind) # antisymmetric
print(exchange_symmetry(psi_spin, [x1, x2, x3]).antisymmetric.status) # refutedFor every N: structural proofs
exchange_symmetry_symbolic(psi, bases, N) decides the claims for all
particle numbers at once. Particle i is (Indexed(b, i) for b in bases).
It recognises:
| form | verdict | why |
|---|---|---|
Sum(f(r_i), i, 1, N), IndexedProduct(f(r_i), i, 1, N) |
symmetric | reindexing; the body may depend on i only through r_i (checked) |
Sum(Sum(g(r_i, r_j), j, i+1, N), i, 1, N) with g(a,b) = g(b,a) |
symmetric | a permutation only permutes unordered pairs |
the same with IndexedProduct |
symmetric for symmetric g, antisymmetric for g(a,b) = −g(b,a) |
σ flips inv(σ) pairs, so the product picks up sgn σ (the Vandermonde) |
SlaterDet(φ, a, i, N) = det[φ_a(r_i)] |
antisymmetric | exchanging particles exchanges columns |
products, powers, abs and functions of these |
combined by sign rules |
The side condition on g is checked exactly, in two fresh variables. A claim
that is not proved this way is tried at N = 2, 3, 4; a counterexample there
refutes "for every N". Otherwise it stays undecided: a pattern seen at a few
N is never reported as a proof.
from alkahest.experimental import (
IndexedProduct, Indexed, SlaterDet, Sum, exchange_symmetry_symbolic,
)
x = pool.symbol("x")
N, i, j, a = (pool.symbol(s, "integer") for s in ("N", "i", "j", "a"))
vandermonde = IndexedProduct(IndexedProduct(Indexed(x, i) - Indexed(x, j), j, i + 1, N), i, 1, N)
trap = ak.exp(pool.rational(-1, 2) * Sum(Indexed(x, i) ** 2, i, 1, N))
rep = exchange_symmetry_symbolic(vandermonde * trap, [x], N)
print(rep.antisymmetric.status) # proved
for lemma in rep.lemmas:
print("-", lemma[:60], "...")
# A Calogero Jastrow factor ∏_{i<j} |x_i − x_j|^λ is symmetric for every N.
lam = pool.symbol("lambda", "positive")
cal = IndexedProduct(IndexedProduct(ak.abs(Indexed(x, i) - Indexed(x, j)) ** lam, j, i + 1, N), i, 1, N)
print(exchange_symmetry_symbolic(cal, [x], N).kind) # symmetric
# Σ_i i·x_i depends on the label i itself: refuted at N = 2.
print(exchange_symmetry_symbolic(Sum(i * Indexed(x, i), i, 1, N), [x], N).kind) # neither
# det[x_i^(a-1)] for symbolic N
print(exchange_symmetry_symbolic(SlaterDet(Indexed(x, i) ** (a - 1), a, i, N), [x], N).kind)Slater determinants
SlaterDeterminant(orbitals, orbital_vars, particles) is det[φ_a(r_b)]
with A_{ab} = φ_a(r_b) (rows orbitals, columns particles).
Closed forms. When every orbital is p_a(r)·g(r) with polynomial p_a
and one common factor g, det A = det[p_a(r_b)] · ∏_b g(r_b). In 1D with
deg p_a running over 0 … N−1 this is the Vandermonde identity
det[p_a(x_b)] = sgn(π) ∏_a lc(p_a) ∏_{i<j}(x_j − x_i) (sort the rows by
degree; the rest is a triangular change of basis). That covers the
harmonic-oscillator orbitals (Hermite polynomials × e^{−x²/2}). In more
dimensions (the 2D oscillator closed shells) the polynomial determinant is
expanded exactly.
Derivatives. Particle b appears only in column b, so Jacobi's formula
gives exact local-energy ingredients:
∂_{b,k} log det A = tr(A⁻¹ ∂_{b,k} A) = Σ_a (A⁻¹)_{ba} ∂_k φ_a(r_b)
Δ_b det A / det A = Σ_a (A⁻¹)_{ba} Δφ_a(r_b), Δ_b log det = Δ_b det/det − |∇_b log det|²grad_log(b, k) and laplacian_ratio(b) return these as exact expressions
(for polynomial × common-factor orbitals, ∂ det P / det P + ∂g/g;
otherwise the Cramer quotient of two determinants).
Exact eigenstates. verify_eigenstate(psi, coords, V, E) decides
−½Δψ + Vψ = Eψ for ψ = P·exp(Q) (P, Q, V, E polynomials) as a
polynomial identity: dividing by e^Q > 0,
−½(ΔP + 2∇P·∇Q + P(ΔQ + |∇Q|²)) + (V − E)P = 0. Any other symbol is a
parameter, so a proof holds for all of its values. A false claim is refuted
at an exact rational point.
from alkahest.experimental import SlaterDeterminant, verify_eigenstate
X = pool.symbol("x")
g = ak.exp(pool.rational(-1, 2) * X**2)
hermite = [pool.integer(1), X, X**2 - 1, X**3 - 3 * X] # He_0..He_3
xs = [pool.symbol(f"x{k}") for k in range(1, 5)]
det = SlaterDeterminant([h * g for h in hermite], [X], xs)
cf = det.closed_form()
print(cf["kind"], cf["coefficient"]) # vandermonde 1
V = pool.rational(1, 2) * sum(v**2 for v in xs)
print(det.verify_eigenstate(V, pool.integer(8)).status) # proved: E = N²/2 = 8
print(det.verify_eigenstate(V, pool.integer(7)).status) # refuted
# Same for every trap frequency ω (a parameter):
w = pool.symbol("omega", "positive")
vdm = 1
for p in range(4):
for q in range(p + 1, 4):
vdm = vdm * (xs[p] - xs[q])
psi_w = vdm * ak.exp(-w / 2 * sum(v**2 for v in xs))
print(verify_eigenstate(psi_w, xs, w**2 * V, 8 * w).status) # proved for all ωValidation results (exact, in the test suite):
| system | claim | result |
|---|---|---|
free fermions, 1D trap, N = 2…6 |
ψ = ∏_{i<j}(x_i−x_j)·e^{−Σx²/2}, E = N²/2 |
proved; antisymmetric proved; E ± ½ refuted |
same, symbolic ω |
E = ωN²/2 for V = ω²Σx²/2 |
proved for every ω |
Calogero–Moser at λ = 1 |
g = λ(λ−1) = 0, E₀ = ωN/2 + ωλN(N−1)/2 = N²/2, `ψ_Cal = |
ψ_F |
| 2D oscillator closed shells | N = 3: E = 5; N = 6: E = 14 |
proved; E − 1 refuted |
helium-like singlet φ(r₁)φ(r₂)e^{r₁₂/2} |
spatial part symmetric, spin blocks of size one | proved |
helium-like triplet det[1s, 2s] |
antisymmetric | proved |
Vandermonde × Gaussian, symbolic N |
antisymmetric, and Hψ = (N²/2)ψ, for every N |
proved (pair-product lemma; verify_many_body) |
(E₀ for Calogero–Moser is from Calogero, J. Math. Phys. 12, 419 (1971);
at λ = 1 the interaction vanishes and the ground state is the free-fermion
Slater determinant up to sign.)
For every N at once, the two layers on this page combine: the pair
product ∏_{i<j}(x_i − x_j) is antisymmetric by the exchange lemma, and
verify_many_body proves the energy with the pair-sum algebra above (the
three-body term Σ 1/((a−b)(a−c)) over cyclic orders vanishes):
p2 = ak.ExprPool()
xf = p2.symbol("x")
Nf = p2.symbol("N", "integer")
fi, fj = p2.symbol("i", "integer"), p2.symbol("j", "integer")
ui, uj = akx.particle(xf, fi), akx.particle(xf, fj)
psi_f = akx.pair_product(ui - uj, fi, fj, Nf) * ak.exp(-akx.Sum(ui**2, fi, 1, Nf) / 2)
V_f = akx.Sum(ui**2, fi, 1, Nf) / 2
print(akx.verify_many_body(psi_f, V_f, Nf**2 / 2, xf, Nf, concrete=(2, 3, 4))["status"])
# → exactly_verified
print(akx.verify_many_body(psi_f, V_f, Nf**2 / 2 + 1, xf, Nf, concrete=(2,))["status"])
# → refuted
print(exchange_symmetry_symbolic(psi_f, [xf], Nf).kind)
# → antisymmetricSlater–Jastrow
SlaterJastrow(up, down, U) is ψ = det↑ · det↓ · exp(U) (particles up
first). .exchange() is the spin-resolved check; .local_energy(V) is the
exact Hψ/ψ from
Δ_iψ/ψ = Δ_i D/D + 2∇_i log D · ∇_i U + Δ_i U + |∇_i U|².
from alkahest.experimental import SlaterJastrow
o = [pool.symbol(s) for s in ("x", "y", "z")]
r1 = [pool.symbol(s) for s in ("x1", "y1", "z1")]
r2 = [pool.symbol(s) for s in ("x2", "y2", "z2")]
phi = ak.exp(-2 * ak.sqrt(sum(c**2 for c in o))) # 1s, Z = 2
r12 = ak.sqrt(sum((p - q) ** 2 for p, q in zip(r1, r2)))
up = SlaterDeterminant([phi], o, [r1])
down = SlaterDeterminant([phi], o, [r2])
sj = SlaterJastrow(up, down, r12 / 2)
print(sj.exchange().kind) # trivial: one electron per spin
print(exchange_symmetry(sj.value, [r1, r2]).kind) # symmetric: the singlet's spatial partFloat64 evaluation for VMC
SlaterJastrowEvaluator(orbitals_up, orbitals_down, orbital_vars, pair_same=u, pair_opp=u, r=r) compiles ψ = det↑ · det↓ · exp(Σ_{i<j} u_{σσ'}(r_ij))
once (orbital gradients and Laplacians and u′, u″ are derived exactly) and
evaluates sign(ψ), log|ψ|, ∇ψ/ψ and Δψ/ψ at a batch of points: one
LU factorisation and inverse per spin block and point (O(N³)), O(N²) for
the Jastrow part, parallel over points. These are floating-point numbers for
Monte Carlo — statistical inputs, not certificates.
import numpy as np
from alkahest.experimental import SlaterJastrowEvaluator
ev = SlaterJastrowEvaluator([h * g for h in hermite], [], [X])
pts = np.random.default_rng(0).normal(size=(1000, 4, 1))
vals = ev.evaluate(pts)
e_loc = vals.local_energy(0.5 * (pts**2).sum(axis=(1, 2)))
print(np.allclose(e_loc, 8.0)) # True: an exact eigenstateThroughput of the evaluator (all four outputs) on 3D harmonic-oscillator
closed shells with Padé pair Jastrow factors, N↑ = N↓ = N/2
(benchmarks/many_body/bench_slater_jastrow.py, one shared 32-core machine):
N |
2 | 4 | 8 | 16 | 20 | 32 | 40 | 64 | 70 |
|---|---|---|---|---|---|---|---|---|---|
| µs / point, 1 thread | 0.35 | 0.95 | 3.3 | 11.9 | 17.7 | 47 | 73 | 206 | 246 |
| points / s, 32 threads | 6.5 M | 3.9 M | 2.0 M | 855 k | 548 k | 256 k | 173 k | 69 k | 57 k |
The single-thread cost grows like N³ for large N (LU and the inverse) on
top of the O(N²) orbital and pair evaluations. Compiling the orbitals (with
their exact derivatives) takes 4–40 ms.
Rigorous energy bounds for trial wavefunctions
For H = −(1/2m) Δ + V and a trial function ψ, the Rayleigh–Ritz
principle says
E₀ ≤ R[ψ] = ⟨ψ, Hψ⟩ / ⟨ψ, ψ⟩ = ( (1/2m)‖∇ψ‖² + ⟨ψ, Vψ⟩ ) / ‖ψ‖² .Any trial gives an upper bound. Here the bound is certified: R[ψ] is
computed with a rigorous enclosure, and the result records how.
import alkahest as ak
from fractions import Fraction
from alkahest.experimental import rayleigh_bound, temple_bound, weinstein_bound
pool = ak.ExprPool()
x = pool.symbol("x")
half = pool.rational(1, 2)
# Harmonic oscillator with a too-narrow Gaussian: R = a/2 + 1/(8a) at a = 2/5
psi = ak.exp(-pool.rational(2, 5) * x**2)
b = rayleigh_bound(psi, [x], half * x**2)
print(b.kind, b.tier, b.exact_upper) # rayleigh_upper exact 41/80
print(b.upper) # 0.5125 — E0 = 1/2 lies belowThe kinetic term is always evaluated as (1/2m)‖∇ψ‖², the quadratic form of
H. That form is valid for any trial in the form domain, including trials
with cusps such as e^{−r}, and needs only first derivatives.
The bound holds for the lowest eigenvalue of every H-invariant sector
that contains ψ. An antisymmetric ψ therefore bounds the fermionic ground
state, and a radial ψ the lowest l = 0 level. For the coordinate systems
below and a symmetric V, the unrestricted ground state is positive and lies
in the sector of a symmetric trial.
Three tiers, always reported
| Tier | When | What you get |
|---|---|---|
exact |
the integrals have closed forms | exact rationals, or closed forms over Q(√π, ln 2, π², e^κ) enclosed in Arb |
validated_quadrature |
Cartesian n ≤ 3, or radial |
Taylor-model quadrature with proved error bounds |
monte_carlo |
any Cartesian dimension, only on request | a confidence interval — not a bound |
tier="auto" (the default) tries exact, then validated_quadrature, and
otherwise refuses with E-MB-207. It never falls back to Monte Carlo.
Exact families. Moments are computed in closed form when the trial is in one of these families:
- Cartesian, whole space:
ψ = Σ P_k(x) e^{L_k(x)}with polynomialP_kand quadraticL_k.Vmay be any rational function for whichVψ²and(Hψ)²are polynomials times Gaussians. That covers polynomial potentials, and Calogero–Moser1/(x_i − x_j)²terms against a Jastrow factor that cancels them. The moments come from Isserlis' recursion and are exact rationals when all terms share one Gaussian. - Cartesian, Dirichlet box: a polynomial
ψthat vanishes on the boundary, which is checked exactly. - Radial (
coords="radial", dim=d):ψ = Σ P_k(r) e^{−a_k r − c_k r²}, with a Slater or a Gaussian exponent in each product, andVa Laurent polynomial inr(Coulomb, harmonic, centrifugal). - Hylleraas (
coords="hylleraas", variables[r1, r2, r12]): two particles in 3-D,ψ = Σ P_k(r1, r2, r12) e^{−a_k r1 − b_k r2}, withVa Laurent polynomial.⟨H⟩is exact for any exponents.⟨H²⟩is exact when every product has equal exponents inr1andr2; its singular terms produceln 2andπ².
r1, r2, r12 = pool.symbol("r1"), pool.symbol("r2"), pool.symbol("r12")
v_he = -2 * r1**-1 - 2 * r2**-1 + r12**-1
# Helium, screened hydrogenic trial at the variational optimum alpha = 27/16
psi_he = ak.exp(-pool.rational(27, 16) * (r1 + r2))
he = temple_bound(psi_he, [r1, r2, r12], v_he, coords="hylleraas")
print(he.exact_upper) # -729/256 = -(27/16)^2 = -2.84765625
print(he.lower, he.upper) # contains the true -2.9037243770...
print(he.e1_source) # derived by comparison: ... +1/r12 dropped ...Validated quadrature. On the whole space the integrand is not truncated:
the trial is replaced by ψ·χ_L with the polynomial cutoff
χ_L(x) = Π_i (1 − (x_i/L)^{2p})². χ_L and its gradient vanish on
|x_i| = L, so the cut-off trial is a legitimate trial in the operator
domain, and its integrals over [−L, L]ⁿ are its whole-space integrals. No
tail estimate is needed and the bound is rigorous. The cost is that it is the
bound for a slightly different trial, which assumptions says (L is chosen
automatically, or set it with cutoff_radius=).
r = pool.symbol("r")
psi = (1 + x**2) ** -1 * ak.exp(-(x**2)) # no closed form
q = rayleigh_bound(psi, [x], x**4)
print(q.tier) # validated_quadrature
hq = rayleigh_bound(ak.exp(-r), [r], -(r**-1), coords="radial", tier="quadrature")
print(hq.upper) # -0.4999999... (E0 = -1/2)Monte Carlo samples |ψ|² with Metropolis and averages the local energy
Hψ/ψ. It reports a batch-means confidence interval, and every result it
produces has rigorous == False and a statement beginning
STATISTICAL, NOT A BOUND. Use it for high dimension, where rigorous
integration is out of reach.
Lower bounds: Temple and Weinstein
Both need the second moment ⟨H²⟩ = ‖Hψ‖²/‖ψ‖², computed in the same tiers,
which requires ψ to be in the operator domain. That is checked: a 1-D radial
trial with ψ'(0) ≠ 0 has a kink, its Laplacian contains a delta function,
and the call refuses with E-MB-204.
- Temple: if
⟨H⟩ < ε₁ ≤ E₁, the next spectral point aboveE₀in the sector, thenE₀ ≥ ⟨H⟩ − (⟨H²⟩ − ⟨H⟩²)/(ε₁ − ⟨H⟩). Pass a provedε₁ase1_lower=. If you leave it out, alkahest derives one by comparison where it can:V ≥ Wimpliesλ_k(H) ≥ λ_k(H_W)by min–max. The comparison operators are an exactly harmonicV, a radialV ≥ k r² + corV ≥ c − Z/r, andV ≥ −Z₁/r₁ − Z₂/r₂in Hylleraas coordinates. Otherwise the call refuses withE-MB-205. - Weinstein: with
σ² = ⟨H²⟩ − ⟨H⟩², the interval[⟨H⟩ − σ, ⟨H⟩ + σ]contains some point of the spectrum. It need not beE₀, nor an eigenvalue: for hydrogen it may be a point of the continuum[0, ∞). It says something aboutE₀only together with a gap estimate.
w = weinstein_bound(ak.exp(-pool.rational(9, 10) * r), [r], -(r**-1), coords="radial", dim=3)
print(w.lower, w.upper) # contains -1/2, the 1s level
t = temple_bound(ak.exp(-(x**2)), [x], half * x**2, e1_lower=Fraction(3, 2))
print(t.lower, t.upper) # [0.5 - ..., 0.625]Certificates
Every result carries tier, rigorous, statement, assumptions (domain,
boundary conditions, the excited-state bound and where it came from) and a
derivation log. to_dict() returns all of it as one record. The exact tier
also gives exact_lower / exact_upper as "p/q" strings and the closed
forms of the integrals in moments.closed_form.
d = he.to_dict()
print(d["tier"], d["rigorous"], len(d["assumptions"]))Exact-tier results are not yet exported as Lean statements; that is future work for the reflective kernel.
Validation ladder
Each row is computed by the code on this page. E is the true ground-state
energy; the interval is [Temple, Rayleigh] unless marked.
| System | Trial | E |
Interval | Tier |
|---|---|---|---|---|
| Harmonic oscillator, 1-D | e^{−x²/2} (exact) |
1/2 |
[1/2, 1/2] |
exact |
| Harmonic oscillator, 1-D | e^{−9x²/20} |
1/2 |
[0.49719, 0.50278] |
exact |
| Harmonic oscillator, 1-D | e^{−2x²/5} |
1/2 |
[0.48687, 0.5125] |
exact |
| Harmonic oscillator, 1-D | e^{−2x²/5} |
1/2 |
[0.48687, 0.51250] |
validated quadrature |
| Hydrogen | e^{−r} (exact) |
−1/2 |
[−1/2, −1/2] |
exact |
| Hydrogen | e^{−9r/10} |
−1/2 |
[−0.51689, −0.495] |
exact (and quadrature) |
| Hydrogen | e^{−4r/5} |
−1/2 |
[−0.55211, −0.48] |
exact |
| Helium | e^{−2(r₁+r₂)} |
−2.903724… |
[−7.1667, −2.75] |
exact, ε₁ = −5/2 derived |
| Helium | e^{−27/16 (r₁+r₂)} |
−2.903724… |
[−5.4287, −2.84765625] |
exact, ε₁ = −5/2 derived |
| Helium | (1 + 3r₁₂/10) e^{−37/20 (r₁+r₂)} |
−2.903724… |
[−3.2809, −2.88990] |
exact, ε₁ = −5/2 derived |
Hooke's atom, ω = 1/2 |
(1 + r₁₂/2) e^{−(r₁²+r₂²)/4} (exact) |
2 |
[2, 2] |
exact (c.m. + relative) |
Calogero–Moser, N = 3, λ = 2 |
Jastrow × e^{−Σx²/2} (exact) |
15/2 |
[15/2, 15/2] |
exact, ε₁ = E₀ + ω supplied |
Calogero–Moser, N = 3, λ = 2 |
Jastrow × e^{−11Σx²/20} |
15/2 |
[7.4633, 7.5341] |
exact, ε₁ = E₀ + ω supplied |
Calogero–Moser, N = 4, λ = 2 |
Jastrow × e^{−Σx²/2} (exact) |
14 |
[14, 14] |
exact, ε₁ = E₀ + ω supplied |
The intervals tighten as the trial improves, and every one contains the true
energy. The exact-tier rows take well under a second each (N = 4
Calogero–Moser takes about 3 s); the one-dimensional quadrature rows take
about half a second.
Hooke's atom is solved by separating the centre of mass, which is an exact
identity for that Hamiltonian: H = H_cm + H_rel with H_cm an oscillator of
mass 2 and H_rel = −Δ + ω²r²/4 + 1/r of reduced mass ½. At ω = 1/2
(spring constant k = ω² = 1/4) the exact ground state is
(1 + r₁₂/2) e^{−(r₁² + r₂²)/4} with E = 2 hartree (Kais, Herschbach &
Levine, J. Chem. Phys. 91, 7791 (1989); Taut, Phys. Rev. A 48, 3561
(1993)). The certificate confirms it independently: the variance of the
trial is exactly zero. The helium reference value is Pekeris's
−2.903724377… (Phys. Rev. 115, 1216 (1959)).
Limits
- Rigorous integration in high dimension is infeasible in general. The rigorous tiers cover closed-form families in any dimension, and quadrature in at most three Cartesian dimensions or one radial dimension. Anything else is Monte Carlo, labelled as statistical.
- Three-dimensional quadrature works but is slow and loose. For the 3-D
oscillator with
e^{−2r²/5}(R = 1.5375) it uses up its 4000-box budget in about six minutes and certifiesE₀ ≤ 1.5742. That bound is sound, andbudget_exhaustedis set. One-dimensional and radial quadrature takes under a second and is tight to about10⁻⁷. - Gaussian-type orbitals with Coulomb terms in Cartesian coordinates (the Boys-function integrals) are not implemented. Radial and Hylleraas coordinates cover hydrogen- and helium-like problems instead.
- Hylleraas
⟨H²⟩with unequal exponents (for example Eckart's open-shell trial) has logarithmic terms that are not implemented, so it refuses withE-MB-200.⟨H⟩, and with it the upper bound, stays exact. - Derived
ε₁values come from crude comparison operators and are often far below the trueE₁, so Temple bounds can be loose. For helium the derivedε₁ = −5/2lies far below the true2¹Slevel at−2.146.
Refusals
| Code | Meaning |
|---|---|
E-MB-200 |
exact tier requested, but an integral has no closed form in the supported families |
E-MB-201 |
malformed problem (coordinates, domain, mass) |
E-MB-202 |
a defining integral diverges (trial not normalisable or not in the form domain) |
E-MB-203 |
the trial violates the Dirichlet boundary condition |
E-MB-204 |
the trial is not in the operator domain, so ⟨H²⟩ is undefined |
E-MB-205 |
Temple: no ε₁ available, or ⟨H⟩ < ε₁ fails |
E-MB-206 |
Monte Carlo sampling failed |
E-MB-207 |
tier="auto" found no rigorous tier |
Monte Carlo fitting and cusps
The proofs on this page are exact. For fitting trial wavefunctions by
variational Monte Carlo (sampling |ψ|², energy and variance losses,
stochastic reconfiguration, blocked error bars) and for the Kato cusp
conditions (exact symbolic checks at every coalescence, cusp-fixed Jastrow
factors, penalties), see Variational Monte Carlo. Its numbers are
statistical and labelled as such; a closed form it finds is proved by
fex.finalize_many_body and by the symbolic-N checks here.
References
- F. Calogero, Solution of the one-dimensional N-body problems with quadratic and/or inversely quadratic pair potentials, J. Math. Phys. 12, 419 (1971). This is the harmonic Calogero–Moser model and its ground state.
- B. Sutherland, Exact results for a quantum many-body problem in one
dimension, Phys. Rev. A 4, 2019 (1971). This is the
1/sin²ring. - J. Moser, Three integrable Hamiltonian systems connected with isospectral deformations, Adv. Math. 16, 197 (1975).
- M. Moshinsky, How good is the Hartree–Fock approximation, Am. J. Phys. 36, 52 (1968). This is the harmonically interacting model, solved by normal modes.
The ground-state energies above were re-derived independently: by hand
through the local energy, by the symbolic-N proof on this page, and by the
exact concrete-N check.