Skip to content
High Energy & Field Theory · Bootstrap & AmplitudesDraft

Quantum Bootstrap & IBP Reduction

Unify quantum-mechanical and matrix-model bootstrap (Hankel moment-matrix SDPs) with Feynman-integral IBP reduction (Laporta algorithm, finite-field sparse elimination, CRT/Wang reconstruction) under Weyl's error-lattice provenance.

Although quantum bootstrap and Feynman-integral Integration-By-Parts (IBP) reduction arise in distinct corners of high-energy and mathematical physics, they share the same computational backbone in Weyl: generating huge families of symbolic operator or shift relations in non-commutative or polynomial normal form, reducing them over sparse algebraic structures, and separating heuristic search from verified provenance. On the roadmap, quantum bootstrap belongs to Phase 2 and IBP reduction to Phase 3. Both reuse weyl-canonical, weyl-cas, weyl-num, weyl-tir, and the weyl-mcp scheduling sandbox.

Shared Algebraic-Reduction Architecture ​

Both pipelines flow through Weyl's four-layer IR (HIR → SIR → KIR → TIR) while the LLM never touches coefficients or algebraic values and every result carries a static Err = Trunc × EpiKind tag. At the symbolic generation stage (HIR and SIR), the user declares an operator algebra or propagator family together with its symmetry constraints in .weyl, and weyl-canonical reduces products into canonical normal form—whether Weyl-ordered bosonic or fermionic words, trace words, or shift-operator monomials. In KIR, weyl-cas processes tens of millions of sparse relations using flat 8-byte-aligned term streams and 63-bit prime-field arithmetic (weyl-num::Fp). Finally, verified numerical blocks lower through TIR as either TirKernel::SdpBlock (exported as input files for an external SDPB) or TirKernel::IbpSystem (driving prime-field sparse elimination and rational reconstruction), preserving exact versus epistemic error provenance end to end.

Part I: Quantum Mechanical and Matrix-Model Bootstrap ​

Moment-Matrix Positivity and Commutator Recursions ​

Given a Hermitian Hamiltonian HH and a finite basis of operators {O1,…,OK}\{\mathcal{O}_1, \dots, \mathcal{O}_K\}, any physical state ∣ψ⟩|\psi\rangle satisfies positivity of the K×KK \times K Gram / Hankel moment matrix:

Mij=⟨ψ∣Oi†Oj∣ψ⟩⪰0,∑i,j=1Kci∗Mijcj=∥∑i=1KciOi∣ψ⟩∥2≥0.\mathcal{M}_{ij} = \langle \psi | \mathcal{O}_i^\dagger \mathcal{O}_j | \psi \rangle \succeq 0, \qquad \sum_{i,j=1}^K c_i^* \mathcal{M}_{ij} c_j = \left\| \sum_{i=1}^K c_i \mathcal{O}_i |\psi\rangle \right\|^2 \ge 0.

For an energy eigenstate H∣ψ⟩=E∣ψ⟩H|\psi\rangle = E|\psi\rangle, two exact algebraic identities collapse the independent moments:

⟨[H,O]⟩=0,⟨HO⟩=E⟨O⟩.\langle [H, \mathcal{O}] \rangle = 0, \qquad \langle H \mathcal{O} \rangle = E \langle \mathcal{O} \rangle.

Consider the 1D anharmonic oscillator H=p2+x2+gx4H = p^2 + x^2 + g x^4 with [x,p]=i[x, p] = i. Choosing O=xsp\mathcal{O} = x^s p and combining the commutator identities yields the exact linear recursion for position moments:

4tE⟨xt−1⟩+t(t−1)(t−2)⟨xt−3⟩−4(t+1)⟨xt+1⟩−4g(t+2)⟨xt+3⟩=0.4 t E \langle x^{t-1} \rangle + t(t-1)(t-2) \langle x^{t-3} \rangle - 4(t+1) \langle x^{t+1} \rangle - 4 g (t+2) \langle x^{t+3} \rangle = 0.

By parity symmetry (⟨x2k+1⟩=0\langle x^{2k+1} \rangle = 0) and normalization (⟨1⟩=1\langle 1 \rangle = 1), every even moment ⟨x2k⟩\langle x^{2k} \rangle is expressed symbolically in weyl-canonical as a polynomial in just two search parameters: (E,⟨x2⟩)(E, \langle x^2 \rangle). For large-NN Hermitian matrix models with potential W(M)W(M), the same framework applies to single-trace words Oi=Tr⁡(Mni)\mathcal{O}_i = \operatorname{Tr}(M^{n_i}) subject to the Schwinger–Dyson loop equations:

⟨Tr⁡ ⁣(W′(M)Mn)⟩=∑k=0n−1⟨Tr⁡Mk⟩⟨Tr⁡Mn−1−k⟩(N→∞).\left\langle \operatorname{Tr}\!\left(W'(M) M^n\right) \right\rangle = \sum_{k=0}^{n-1} \left\langle \operatorname{Tr} M^k \right\rangle \left\langle \operatorname{Tr} M^{n-1-k} \right\rangle \qquad (N \to \infty).

Expressing Bootstrap Constraints in .weyl ​

weyl
model  Anharmonic oscillator quantum bootstrap

given  x, p : canonical pair with [x, p] = i
given  g    : positive real
given  E    : real parameter

define H ≔ p² + x² + g x⁴
claim  H : Hermitian

define basis(K) ≔ { x^k : 0 ≤ k ≤ K }
define M(K)     ≔ hankel_matrix(basis(K))
                  reduced by ⟨[H, O]⟩ = 0, ⟨H O⟩ = E ⟨O⟩, parity(x ↦ −x)

estimate feasible_region(E, ⟨x²⟩) from M(K) ⪰ 0
         at g = 1, K ∈ {4, 6, 8, 10}
         via TirKernel::SdpBlock
require  width(E_0) < 10⁻⁶ otherwise increase K

During compilation, KIR constructs the exact symbolic moment-matrix blocks M(K)\mathcal{M}(K) over Q[E,⟨x2⟩,g]\mathbb{Q}[E, \langle x^2 \rangle, g], eliminating redundant moments via non-commutative canonicalization before lowering to TirKernel::SdpBlock.

bash
$ weylc run examples/anharmonic_bootstrap.weyl
[kir.canon]   reduced 20 moments to 2 free parameters (E, ⟨x²⟩) ... Exact
[tir.sdp]     K = 4  | E_0 ∈ [1.384102, 1.401820]  (tag: Epi{sdpb})
[tir.sdp]     K = 6  | E_0 ∈ [1.392310, 1.392401]  (tag: Epi{sdpb})
[tir.sdp]     K = 8  | E_0 ∈ [1.3923514, 1.3923519] (tag: Epi{sdpb})
[tir.sdp]     K = 10 | E_0 ∈ [1.39235163, 1.39235165] (tag: Epi{sdpb}, width = 2.0e-8 < 1e-6)

Epistemic Bounds Are Never Upgraded to Exact

Although the symbolic moment recursion is Exact, the SDP solver uses floating-point or arbitrary-precision interior-point iterations and truncates the operator basis at finite KK. The interval endpoints therefore carry the external source Epi{sdpb}: however narrow the interval, it is the output of a numerical solver, not a formal proof, and it never becomes Exact.

Part II: Integration-By-Parts (IBP) Reduction for Feynman Integrals ​

IBP Identities, Syzygies, and Master Integrals ​

In dimensional regularization (d=4−2ϵd = 4 - 2\epsilon), an LL-loop Feynman integral family with mm denominators D1,…,DmD_1, \dots, D_m is indexed by integer powers a=(a1,…,am)∈Zm\mathbf{a} = (a_1, \dots, a_m) \in \mathbb{Z}^m:

I(a1,…,am)=∫∏j=1Lddℓjiπd/21D1a1⋯Dmam.I(a_1, \dots, a_m) = \int \prod_{j=1}^L \frac{d^d \ell_j}{i \pi^{d/2}} \frac{1}{D_1^{a_1} \cdots D_m^{a_m}}.

Because surface terms vanish identically in dimensional regularization, every vector vμv^\mu built from loop and external momenta generates an IBP identity:

∫∏j=1Lddℓjiπd/2∂∂ℓiμ(vμD1a1⋯Dmam)=0.\int \prod_{j=1}^L \frac{d^d \ell_j}{i \pi^{d/2}} \frac{\partial}{\partial \ell_i^\mu} \left( \frac{v^\mu}{D_1^{a_1} \cdots D_m^{a_m}} \right) = 0.

Acting with ∂/∂ℓiμ\partial / \partial \ell_i^\mu produces linear relations among shifted integrals I(a+Δa)I(\mathbf{a} + \Delta \mathbf{a}) with coefficients in the rational function field Q(d,sij,mk2)\mathbb{Q}(d, s_{ij}, m_k^2). Two complementary strategies generate the resulting sparse linear system. In the Laporta algorithm, the reducer seeds integer tuples a\mathbf{a} up to a target complexity (r,s)(r, s) (where rr is the sum of positive powers and ss the sum of negative numerator powers), orders integrals by sector and weight, and performs sparse Gaussian elimination to express every target integral as a linear combination of finitely many master integrals {Iα}α=1r\{I_\alpha\}_{\alpha=1}^r:

I(a)=∑α=1rcα(d,s) Iα.I(\mathbf{a}) = \sum_{\alpha=1}^r c_\alpha(d, \mathbf{s})\, I_\alpha.

Because naive IBP vectors raise propagator powers (aj→aj+1a_j \to a_j + 1) and create doubled propagators that inflate system size, syzygy equations complement Laporta seeding by imposing the polynomial constraint

∑i=1LPiμ(ℓ,p)∂Dj∂ℓiμ=cj(ℓ,p) Dj(∀j∈{1,…,m}),\sum_{i=1}^L P_i^\mu(\ell, p) \frac{\partial D_j}{\partial \ell_i^\mu} = c_j(\ell, p)\, D_j \qquad (\forall j \in \{1, \dots, m\}),

which cancels the denominator increase Djaj+1D_j^{a_j+1} against DjD_j, restricts the linear system to unit-power propagators, and cuts matrix dimensions by orders of magnitude.

Finite-Field Elimination and Rational Reconstruction ​

Multi-loop IBP systems routinely contain 10610^6–10810^8 sparse equations where direct rational-function arithmetic suffers catastrophic intermediate expression swell. Weyl resolves this in weyl-cas and weyl-num through the same prime-field pipeline used in high-order pCUT. Kinematic invariants (d,s)(d, \mathbf{s}) are first sampled over 63-bit primes pj<263p_j < 2^{63} using weyl-num::Fp in Montgomery form, and sparse Gaussian elimination runs inside each finite field Fpj\mathbb{F}_{p_j}. From these evaluations, the reducer interpolates rational functions cα(d,s)(modpj)c_\alpha(d, \mathbf{s}) \pmod{p_j} via Thiele or Newton interpolation under a priori degree bounds, combines residues across primes with the Chinese Remainder Theorem (CRT), and recovers Q\mathbb{Q}-coefficients through Wang rational reconstruction once the prime modulus product satisfies M>2NDM > 2 N D. Finally, the reconstructed rational functions are substituted back into the original symbolic IBP relations over Q(d,s)\mathbb{Q}(d, \mathbf{s})—or checked on independent primes exceeding the Schwarz–Zippel and height bound—and only reductions that pass this verification receive the Exact tag.

weyl
model  Two-loop massless double-box IBP reduction

given  d, s, t   : rational parameter
given  ℓ₁, ℓ₂    : loop momentum in dim d
given  p₁, p₂, p₃ : external momentum with p₁² = p₂² = p₃² = 0, (p₁+p₂)² = s, (p₂+p₃)² = t

define D ≔ [ ℓ₁², (ℓ₁−p₁)², (ℓ₁−p₁−p₂)², ℓ₂², (ℓ₂−p₃)², (ℓ₂−p₁−p₂)², (ℓ₁+ℓ₂)²,
             (ℓ₁−p₃)², (ℓ₂−p₁)² ]

define I(a₁..a₉) ≔ feynman_integral(D, [a₁..a₉])
define syz       ≔ syzygy_ibp(D, no_doubled_propagators)

solve  reduce I(1,1,1,1,1,1,1,−2,−1) to master_integrals
       using syz, laporta_ordering(sector, dots, isp)
       over Fp(63-bit) with CRT + Wang reconstruction

LLM Scheduling Without Touching Algebra ​

In both workflows, the weyl-mcp agent optimizes search efficiency while remaining strictly sandboxed from algebraic values:

json
{
  "schema": "weyl.action",
  "kind": "schedule.submit",
  "graph": "double_box_ibp@7c91e4",
  "plan": [
    { "node": "ibp.syzygy_seed", "params": { "max_dots": 0, "max_isp": 3 } },
    { "node": "ibp.sparse_elim", "params": { "pivot_strategy": "markowitz_min_fill", "primes": 6 } },
    { "node": "ibp.reconstruct", "params": { "verify_symbolic": true } }
  ],
  "rationale": "markowitz ordering reduced fill-in by 38% on sector 127; increase primes to 6 for height bound",
  "budget": { "cpu_hours": 2, "wall_minutes": 20 }
}

Implementation Details: weyl-num and TirKernel Interfaces ​

Under the hood, both backends rely on the same deterministic numeric primitives in weyl-num and the typed TIR kernel variants in weyl-tir:

rust
// weyl-num: Montgomery prime-field arithmetic & Wang rational reconstruction
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
pub struct Fp {
    pub v: u64,
    pub p: PrimeId, // 63-bit prime p < 2^63
}

pub fn crt_combine(residues: &[(u64, u64)]) -> (BigUint, BigUint);
pub fn rational_reconstruct(a: &BigUint, modulus: &BigUint) -> Option<Rational>;

// weyl-tir: Phase 2/3 numerical kernel variants
pub enum TirKernel {
    MatVec { basis: SectorBasis, terms: Vec<PauliTerm>, precision: Precision },
    SeriesTable { var: VarId, coeffs: Vec<Rational>, err: Err },
    SdpBlock { dim: usize, affine_matrices: Vec<SparseMatrix>, err: Err },
    IbpSystem { equations: SparseFpMatrix, masters: Vec<IntegralId>, primes: Vec<PrimeId> },
}

A Priori Bounds vs. Probabilistic Stabilization ​

A common pitfall in finite-field IBP reconstruction is terminating CRT accumulation as soon as two consecutive primes yield the same rational candidate. Weyl explicitly forbids this heuristic for Exact outputs. When a common denominator DkD_k is known and an upper bound NkN_k on the scaled numerator is proved statically before elimination, weyl-num selects KK primes whose product satisfies M=∏j=1Kpj>2NkM = \prod_{j=1}^K p_j > 2 N_k, guaranteeing uniqueness via centered CRT lifting. When the denominator is unknown—as for general rational functions cα(d,s)=P/Qc_\alpha(d, \mathbf{s}) = P / Q with numerator height bound NN and denominator height bound DD—Wang reconstruction requires M>2NDM > 2 N D, followed by symbolic substitution into the unreduced IBP identities; any candidate that skips symbolic verification is downgraded from Exact to an explicit epistemic tag.

Workflow Comparison and Error-Lattice Provenance ​

DimensionQuantum BootstrapFeynman-Integral IBP Reduction
Core Algebraic Relations⟨[H,O]⟩=0\langle [H,\mathcal{O}]\rangle = 0, ⟨HO⟩=E⟨O⟩\langle H\mathcal{O}\rangle = E\langle\mathcal{O}\rangle, Mij⪰0\mathcal{M}_{ij} \succeq 0∫∂ℓi ⁣⋅(v/∏Djaj)=0\int \partial_{\ell_i}\!\cdot(v / \prod D_j^{a_j}) = 0, syzygy generators
Canonical Normal FormNon-commutative Weyl/trace words (weyl-canonical)Shift-operator monomials & sector weights (weyl-cas)
Coefficient DomainSymbolic Q[E,moments]\mathbb{Q}[E, \text{moments}] →\to floating/high-precision SDPQ(d,s)\mathbb{Q}(d, \mathbf{s}) via 63-bit Fp, CRT + Wang reconstruction
TIR BackendTirKernel::SdpBlock (exported to external SDPB)TirKernel::IbpSystem (weyl-cas + weyl-num)
LLM Pass Role (weyl-mcp)Operator-basis truncation KK, symmetry sector selectionPivot ordering (Markowitz / nested dissection), prime count
Output Error TagEpi{sdpb} (external source, never Exact)Exact (only after a priori bound + symbolic verification)

Deterministic Replay Across Both Workflows

Every accepted MCP scheduling action is logged with input hashes and random seeds (prime selection, kinematic sample points). Running weylc replay <log> reproduces the exact same reduction or SDP bound bit-for-bit without invoking any LLM.

Weyl v0.1 · MIT License