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§
- Expression
Parse Error - Parse failure returned by
parse_expressionandparse_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), orhedge(owner)for local zero. See the polarization example incrate::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
dimandNc. Qualified names, Symbolica built-ins and the caller’s namespace for unknown symbols retain their ordinary Symbolica meanings. GammaLoop DOT retains its native spatialdothead in thegammalooprsnamespace. - parse_
expression_ in_ scope - Parse graph input like
parse_expression, keeping bare scalar names listed inlocal_scalarsindefault_namespaceinstead 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 momentumQ(e, mink(4, mu)). - u
- ubar
- v
- vbar
- vertex_
index