PhysLean/HepLean/PerturbationTheory/WickContraction/Sign/InsertSome.lean

845 lines
38 KiB
Text
Raw Normal View History

/-
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
-/
2025-02-03 10:47:18 +00:00
import HepLean.PerturbationTheory.WickContraction.Sign.Basic
/-!
2025-02-03 10:47:18 +00:00
# Sign on inserting and contracting
-/
open FieldSpecification
variable {𝓕 : FieldSpecification}
namespace WickContraction
variable {n : } (c : WickContraction n)
open HepLean.List
open FieldStatistic
2025-02-03 10:47:18 +00:00
/-!
## Sign insert some
-/
2025-02-03 11:28:14 +00:00
lemma stat_ofFinset_eq_one_of_gradingCompliant (φs : List 𝓕.FieldOp)
(a : Finset (Fin φs.length)) (φsΛ : WickContraction φs.length) (hg : GradingCompliant φs φsΛ)
(hnon : ∀ i, φsΛ.getDual? i = none → i ∉ a)
(hsom : ∀ i, (h : (φsΛ.getDual? i).isSome) → i ∈ a → (φsΛ.getDual? i).get h ∈ a) :
(𝓕 |>ₛ ⟨φs.get, a⟩) = 1 := by
rw [ofFinset_eq_prod]
let e2 : Fin φs.length ≃ {x // (φsΛ.getDual? x).isSome} ⊕ {x // ¬ (φsΛ.getDual? x).isSome} := by
exact (Equiv.sumCompl fun a => (φsΛ.getDual? a).isSome = true).symm
rw [← e2.symm.prod_comp]
simp only [Fin.getElem_fin, Fintype.prod_sum_type, instCommGroup]
conv_lhs =>
enter [2, 2, x]
simp only [Equiv.symm_symm, Equiv.sumCompl_apply_inl, Equiv.sumCompl_apply_inr, e2]
rw [if_neg (hnon x.1 (by simpa using x.2))]
simp only [Equiv.symm_symm, Equiv.sumCompl_apply_inl, Finset.prod_const_one, mul_one, e2]
rw [← φsΛ.sigmaContractedEquiv.prod_comp]
erw [Finset.prod_sigma]
apply Fintype.prod_eq_one _
intro x
rw [prod_finset_eq_mul_fst_snd]
simp only [sigmaContractedEquiv, Equiv.coe_fn_mk, mul_ite, ite_mul, one_mul, mul_one]
split
· split
erw [hg x]
simp only [Fin.getElem_fin, mul_self]
rename_i h1 h2
have hsom' := hsom (φsΛ.sndFieldOfContract x) (by simp) h1
simp only [sndFieldOfContract_getDual?, Option.get_some] at hsom'
exact False.elim (h2 hsom')
· split
rename_i h1 h2
have hsom' := hsom (φsΛ.fstFieldOfContract x) (by simp) h2
simp only [fstFieldOfContract_getDual?, Option.get_some] at hsom'
exact False.elim (h1 hsom')
rfl
2025-02-03 11:28:14 +00:00
lemma signFinset_insertAndContract_some (φ : 𝓕.FieldOp) (φs : List 𝓕.FieldOp)
(φsΛ : WickContraction φs.length) (i : Fin φs.length.succ) (i1 i2 : Fin φs.length)
(j : φsΛ.uncontracted) :
(φsΛ ↩Λ φ i (some j)).signFinset (finCongr (insertIdx_length_fin φ φs i).symm
(i.succAbove i1)) (finCongr (insertIdx_length_fin φ φs i).symm (i.succAbove i2)) =
if i.succAbove i1 < i ∧ i < i.succAbove i2 ∧ (i1 < j) then
Insert.insert (finCongr (insertIdx_length_fin φ φs i).symm i)
2025-01-24 07:18:48 +00:00
(insertAndContractLiftFinset φ i (φsΛ.signFinset i1 i2))
else
if i1 < j ∧ j < i2 ∧ ¬ i.succAbove i1 < i then
2025-01-24 07:18:48 +00:00
(insertAndContractLiftFinset φ i (φsΛ.signFinset i1 i2)).erase
(finCongr (insertIdx_length_fin φ φs i).symm (i.succAbove j))
else
2025-01-24 07:18:48 +00:00
(insertAndContractLiftFinset φ i (φsΛ.signFinset i1 i2)) := by
ext k
rcases insert_fin_eq_self φ i k with hk | hk
· subst hk
have h1 : Fin.cast (insertIdx_length_fin φ φs i).symm i ∈
(if i.succAbove i1 < i ∧ i < i.succAbove i2 ∧ (i1 < j) then
Insert.insert (finCongr (insertIdx_length_fin φ φs i).symm i)
2025-01-24 07:18:48 +00:00
(insertAndContractLiftFinset φ i (φsΛ.signFinset i1 i2))
else
if i1 < j ∧ j < i2 ∧ ¬ i.succAbove i1 < i then
2025-01-24 07:18:48 +00:00
(insertAndContractLiftFinset φ i (φsΛ.signFinset i1 i2)).erase
(finCongr (insertIdx_length_fin φ φs i).symm (i.succAbove j))
else
2025-01-24 07:18:48 +00:00
(insertAndContractLiftFinset φ i (φsΛ.signFinset i1 i2))) ↔
i.succAbove i1 < i ∧ i < i.succAbove i2 ∧ (i1 < j) := by
split
simp_all only [Nat.succ_eq_add_one, finCongr_apply, Finset.mem_insert,
2025-01-24 07:18:48 +00:00
self_not_mem_insertAndContractLiftFinset, or_false, and_self]
rename_i h
simp only [Nat.succ_eq_add_one, not_lt, finCongr_apply, h, iff_false]
split
2025-01-24 07:18:48 +00:00
simp only [Finset.mem_erase, ne_eq, self_not_mem_insertAndContractLiftFinset, and_false,
not_false_eq_true]
simp
rw [h1]
simp only [Nat.succ_eq_add_one, signFinset, finCongr_apply, Finset.mem_filter, Finset.mem_univ,
2025-01-24 07:18:48 +00:00
insertAndContract_some_getDual?_self_eq, reduceCtorEq, Option.isSome_some, Option.get_some,
forall_const, false_or, true_and]
rw [Fin.lt_def, Fin.lt_def, Fin.lt_def, Fin.lt_def]
simp only [Fin.coe_cast, Fin.val_fin_lt, and_congr_right_iff]
intro h1 h2
exact Fin.succAbove_lt_succAbove_iff
· obtain ⟨k, hk⟩ := hk
subst hk
by_cases hkj : k = j.1
· subst hkj
conv_lhs=> simp only [Nat.succ_eq_add_one, signFinset, finCongr_apply, Finset.mem_filter,
2025-01-24 07:18:48 +00:00
Finset.mem_univ, insertAndContract_some_getDual?_some_eq, reduceCtorEq, Option.isSome_some,
Option.get_some, forall_const, false_or, true_and, not_lt]
rw [Fin.lt_def, Fin.lt_def]
simp only [Fin.coe_cast, Fin.val_fin_lt, Nat.succ_eq_add_one, finCongr_apply, not_lt]
conv_lhs =>
enter [2, 2]
rw [Fin.lt_def]
simp only [Fin.coe_cast, Fin.val_fin_lt]
split
· rename_i h
simp_all only [and_true, Finset.mem_insert]
2025-01-24 07:18:48 +00:00
rw [succAbove_mem_insertAndContractLiftFinset]
simp only [Fin.ext_iff, Fin.coe_cast]
2025-01-23 00:58:24 +01:00
have h1 : ¬ (i.succAbove ↑j) = i := Fin.succAbove_ne i ↑j
simp only [Fin.val_eq_val, h1, signFinset, Finset.mem_filter, Finset.mem_univ, true_and,
false_or]
rw [Fin.succAbove_lt_succAbove_iff, Fin.succAbove_lt_succAbove_iff]
simp only [and_congr_right_iff, iff_self_and]
intro h1 h2
apply Or.inl
have hj:= j.2
simpa [uncontracted, -Finset.coe_mem] using hj
· rename_i h
simp only [not_and, not_lt] at h
rw [Fin.succAbove_lt_succAbove_iff, Fin.succAbove_lt_succAbove_iff]
split
· rename_i h1
simp only [Finset.mem_erase, ne_eq, not_true_eq_false, false_and, iff_false, not_and,
not_lt]
intro h1 h2
omega
· rename_i h1
2025-01-24 07:18:48 +00:00
rw [succAbove_mem_insertAndContractLiftFinset]
simp only [signFinset, Finset.mem_filter, Finset.mem_univ, true_and, and_congr_right_iff]
intro h1 h2
have hj:= j.2
simp only [uncontracted, Finset.mem_filter, Finset.mem_univ, true_and] at hj
simp only [hj, Option.isSome_none, Bool.false_eq_true, IsEmpty.forall_iff, or_self,
iff_true, gt_iff_lt]
omega
· have h1 : Fin.cast (insertIdx_length_fin φ φs i).symm (i.succAbove k) ∈
(if i.succAbove i1 < i ∧ i < i.succAbove i2 ∧ (i1 < j) then
Insert.insert (finCongr (insertIdx_length_fin φ φs i).symm i)
2025-01-24 07:18:48 +00:00
(insertAndContractLiftFinset φ i (φsΛ.signFinset i1 i2))
else
if i1 < j ∧ j < i2 ∧ ¬ i.succAbove i1 < i then
2025-01-24 07:18:48 +00:00
(insertAndContractLiftFinset φ i (φsΛ.signFinset i1 i2)).erase
(finCongr (insertIdx_length_fin φ φs i).symm (i.succAbove j))
else
2025-01-24 07:18:48 +00:00
(insertAndContractLiftFinset φ i (φsΛ.signFinset i1 i2))) ↔
Fin.cast (insertIdx_length_fin φ φs i).symm (i.succAbove k) ∈
2025-01-24 07:18:48 +00:00
(insertAndContractLiftFinset φ i (φsΛ.signFinset i1 i2)) := by
split
· simp only [Nat.succ_eq_add_one, finCongr_apply, Finset.mem_insert, or_iff_right_iff_imp]
intro h
simp only [Fin.ext_iff, Fin.coe_cast] at h
simp only [Fin.val_eq_val] at h
2025-01-23 00:58:24 +01:00
have hn : ¬ i.succAbove k = i := Fin.succAbove_ne i k
exact False.elim (hn h)
· split
simp only [Nat.succ_eq_add_one, finCongr_apply, Finset.mem_erase, ne_eq,
and_iff_right_iff_imp]
intro h
simp only [Fin.ext_iff, Fin.coe_cast]
simp only [Fin.val_eq_val]
rw [Function.Injective.eq_iff]
exact hkj
exact Fin.succAbove_right_injective
· simp
rw [h1]
2025-01-24 07:18:48 +00:00
rw [succAbove_mem_insertAndContractLiftFinset]
simp only [Nat.succ_eq_add_one, signFinset, finCongr_apply, Finset.mem_filter,
Finset.mem_univ, true_and]
rw [Fin.lt_def, Fin.lt_def, Fin.lt_def, Fin.lt_def]
simp only [Fin.coe_cast, Fin.val_fin_lt]
rw [Fin.succAbove_lt_succAbove_iff, Fin.succAbove_lt_succAbove_iff]
simp only [and_congr_right_iff]
intro h1 h2
2025-01-24 07:18:48 +00:00
simp only [ne_eq, hkj, not_false_eq_true, insertAndContract_some_succAbove_getDual?_eq_option,
Nat.succ_eq_add_one, Option.map_eq_none', Option.isSome_map']
conv_lhs =>
rhs
enter [h]
rw [Fin.lt_def]
simp only [Fin.coe_cast, Option.get_map, Function.comp_apply, Fin.val_fin_lt]
rw [Fin.succAbove_lt_succAbove_iff]
/-- Given a Wick contraction `c` associated with a list of states `φs`
and an `i : Fin φs.length.succ`, the change in sign of the contraction associated with
inserting `φ` into `φs` at position `i` and contracting it with `j : c.uncontracted`
coming from contractions other then the `i` and `j` contraction but which
are effected by this new contraction. -/
2025-02-03 11:28:14 +00:00
def signInsertSomeProd (φ : 𝓕.FieldOp) (φs : List 𝓕.FieldOp) (φsΛ : WickContraction φs.length)
(i : Fin φs.length.succ) (j : φsΛ.uncontracted) : :=
∏ (a : φsΛ.1),
if i.succAbove (φsΛ.fstFieldOfContract a) < i ∧ i < i.succAbove (φsΛ.sndFieldOfContract a) ∧
((φsΛ.fstFieldOfContract a) < j) then
𝓢(𝓕 |>ₛ φ, 𝓕 |>ₛ φs[φsΛ.sndFieldOfContract a])
else
if (φsΛ.fstFieldOfContract a) < j ∧ j < (φsΛ.sndFieldOfContract a) ∧
¬ i.succAbove (φsΛ.fstFieldOfContract a) < i then
𝓢(𝓕 |>ₛ φs[j.1], 𝓕 |>ₛ φs[φsΛ.sndFieldOfContract a])
else
1
/-- Given a Wick contraction `c` associated with a list of states `φs`
and an `i : Fin φs.length.succ`, the change in sign of the contraction associated with
inserting `φ` into `φs` at position `i` and contracting it with `j : c.uncontracted`
coming from putting `i` next to `j`. -/
2025-02-03 11:28:14 +00:00
def signInsertSomeCoef (φ : 𝓕.FieldOp) (φs : List 𝓕.FieldOp) (φsΛ : WickContraction φs.length)
(i : Fin φs.length.succ) (j : φsΛ.uncontracted) : :=
let a : (φsΛ ↩Λ φ i (some j)).1 := congrLift (insertIdx_length_fin φ φs i).symm
2025-01-24 07:18:48 +00:00
⟨{i, i.succAbove j}, by simp [insertAndContractNat]⟩;
𝓢(𝓕 |>ₛ (φs.insertIdx i φ)[(φsΛ ↩Λ φ i (some j)).sndFieldOfContract a],
𝓕 |>ₛ ⟨(φs.insertIdx i φ).get, signFinset
(φsΛ ↩Λ φ i (some j)) ((φsΛ ↩Λ φ i (some j)).fstFieldOfContract a)
((φsΛ ↩Λ φ i (some j)).sndFieldOfContract a)⟩)
2025-02-03 10:47:18 +00:00
/-- Given a Wick contraction `φsΛ` associated with a list of states `φs`
and an `i : Fin φs.length.succ`, the change in sign of the contraction associated with
inserting `φ` into `φs` at position `i` and contracting it with `j : c.uncontracted`. -/
2025-02-03 11:28:14 +00:00
def signInsertSome (φ : 𝓕.FieldOp) (φs : List 𝓕.FieldOp) (φsΛ : WickContraction φs.length)
(i : Fin φs.length.succ) (j : φsΛ.uncontracted) : :=
signInsertSomeCoef φ φs φsΛ i j * signInsertSomeProd φ φs φsΛ i j
2025-02-03 11:28:14 +00:00
lemma sign_insert_some (φ : 𝓕.FieldOp) (φs : List 𝓕.FieldOp) (φsΛ : WickContraction φs.length)
(i : Fin φs.length.succ) (j : φsΛ.uncontracted) :
(φsΛ ↩Λ φ i (some j)).sign = (φsΛ.signInsertSome φ φs i j) * φsΛ.sign := by
rw [sign]
rw [signInsertSome, signInsertSomeProd, sign, mul_assoc, ← Finset.prod_mul_distrib]
2025-01-24 07:18:48 +00:00
rw [insertAndContract_some_prod_contractions]
congr
funext a
2025-01-24 11:25:22 +00:00
simp only [instCommGroup, Nat.succ_eq_add_one, insertAndContract_sndFieldOfContract,
finCongr_apply, Fin.getElem_fin, Fin.coe_cast, insertIdx_getElem_fin,
insertAndContract_fstFieldOfContract, not_lt, ite_mul, one_mul]
2025-01-24 07:18:48 +00:00
erw [signFinset_insertAndContract_some]
split
· rename_i h
simp only [Nat.succ_eq_add_one, finCongr_apply]
rw [ofFinset_insert]
simp only [instCommGroup, Fin.getElem_fin, Fin.coe_cast, List.getElem_insertIdx_self, map_mul]
2025-01-24 07:18:48 +00:00
rw [stat_ofFinset_of_insertAndContractLiftFinset]
simp only [exchangeSign_symm, instCommGroup.eq_1]
simp
· rename_i h
split
· rename_i h1
simp only [Nat.succ_eq_add_one, finCongr_apply, h1, true_and]
rw [if_pos]
rw [ofFinset_erase]
simp only [instCommGroup, Fin.getElem_fin, Fin.coe_cast, insertIdx_getElem_fin, map_mul]
2025-01-24 07:18:48 +00:00
rw [stat_ofFinset_of_insertAndContractLiftFinset]
simp only [exchangeSign_symm, instCommGroup.eq_1]
2025-01-24 07:18:48 +00:00
· rw [succAbove_mem_insertAndContractLiftFinset]
simp only [signFinset, Finset.mem_filter, Finset.mem_univ, true_and]
simp_all only [Nat.succ_eq_add_one, and_true, false_and, not_false_eq_true, not_lt,
true_and]
apply Or.inl
simpa [uncontracted, -Finset.coe_mem] using j.2
· simp_all
· rename_i h1
rw [if_neg]
2025-01-24 07:18:48 +00:00
rw [stat_ofFinset_of_insertAndContractLiftFinset]
simp_all
2025-02-03 11:28:14 +00:00
lemma signInsertSomeProd_eq_one_if (φ : 𝓕.FieldOp) (φs : List 𝓕.FieldOp)
(φsΛ : WickContraction φs.length) (i : Fin φs.length.succ) (j : φsΛ.uncontracted)
(hφj : (𝓕 |>ₛ φ) = (𝓕 |>ₛ φs[j.1])) :
φsΛ.signInsertSomeProd φ φs i j =
∏ (a : φsΛ.1),
if (φsΛ.fstFieldOfContract a) < j
∧ (i.succAbove (φsΛ.fstFieldOfContract a) < i ∧ i < i.succAbove (φsΛ.sndFieldOfContract a)
j < (φsΛ.sndFieldOfContract a) ∧ ¬ i.succAbove (φsΛ.fstFieldOfContract a) < i)
then
𝓢(𝓕 |>ₛ φ, 𝓕 |>ₛ φs[φsΛ.sndFieldOfContract a])
else
1 := by
rw [signInsertSomeProd]
congr
funext a
split
· rename_i h
simp only [instCommGroup.eq_1, Fin.getElem_fin, h, Nat.succ_eq_add_one, and_self,
not_true_eq_false, and_false, or_false, ↓reduceIte]
· rename_i h
split
· rename_i h1
simp only [instCommGroup.eq_1, Fin.getElem_fin, h1, Nat.succ_eq_add_one, false_and,
not_false_eq_true, and_self, or_true, ↓reduceIte]
congr 1
exact congrArg (⇑exchangeSign) (id (Eq.symm hφj))
· rename_i h1
simp only [Nat.succ_eq_add_one, not_lt, instCommGroup.eq_1, Fin.getElem_fin]
rw [if_neg]
simp_all only [Fin.getElem_fin, Nat.succ_eq_add_one, not_and, not_lt, not_le, not_or,
implies_true, and_true]
omega
2025-02-03 11:28:14 +00:00
lemma signInsertSomeProd_eq_prod_prod (φ : 𝓕.FieldOp) (φs : List 𝓕.FieldOp)
(φsΛ : WickContraction φs.length)
(i : Fin φs.length.succ) (j : φsΛ.uncontracted) (hφj : (𝓕 |>ₛ φ) = (𝓕 |>ₛ φs[j.1]))
(hg : GradingCompliant φs φsΛ) :
φsΛ.signInsertSomeProd φ φs i j =
∏ (a : φsΛ.1), ∏ (x : a.1), if x.1 < j
∧ (i.succAbove x.1 < i ∧
i < i.succAbove ((φsΛ.getDual? x.1).get (getDual?_isSome_of_mem φsΛ a x))
j < ((φsΛ.getDual? x.1).get (getDual?_isSome_of_mem φsΛ a x)) ∧ ¬ i.succAbove x < i)
then
𝓢(𝓕 |>ₛ φ, 𝓕 |>ₛ φs[x.1])
else
1 := by
rw [signInsertSomeProd_eq_one_if]
congr
funext a
rw [prod_finset_eq_mul_fst_snd]
nth_rewrite 3 [if_neg]
· simp only [Nat.succ_eq_add_one, not_lt, instCommGroup.eq_1, Fin.getElem_fin,
fstFieldOfContract_getDual?, Option.get_some, mul_one]
congr 1
erw [hg a]
simp
· simp only [Nat.succ_eq_add_one, sndFieldOfContract_getDual?, Option.get_some, not_lt, not_and,
not_or, not_le]
intro h1
have ha := fstFieldOfContract_lt_sndFieldOfContract φsΛ a
apply And.intro
· intro hi
2025-01-24 11:25:22 +00:00
have hx := (Fin.succAbove_lt_succAbove_iff (p := i)).mpr ha
omega
· omega
simp [hφj]
2025-02-03 11:28:14 +00:00
lemma signInsertSomeProd_eq_prod_fin (φ : 𝓕.FieldOp) (φs : List 𝓕.FieldOp)
(φsΛ : WickContraction φs.length)
(i : Fin φs.length.succ) (j : φsΛ.uncontracted) (hφj : (𝓕 |>ₛ φ) = (𝓕 |>ₛ φs[j.1]))
(hg : GradingCompliant φs φsΛ) :
φsΛ.signInsertSomeProd φ φs i j =
∏ (x : Fin φs.length),
if h : (φsΛ.getDual? x).isSome then
if x < j ∧ (i.succAbove x < i ∧ i < i.succAbove ((φsΛ.getDual? x).get h)
j < ((φsΛ.getDual? x).get h) ∧ ¬ i.succAbove x < i)
then 𝓢(𝓕 |>ₛ φ, 𝓕 |>ₛ φs[x.1])
else 1
else 1 := by
rw [signInsertSomeProd_eq_prod_prod]
rw [Finset.prod_sigma']
erw [← φsΛ.sigmaContractedEquiv.symm.prod_comp]
let e2 : Fin φs.length ≃ {x // (φsΛ.getDual? x).isSome} ⊕ {x // ¬ (φsΛ.getDual? x).isSome} := by
exact (Equiv.sumCompl fun a => (φsΛ.getDual? a).isSome = true).symm
rw [← e2.symm.prod_comp]
simp only [instCommGroup.eq_1, Fin.getElem_fin, Fintype.prod_sum_type]
conv_rhs =>
rhs
enter [2, a]
rw [dif_neg (by simpa [e2] using a.2)]
conv_rhs =>
lhs
enter [2, a]
rw [dif_pos (by simpa [e2] using a.2)]
simp only [Nat.succ_eq_add_one, not_lt, Equiv.symm_symm, Equiv.sumCompl_apply_inl,
Finset.prod_const_one, mul_one, e2]
rfl
simp only [hφj, Fin.getElem_fin]
exact hg
2025-02-03 11:28:14 +00:00
lemma signInsertSomeProd_eq_list (φ : 𝓕.FieldOp) (φs : List 𝓕.FieldOp)
(φsΛ : WickContraction φs.length)
(i : Fin φs.length.succ) (j : φsΛ.uncontracted) (hφj : (𝓕 |>ₛ φ) = (𝓕 |>ₛ φs[j.1]))
(hg : GradingCompliant φs φsΛ) :
φsΛ.signInsertSomeProd φ φs i j =
2025-01-24 11:25:22 +00:00
𝓢(𝓕 |>ₛ φ, 𝓕 |>ₛ (List.filter (fun x => (φsΛ.getDual? x).isSome ∧
∀ (h : (φsΛ.getDual? x).isSome), x < j ∧ (i.succAbove x < i ∧
i < i.succAbove ((φsΛ.getDual? x).get h)
j < ((φsΛ.getDual? x).get h) ∧ ¬ i.succAbove x < i))
(List.finRange φs.length)).map φs.get) := by
rw [signInsertSomeProd_eq_prod_fin]
rw [FieldStatistic.ofList_map_eq_finset_prod]
rw [map_prod]
congr
funext x
split
· rename_i h
simp only [Nat.succ_eq_add_one, not_lt, instCommGroup.eq_1, Bool.decide_and,
Bool.decide_eq_true, List.mem_filter, List.mem_finRange, h, forall_true_left, Bool.decide_or,
Bool.true_and, Bool.and_eq_true, decide_eq_true_eq, Bool.or_eq_true, true_and,
Fin.getElem_fin]
split
· rename_i h1
simp [h1]
· rename_i h1
simp [h1]
· rename_i h
simp [h]
refine
List.Nodup.filter _ ?_
exact List.nodup_finRange φs.length
simp only [hφj, Fin.getElem_fin]
exact hg
2025-02-03 11:28:14 +00:00
lemma signInsertSomeProd_eq_finset (φ : 𝓕.FieldOp) (φs : List 𝓕.FieldOp)
(φsΛ : WickContraction φs.length)
(i : Fin φs.length.succ) (j : φsΛ.uncontracted) (hφj : (𝓕 |>ₛ φ) = (𝓕 |>ₛ φs[j.1]))
(hg : GradingCompliant φs φsΛ) :
φsΛ.signInsertSomeProd φ φs i j =
𝓢(𝓕 |>ₛ φ, 𝓕 |>ₛ ⟨φs.get, (Finset.univ.filter (fun x => (φsΛ.getDual? x).isSome ∧
∀ (h : (φsΛ.getDual? x).isSome),
x < j ∧ (i.succAbove x < i ∧ i < i.succAbove ((φsΛ.getDual? x).get h)
j < ((φsΛ.getDual? x).get h) ∧ ¬ i.succAbove x < i)))⟩) := by
rw [signInsertSomeProd_eq_prod_fin]
rw [ofFinset_eq_prod]
rw [map_prod]
congr
funext x
split
· rename_i h
simp only [Nat.succ_eq_add_one, not_lt, instCommGroup.eq_1, Finset.mem_filter, Finset.mem_univ,
h, forall_true_left, true_and, Fin.getElem_fin]
split
· rename_i h1
simp [h1]
· rename_i h1
simp [h1]
· rename_i h
simp [h]
simp only [hφj, Fin.getElem_fin]
exact hg
2025-02-03 11:28:14 +00:00
lemma signInsertSomeCoef_if (φ : 𝓕.FieldOp) (φs : List 𝓕.FieldOp) (φsΛ : WickContraction φs.length)
(i : Fin φs.length.succ) (j : φsΛ.uncontracted) (hφj : (𝓕 |>ₛ φ) = (𝓕 |>ₛ φs[j.1])) :
φsΛ.signInsertSomeCoef φ φs i j =
if i < i.succAbove j then
𝓢(𝓕 |>ₛ φ, 𝓕 |>ₛ ⟨(φs.insertIdx i φ).get,
(signFinset (φsΛ ↩Λ φ i (some j)) (finCongr (insertIdx_length_fin φ φs i).symm i)
(finCongr (insertIdx_length_fin φ φs i).symm (i.succAbove j)))⟩)
else
𝓢(𝓕 |>ₛ φ, 𝓕 |>ₛ ⟨(φs.insertIdx i φ).get,
signFinset (φsΛ ↩Λ φ i (some j))
(finCongr (insertIdx_length_fin φ φs i).symm (i.succAbove j))
(finCongr (insertIdx_length_fin φ φs i).symm i)⟩) := by
simp only [signInsertSomeCoef, instCommGroup.eq_1, Nat.succ_eq_add_one,
2025-01-24 07:18:48 +00:00
insertAndContract_sndFieldOfContract_some_incl, finCongr_apply, Fin.getElem_fin,
insertAndContract_fstFieldOfContract_some_incl]
split
· simp [hφj]
· simp [hφj]
lemma stat_signFinset_insert_some_self_fst
2025-02-03 11:28:14 +00:00
(φ : 𝓕.FieldOp) (φs : List 𝓕.FieldOp) (φsΛ : WickContraction φs.length)
(i : Fin φs.length.succ) (j : φsΛ.uncontracted) :
(𝓕 |>ₛ ⟨(φs.insertIdx i φ).get,
(signFinset (φsΛ ↩Λ φ i (some j)) (finCongr (insertIdx_length_fin φ φs i).symm i)
(finCongr (insertIdx_length_fin φ φs i).symm (i.succAbove j)))⟩) =
𝓕 |>ₛ ⟨φs.get,
(Finset.univ.filter (fun x => i < i.succAbove x ∧ x < j ∧ ((φsΛ.getDual? x = none)
∀ (h : (φsΛ.getDual? x).isSome), i < i.succAbove ((φsΛ.getDual? x).get h))))⟩ := by
rw [get_eq_insertIdx_succAbove φ _ i]
rw [ofFinset_finset_map]
swap
refine
(Equiv.comp_injective i.succAbove (finCongr (Eq.symm (insertIdx_length_fin φ φs i)))).mpr ?hi.a
exact Fin.succAbove_right_injective
congr
ext x
simp only [Nat.succ_eq_add_one, signFinset, finCongr_apply, Finset.mem_filter, Finset.mem_univ,
true_and, Finset.mem_map, Function.Embedding.coeFn_mk, Function.comp_apply]
rcases insert_fin_eq_self φ i x with hx | hx
· subst hx
2025-01-24 07:18:48 +00:00
simp only [Nat.succ_eq_add_one, lt_self_iff_false, insertAndContract_some_getDual?_self_eq,
reduceCtorEq, Option.isSome_some, Option.get_some, forall_const, false_or, and_self,
false_and, false_iff, not_exists, not_and, and_imp]
intro x hi hx
intro h
simp only [Fin.ext_iff, Fin.coe_cast]
simp only [Fin.val_eq_val]
exact Fin.succAbove_ne i x
· obtain ⟨x, hx⟩ := hx
subst hx
by_cases h : x = j.1
· subst h
2025-01-24 07:18:48 +00:00
simp only [Nat.succ_eq_add_one, lt_self_iff_false, insertAndContract_some_getDual?_some_eq,
reduceCtorEq, Option.isSome_some, Option.get_some, imp_false, not_true_eq_false, or_self,
and_self, and_false, false_iff, not_exists, not_and, and_imp]
intro x hi hx h0
simp only [Fin.ext_iff, Fin.coe_cast]
simp only [Fin.val_eq_val]
rw [Function.Injective.eq_iff]
omega
exact Fin.succAbove_right_injective
· simp only [Nat.succ_eq_add_one, ne_eq, h, not_false_eq_true,
2025-01-24 07:18:48 +00:00
insertAndContract_some_succAbove_getDual?_eq_option, Option.map_eq_none', Option.isSome_map']
rw [Fin.lt_def, Fin.lt_def]
simp only [Fin.coe_cast, Fin.val_fin_lt]
apply Iff.intro
· intro h
use x
simp only [h, true_and, and_true]
simp only [Option.get_map, Function.comp_apply] at h
apply And.intro (Fin.succAbove_lt_succAbove_iff.mp h.2.1)
have h2 := h.2.2
rcases h2 with h2 | h2
· simp [h2]
· apply Or.inr
intro h
have h2 := h2 h
simpa using h2
· intro h
obtain ⟨y, hy1, hy2⟩ := h
simp only [Fin.ext_iff, Fin.coe_cast] at hy2
simp only [Fin.val_eq_val] at hy2
2025-01-23 00:58:24 +01:00
rw [Function.Injective.eq_iff (Fin.succAbove_right_injective)] at hy2
subst hy2
simp only [hy1, true_and]
apply And.intro
· rw [@Fin.succAbove_lt_succAbove_iff]
omega
· have hy2 := hy1.2.2
rcases hy2 with hy2 | hy2
· simp [hy2]
· apply Or.inr
intro h
have hy2 := hy2 h
simpa [Option.get_map] using hy2
2025-02-03 11:28:14 +00:00
lemma stat_signFinset_insert_some_self_snd (φ : 𝓕.FieldOp) (φs : List 𝓕.FieldOp)
(φsΛ : WickContraction φs.length) (i : Fin φs.length.succ) (j : φsΛ.uncontracted) :
(𝓕 |>ₛ ⟨(φs.insertIdx i φ).get,
(signFinset (φsΛ ↩Λ φ i (some j))
(finCongr (insertIdx_length_fin φ φs i).symm (i.succAbove j))
(finCongr (insertIdx_length_fin φ φs i).symm i))⟩) =
𝓕 |>ₛ ⟨φs.get,
(Finset.univ.filter (fun x => j < x ∧ i.succAbove x < i ∧ ((φsΛ.getDual? x = none)
∀ (h : (φsΛ.getDual? x).isSome), j < ((φsΛ.getDual? x).get h))))⟩ := by
rw [get_eq_insertIdx_succAbove φ _ i, ofFinset_finset_map]
swap
refine
(Equiv.comp_injective i.succAbove (finCongr (Eq.symm (insertIdx_length_fin φ φs i)))).mpr ?hi.a
exact Fin.succAbove_right_injective
congr
ext x
simp only [Nat.succ_eq_add_one, signFinset, finCongr_apply, Finset.mem_filter, Finset.mem_univ,
true_and, Finset.mem_map, Function.Embedding.coeFn_mk, Function.comp_apply]
rcases insert_fin_eq_self φ i x with hx | hx
· subst hx
2025-01-24 07:18:48 +00:00
simp only [Nat.succ_eq_add_one, lt_self_iff_false, insertAndContract_some_getDual?_self_eq,
reduceCtorEq, Option.isSome_some, Option.get_some, imp_false, not_true_eq_false, or_self,
and_self, and_false, false_iff, not_exists, not_and, and_imp]
intro x hi hx
intro h
simp only [Fin.ext_iff, Fin.coe_cast]
simp only [Fin.val_eq_val]
exact Fin.succAbove_ne i x
· obtain ⟨x, hx⟩ := hx
subst hx
by_cases h : x = j.1
· subst h
2025-01-24 07:18:48 +00:00
simp only [Nat.succ_eq_add_one, lt_self_iff_false, insertAndContract_some_getDual?_some_eq,
reduceCtorEq, Option.isSome_some, Option.get_some, forall_const, false_or, and_self,
false_and, false_iff, not_exists, not_and, and_imp]
intro x hi hx h0
simp only [Fin.ext_iff, Fin.coe_cast]
simp only [Fin.val_eq_val]
rw [Function.Injective.eq_iff]
omega
exact Fin.succAbove_right_injective
· simp only [Nat.succ_eq_add_one, ne_eq, h, not_false_eq_true,
2025-01-24 07:18:48 +00:00
insertAndContract_some_succAbove_getDual?_eq_option, Option.map_eq_none', Option.isSome_map']
rw [Fin.lt_def, Fin.lt_def]
simp only [Fin.coe_cast, Fin.val_fin_lt]
apply Iff.intro
· intro h
use x
simp only [h, true_and, and_true]
simp only [Option.get_map, Function.comp_apply] at h
apply And.intro (Fin.succAbove_lt_succAbove_iff.mp h.1)
have h2 := h.2.2
rcases h2 with h2 | h2
· simp [h2]
· apply Or.inr
intro h
have h2 := h2 h
rw [Fin.lt_def] at h2
simp only [Fin.coe_cast, Fin.val_fin_lt] at h2
exact Fin.succAbove_lt_succAbove_iff.mp h2
· intro h
obtain ⟨y, hy1, hy2⟩ := h
simp only [Fin.ext_iff, Fin.coe_cast] at hy2
simp only [Fin.val_eq_val] at hy2
2025-01-23 00:58:24 +01:00
rw [Function.Injective.eq_iff (Fin.succAbove_right_injective)] at hy2
subst hy2
simp only [hy1, true_and]
apply And.intro
· rw [@Fin.succAbove_lt_succAbove_iff]
omega
· have hy2 := hy1.2.2
rcases hy2 with hy2 | hy2
· simp [hy2]
· apply Or.inr
intro h
have hy2 := hy2 h
simp only [Fin.lt_def, Fin.coe_cast, gt_iff_lt]
simp only [Option.get_map, Function.comp_apply, Fin.coe_cast, Fin.val_fin_lt]
exact Fin.succAbove_lt_succAbove_iff.mpr hy2
2025-02-03 11:28:14 +00:00
lemma signInsertSomeCoef_eq_finset (φ : 𝓕.FieldOp) (φs : List 𝓕.FieldOp)
(φsΛ : WickContraction φs.length) (i : Fin φs.length.succ) (j : φsΛ.uncontracted)
(hφj : (𝓕 |>ₛ φ) = (𝓕 |>ₛ φs[j.1])) : φsΛ.signInsertSomeCoef φ φs i j =
if i < i.succAbove j then
𝓢(𝓕 |>ₛ φ, 𝓕 |>ₛ ⟨φs.get,
(Finset.univ.filter (fun x => i < i.succAbove x ∧ x < j ∧ ((φsΛ.getDual? x = none)
∀ (h : (φsΛ.getDual? x).isSome), i < i.succAbove ((φsΛ.getDual? x).get h))))⟩)
else
𝓢(𝓕 |>ₛ φ, 𝓕 |>ₛ ⟨φs.get,
(Finset.univ.filter (fun x => j < x ∧ i.succAbove x < i ∧ ((φsΛ.getDual? x = none)
∀ (h : (φsΛ.getDual? x).isSome), j < ((φsΛ.getDual? x).get h))))⟩) := by
rw [signInsertSomeCoef_if, stat_signFinset_insert_some_self_snd,
stat_signFinset_insert_some_self_fst]
simp [hφj]
2025-02-03 10:47:18 +00:00
/-- The change in sign when inserting a field `φ` at `i` into `φsΛ` and
contracting it with `k` (`k < i`) is equal
to the sign got by moving `φ` through each field `φ₀…φᵢ₋₁`
multiplied by the sign got moving `φ` through each uncontracted field `φ₀…φₖ`. -/
2025-02-03 11:28:14 +00:00
lemma signInsertSome_mul_filter_contracted_of_lt (φ : 𝓕.FieldOp) (φs : List 𝓕.FieldOp)
(φsΛ : WickContraction φs.length) (i : Fin φs.length.succ) (k : φsΛ.uncontracted)
(hk : i.succAbove k < i) (hg : GradingCompliant φs φsΛ ∧ (𝓕 |>ₛ φ) = 𝓕 |>ₛ φs[k.1]) :
signInsertSome φ φs φsΛ i k *
𝓢(𝓕 |>ₛ φ, 𝓕 |>ₛ ⟨φs.get, φsΛ.uncontracted.filter (fun x => x ≤ ↑k)⟩)
= 𝓢(𝓕 |>ₛ φ, 𝓕 |>ₛ ⟨φs.get, Finset.univ.filter (fun x => i.succAbove x < i)⟩) := by
rw [signInsertSome, signInsertSomeProd_eq_finset (hφj := hg.2) (hg := hg.1),
signInsertSomeCoef_eq_finset (hφj := hg.2), if_neg (by omega), ← map_mul, ← map_mul]
congr 1
rw [mul_eq_iff_eq_mul, ofFinset_union_disjoint]
swap
· /- Disjointness needed for `ofFinset_union_disjoint`. -/
rw [Finset.disjoint_filter]
intro j _ h
simp only [Nat.succ_eq_add_one, not_lt, not_and, not_forall, not_or, not_le]
intro h1
use h1
omega
rw [ofFinset_union, ← mul_eq_one_iff, ofFinset_union]
simp only [Nat.succ_eq_add_one, not_lt]
apply stat_ofFinset_eq_one_of_gradingCompliant _ _ _ hg.1
· /- The `c.getDual? i = none` case for `stat_ofFinset_eq_one_of_gradingCompliant`. -/
intro j hn
simp only [uncontracted, Finset.mem_sdiff, Finset.mem_union, Finset.mem_filter, Finset.mem_univ,
hn, Option.isSome_none, Bool.false_eq_true, IsEmpty.forall_iff, or_self, and_true, or_false,
true_and, and_self, Finset.mem_inter, not_and, not_lt, Classical.not_imp, not_le, and_imp]
intro h
rcases h with h | h
· simp only [h, or_true, isEmpty_Prop, not_le, IsEmpty.forall_iff, and_self]
· simp only [h, true_and]
refine And.intro ?_ (And.intro ?_ h.2)
· by_contra hkj
simp only [not_lt] at hkj
have h2 := h.2 hkj
apply Fin.ne_succAbove i j
have hij : i.succAbove j ≤ i.succAbove k.1 :=
Fin.succAbove_le_succAbove_iff.mpr hkj
omega
· have h1' := h.1
rcases h1' with h1' | h1'
· have hl := h.2 h1'
have hij : i.succAbove j ≤ i.succAbove k.1 :=
Fin.succAbove_le_succAbove_iff.mpr h1'
by_contra hn
apply Fin.ne_succAbove i j
omega
· exact h1'
· /- The `(c.getDual? i).isSome` case for `stat_ofFinset_eq_one_of_gradingCompliant`. -/
intro j hj
have hn : ¬ φsΛ.getDual? j = none := Option.isSome_iff_ne_none.mp hj
simp only [uncontracted, Finset.mem_sdiff, Finset.mem_union, Finset.mem_filter, Finset.mem_univ,
hn, hj, forall_true_left, false_or, true_and, and_false, false_and, Finset.mem_inter,
not_false_eq_true, and_true, not_and, not_lt, getDual?_getDual?_get_get, reduceCtorEq,
Option.isSome_some, Option.get_some, forall_const, and_imp]
intro h1 h2
have hijsucc' : i.succAbove ((φsΛ.getDual? j).get hj) ≠ i := Fin.succAbove_ne i _
have hkneqj : ↑k ≠ j := by
by_contra hkj
have hk := k.prop
simp only [uncontracted, Finset.mem_filter, Finset.mem_univ, true_and] at hk
simp_all
have hkneqgetdual : k.1 ≠ (φsΛ.getDual? j).get hj := by
by_contra hkj
have hk := k.prop
simp only [uncontracted, Finset.mem_filter, Finset.mem_univ, true_and] at hk
simp_all
by_cases hik : ↑k < j
· have hn : ¬ j < ↑k := by omega
simp only [hik, true_and, hn, false_and, or_false, and_imp, and_true] at h1 h2 ⊢
have hir : i.succAbove j < i := by
rcases h1 with h1 | h1
· simp [h1]
· simp [h1]
simp only [hir, true_and, or_true, forall_const] at h1 h2
have hnkdual : ¬ ↑k < (φsΛ.getDual? j).get hj := by
by_contra hn
have h2 := h2 hn
apply Fin.ne_succAbove i j
omega
simp only [hnkdual, IsEmpty.forall_iff, false_and, false_or, and_imp] at h2 ⊢
have hnkdual : (φsΛ.getDual? j).get hj < ↑k := by omega
have hi : i.succAbove ((φsΛ.getDual? j).get hj) < i.succAbove k := by
rw [@Fin.succAbove_lt_succAbove_iff]
omega
omega
· have ht : j < ↑k := by omega
have ht' : i.succAbove j < i.succAbove k := by
rw [@Fin.succAbove_lt_succAbove_iff]
omega
simp only [hik, false_and, ht, true_and, false_or, and_false, or_false, and_imp] at h1 h2 ⊢
by_cases hik : i.succAbove j < i
· simp_all only [Fin.getElem_fin, ne_eq, not_lt, true_and, or_true]
have hn : ¬ i ≤ i.succAbove j := by omega
simp_all only [and_false, or_false, imp_false, not_lt, Nat.succ_eq_add_one, not_le]
apply And.intro
· apply Or.inr
omega
· intro h1 h2 h3
omega
· simp_all only [Fin.getElem_fin, ne_eq, not_lt, false_and, false_or, or_false, and_self,
or_true, imp_self]
omega
2025-02-03 10:47:18 +00:00
/-- The change in sign when inserting a field `φ` at `i` into `φsΛ` and
contracting it with `k` (`i < k`) is equal
to the sign got by moving `φ` through each field `φ₀…φᵢ₋₁`
multiplied by the sign got moving `φ` through each uncontracted field `φ₀…φₖ₋₁`. -/
2025-02-03 11:28:14 +00:00
lemma signInsertSome_mul_filter_contracted_of_not_lt (φ : 𝓕.FieldOp) (φs : List 𝓕.FieldOp)
(φsΛ : WickContraction φs.length) (i : Fin φs.length.succ) (k : φsΛ.uncontracted)
(hk : ¬ i.succAbove k < i) (hg : GradingCompliant φs φsΛ ∧ (𝓕 |>ₛ φ) = 𝓕 |>ₛ φs[k.1]) :
signInsertSome φ φs φsΛ i k *
𝓢(𝓕 |>ₛ φ, 𝓕 |>ₛ ⟨φs.get, φsΛ.uncontracted.filter (fun x => x < ↑k)⟩)
= 𝓢(𝓕 |>ₛ φ, 𝓕 |>ₛ ⟨φs.get, Finset.univ.filter (fun x => i.succAbove x < i)⟩) := by
2025-01-23 00:58:24 +01:00
have hik : i.succAbove ↑k ≠ i := Fin.succAbove_ne i ↑k
rw [signInsertSome, signInsertSomeProd_eq_finset (hφj := hg.2) (hg := hg.1),
signInsertSomeCoef_eq_finset (hφj := hg.2), if_pos (by omega), ← map_mul, ← map_mul]
congr 1
rw [mul_eq_iff_eq_mul, ofFinset_union, ofFinset_union]
apply (mul_eq_one_iff _ _).mp
rw [ofFinset_union]
simp only [Nat.succ_eq_add_one, not_lt]
apply stat_ofFinset_eq_one_of_gradingCompliant _ _ _ hg.1
· /- The `c.getDual? i = none` case for `stat_ofFinset_eq_one_of_gradingCompliant`. -/
intro j hj
2025-01-23 00:58:24 +01:00
have hijsucc : i.succAbove j ≠ i := Fin.succAbove_ne i j
simp only [uncontracted, Finset.mem_sdiff, Finset.mem_union, Finset.mem_filter, Finset.mem_univ,
hj, Option.isSome_none, Bool.false_eq_true, IsEmpty.forall_iff, or_self, and_true, true_and,
and_false, or_false, Finset.mem_inter, not_false_eq_true, and_self, not_and, not_lt,
Classical.not_imp, not_le, and_imp]
intro h
have hij : i < i.succAbove j := by
rcases h with h | h
· exact h.1
· rcases h.1 with h1 | h1
· omega
· have hik : i.succAbove k.1 ≤ i.succAbove j := by
rw [Fin.succAbove_le_succAbove_iff]
omega
omega
simp only [hij, true_and] at h ⊢
omega
· /- The `(c.getDual? i).isSome` case for `stat_ofFinset_eq_one_of_gradingCompliant`. -/
intro j hj
have hn : ¬ φsΛ.getDual? j = none := Option.isSome_iff_ne_none.mp hj
2025-01-23 00:58:24 +01:00
have hijSuc : i.succAbove j ≠ i := Fin.succAbove_ne i j
have hkneqj : ↑k ≠ j := by
by_contra hkj
have hk := k.prop
simp only [uncontracted, Finset.mem_filter, Finset.mem_univ, true_and] at hk
simp_all
have hkneqgetdual : k.1 ≠ (φsΛ.getDual? j).get hj := by
by_contra hkj
have hk := k.prop
simp only [uncontracted, Finset.mem_filter, Finset.mem_univ, true_and] at hk
simp_all
simp only [uncontracted, Finset.mem_sdiff, Finset.mem_union, Finset.mem_filter, Finset.mem_univ,
hn, hj, forall_true_left, false_or, true_and, Finset.mem_inter, not_and, not_or, not_lt,
not_le, and_imp, and_false, false_and, not_false_eq_true, and_true, getDual?_getDual?_get_get,
reduceCtorEq, Option.isSome_some, Option.get_some, forall_const]
by_cases hik : ↑k < j
· have hikn : ¬ j < k.1 := by omega
have hksucc : i.succAbove k.1 < i.succAbove j := by
rw [Fin.succAbove_lt_succAbove_iff]
omega
have hkn : i < i.succAbove j := by omega
have hl : ¬ i.succAbove j < i := by omega
simp only [hkn, hikn, false_and, and_false, hl, false_or, or_self, IsEmpty.forall_iff,
imp_false, not_lt, true_and, implies_true, imp_self, and_true, forall_const, hik,
imp_forall_iff_forall]
· have hikn : j < k.1 := by omega
have hksucc : i.succAbove j < i.succAbove k.1 := by
rw [Fin.succAbove_lt_succAbove_iff]
omega
simp only [hikn, true_and, forall_const, hik, false_and, or_false, IsEmpty.forall_iff,
and_true]
by_cases hij: i < i.succAbove j
· simp only [hij, true_and, forall_const, and_true, imp_forall_iff_forall]
have hijn : ¬ i.succAbove j < i := by omega
simp only [hijn, false_and, false_or, IsEmpty.forall_iff, imp_false, not_lt, true_and,
or_false, and_imp]
have hijle : i ≤ i.succAbove j := by omega
simp only [hijle, and_true, implies_true, forall_const]
intro h1 h2
apply And.intro
· rcases h1 with h1 | h1
· apply Or.inl
omega
· apply Or.inl
have hi : i.succAbove k.1 < i.succAbove ((φsΛ.getDual? j).get hj) := by
rw [Fin.succAbove_lt_succAbove_iff]
omega
apply And.intro
· apply Or.inr
apply And.intro
· omega
· omega
· omega
· intro h3 h4
omega
· simp only [hij, false_and, false_or, IsEmpty.forall_iff, and_true, forall_const, and_false,
or_self, implies_true]
have hijn : i.succAbove j < i := by omega
have hijn' : ¬ i ≤ i.succAbove j := by omega
simp only [hijn, true_and, hijn', and_false, or_false, or_true, imp_false, not_lt,
forall_const]
exact fun h => lt_of_le_of_ne h (Fin.succAbove_ne i ((φsΛ.getDual? j).get hj))
end WickContraction