WorksPhysics and Astronomy
Induction instead of Feynman diagrams, L-functionals instead of Hilbert space
Abstract
The main result of this paper is a construction of an inductive process that can replace Feynman diagrams. Combining this result with the notion of the L-functional, one can give an exposition of QED that does not suffer from infrared divergences
Introduction
Let us consider Green functions or generalized Green functions (GGreen functions, see the definition in § 3). They can be represented as a sum of Feynman diagrams. A connected Green function can be defined as a sum of connected diagrams. We will consider amputated connected Green functions (sums of connected diagrams with deleted external edges). A proper Green function is defined as a partial sum of the sum representing the amputated connected Green function that consists of 1 PI diagrams. (Recall that a 1PI diagram is a diagram that stays connected when we delete any of its internal edges.) Knowing proper Green functions, we can restore both connected and full Green functions. One can say that proper Green functions determine the effective action; this means that connected Green functions are sums of tree diagrams where vertices are proper Green functions.
Let us denote by a sum of all amputated 1PI diagrams having linearly independent loops and internal edges. Our induction is based on the following formula
Here , all inner indices are nonnegative. Every lower block has loop number strictly smaller than , so this is an induction in proper functions.
In the above formula stands for the propagator, stands for the second derivative. In other words,
The same formula is valid for GGreen functions. If there are fermions in the theory, one should replace the trace by supertrace.
There exists a proof of the formula (1) that is based on the definition of proper Green (or GGreen) functions in terms of diagrams. In this proof, we delete one of the internal edges of the diagram and express the contribution of the diagram in terms of the remainder. The remainder is not necessarily a 1PI diagram, but it can be represented as a chain of 1PI blocks. This remark leads to the formula (1). The coefficient in this formula comes from the consideration of automorphism groups of the diagrams we consider.
In § 2 we will give more details of this proof and another proof that allows us to avoid Feynman diagrams.
In § 3 we will review generalized Green functions (GGreen functions) and their relation to inclusive cross sections following mostly [2]. We will explain how GGreen functions appear naturally in the formalism of L-functionals.
Finally, Appendix § 4 (written by ChatGPT) contains an application of our methods to QED. It is written as an exposition of QED that is very different from existing QFT textbooks. The conventional notion of the scattering matrix is not applicable in QED because there exist no processes that involve only a finite number of particles (due to the existence of soft photons). Nevertheless, it is used in textbooks. A state of an electron dressed by a photon cloud does not belong to Fock space; this is a source of infrared divergences. These divergences disappear if we work in terms of L-functionals and GGreen functions.
We use induction to analyze inclusive cross sections in QED for textbook problems in leading order (LO) and next-to-leading order (NLO).
Our calculations are based on the expression of inclusive cross sections in terms of GGreen functions [1, 2]. This expression was given for theories with massive particles, but it is well known that the inclusive cross sections in QED are limits of the inclusive cross sections in the theory with a massive photon.
Appendix § 5 (also written by ChatGPT) contains code for calculations with the formula (1).
Our results do not use locality. They could be useful in statistical physics. To apply them to local theories, we should introduce UV cutoff.
The induction based on the formula (1) allows us to represent proper Green and GGreen functions as integrals; similar integrals we obtain using Feynman diagrams. For large , the number of 1PI diagrams grows faster than . From the other side, one can hope that the computational complexity of induction grows polynomially with . In any case, even for small , the inductive calculations are slightly shorter than the calculations with Feynman diagrams. I am quoting the opinion of ChatGPT:
”For fixed external multiplicity, I expect little computational advantage at one or two loops, but potentially very large savings at high loop order. The important qualification is that we can presently prove a polynomial bound for the induction’s functional bookkeeping, rather than for all elementary operations needed to evaluate a QED momentum integrand.”
The proof of the induction formula
Let us start with more details of the proof sketched in the Introduction. By definition, an edge of a connected graph is a bridge if removing this edge gives a disconnected graph. In a 1PI graph, there are no bridges. However, deleting an edge of 1PI graph can lead to a graph containing bridges. This new graph, like any graph, can be considered as a tree where vertices are 1PI blocks. In our situation, there exists a chain that connects the vertices of the deleted edge. (Obviously, such a chain exists inside the new graph. It should coincide with this graph because every edge outside the chain is a bridge of the original graph.)
The formula
expresses the contribution of 1PI graphs in terms of simpler graphs. However, this formula is written for a distinguished edge. To get the formula (1), we should take into account that we have edges. Every edge has two orientations. A distinguished edge is oriented; therefore, to avoid overcounting, we should divide by .
To give a more accurate proof, we should recall that the contribution of every diagram contains a factor , where stands for the number of elements in the group of automorphisms of the diagram. If we have a distinguished edge we should divide the contribution by where consists of the elements of that transform an oriented edge into itself. One can say that is a stabilizer of the group acting on the set of oriented edges. It follows that
This means that (2) implies (1).
Let us give another proof of the induction formula that uses a different definition of . For simplicity, in what follows we will work with a finite number of variables; however, the generalization to an infinite number of variables is not difficult.
Introduce the operator
Here is a non-degenerate matrix. Its inverse is denoted by .
The diagram technique can be represented by the formula
where is a polynomial with respect to .
It is easy to check that given by this formula is represented as a sum of diagrams with the propagator and vertices coming from .
One can obtain (4) without reference to diagrams as the formula that governs the perturbation theory for the integral of the expression where is considered as perturbation.
Let us assume that in (4) runs over finite-dimensional space . Since
the operator becomes multiplication by a Gaussian after Fourier transformation. Taking the inverse Fourier transform gives
Calculating the Gaussian integral, we obtain
where
Taking and then we obtain
Our calculations are valid only under some conditions imposed on and . However, a slight modification of our arguments shows that the above formula is true for every polynomial in the framework of perturbation theory with respect to .
To prove the induction formula, we introduce new parameters in :
All expressions are understood as formal perturbative series. At , we obtain (4).
Again, we assume that our functions depend on a finite number of variables ; the number does not enter the final formula for induction. For an arbitrary formal function , define
The elementary Gaussian identities are
The first follows by commuting multiplication by through . Applying it twice proves the second equality in (7).
Set
Substitution of into (6) and (7) yields two linear equations for :
The apparent negative powers of cancel for the functional (5). For example, when ,
and both equations are immediate. Use the scaled logarithm
At , is the logarithm itself. The factor is convenient because a connected graph with loops then has weight . The identities
turn (9) into
Similarly, conjugating (8) by gives
Here the last term is an operator applied to the constant : each occurrence of in is replaced by , and derivatives act on everything to their right.
Now we would like to apply the Legendre transform to . Recall that the Legendre transform of the function is defined as the value of expression at the stationary point. The Legendre transform is involutive: taking the Legendre transform of we come back to .
Our Legendre transform is formal (defined in the framework of perturbation theory). We can use the formal Legendre transform because for is a non-degenerate quadratic form.
By definition
For we have . Remove the known free quadratic term by defining
Then
Now (12) becomes an equation entirely in :
(We use the notation for first derivative and for second derivative.) In components, the operator replacing is ; the same ordering convention as in (12) applies.
The equation that gives the induction is simpler. Substituting (14) into (11), the derivatives of the free quadratic terms cancel. Hence
We used (15) and cyclicity of the trace. The two terms containing have canceled before any infinite-dimensional limit is taken. Using , we obtain
The inverse in this equation is understood as a formal geometric series.
The initial condition is
It is important to take this limit at fixed , rather than at fixed . Here is a direct verification. Translating the formal Gaussian variable by in (5) and using (15) gives
At the right-hand side is . Taking the formal logarithm proves (19). This identity also determines a regular series in : its term of degree zero is , and its term of degree uses only coefficients of of lower degree.
Induction relation
Expand the solution of (18)–(19) as
The initial condition and the factor in (18) give
They also show recursively that no negative powers of occur. Expanding the inverse in (18) yields
The coefficient of on the left is . A product of Hessians on the right contributes to this coefficient precisely when
In particular . Thus
Dividing by proves (1). Every , so this determines each loop order from the preceding loop orders. For fixed , all sums in (24) are finite.
So far, we have not used any diagrams. Now we will explain the relation of to 1PI diagrams. Expanding (5), each propagator contributes , each interaction vertex contributes , and each source insertion contributes . A connected graph containing an interaction vertex, with internal edges, interaction vertices, and external source edges therefore has weight
The logarithm retains connected graphs, and multiplication by changes this to . The Legendre transform removes the connections between proper parts, and its external arguments are amputated. Indeed (15) is equivalent to
Iteration expresses connected functions as trees made from the proper vertices. Conversely, deleting the bridges of any connected graph decomposes it uniquely into its maximal 1PI parts, joined as a tree. These two inverse constructions identify the interaction Legendre transform with the sum of amputated 1PI graphs. Each amputation removes a factor at an external argument; therefore their remaining weights are exactly . This proves the claimed identification of .
As a check, at one loop the initial conditions force every block in (24) to be . Consequently
Although we used in the intermediate equations, every coefficient in (24) is polynomial in . The identity therefore extends algebraically to degenerate covariances. In the field-theoretic setting the capital indices again include space-time integration. Keeping the momentum that is integrated in each trace as an independent variable gives the corresponding inductive construction of integrands.
For fermions one uses Grassmann fields and sources, with the Hessians interpreted as graded bilinear forms. With consistent left and right Grassmann derivatives, the same proof uses the supertrace
where for a bosonic component and for a fermionic component. Replacing by in (18) and (24) gives precisely the fermionic version of (1).
Our considerations can be applied also in BRST formalism.
Green and GGreen functions. Inclusive cross sections. L-functionals
In this section we will remind the definition of generalized Green functions (GGreen functions), corresponding diagram techniques and relation to inclusive cross sections. We will show that this notion appears naturally when states are represented by L-functionals instead of vectors in Hilbert spaces (for more detail see[2]).
In the algebraic approach, a state of the quantum system can be represented as a positive linear functional on the algebra of observables (on a unital associative algebra with involution=-algebra). A vector or a density matrix in a representation space of specify states by the formulas , . Conversely, every state can be represented by a vector in some representation of (GNS construction).
Every element specifies two operators on linear functionals on : operator transforms the functional into the functional , operator transforms the functional into the functional .
If we are interested in QFT, we need an action of spatial and temporal translations on . In other words, we need a homomorphism of the -dimensional abelian Lie group of translations into the automorphism group of the -algebra . The element of will be written as where specifies a spatial translation, specifies a temporal translation. We use the notation for the translated . The action of on induces the action of on linear functionals. We will consider a state that is invariant with respect to spatial and temporal translations. To define the corresponding GGreen functions, we consider a chronological product (times decreasing) where is a product of expressions of the form and is a product of expressions of the form . The GGreen function corresponding to the state is defined as the value of the linear functional at the unit element of the algebra . If we obtain a Green function. In QFT we assume that is the ground state, but in non-equilibrium statistical physics (where GGreen functions were introduced by Keldysh) can stand for any translation-invariant stationary state.
One can make the Fourier transform with respect to spatial variables and the inverse Fourier transform with respect to time variables to obtain GGreen functions in the energy-momentum representation. The two-point Green function in this representation has the form .
It is convenient to study QFT using the representation of in a Hilbert space containing a cyclic vector that obeys (GNS construction). The group of spatial and temporal translations acts in ; infinitesimal translations are identified with the momentum and Hamiltonian . We assume that is nonnegative (this means that is a ground state). By definition, a particle is a vector function obeying , . (More precisely, is a generalized vector function. This means that only an integral of a product of by some test function makes sense as an element of .) One says that is the dispersion law. (Notice that we did not assume Lorentz invariance or locality.) It is important to emphasize that an electron in QED is not a particle in this sense.
We define the one-particle subspace as a subspace spanned by all vectors .
Particles correspond to the poles of the functions with respect to . We will assume that for every this function has a unique pole .
It is convenient to work in the formalism of -functionals. This formalism can be applied if the phase space of our theory is a vector space.
Let be a state represented as a linear functional on the Weyl or Clifford algebra (an algebra generated by elements obeying CCR or CAR). Its -functional is defined by the formula
where is a Hermitian linear expression in terms of generators. It is convenient to write as and interpret as a field. (Both and can depend on some discrete arguments.)
The alternative convention with in the exponential is obtained by replacing by . We keep explicit in the dynamics. When a state is represented by a density matrix , we have ; no density-matrix realization is needed for the definitions.
Throughout, the Hamiltonian is a formal expression in terms of ; we assume that it induces a well-defined evolution on -functionals. The operator governing the evolution of -functionals will be denoted by ; it has the form (the definition of and on the space of linear functionals on the algebra is given above; we identify -functionals with such linear functionals).
We assume that the equation of motion for -functionals has the form
where corresponds to the free Hamiltonian .
Put , with for and for , where . Let us consider adiabatic evolution
We expect that the ground state of our theory can be obtained from the ground state of the free Hamiltonian by means of adiabatic dressing:
We derive the functional generating GGreen functions directly from evolution on the space of -functionals. We then take the formal Legendre transform of its logarithm to get a functional generating proper GGreen functions. We introduce additional parameters to obtain the decomposition . This allows us to prove the formula (1).
Write . Let have compact time support and define
Denote the corresponding evolution operator by . Our sources are formal generating variables. Physical real sources in exponentials with factors correspond to and .
The generating functional for GGreen functions is given by the formula
This follows immediately from the following statement. Let us consider the evolution operator corresponding to the operator and the evolution operator corresponding to the operator . Then
Using adiabatic dressing, we can derive a diagram technique for GGreen functions. The propagator of this technique is a matrix consisting of free Green’s functions:
Here stands for antichronological product (times increasing).
The interaction determines vertices of two types (+ and − vertices). We do not need a detailed description of vertices. The interaction determines vertices of two types (+ and − vertices).
To express amplitudes or inclusive cross sections in terms of Green or GGreen functions we should use fields that have the follwing property: the scalar product does not vanish (hence has a non-vanishing projection on one-particle space).
We say that the amputated Green or GGreen function in energy-momentum representation is on shell if the amputated edges have energy-momentum where stands for one-particle energy.
The scattering amplitudes can be expressed in terms of Green functions on shell (LSZ formula). Similarly, inclusive cross sections can be expressed in terms of GGreen functions on shell ([1],[2]). It is important to notice that the expression for the scattering amplitude in LSZ formula contains a factor that depends on the choice of fields entering the definition of Green function. The expression of the inclusive cross section in terms of the GGreen function does not contain such a factor.
All these statements were proven for scattering of usual particles under the assumption that the theory has strong cluster property. ( This happens when there is a gap, i.e. all particles have energy .) They cannot be applied to QED directly. However, it is well known that inclusive cross sections in QED can be obtained as limits of inclusive cross-sections of the theory with massive photon. This means that inclusive cross sections in QED can be obtained from GGreen functions on shell.
Proper functions and inclusive cross sections in QED
QED input for the induction
Use metric and Feynman gauge for internal photons. We put , .
The interaction in the formalism of L-functionals becomes
Here is the signed charge in units of . We say that is a seed. It spacifies the starting point of induction.
Physical charged thresholds are denoted by in the same units.
In branch order and Fourier convention , the two-point free GGreen functions (covariances) are and , where
uses the ordered slots . Its component includes the sign from graded interchange. Equation (1) uses all four components for GGreen functions and the single plus branch for ordinary Green functions. The mixed components have on-shell support, while the diagonal components are boundary values. Photon detectors project onto the two transverse polarizations.
For the order , the covariance and the left–right Hessian of have blocks
The transposes include branch and momentum indices. Use the Legendre convention (14) and the supertrace of Section 2. In particular, . This fixes the sign and multiplicity of a closed charged cycle.
For the cubic seed, and , with vertices and external arguments. Hence
The one-loop two-, three-, and four-point kernels are derivatives of the terms. To compute a translation-invariant integrand by (1), fix the external order and Hessian ports. Give the closing trace a new momentum, route it by successive transfers around the trace, and retain the lower blocks’ loop variables in product order. Each loop has measure . Compare routings with a common boundary-value and integration prescription.
Proper kernels and tree reconstruction
Write , , and . For example, the cycles on the plus branch give the raw amputated densities
Here and is the Dirac trace. Between the charged numerators is the difference of the adjacent free inverses. This gives the routed Ward check
For (A.6) the corresponding difference cancels under translation-compatible integration. Mixed kernels use the same cycle and the propagators selected by the ordered branch labels.
At , (14) gives . Its derivatives reconstruct connected functions as trees of proper vertices and bridges, with from (15). Exponentiating the connected generator gives the full function as a sum over disjoint unions of these trees.
| Contribution | Reconstruction on the branches |
| Born | Join two cubic seeds by a photon or charged bridge. |
| Virtual | Correct a bridge or cubic vertex, or take the proper four-point block. Add the normalized endpoint terms. |
| Real | Sum the three-vertex trees on each branch and sew over the extra photon’s momentum and transverse polarization. |
Table 1.
The four-charge cycle gives the direct and crossed boxes. Use crossing and antisymmetrization of the full ordered coefficient for , Møller and Bhabha scattering, and . The Compton coefficient also gives two-photon annihilation and pair creation by crossing before forming the interferences.
For instance, in Compton scattering let carry the photon transfers along the charged line and the virtual transfers . A word specifies the ordered matrices from the incoming charged endpoint, with the propagator momentum after each letter given by the partial sum of transfers. The cycle supplies and , where the virtual photon spans both observed vertices. Tree reconstruction adds the two bridge insertions , and the four vertex corrections , , , . The charged endpoint words are accounted for by the two-point reduction.
The measured GGreen function
Use the vacuum of (29) in the regulated expansion of (31). With incoming creation packet , the two-sided preparation gives the outgoing detector expectation
With two incoming and two observed outgoing particles, comes from the full eight-argument GGreen function, four arguments per branch. Take its normalized on-shell diagonal on packets with the observation-time normalization [1, 2, 4].
The normalized projection supplies endpoint terms from the slopes of the proper two-point functions. With for a charged external momentum, put P_v=(1+\slashed{v})/2 and
For a transverse photon of momentum take the derivative of at , with , , and . The inverse charged propagator at the matched shell has energy slope through one loop. Expanding its inverse square root within the packet normalization, and doing the same for photons, gives
Use these terms at the common regulator in the inclusive combination.
Write for a contracted branch coefficient of the regulated evolution and for the detector weight on final particles. With ordered phase space , event symmetry factors , and incident flux , the cross section through NLO is , where
The overline includes the incoming spin density matrix and the measured spin or polarization sums. In a tagged-photon observable, use the symmetry factor for the chosen tagging convention consistently with . The two NLO terms are evaluated with a common soft prescription.
Soft cancellation on a common measure
Take massive charges, with compact hard support away from thresholds and forward Coulomb poles. For future-directed charged momenta and their signed charges (including antiparticles), define
The external attachments in the real tree give as , using the on-shell numerator and the denominator . For four charged legs the virtual vertex corrections give pairs within a line and the boxes give pairs across the two lines. For Compton scattering the proper four-point block gives the pair of distinct legs. Equation (A.10) supplies the diagonal pairs. After reducing the virtual photon energy, the leading densities on are
The linear soft Hamiltonian displaces each mode by in phase-space normalization, up to a phase in the evolution. The vacuum and one-quantum probabilities start as and , fixing the two signs in the same state expectation.
For an explicit common prescription, factor and project to the Born configuration by keeping the two-body direction in the respective rest frames, identified by rotationless boosts. The phase-space ratio is with in the chosen soft-energy frame. In each soft sector subtract from the mapped real density and add its integral to the virtual term with the same lower bound . Here near zero and vanishes outside the soft region. The event or tagging factors in each sector must reproduce the Born factor in the soft limit.
If on this projection for some , the leading weighted sum is . Since and , the radial bound is . The subleading soft terms are integrable, and the bound is angularly uniform on the stated massive hard support. Thus the diagonal NLO observable has a limit with the photon massless throughout.
Ultraviolet subtractions and physical inputs
Use Ward-compatible subtractions for the UV extension, including the subtractions of proper subkernels [6, 7]. The Ward identity ties the charged vertex subtraction to the charged kinetic term. Include the usual QED local action subtractions in the induction by setting
Equation (1) for is unchanged. The new edge-zero coefficients are , and then counts total perturbative order including the assigned subtraction grades.
Mixed proper functions inherit lower-subkernel subtractions from these same seeds. UV cancellation combines edge grades at .
Equivalently, start with the bare induction and match the physical inputs in the normalized cross section. Let and write
Here is the inclusive coefficient of (A.11) after soft cancellation. With Ward-compatible tensor reduction before the four-dimensional Euclidean scalar cutoff [5], the shell projection of (A.5) gives
Mass matching changes the entire Born coefficient, including flux, phase space, and any mass-dependent detector definition. Put .
Fix the dimensionless physical charge by an inclusive reference measurement with . Eliminating between that measurement and (A.15) gives
The Ward identity cancels the charged kinetic and vertex logarithms in the normalized reduction. The photon cycle (A.6) enters through the photon bridge or the two photon endpoint slopes and gives
The logarithm cancels in (A.17). With (A.14) the same measurements fix the finite parts of the locally subtracted coefficients.
Executable induction for proper functions
This appendix gives a complete Python implementation of (1), including its fermionic version. The input is a field-independent covariance and an even polynomial interaction . The output is the interaction proper functional and any of its ordered field derivatives at zero field. The free quadratic term is removed, exactly as in (14). Both ordinary proper Green functions and proper GGreen functions use this program: in the second case the field indices include the two contour branches and is the complete doubled covariance.
The implementation works with finitely many modes, as in § 2. Thus it also applies directly after a finite-volume and finite-mode regularization. It handles arbitrary polynomial degree, mixed bosonic and fermionic fields, and degenerate covariances. All coefficients are exact rational numbers or polynomials in commuting symbolic parameters. Python 3.10 or later is required; there are no external Python dependencies.
A convolution form of the same induction
Writing in the code, introduce the matrix series
The identity gives
Consequently the recurrence implemented below is
with the remaining or coefficients zero. Expanding as a geometric series recovers exactly (1); no new approximation has been introduced. The calculation of uses proper functions of strictly lower loop order, while its further calls to have smaller edge index. These two facts prove termination.
Every calculated coefficient and Hessian product is cached. For bounds , there are cached matrix coefficients and matrix-convolution summands. These counts treat differentiation and polynomial matrix operations as operations on whole objects. The numbers of polynomial monomials, field components, and elementary arithmetic operations can grow substantially; these counts are not a polynomial bound on the full QED calculation.
Input conventions and extraction of proper kernels
Ring records the bosonic fields, the ordered Grassmann fields, and the commuting parameters. Its field order is always bosons first, then fermions. The order of the Grassmann fields fixes the canonical order of their monomials. For example,
1 r = Ring(bosons=("a",), fermions=("psi", "bar"),
2 parameters=("g", "d", "s"))
3 a, psi, bar, g, d, s = (r.symbol(name) for name in
4 ("a", "psi", "bar", "g", "d", "s"))
5 P = [[d, 0, 0], [0, 0, s], [0, -s, 0]]
6 c = Proper(r, P, g * bar * a * psi)
7 print(c.gamma(1, 2))
8 print(c.vertex(1, 2, ("psi", "bar")))
9 print(c.calculate(max_loop=2, max_edge=3))
The first output represents , in canonical odd order. The second output is , because the supplied leg order means first a left derivative in , then one in . This explicitly specifies the external fermionic ordering.
For an even polynomial , the Hessian used inside the induction is
In particular it gives exactly the blocks (A.3) for . Matrix multiplication keeps coefficient order and the supertrace multiplies the th diagonal entry by . The code checks that the input covariance is even, independent of the fields, and graded symmetric. Its entries have commuting coefficients; mixed even–odd entries therefore vanish.
vertex(L,m,legs) applies successive left derivatives in the listed order and then sets every field to zero. It returns the derivative itself, including its factorials, rather than the coefficient of a monomial. Bosonic and fermionic vacuum terms are retained during induction. There is no intermediate truncation in external field degree: higher-degree lower-loop terms can contribute to lower-degree higher-loop kernels.
Each propagator entry and each interaction coefficient can be an independent commuting parameter. In particular a denominator or a complex kernel value can be represented by a symbol for the entire entry. After extracting a vertex, evaluate(values) substitutes its parameter values; these can also be symbolic expressions supplied by an external computer algebra system. All phases, branch signs, symmetry factors in the seed, and factors of belong to the input. The formal loop grade is not identified with . For example, for and ,
1 r = Ring(bosons=("x",), parameters=("g", "p"))
2 x, g, p = (r.symbol(name) for name in ("x", "g", "p"))
3 c = Proper(r, [[p]], g * x**4 / 24)
4 k = c.vertex(2, 3, ("x", "x")) # 5*g**2*p**3/12
5 print(k.evaluate({"g": Q(1, 10), "p": Q(2)})) # 1/30
For QED one supplies a separate mode coordinate for every photon component, charged spinor component, and branch label. The charged covariance has the ordered blocks of (A.3); the interaction is the ordered seed (A.1). Ordinary Green functions use the single-branch input. The matrix sums below are the finite-mode contractions; no momentum integral is evaluated by the program. A continuum calculation additionally requires the momentum routing, measures, and common boundary-value and regulator prescriptions discussed in Appendix § 4. Inclusive observables are reconstructed from these proper kernels as described there.
Complete source code
Save the following listing as proper_functions.py. It includes exact self-tests, which run with the command
python3 proper_functions.py
Importing the file exposes the classes without running the tests.
"""Proper functions by the loop/edge induction of QFTQED.tex.
Python 3.10+, standard library only. Run this file for exact checks.
Finite-mode bosonic/Grassmann polynomials; no momentum integration.
Propagator entries may be commuting symbols for arbitrary kernels.
"""
from fractions import Fraction as Q
from functools import lru_cache
class Ring:
"""Bosonic fields, ordered odd fields, and even parameters."""
def __init__(self, bosons=(), fermions=(), parameters=()):
self.bosons = tuple(bosons)
self.fermions = tuple(fermions)
self.parameters = tuple(parameters)
self.even = self.bosons + self.parameters
self.fields = self.bosons + self.fermions
names = self.even + self.fermions
if len(set(names)) != len(names):
raise ValueError("Variable names must be distinct")
self.parity = (0,) * len(bosons) + (1,) * len(fermions)
self.unit_key = ((0,) * len(self.even), 0)
self.zero = Poly(self, {})
self.one = Poly(self, {self.unit_key: Q(1)})
def coerce(self, value):
if isinstance(value, Poly):
if value.ring is not self:
raise ValueError("Different polynomial rings")
return value
return Poly(self, {self.unit_key: Q(value)})
def symbol(self, name):
powers = [0] * len(self.even)
mask = 0
if name in self.even:
powers[self.even.index(name)] = 1
else:
mask = 1 << self.fermions.index(name)
return Poly(self, {(tuple(powers), mask): Q(1)})
class Poly:
"""Sparse polynomial; odd monomials follow Ring.fermions order.
Treat instances as immutable. Coefficients are exact rationals;
symbolic propagators and couplings are even parameters.
"""
def __init__(self, ring, terms):
self.ring = ring
self.terms = {k: Q(v) for k, v in terms.items() if v}
def __bool__(self):
return bool(self.terms)
def __eq__(self, other):
other = self.ring.coerce(other)
return self.terms == other.terms
def __add__(self, other):
other = self.ring.coerce(other)
terms = self.terms.copy()
for key, value in other.terms.items():
terms[key] = terms.get(key, Q(0)) + value
return Poly(self.ring, terms)
__radd__ = __add__
def __neg__(self):
return Poly(self.ring, {k: -v for k, v in self.terms.items()})
def __sub__(self, other):
return self + (-self.ring.coerce(other))
def __rsub__(self, other):
return self.ring.coerce(other) - self
81
82 def __mul__(self, other):
83 other = self.ring.coerce(other)
84 terms = {}
85 for (pa, ma), ca in self.terms.items():
86 for (pb, mb), cb in other.terms.items():
87 if ma & mb:
88 continue # Repeated odd variable: square is zero.
89 swaps, remaining = 0, ma
90 while remaining:
91 bit = remaining & -remaining
92 swaps += (mb & (bit - 1)).bit_count()
93 remaining ^= bit
94 key = (tuple(a + b for a, b in zip(pa, pb)), ma | mb)
95 value = ca * cb * (-1 if swaps % 2 else 1)
96 terms[key] = terms.get(key, Q(0)) + value
97 return Poly(self.ring, terms)
98
99 def __rmul__(self, other):
100 return self.ring.coerce(other) * self
101
102 def __truediv__(self, scalar):
103 scalar = Q(scalar)
104 if not scalar:
105 raise ZeroDivisionError
106 return Poly(self.ring, {k: v / scalar
107 for k, v in self.terms.items()})
108
109 def __pow__(self, power):
110 if not isinstance(power, int) or power < 0:
111 raise ValueError("Only nonnegative integer powers")
112 result, base = self.ring.one, self
113 while power:
114 if power % 2:
115 result = result * base
116 base = base * base
117 power //= 2
118 return result
119
120 def diff(self, name, right=False):
121 """Left derivative by default; right=True gives right one."""
122 ring, terms = self.ring, {}
123 if name in ring.even:
124 i = ring.even.index(name)
125 for (powers, mask), value in self.terms.items():
126 if powers[i]:
127 new = list(powers)
128 new[i] -= 1
129 terms[(tuple(new), mask)] = value * powers[i]
130 else:
131 i = ring.fermions.index(name)
132 bit = 1 << i
133 for (powers, mask), value in self.terms.items():
134 if mask & bit:
135 count = ((mask >> (i + 1)).bit_count() if right
136 else (mask & (bit - 1)).bit_count())
137 terms[(powers, mask ^ bit)] = value * (-1)**count
138 return Poly(ring, terms)
140 def at_zero_fields(self):
141 nb = len(self.ring.bosons)
142 return Poly(self.ring, {k: v for k, v in self.terms.items()
143 if k[1] == 0 and not any(k[0][:nb])})
145 def vertex(self, legs):
146 """Successive LEFT derivatives in the supplied leg order,
147 evaluated at zero fields; includes factorials automatically.
148 """
149 result = self
150 for name in legs:
151 if name not in self.ring.fields:
152 raise ValueError("A vertex leg must be a field")
153 result = result.diff(name)
154 return result.at_zero_fields()
156 def evaluate(self, values):
157 """Evaluate a field-independent result after supplying every
158 used parameter. Values can be numeric or external CAS objects.
159 """
160 if self != self.at_zero_fields():
161 raise ValueError("Extract a vertex before evaluating")
162 total = 0
163 for (powers, _), coefficient in self.terms.items():
164 term = coefficient
165 for name, power in zip(self.ring.even, powers):
166 if power:
167 term = term * values[name]**power
168 total = total + term
169 return total
171 def __repr__(self):
172 if not self:
173 return "0"
174 pieces = []
175 for (powers, mask), coefficient in sorted(self.terms.items()):
176 factors = [str(coefficient)]
177 for name, power in zip(self.ring.even, powers):
178 if power:
179 factors.append(name if power == 1
180 else f"{name}**{power}")
factors += [name for i, name in enumerate(self.ring.fermions)
if mask & (1 << i)]
pieces.append("*".join(factors))
return " + ".join(pieces).replace("+ -", "- ")
def zeros(ring):
n = len(ring.fields)
return tuple(tuple(ring.zero for _ in range(n)) for _ in range(n))
def identity(ring):
n = len(ring.fields)
return tuple(tuple(ring.coerce(int(i == j)) for j in range(n))
for i in range(n))
def madd(a, b):
return tuple(tuple(x + y for x, y in zip(ar, br))
for ar, br in zip(a, b))
def mmul(a, b):
# Preserve coefficient order: Grassmann entries do not commute.
n = len(a)
return tuple(tuple(sum((a[i][k] * b[k][j] for k in range(n)),
a[0][0].ring.zero)
for j in range(n)) for i in range(n))
def hessian(f):
# H_ab = right_d_b(left_d_a F), as in Appendix A.
return tuple(tuple(f.diff(a).diff(b, right=True)
for b in f.ring.fields) for a in f.ring.fields)
def strace(a, ring):
return sum(((-1)**p * a[i][i]
for i, p in enumerate(ring.parity)), ring.zero)
class Proper:
"""Cached induction for Gamma[L,m], with the free term removed.
P is a field-independent, even, graded-symmetric covariance.
V is the EVEN interaction polynomial, including all phases/signs.
Coordinates are ordered as ring.fields. No graph enumeration.
"""
def __init__(self, ring, propagator, interaction):
231 self.ring = ring
232 n = len(ring.fields)
233 if not n or len(propagator) != n:
234 raise ValueError("Propagator dimension must match fields")
235 if any(len(row) != n for row in propagator):
236 raise ValueError("Propagator must be square")
237 self.P = tuple(tuple(ring.coerce(x) for x in row)
238 for row in propagator)
239 self.V = ring.coerce(interaction)
240 if any(mask.bit_count() % 2 for _, mask in self.V.terms):
241 raise ValueError("Interaction must be even")
242 for i, pi in enumerate(ring.parity):
243 for j, pj in enumerate(ring.parity):
244 entry = self.P[i][j]
245 if entry != entry.at_zero_fields():
246 raise ValueError("P must be field independent")
247 if pi != pj and entry:
248 raise ValueError("No odd external coefficients")
249 if entry != (-1)**(pi * pj) * self.P[j][i]:
250 raise ValueError("P must be graded symmetric")
251 self.Z = zeros(ring)
252 self.I = identity(ring)
254 @lru_cache(maxsize=None)
255 def A(self, loop, edge):
256 return mmul(self.P, hessian(self.gamma(loop, edge)))
258 @lru_cache(maxsize=None)
259 def R(self, loop, edge):
260 """Coefficient [z**loop t**edge] of (I - t*A)**(-1)."""
261 if edge == 0:
262 return self.I if loop == 0 else self.Z
263 answer = self.Z
264 for ell in range(loop + 1):
265 for e in range(edge):
266 a = self.A(ell, e)
267 if not any(any(row) for row in a):
268 continue
269 b = self.R(loop - ell, edge - 1 - e)
270 answer = madd(answer, mmul(a, b))
271 return answer
273 @lru_cache(maxsize=None)
274 def gamma(self, loop, edge):
275 """The complete polynomial Gamma_{loop,edge}."""
276 if not isinstance(loop, int) or not isinstance(edge, int):
277 raise ValueError("Grades must be integers")
278 if loop < 0 or edge < 0:
279 raise ValueError("Grades must be nonnegative")
280 if loop == 0 and edge == 0:
281 return self.V
282 if loop == 0 or edge == 0:
283 return self.ring.zero
284 return strace(self.R(loop - 1, edge), self.ring) / (2 * edge)
285
286 def calculate(self, max_loop, max_edge):
287 if max_loop < 0 or max_edge < 0:
288 raise ValueError("Bounds must be nonnegative")
289 return {(ell, m): self.gamma(ell, m)
290 for ell in range(max_loop + 1)
291 for m in range(max_edge + 1)}
292
293 def vertex(self, loop, edge, legs):
294 return self.gamma(loop, edge).vertex(legs)
295
296
297 def self_test():
298 r = Ring(bosons=("x",), parameters=("g", "p"))
299 x, g, p = (r.symbol(s) for s in ("x", "g", "p"))
300 c = Proper(r, [[p]], g * x**4 / 24)
301 assert c.gamma(1, 1) == g * p * x**2 / 4
302 assert c.gamma(1, 2) == g**2 * p**2 * x**4 / 16
303 assert c.gamma(2, 2) == g * p**2 / 8
304 assert c.gamma(2, 3) == 5 * g**2 * p**3 * x**2 / 24
305 assert c.vertex(2, 3, ("x", "x")) == 5 * g**2 * p**3 / 12
306 # Exact quadratic resummation has no terms above one loop.
307 q = Proper(r, [[p]], g * x**2 / 2)
308 for m in range(1, 7):
309 assert q.gamma(1, m) == (p * g)**m / (2 * m)
310 assert q.gamma(2, m) == 0
311 # Minimal Yukawa example: check both odd algebra and loop signs.
312 r = Ring(bosons=("a",), fermions=("psi", "bar"),
313 parameters=("g", "d", "s"))
314 a, psi, bar, g, d, s = (r.symbol(name) for name in
315 ("a", "psi", "bar", "g", "d", "s"))
316 assert psi * bar == -bar * psi
317 assert psi**2 == 0
318 assert (psi * bar).diff("bar") == -psi
319 assert (psi * bar).diff("bar", right=True) == psi
320 c = Proper(r, [[d, 0, 0], [0, 0, s], [0, -s, 0]],
321 g * bar * a * psi)
322 assert c.gamma(1, 1) == -g * s * a
323 assert c.gamma(1, 2) == (g**2 * d * s * bar * psi
324 - g**2 * s**2 * a**2 / 2)
325 assert c.gamma(2, 3) == -g**2 * d * s**2 / 2
326 # Off-diagonal bosonic covariance, including a degenerate one.
327 r = Ring(bosons=("x", "y"), parameters=("g",))
328 x, y, g = (r.symbol(name) for name in ("x", "y", "g"))
329 for matrix, expected in (([[2, 1], [1, 3]], 2),
330 ([[1, 1], [1, 1]], Q(3, 4))):
331 c = Proper(r, matrix, g * x**2 * y**2 / 4)
332 assert c.gamma(2, 2) == expected * g
333 print("Exact self-tests passed.")
336 if __name__ == "__main__":
337 self_test()
Checks of coefficients and signs
The included self-tests give, for and ,
For the mixed seed above they give
The quadratic-seed tests verify that only the one-loop coefficients remain. Off-diagonal bosonic contractions and a degenerate covariance are also checked.
The accompanying archive includes verify_induction.py. This script performs the further independent checks listed below. For the scalar checks the Gaussian moments were calculated first, followed by the formal logarithm, inversion of , and the Legendre transform . This route uses neither the Hessian flow nor the induction. At unit scalar covariance and the comparisons were:
| Input or identity | Exact comparison performed |
| Gaussian/logarithm/Legendre result through , all loop grades through . | |
| The same independent construction through , all loop grades through . | |
| Bosonic sector through , using the exact Berezin integral . | |
| , two charged modes | for ; higher-loop coefficients vanish. |
| (1) | Explicit ordered-composition sums agree with the cached convolution for a mixed quartic/Yukawa seed, , . |
For the homogeneous scalar seeds, coupling order and loop grade fix the internal-edge number, so these independent scalar comparisons also test the edge grading. All the displayed checks passed with exact rational arithmetic. They validate the finite-mode algebra and recurrence; the analytic continuum and inclusive limits require the additional estimates and prescriptions stated in the paper.
References
- [1]A. Schwarz, Inclusive scattering matrix and scattering of quasiparticles, arXiv:1904.04050 (2019).DOI
- [2]A. Schwarz, Quantum Mechanics and Quantum Field Theory from Algebraic and Geometric Viewpoints, SpringerBriefs in Physics, Springer (2024), doi:10.1007/978-3-031-67915-5.DOI
- [4]A. Schwarz, Adiabatic definitions of scattering matrix and inclusive scattering matrix, arXiv:2412.10634; Advances in Theoretical and Mathematical Physics 30, no. 2 (2026), 271–294.DOI
- [5]G. Cynolter and E. Lendvai, Symmetry preserving regularization with a cutoff, arXiv:1002.4490 (2010).DOI
- [6]W. Zimmermann, Convergence of Bogoliubov’s method of renormalization in momentum space, Communications in Mathematical Physics 15 (1969), 208–234, doi:10.1007/BF01645676.DOI
- [7]M. Bonini, M. D’Attanasio, and G. Marchesini, Ward identities and Wilson renormalization group for QED, Nuclear Physics B 418 (1994), 81–112, arXiv:hep-th/9307174.DOI