feynlag.pheno.diagrams

Amplitude-level diagram objects: open spinor chains, propagators, |M|².

Tier 1 of docs/manual/scattering_roadmap.md. The 1→2 decay engine in amplitudes never constructs an amplitude — each squared-amplitude function writes down an already-squared closed form, with the 1→2 mass-interference terms and the initial-state spin average baked in as literals for that one topology. There is nothing there to extend to a diagram with a propagator in the middle, or to a sum over more than one diagram. This module builds the amplitude explicitly instead, as a sum of Diagrams, each a product of open fermion SpinorChains and BosonPropagators — the covariant engine (lorentz) is reused unchanged; what is new is combining its output across a propagator and (eventually) across diagrams.

Interference is Tier 3, shipped. Amplitude.squared() performs the full Σ_{d,d'} M_d M̄_{d'} double sum. A diagonal d = d' term keeps the exact Tier-1/2 code path (SpinorChain.trace() / SpinorChain.epsilon_structure()), so every single-diagram result is unchanged. An off-diagonal pair is classified by how its fermion lines pair the external legs:

  • same pairing (e.g. γ and Z both in the s channel) — the cross term is still a product of two open traces, one per line, each now carrying Γ from d and Γ̄ from d' (SpinorChain.cross_trace()); the ε·ε piece is assembled exactly as in Tier 2;

  • exchanged pairing (Bhabha’s s × t, Møller’s t × u) — the two lines fuse into one trace through all four legs (_exchange_term()). Every Lorentz index of that trace is internal (contracted with one of the two propagator numerators), so its γ₅ part reduces to ε tensors of the diagram’s own momenta, and a vanishing Gram determinant over every 4-subset (assert_epsilon_single_vanishes()) proves it zero before it is dropped.

Relative signs are data, not inferred here: the fermion-permutation sign of each diagram rides in Diagram.coefficient (the topology enumerator topology derives it), and the propagator’s own ±i comes from BosonPropagator.phase() — both cancel in a diagonal term, so Tier 1–2 never needed them.

The ε (γ₅) term is Tier 2, shipped. Each chain’s own trace never needs it — the diagonal-trace split in SpinorChain.trace() proves it drops for a chain’s own two legs, the same fact reduce_projectors() proves for the 1→2 engine. But when two chiral chains meet through a propagator, the product of their ε coefficients (ChainVertex.epsilon_coefficient()) is a genuine, non-zero contribution to |M|² — the forward–backward-asymmetry term — which SpinorChain.epsilon_structure() exposes and Amplitude.squared() assembles via epsilon_pair_tensor(), after assert_epsilon_single_vanishes() proves the remaining single-ε cross terms (one chain’s ε piece times the other’s ordinary trace) vanish for this diagram’s own momenta.

Classes

Amplitude(diagrams)

A sum of Diagrams.

BosonPropagator(spin, q2, mass[, width, ...])

An internal boson line joining two chain vertices.

ChainVertex(structure, g_left, g_right)

One fermion-line vertex: Γ = g_L P_L + g_R P_R (structure 'S', a scalar/pseudoscalar current) or Γ = γ^μ(g_L P_L + g_R P_R) (structure 'V', a vector current) — the same two structures classify_gamma() classifies a 1→2 vertex into.

Diagram(chains, propagators[, coefficient])

One Feynman diagram: two spinor chains joined by one propagator.

Leg(momentum, mass[, anti])

One external fermion leg of an open spinor chain.

SpinorChain(out, inn, vertices[, indices, ...])

One open fermion line: (bar leg) Γ (field leg), spin-summed.