feynlag.lagrangian.Model

class feynlag.lagrangian.Model(name, gauge_groups=(), discrete_groups=(), fields=(), parameters=None, lagrangian=None, global_groups=())[source]

A BSM model: symmetries + fields + parameters + Lagrangian.

All pipeline stages are lazy — nothing is solved at construction.

Pipeline surface:

  • check_invariance() — gauge/discrete/global invariance of every term (global_groups: GlobalU1 groups, e.g. a Froggatt–Nielsen U(1) with per-flavour charges), hermiticity per sector, mass-dimension power counting;

  • potential, vacuum — EWSB setup (L ⊃ −V);

  • tadpoles(), solve_tadpoles() — vacuum conditions;

  • mass_matrix() — real or charged scalar blocks at the vacuum;

  • rotate() — register weak → physical Rotations;

  • physical_lagrangian() — shifted, tadpole-substituted, rotated L;

  • interactions(), feynman_rules() — vertex extraction.

__init__(name, gauge_groups=(), discrete_groups=(), fields=(), parameters=None, lagrangian=None, global_groups=())[source]

Methods

__init__(name[, gauge_groups, ...])

check_anomalies([raise_on_failure])

Check that gauge anomalies cancel for the declared fermion content.

check_invariance([hermiticity, dimension, ...])

Check every Lagrangian term against every declared symmetry.

check_parameters()

Report Lagrangian symbols that are not declared parameters.

diagonalize(block[, names])

Rotate a MassBlock to its mass eigenstates, register the rotation and record the new states in physical.

feynman_rules(fields[, sector, ...])

Feynman rules i × coefficient × ∏(multiplicity)! per vertex.

gauge_mass_matrix(gauge_components)

Gauge boson mass matrix from the (vacuum-evaluated) kinetic sector: M²_ab = ∂²L_kin,vac/∂A^a∂A^b.

gauge_vertices([groups, basis, simplifier, ...])

VVV and VVVV Vertex objects for the gauge self-couplings.

interactions(fields[, sector, ...])

Extract interaction coefficients from the physical Lagrangian.

mass_blocks([kind])

The blocks of fields that mix in the mass matrix at the vacuum.

mass_matrix(fields[, charged])

Scalar mass matrix at the vacuum for a block of fields.

missing_terms([max_dim])

The allowed invariants this model does not contain, as SuggestedTerm objects (see term_coverage()).

most_general(name, fields[, gauge_groups, ...])

A model with the most general Lagrangian its symmetries allow.

physical_lagrangian([sector])

The Lagrangian in the physical basis: vacuum-shifted, tadpole solutions substituted, all registered rotations applied, expanded.

rotate(rotation)

Register a weak → physical Rotation.

solve_tadpoles(for_params)

Solve tadpoles for for_params; solutions are remembered and applied by mass_matrix() / physical_lagrangian(), and any InternalParameter among them gets defined.

spin_map([conjugate_map])

{symbol: spin} for every known component, fluctuation and rotated physical field (rotations propagate block spin; conjugate partners inherit the spin of the field they conjugate).

summary()

Field-content and parameter tables (ModelSummary).

tadpoles()

Tadpole conditions {vev: ∂V/∂vev |_vacuum}.

term_coverage([max_dim])

Which invariants allowed by the declared symmetries this model's potential and Yukawa sector contain, which they leave out, and what they contain beyond them (feynlag.general.term_coverage()).

undeclared_symbols()

Symbols used in the Lagrangian that are neither a declared parameter nor a field (see check_parameters()).

validate([invariance, hermiticity, ...])

Run every applicable consistency check and aggregate the results.

vertices(fields[, sector, conjugate_map, ...])

Extract Vertex objects (typed by the closed Lorentz catalog) from the physical Lagrangian.

Attributes

physical

The accumulated physical states (PhysicalRegistry): bosons, cmap, conjugates, charges, goldstones, masses.

potential

The scalar potential V (the Lagrangian stores −V).

scalars

vacuum

global_groups

checked by check_invariance(), never gauged, no anomaly constraint

rotations

registered weak → physical Rotations, in application order