Skip to main content

Module symbols

Module symbols 

Source
Expand description

Canonical graph symbols shared with GammaLoop.

Polarization heads and graph-owned index labels retain their meaning in MathML:

use feynkit_graph::symbols;
use spenso::structure::representation::{Minkowski, RepName};
use symbolica::atom::AtomCore;
use symbolica::printer::{PrintMode, PrintOptions};
let index = symbols::hedge_index().call((3, 1));
let slot = Minkowski {}.new_rep(4).to_symbolic([index]);
for head in [symbols::epsilon(), symbols::epsilonbar()] {
    let expression = head.call((7, slot.clone()));
    let html = expression.printer(PrintOptions {
        mode: PrintMode::MathML, ..PrintOptions::default()
    }).to_string();
    assert!(html.contains("<mmultiscripts>"));
}

Structs§

ExpressionParseError
Parse failure returned by parse_expression and parse_expression_in_scope.

Functions§

denominator
dimension
edge_index
epsilon
Rank-one polarization tensor with a physical momentum ID and Lorentz slot. See the MathML example in crate::symbols.
epsilonbar
Conjugate polarization tensor; the bar is presentation metadata on its head. Source serialization retains the canonical symbol. See crate::symbols.
external_momentum
hedge_index
Half-edge-owned abstract indices hedge(owner, local_index), or hedge(owner) for local zero. See the polarization example in crate::symbols.
loop_momentum
momentum
parse_expression
Parse graph input using canonical graph and tensor heads in function position. Bare scalars can name parameters and couplings of the supplied model, or the standard constants dim and Nc. Qualified names, Symbolica built-ins and the caller’s namespace for unknown symbols retain their ordinary Symbolica meanings. GammaLoop DOT retains its native spatial dot head in the gammalooprs namespace.
parse_expression_in_scope
Parse graph input like parse_expression, keeping bare scalar names listed in local_scalars in default_namespace instead of resolving them as model parameters or built-in scalar constants.
spatial_momentum
Spatial part Q3(e, mink(4, mu)) = (0, q_e) of the edge momentum Q(e, mink(4, mu)).
u
ubar
v
vbar
vertex_index