feynlag.vertices.extract¶
Interaction-coefficient extraction from a Lagrangian.
Ported from bsm-calc/models/DLRSM1/symbolic_tools.py. The extractor
treats fields as commuting SymPy Symbols — fermions never enter here; they are
handled by the bilinear track (Phase 4).
The result is a nested dict:
{n_fields: {(field, field, ...): coefficient}}
where the inner key is the canonically sorted tuple of fields in the monomial
and the coefficient is the monomial coefficient (symmetry factorials NOT yet
multiplied out — see feynman_rule()).
Functions
|
Extract interaction coefficients from a Lagrangian. |
|
Feynman rule for one monomial: |
|
Product of |