Physlib.QFT.PerturbationTheory.WickContraction.Basic
53 declarations
Wick contraction of indices
#WickContractionGiven a natural number , a Wick contraction is a finite collection of subsets of such that: 1. Each subset contains exactly two elements (i.e., it is a pair). 2. Any two distinct subsets are disjoint, meaning no element of is contained in more than one pair. This represents the set of pairings used to contract fields in Wick's theorem.
Equality of Wick contractions is decidable
#instDecidableEqFor any natural number , it is decidable whether two Wick contractions of indices are equal. That is, given two Wick contractions , there is an algorithmic procedure to determine if .
Empty Wick contraction
#emptyFor a given natural number , the empty Wick contraction is the contraction that contains no pairs of indices. It represents the case where none of the indices in are contracted with each other.
A Wick contraction is empty iff its cardinality is 0
#card_zero_iff_emptyLet be a Wick contraction of indices. The number of pairs in (its cardinality) is 0 if and only if is the empty Wick contraction.
Let be a Wick contraction of indices. If is not the empty contraction, then there exist indices and such that the pair is an element of .
Equivalence for
#congrFor any two natural numbers and , an equality induces an equivalence (bijection) between the set of Wick contractions of indices and the set of Wick contractions of indices.
The congruence map for is the identity on Wick contractions
#congr_reflFor any natural number and any Wick contraction of indices, the equivalence between the set of Wick contractions of indices and itself induced by the reflexivity of equality is the identity map. That is, applying the congruence map associated with to results in itself: .
for Wick contractions
#card_congrLet and be natural numbers such that , and let denote this equality. Let be a Wick contraction of indices, which is defined as a collection of disjoint pairs of elements from the set . Let be the Wick contraction of indices induced by the bijection of indices resulting from the equality . Then the number of pairs (cardinality) in is equal to the number of pairs in .
The set of pairs of is the image of the set of pairs of under the index bijection induced by
#congr_contractionsLet and be natural numbers and be an equality. Let be a Wick contraction of indices, defined as a collection of disjoint pairs of elements from the set . Let be the equivalence between Wick contractions of indices and indices induced by the equality . Then the collection of pairs in the Wick contraction is equal to the collection obtained by mapping each pair in using the natural bijection between and induced by .
Transitivity of the Equivalence
#congr_transLet denote the set of Wick contractions of indices, which are collections of disjoint pairs of elements from the set . For any natural numbers and , and proofs of equality and , let be the induced equivalence (bijection) between the corresponding sets of Wick contractions. Then, the composition of the equivalences and is equal to the equivalence induced by the transitivity of the equalities.
for Wick contractions
#congr_trans_applyLet denote the set of Wick contractions of indices, which are collections of disjoint pairs of elements from the set . For any natural numbers and , and proofs of equality and , let be the induced equivalence (bijection) between the corresponding sets of Wick contractions. For any Wick contraction , the composition of these bijections applied to satisfies where is the equality obtained by the transitivity of and .
for Wick contractions
#mem_congr_iffLet and be natural numbers and let be an equality. Let be a Wick contraction of indices (a collection of disjoint pairs from the set ), and let be the corresponding Wick contraction of indices induced by . For any finite subset , is a pair in the contraction if and only if the image of under the index bijection (induced by the equality ) is a pair in the original contraction .
Lifting of a contracted pair to
#congrLiftLet and be natural numbers and be an equality. Given a Wick contraction of indices (defined as a collection of disjoint pairs of elements from ) and a specific contracted pair , this function returns the corresponding contracted pair in the induced Wick contraction of indices. The resulting pair is obtained by applying the index bijection induced by the equality to the elements of .
Let be a natural number and be a Wick contraction of indices (defined as a collection of disjoint pairs from the set ). For the reflexivity equality (denoted as ), the function that maps a contracted pair to its corresponding pair in the induced Wick contraction is the identity function.
is injective
#congrLift_injectiveLet and be natural numbers and be an equality. Let be a Wick contraction of indices, which is a collection of disjoint pairs of elements from the set . The function maps each contracted pair to its corresponding pair in the Wick contraction of indices induced by the equality . This theorem states that the mapping is injective.
is surjective
#congrLift_surjectiveLet and be natural numbers and be an equality. Let be a Wick contraction of indices, defined as a collection of disjoint pairs from the set . The map , which sends each pair to its corresponding pair in the induced Wick contraction of indices, is surjective.
is bijective
#congrLift_bijectiveLet and be natural numbers and let be an equality. For a Wick contraction of indices, which consists of a collection of disjoint pairs of elements from the set , the function maps each pair to its corresponding pair in the Wick contraction of indices induced by the equality . This theorem states that the mapping is bijective.
Inverse mapping of pairs under
#congrLiftInvLet be natural numbers and be an equality. Let be a Wick contraction of indices, and let be the corresponding Wick contraction of indices induced by the bijection between the index sets and . For any pair of indices belonging to the contraction , this function returns the corresponding pair in the original contraction by applying the inverse index mapping.
For any natural number and any Wick contraction of indices, the inverse mapping of pairs induced by the reflexivity of equality , denoted , is the identity function. Here, a Wick contraction is a collection of disjoint pairs of indices from , and is the function that maps pairs from a transformed contraction back to the original pairs.
Contracted partner of index in Wick contraction
#getDual?Given a Wick contraction of indices and a specific index , this function returns the index that is paired with in . Specifically, if there exists a such that the set is a contracted pair in , the function returns . If no such exists (meaning is not involved in any contraction), it returns .
The partner of an index in a congruent Wick contraction
#getDual?_congrLet and be natural numbers such that . Let be the bijection induced by this equality, and let be a Wick contraction of indices. Let be the corresponding Wick contraction of indices obtained via the equivalence . For any index , the partner of in is equal to if the partner of in is . If is not involved in any contraction in , then is not involved in any contraction in .
The partner of an index in a congruent Wick contraction is the relabeled partner of its inverse image
#getDual?_congr_getLet and be natural numbers such that , and let be the bijection induced by this equality. Let be a Wick contraction of indices, and let be the corresponding Wick contraction of indices obtained via the equivalence . For any index , if has a contracted partner in , then that partner is equal to , where is the partner of in .
The partner of is if and only if is a contracted pair
#getDual?_eq_some_iff_memFor a Wick contraction of indices and any two indices , the partner of in the contraction is if and only if the pair is an element of the collection of pairs defining .
for a Wick contraction of 1 index
#getDual?_one_eq_noneFor any Wick contraction of index and for any index , the partner of in the contraction is undefined (i.e., ).
Let be a Wick contraction of indices. For any index , if is involved in a contraction (i.e., there exists a partner such that ), then the pair is an element of the collection of pairs defining the contraction .
An index and its partner form a pair in the Wick contraction
#self_getDual?_get_memLet be a Wick contraction of indices. For any index , if is involved in a contraction (i.e., its partner exists), let be the partner of in . Then the pair is an element of the collection of pairs defining the contraction .
Let be a Wick contraction of indices. For any indices , if the index is the contracted partner of in (meaning ), then .
in a Wick contraction
#self_ne_getDual?_getLet be a Wick contraction of indices. For any index , if is involved in a contraction with a partner index , then .
The contracted partner of an index is not the index itself ()
#getDual?_get_self_neqLet be a Wick contraction of indices. For any index , if has a contracted partner (meaning the pair is in ), then .
has a partner belongs to a contraction pair
#getDual?_isSome_iffLet be a Wick contraction of indices. For any index , the contracted partner of exists (i.e., `c.getDual? i` is not `none`) if and only if there exists a pair in the contraction such that .
implies has a contracted partner
#getDual?_isSome_of_memLet be a Wick contraction of indices (a collection of disjoint pairs of indices from ). For any pair in the contraction , if an index is an element of , then has a contracted partner in (i.e., the function returns a value).
The contracted partner of the partner of is itself
#getDual?_getDual?_get_getLet be a Wick contraction of indices. For any index , if has a contracted partner (meaning the function `c.getDual? i` returns ), then the contracted partner of is (meaning `c.getDual? j = some i`).
The partner of a contracted index is also contracted
#getDual?_getDual?_get_isSomeLet be a Wick contraction of indices, defined as a collection of disjoint pairs of indices from the set . For any index , let be the function that returns the index paired with in , or if is not part of any pair. If has a contracted partner (i.e., returns a value), then also has a contracted partner (i.e., returns a value).
The partner of a contracted index is also contracted
#getDual?_getDual?_get_not_noneLet be a Wick contraction of indices. For any index , if has a contracted partner (meaning the function returns ), then the contracted partner of is not (i.e., ).
Smaller index in a contracted pair
#fstFieldOfContractFor a Wick contraction of indices, let be a contracted pair consisting of two indices . This function returns the smaller of the two indices in the pair , i.e., .
Index renaming preserves the smaller index of a contracted pair
#fstFieldOfContract_congrGiven natural numbers and such that , let be a Wick contraction of indices and let be a contracted pair. The smaller index of the corresponding pair in the induced Wick contraction of indices is equal to the image of the smaller index of under the natural bijection between index sets and induced by the equality .
The larger index of a contracted pair
#sndFieldOfContractGiven a Wick contraction of indices and a contracted pair , where consists of two distinct indices , this function returns the larger of the two indices. Specifically, if the pair is ordered such that , the function returns .
The larger index of a contracted pair is preserved under index bijections induced by
#sndFieldOfContract_congrLet and be natural numbers and be an equality. Let be a Wick contraction of indices (a collection of disjoint pairs of indices from ) and let be a specific contracted pair. Then the larger index (the second field) of the corresponding pair in the induced Wick contraction of indices is equal to the image of the larger index of under the index bijection induced by .
A contracted pair is the set of its smaller and larger indices.
#finset_eq_fstFieldOfContract_sndFieldOfContractFor a Wick contraction of indices, let be a contracted pair. The set of indices constituting the pair is equal to , where is the smaller index in the pair (the first field of the contract) and is the larger index in the pair (the second field of the contract).
The first and second indices of a contracted pair are distinct
#fstFieldOfContract_ne_sndFieldOfContractFor a Wick contraction of indices and a contracted pair , the smaller index of the pair (the first field of the contract) is not equal to the larger index of the pair (the second field of the contract).
The first index of a contracted pair is the second index.
#fstFieldOfContract_le_sndFieldOfContractFor any Wick contraction of indices and any contracted pair , the smaller index of the pair (denoted as the first field of the contract) is less than or equal to the larger index of the pair (denoted as the second field of the contract).
The first index of a contracted pair is strictly less than the second index
#fstFieldOfContract_lt_sndFieldOfContractFor a Wick contraction of indices and any contracted pair , the smaller index of the pair (the first field of the contract) is strictly less than the larger index of the pair (the second field of the contract).
The smaller index of a contracted pair belongs to
#fstFieldOfContract_memLet be a Wick contraction of indices. For any pair within the contraction, the smaller of the two indices in (referred to as the first field of the contract) is an element of the set of indices that constitute the pair .
The smaller index of a contracted pair has a partner in
#fstFieldOfContract_getDual?_isSomeLet be a Wick contraction of indices and let be a pair in the contraction. Let be the smaller of the two indices in the pair . Then the contracted partner of in the contraction exists (i.e., is not ).
The contracted partner of the smaller index in a pair is the larger index
#fstFieldOfContract_getDual?Let be a Wick contraction of indices and let be a pair in the contraction. Let and be the smaller and larger indices of the pair , respectively. Then the contracted partner of in the contraction is .
The larger index of a contracted pair is an element of
#sndFieldOfContract_memLet be a Wick contraction of indices and let be a contracted pair. Then the larger index of the pair is an element of .
The larger index of a pair has a contracted partner
#sndFieldOfContract_getDual?_isSomeLet be a Wick contraction of indices and let be a pair in the contraction. Let be the larger index of the pair (the second field of the contract). Then has a contracted partner in (i.e., the result of the partner lookup `getDual?` is not empty).
The partner of the larger index in a contracted pair is the smaller index
#sndFieldOfContract_getDual?For a Wick contraction of indices and any contracted pair , let be the larger index in (the second field of the contract) and be the smaller index in (the first field of the contract). Then the partner of in the contraction is .
Equivalence for a contracted pair
#contractEquivFinTwoGiven a Wick contraction of indices and a contracted pair (which consists of two distinct indices ), this definition establishes an equivalence (a bijection) between the set and the set . Under this equivalence, the smaller index in the pair (the first field of the contract) is mapped to , and the larger index (the second field of the contract) is mapped to .
Product over a contracted pair equals the product of values at its smaller and larger indices
#prod_finset_eq_mul_fst_sndLet be a Wick contraction of indices and let be a contracted pair within it. For any function mapping the indices in to a commutative monoid , the product of the values of over the pair is equal to the product of evaluated at the smaller index and evaluated at the larger index in . That is, where is the smaller index () and is the larger index () of the pair.
Grading compliance of a Wick contraction
#GradingCompliantLet be a field specification. Given a list of field operators and a Wick contraction (a set of disjoint pairs of indices from ), the contraction is said to be **grading compliant** if for every pair , the field operators at those positions have the same field statistic. That is, the condition must hold for every contracted pair, ensuring that bosonic fields are only paired with bosonic fields and fermionic fields are only paired with fermionic fields.
Grading compliance of is invariant under
#gradingCompliant_congrLet be a field specification. Suppose and are two lists of field operators such that . A Wick contraction of the indices is grading compliant with respect to if and only if the congruent Wick contraction (of the indices ) is grading compliant with respect to . A contraction is said to be grading compliant if for every contracted pair of indices , the field operators at those positions have the same field statistic (meaning bosonic fields are paired with bosonic fields and fermionic fields with fermionic fields).
Equivalence between and contracted indices in
#sigmaContractedEquivGiven a Wick contraction of indices (represented as a collection of disjoint pairs of indices from ), this equivalence defines a bijection between the sigma type and the set of indices that are contracted. The sigma type consists of all pairs where is a contracted pair in and is an index contained in . The bijection maps such a pair to the index itself. Conversely, it maps a contracted index to the pair , where is the unique pair in containing .
