Skip to main content

IntegralFamily

Struct IntegralFamily 

Source
pub struct IntegralFamily { /* private fields */ }
Expand description

An ordered propagator family in ordinary Spenso scalar-product notation.

Denominators are inverse propagators, for example (k+p)^2-m^2, expanded using Kinematics::scalar_product. Linear (eikonal) denominators are also accepted. The external momentum list must be an independent basis; eliminate dependent external momenta before constructing a family.

The family tracks algebraic completeness and verifies affine loop-momentum maps. Parametric scaling certificates detect scaleless sectors in dimensional regularization. Integration prescriptions and IBP solutions require additional information beyond this algebraic representation. Coefficients are exact rational functions over the native Gaussian-rational field, with i^2 = -1. Algebraic coefficient support does not authorize complex contour changes.

Implementations§

Source§

impl IntegralFamily

Source

pub fn from_diagram( diagram: &FeynmanDiagram, kinematics: &Kinematics, independent_dot_products: &[Atom], ) -> Result<Self, DiagramError>

Complete the diagram’s internal propagators with auxiliary scalar products.

Propagators retain their edge order and stored momentum routing, as in FeynmanDiagram::integral_family. Preferred independent dot products are tried in order; redundant entries are skipped and automatic scalar products fill any remaining directions. Pass an empty slice to choose the completion automatically. Dependent propagators must be extracted and partial-fractioned separately before completing their families.

Source§

impl IntegralFamily

Source

pub fn mapping_to( &self, target: &Self, loop_images: &[Atom], ) -> Result<Option<IntegralMapping>, IntegralFamilyError>

Verify explicit source-loop images in the target momentum coordinates.

Returns None if the Jacobian determinant is not exactly +1 or -1, or coefficients cannot be proven real, or a source denominator has no distinct equal target denominator. External names and kinematics must agree. Target families may contain additional propagators, enabling subtopology embeddings.

Source

pub fn find_mapping( &self, target: &Self, max_candidates: usize, ) -> Result<Option<IntegralMapping>, IntegralFamilyError>

Search exact affine loop shifts using independent quadratic propagators.

This includes loop permutations, reversals, mixtures and external shifts. Candidates are derived from propagator quadratic forms, then verified by Self::mapping_to. Eikonal and auxiliary propagators participate in verification but cannot supply the quadratic search basis. This is not a parametric-polynomial equivalence test for identities without a loop shift.

Source

pub fn quadratic_denominator( &self, index: usize, ) -> Result<Option<QuadraticMomentum>, IntegralFamilyError>

Decompose one ordered inverse denominator as a squared momentum plus a remainder.

The normalization and external momentum shifts are retained exactly. Returns None for linear denominators or quadratic forms that are not the square of a single momentum. An out-of-range index is an error. This is the same decomposition used by the affine momentum-map search.

Source§

impl IntegralFamily

Source

pub fn find_mappings( families: &[Self], max_candidates: usize, ) -> Result<Vec<(usize, IntegralMapping)>, IntegralFamilyError>

Group families using verified affine loop-momentum maps.

Returns one (representative_index, mapping) per input, in input order. Indices refer to the original list; representatives map to themselves. The first compatible representative is retained, so there are no chains. Symanzik incidence graphs are canonized once per family to limit the shift searches. Polynomial equivalence alone never merges families: Self::find_mapping must verify every denominator and the Jacobian.

All families must have compatible external kinematics and nonsingular quadratic forms. Search limitations and candidate-budget exhaustion are errors, not proofs of inequivalence. max_candidates applies per pair. Different propagator counts remain separate; subtopology embeddings, external-momentum exchanges and scalelessness are separate operations.

Source

pub fn scaleless_transverse_direction( &self, ) -> Result<Option<Vec<Atom>>, IntegralFamilyError>

Find a real loop direction with an unconstrained transverse integral.

The returned nonzero vector w is in loop-momentum order and satisfies A_a w = 0 for every denominator’s quadratic loop matrix A_a. Thus k_i -> k_i + w_i r_perp leaves all denominators unchanged for any vector orthogonal to the external span. Its unrestricted polynomial integral is scaleless in dimensional regularization, even with masses and eikonal terms in the remaining coordinates.

Requires a nonsingular external Gram matrix and a nonempty transverse space. Symbolic dimension is interpreted generically; a concrete dimension must exceed the number of external basis vectors. None means no certificate was found, not that the integral is nonzero. Use Self::sector first to exclude numerator-only propagators. This verifies a common real null direction, not merely det(A)=0.

Source

pub fn scaleless_scaling( &self, parameters: &[Atom], ) -> Result<Option<Vec<Atom>>, IntegralFamilyError>

Find a parametric scaling certificate for a scaleless sector.

For G = U + F, solve sum_i w_i*x_i*dG/dx_i = G over constant weights using Symbolica. A solution proves the sector scaleless in dimensional regularization at generic dimension. None means this criterion did not establish scalelessness; it is not a nonzero-integral assertion. The certificate uses the supplied parameter order.

Every family denominator is treated as present. Use Self::sector first to exclude zero- and negative-power entries. This criterion requires a nonsingular quadratic form even though Self::symanzik can return the algebraic polynomials for singular forms.

Source

pub fn parametric_mapping( &self, target: &Self, parameters: &[Atom], ) -> Result<Option<PropagatorMapping>, IntegralFamilyError>

Find a parameter permutation identifying both Symanzik polynomials.

Parameters are distinct new symbols or calls, one per source propagator. Both families must have the same propagator count and external kinematics. Symbolica canonizes the polynomial incidence graphs, preserving U/F, exact coefficients and monomial exponents. This detects polynomial equivalences even when no affine loop-momentum map is available.

This is an algebraic parameter map, not a contour or prescription check. There is no implied tensor-numerator or external-momentum substitution. Singular quadratic forms are rejected because their degenerate U/F polynomials can discard physical masses and external invariants.

Source

pub fn symanzik( &self, parameters: &[Atom], ) -> Result<(Atom, Atom), IntegralFamilyError>

Compute the Symanzik polynomials (U, F) in propagator order.

For sum_i x_i D_i = k.M.k + 2 k.Q + J, the convention is U = det(M) and F = Q.adj(M).Q - U*J. Thus a Minkowski denominator k^2-m^2 gives (x, m^2*x^2). No integration measure, propagator prescription or powers are inferred. Parameters must be distinct symbols or calls absent from the family expressions.

Symbolica evaluates the determinant and cofactors without requiring an inverse. Linear eikonal denominators and singular quadratic forms are accepted. A singular result is algebraic data, not a valid Gaussian integration formula or a scalelessness certificate.

Source§

impl IntegralFamily

Source

pub fn partial_fraction( &self, powers: &[i32], max_states: usize, ) -> Result<Vec<(Atom, Vec<i32>)>, IntegralFamilyError>

Decompose a product into terms with independent positive-power propagators.

Each returned pair contains a coefficient and signed propagator powers in the original family order. Negative powers remain numerator factors. The identity is algebraic: no loop shifts or scaleless-term removal are performed. Generic nonzero external invariants may appear in coefficients; specialize kinematics before constructing the family for degenerate cases.

max_states bounds processed exponent vectors, including intermediate states. Exceeding the budget returns an error rather than a partial result. Active Symbolica resource budgets are checked between states and while searching for denominator relations.

§Errors

Returns an error for invalid powers or denominators, power overflow, or an exhausted state or Symbolica resource budget.

Source§

impl IntegralFamily

Source

pub fn new( loop_momenta: Vec<Atom>, external_momenta: Vec<Atom>, denominators: Vec<Atom>, kinematics: &Kinematics, ) -> Result<Self, IntegralFamilyError>

Construct a family and compute its rank over the external invariants.

Source

pub fn loop_momenta(&self) -> &[Atom]

Integrated momentum names, in their original order.

Source

pub fn kinematics(&self) -> &Kinematics

Scoped kinematics, including the declared family momentum names.

Source

pub fn external_momenta(&self) -> &[Atom]

Independent external momentum names, in their original order.

Source

pub fn scalar_products(&self) -> &[Atom]

Loop-loop and loop-external products spanning the numerator space.

Source

pub fn denominators(&self) -> &[Atom]

Ordered inverse propagators, including any completion terms.

Source

pub fn rank(&self) -> usize

Number of independent affine forms in the loop scalar products.

Source

pub fn is_complete(&self) -> bool

Whether the inverse propagators span every loop scalar product.

Source

pub fn is_independent(&self) -> bool

Whether no denominator can be eliminated by an affine relation.

Source

pub fn sector(&self, powers: &[i32]) -> Result<Self, IntegralFamilyError>

Retain the positive-power propagators of an integral’s sector.

Zero and negative powers are omitted; loop variables and external kinematics are retained. This describes sector support, not an algebraic removal of numerator factors from the original integrand.

Source

pub fn complete(&self, candidates: &[Atom]) -> Result<Self, IntegralFamilyError>

Append independent candidates, then scalar products, to form a basis.

Original propagators retain their positions. Added entries are auxiliary inverse propagators, whose nonpositive powers represent numerator factors. A dependent family must be partial-fractioned first. Candidates are affine inverse propagators in this family’s momenta, tried in order after applying its kinematics. Redundant candidates are skipped; bare scalar products fill any directions still missing.

Source

pub fn scalar_product_rules( &self, labels: &[Atom], ) -> Result<BTreeMap<Atom, Atom>, IntegralFamilyError>

Solve every loop scalar product in terms of labeled inverse propagators.

Labels are ordinary Symbolica symbols or calls, such as d1 or D(1). The family must be independent and complete. The returned substitutions can also be applied with ordinary Symbolica operations.

Source

pub fn rewrite_numerator( &self, numerator: &Atom, labels: &[Atom], ) -> Result<Atom, IntegralFamilyError>

Rewrite a numerator into inverse-propagator variables without integration.

Trait Implementations§

Source§

impl Clone for IntegralFamily

Source§

fn clone(&self) -> IntegralFamily

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IntegralFamily

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> AtomComponentOptimizable<()> for T

Source§

impl<T> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> StrictAs for T

Source§

fn strict_as<Dst>(self) -> Dst
where T: StrictCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> StrictCastFrom<Src> for Dst
where Src: StrictCast<Dst>,

Source§

fn strict_cast_from(src: Src) -> Dst

Casts the value.
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryFromUpgrade<T> for U
where T: TrySmallestUpgrade<U, LCM = U>, U: Clone,

§

fn try_from_upgrade(value: &T) -> Option<U>

Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T, U> TryIntoUpgrade<U> for T
where U: TryFromUpgrade<T>,

§

fn try_into_upgrade(&self) -> Option<U>

Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.