Skip to main content

Crate feynkit_cff

Crate feynkit_cff 

Source
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 usize representing an undirected edge in the graph.
EnergySurface
An E-surface generated from an ordinary source or sink.
EnergySurfaceId
ExpressionTree
Rooted tree encoding a sum of products of inverse surfaces.
ExternalShift
A canonical linear combination of external edge energies.
Generate3DExpressionOptions
GeneratedThreeDExpression
HSurface
An H-surface generated when a subgraph has severed internal edges.
HSurfaceId
NodeId
Stable index of a node within an expression tree.
OrientationData
One CFF denominator tree and its acyclic graph orientation.
OrientationExpression
One CFF denominator tree and its acyclic graph orientation.
OrientationId
Stable index of an orientation within a generated expression.
OrientationWeight
Exact weight 2^-halvings multiplying one orientation’s denominator tree.
ParsedGraph
RaisedEnergySurfaceData
Structural raised-surface information for one CFF expression.
RaisedEnergySurfaceGroup
One equivalence class of energy surfaces produced by raised propagators.
RaisedEnergySurfaceId
ShiftRewrite
Replace one dependent external momentum by a canonical linear combination.
SurfaceCache
Surface interning owned by one crate::CffGenerator::generate call.
SurfaceIdMap
ID translation produced while merging one surface arena into another.
SurfacePole
A regular coefficient divided by a positive integer power of a simple surface zero.
TreeNode
VertexId
A type-safe wrapper around a usize to represent the index of a node in a graph.
VertexSet
Set of original vertices represented by a contracted CFF vertex.

Enums§

CffError
Errors reported while validating a topology or generating a CFF expression.
EdgeFlow
Direction of an edge at the vertex to which it is attached.
EdgeKind
Topological role of an edge in CFF generation.
ExpressionTreeError
HedgeEdgeRole
CFF construction directly on a selected Linnet topology.
Surface
SurfaceId

Traits§

FeynmanDiagramCffExt
CFF construction directly on FeynKit diagrams without wrapping the graph type.
GraphOrientationExt
Structural operations on a complete Linnet graph orientation.
HedgeGraphCffExt
ThreeDGraphSource

Functions§

generate_3d_expression

Type Aliases§

EdgeOrientation
GraphOrientation