Expand description
Standalone Cross-Free Family (CFF) combinatorics.
The crate exposes topology-only and generalized CFF generation. Both use
the recursion owned by three-dimensional-reps; FeynKit provides graph
adapters, surface views, residue construction, and Symbolica lowering. It deliberately has no knowledge of GammaLoop settings,
numerical evaluators, or runtime threshold classification. Callers may
construct a CffGraph explicitly or invoke the extension trait directly
on a finalized FeynKit diagram.
use feynkit_cff::{
CffEdge, CffGenerator, CffGraph, EdgeFlow, EdgeId, VertexId,
};
let graph = CffGraph::new(
2,
[
CffEdge::external(EdgeId::new(0), VertexId::new(0), EdgeFlow::Incoming),
CffEdge::external(EdgeId::new(1), VertexId::new(1), EdgeFlow::Outgoing),
CffEdge::internal(EdgeId::new(2), VertexId::new(0), VertexId::new(1)),
],
)?;
let result = CffGenerator::default().generate(&graph)?;
assert_eq!(result.report.acyclic_orientations, 2);Re-exports§
pub use three_dimensional_reps as generalized;
Modules§
- symbols
- Canonical GammaLoop energy symbols, also used by standalone FeynKit.
Structs§
- CffEdge
- An edge with a stable caller-provided identifier.
- CffExpression
- Sum of the expressions associated with all accepted acyclic orientations.
- CffGeneration
- A generated expression whose IDs refer to a caller-owned
SurfaceCache. - CffGenerator
- Reusable CFF generator configuration.
- CffGraph
- Minimal graph input needed by the CFF contraction algorithm.
- CffOptions
- Explicit controls for topology-only CFF generation.
- CffReport
- Summary of the finite combinatorial search performed by a generator call.
- CffResult
- Typed CFF expression together with its generation-local surfaces and report.
- CutPropagator
- An oriented cut of
(energy^2 - on_shell_energy^2 + i prescription 0)^(-power). - EdgeId
- A type-safe wrapper around a
usizerepresenting an undirected edge in the graph. - Energy
Surface - An E-surface generated from an ordinary source or sink.
- Energy
Surface Id - Expression
Tree - Rooted tree encoding a sum of products of inverse surfaces.
- External
Shift - A canonical linear combination of external edge energies.
- Generate3D
Expression Options - Generated
ThreeD Expression - HSurface
- An H-surface generated when a subgraph has severed internal edges.
- HSurface
Id - NodeId
- Stable index of a node within an expression tree.
- Orientation
Data - One CFF denominator tree and its acyclic graph orientation.
- Orientation
Expression - One CFF denominator tree and its acyclic graph orientation.
- Orientation
Id - Stable index of an orientation within a generated expression.
- Orientation
Weight - Exact weight
2^-halvingsmultiplying one orientation’s denominator tree. - Parsed
Graph - Raised
Energy Surface Data - Structural raised-surface information for one CFF expression.
- Raised
Energy Surface Group - One equivalence class of energy surfaces produced by raised propagators.
- Raised
Energy Surface Id - Shift
Rewrite - Replace one dependent external momentum by a canonical linear combination.
- Surface
Cache - Surface interning owned by one
crate::CffGenerator::generatecall. - Surface
IdMap - ID translation produced while merging one surface arena into another.
- Surface
Pole - A regular coefficient divided by a positive integer power of a simple surface zero.
- Tree
Node - Vertex
Id - A type-safe wrapper around a
usizeto represent the index of a node in a graph. - Vertex
Set - Set of original vertices represented by a contracted CFF vertex.
Enums§
- CffError
- Errors reported while validating a topology or generating a CFF expression.
- Edge
Flow - Direction of an edge at the vertex to which it is attached.
- Edge
Kind - Topological role of an edge in CFF generation.
- Expression
Tree Error - Hedge
Edge Role - CFF construction directly on a selected Linnet topology.
- Surface
- Surface
Id
Traits§
- Feynman
Diagram CffExt - CFF construction directly on FeynKit diagrams without wrapping the graph type.
- Graph
Orientation Ext - Structural operations on a complete Linnet graph orientation.
- Hedge
Graph CffExt - ThreeD
Graph Source