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 and a finite basis of operators , any physical state satisfies positivity of the Gram / Hankel moment matrix:
For an energy eigenstate , two exact algebraic identities collapse the independent moments:
Consider the 1D anharmonic oscillator with . Choosing and combining the commutator identities yields the exact linear recursion for position moments:
By parity symmetry () and normalization (), every even moment is expressed symbolically in weyl-canonical as a polynomial in just two search parameters: . For large- Hermitian matrix models with potential , the same framework applies to single-trace words subject to the Schwinger–Dyson loop equations:
Expressing Bootstrap Constraints in .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 KDuring compilation, KIR constructs the exact symbolic moment-matrix blocks over , eliminating redundant moments via non-commutative canonicalization before lowering to TirKernel::SdpBlock.
$ 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 . 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 (), an -loop Feynman integral family with denominators is indexed by integer powers :
Because surface terms vanish identically in dimensional regularization, every vector built from loop and external momenta generates an IBP identity:
Acting with produces linear relations among shifted integrals with coefficients in the rational function field . Two complementary strategies generate the resulting sparse linear system. In the Laporta algorithm, the reducer seeds integer tuples up to a target complexity (where is the sum of positive powers and 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 :
Because naive IBP vectors raise propagator powers () and create doubled propagators that inflate system size, syzygy equations complement Laporta seeding by imposing the polynomial constraint
which cancels the denominator increase against , 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 – 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 are first sampled over 63-bit primes using weyl-num::Fp in Montgomery form, and sparse Gaussian elimination runs inside each finite field . From these evaluations, the reducer interpolates rational functions via Thiele or Newton interpolation under a priori degree bounds, combines residues across primes with the Chinese Remainder Theorem (CRT), and recovers -coefficients through Wang rational reconstruction once the prime modulus product satisfies . Finally, the reconstructed rational functions are substituted back into the original symbolic IBP relations over —or checked on independent primes exceeding the Schwarz–Zippel and height bound—and only reductions that pass this verification receive the Exact tag.
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 reconstructionLLM Scheduling Without Touching Algebra
In both workflows, the weyl-mcp agent optimizes search efficiency while remaining strictly sandboxed from algebraic values:
{
"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:
// 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 is known and an upper bound on the scaled numerator is proved statically before elimination, weyl-num selects primes whose product satisfies , guaranteeing uniqueness via centered CRT lifting. When the denominator is unknown—as for general rational functions with numerator height bound and denominator height bound —Wang reconstruction requires , 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
| Dimension | Quantum Bootstrap | Feynman-Integral IBP Reduction |
|---|---|---|
| Core Algebraic Relations | , , | , syzygy generators |
| Canonical Normal Form | Non-commutative Weyl/trace words (weyl-canonical) | Shift-operator monomials & sector weights (weyl-cas) |
| Coefficient Domain | Symbolic floating/high-precision SDP | via 63-bit Fp, CRT + Wang reconstruction |
| TIR Backend | TirKernel::SdpBlock (exported to external SDPB) | TirKernel::IbpSystem (weyl-cas + weyl-num) |
LLM Pass Role (weyl-mcp) | Operator-basis truncation , symmetry sector selection | Pivot ordering (Markowitz / nested dissection), prime count |
| Output Error Tag | Epi{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.