feynlag.pheno.line

One open fermion line with external bosons: f f̄ → B B, f B → f B.

Tier 4 of docs/manual/scattering_roadmap.md. The four-fermion engine in diagrams has exactly one vertex on each fermion line and no external boson. A process with two external fermions and two external bosons is a different shape: every diagram is the same single fermion line, dressed either with two vertices and a fermion propagator between them (e⁺e⁻→γγ, Compton, the ν exchange of e⁺e⁻→W⁺W⁻) or with one vertex whose boson then splits at a bosonic three-point vertex (the γ/Z s channel of e⁺e⁻→W⁺W⁻).

An amplitude is therefore kept as a list of LineTerms,

M = Σ_terms coeff × ū_bar [γ-string] u_field × (loose tensors),

with the external vector indices left open, and LineAmplitude.squared() evaluates

Σ|M|² = Σ_{a,b} c_a c̄_b Tr[S_bar Γ_a S_field Γ̄_b] × ∏_V P_V(μ_V, μ'_V)

through the scalar route of contraction (no SymPy tensors: a squared fermion-exchange diagram slashes one momentum twice, which gamma_trace mis-evaluates).

Signs. With a single fermion line there is no fermion-permutation sign between diagrams. The relative phases are those of the Feynman rules themselves: the vertex couplings (which carry the rule’s i), i for a fermion or scalar propagator and −i for a vector one.

The γ₅ part. Every Lorentz index ends up contracted with a metric or a momentum (unpolarized sums), so the γ₅ part of each trace is a pseudoscalar built from the process’s own momenta. A 2→2 process has three independent ones, which cannot fill an ε tensor; assert_epsilon_single_vanishes() proves it on the actual dot table before the γ₅ coefficients are dropped.

Polarization sums. A massive vector uses −g_{μμ'} + k_μk_{μ'}/m². A massless one uses −g_{μμ'}, which is only right if the amplitude obeys the Ward identity k_μ M^μ = 0; LineAmplitude.squared() checks that (it replaces the leg’s sum by k_μk_{μ'} and requires zero) and refuses otherwise — the case of two external non-abelian massless vectors, which needs ghosts or physical polarizations (Tier 5).

Functions

boson_exchange_terms(line_factor, spin, q, ...)

Γ_ρ × propagator × V^{ρ…} as LineTerms: the fermion line emits one boson, which ends on a bosonic three-point vertex.

check_ward_identities(summed, vectors, sums, ...)

Verify k_μ M^μ = 0 for every massless external vector.

fermion_exchange_term(vertex_bar, ...[, width])

Γ₁ · i(q̸ + m)/(q² − m² + imΓ) · Γ₂ as a LineTerm.

fresh_name([tag])

A never-before-used index name for the scalar route.

primed(name)

Classes

LineAmplitude(out, inn, diagrams[, vectors])

A sum of diagrams on one open fermion line.

LineTerm(coeff, string[, tensors])

One term of a fermion-line amplitude.

VectorLeg(index, momentum, mass[, reference])

An external spin-1 boson: its open index name, momentum head and mass.