feynlag.pheno.trace

Direct small-case Dirac trace evaluator.

This is not the decay pipeline’s engine — that is feynlag.pheno.lorentz.dirac_trace(), which handles arbitrary chain lengths through SymPy’s Clifford algebra. What lives here is a short, self-contained implementation of the standard identities for chains of at most four gamma matrices, written directly against feynlag’s own DiracGamma objects.

Its value is independence: it shares no code with the covariant engine, so the two agreeing on the overlapping identities is a genuine cross-check rather than a tautology (tests/test_pheno.py). Note that minkowski_metric() returns a KroneckerDelta expression for symbolic indices, so comparisons against the covariant engine are made at concrete integer indices, where it returns ±1.

Functions

dirac_trace(expr)

Evaluate the trace of a Dirac matrix expression.