feynlag.verify.checks¶
Executable physics invariants — the house verification toolkit.
Ported from bsm-calc/physics_utils.py. Philosophy: encode physical
invariants as executable checks; a failing invariant stops the pipeline before
the error propagates. All functions operate on SymPy objects and are
model-agnostic.
House rule: every physical result gets BOTH a symbolic check and a
random-point numeric check (numeric_equal()) — the numeric check defends
against the canonical-form problem where two identical expressions differ
syntactically and defeat simplify.
Functions
|
Symbolic dimensional analysis in powers of mass. |
|
Limit of |
Diagonalize a hermitian matrix: returns |
|
|
Whether |
|
Whether |
|
Random-point NUMERIC equality of two expressions. |
|
Round-trip validation of the vertex extractor. |
|
Type-I seesaw at leading order: |