PhysLean/HepLean/PerturbationTheory/WickContraction/IsFull.lean
2025-02-04 09:58:30 +00:00

69 lines
2.5 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/-
Copyright (c) 2025 Joseph Tooby-Smith. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Tooby-Smith
-/
import HepLean.Mathematics.Fin.Involutions
import HepLean.PerturbationTheory.WickContraction.ExtractEquiv
import HepLean.PerturbationTheory.WickContraction.Involutions
/-!
# Full contraction
We say that a contraction is full if it has no uncontracted fields.
-/
open FieldSpecification
variable {𝓕 : FieldSpecification}
namespace WickContraction
variable {n : } (c : WickContraction n)
open HepLean.List
open FieldStatistic
open Nat
/-- A contraction is full if there are no uncontracted fields, i.e. the finite set
of uncontracted fields is empty. -/
def IsFull : Prop := c.uncontracted = ∅
/-- The condition on whether or not a contraction is full is decidable. -/
instance : Decidable (IsFull c) := decEq c.uncontracted ∅
lemma isFull_iff_equivInvolution_no_fixed_point :
IsFull c ↔ ∀ (i : Fin n), (equivInvolution c).1 i ≠ i := by
simp only [IsFull, ne_eq]
rw [Finset.eq_empty_iff_forall_not_mem]
simp [equivInvolution, toInvolution, uncontracted]
/-- The equivalence between full contractions and fixed-point free involutions. -/
def isFullInvolutionEquiv : {c : WickContraction n // IsFull c} ≃
{f : Fin n → Fin n // Function.Involutive f ∧ (∀ i, f i ≠ i)} where
toFun c := ⟨equivInvolution c.1, by
apply And.intro (equivInvolution c.1).2
rw [← isFull_iff_equivInvolution_no_fixed_point]
exact c.2⟩
invFun f := ⟨equivInvolution.symm ⟨f.1, f.2.1⟩, by
rw [isFull_iff_equivInvolution_no_fixed_point]
simpa using f.2.2⟩
left_inv c := by simp
right_inv f := by simp
remark card_in_general := "The cardinality of `WickContraction n` in general
follows OEIS:A000085. I.e.
1, 1, 2, 4, 10, 26, 76, 232, 764, 2620, 9496, 35696, 140152, 568504, 2390480,
10349536, 46206736, 211799312, 997313824,...."
/-- If `n` is even then the number of full contractions is `(n-1)!!`. -/
theorem card_of_isfull_even (he : Even n) :
Fintype.card {c : WickContraction n // IsFull c} = (n - 1)‼ := by
rw [Fintype.card_congr (isFullInvolutionEquiv)]
exact HepLean.Fin.involutionNoFixed_card_even n he
/-- If `n` is odd then there are no full contractions. This is because
there will always be at least one element unpaired. -/
theorem card_of_isfull_odd (ho : Odd n) :
Fintype.card {c : WickContraction n // IsFull c} = 0 := by
rw [Fintype.card_congr (isFullInvolutionEquiv)]
exact HepLean.Fin.involutionNoFixed_card_odd n ho
end WickContraction