WickContraction.fromInvolution
defimported Lean
The Wick contraction formed by an involution f of Fin n by taking as the contracted sets of the contraction the orbits of f of cardinality 2.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in variable {𝓕 : FieldSpecification} in variable {n : ℕ} (c : WickContraction n) in def WickContraction.fromInvolution (f : {f : Fin n → Fin n // Function.Involutive f}) : WickContraction n
- Defined in
- Physlib, `WickContraction.fromInvolution`
- Lean proof
- By Joseph Tooby-Smith, from github.com/leanprover-community/physlib at
e411c6e89692(Copyright (c) 2025 Joseph Tooby-Smith. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.WickContraction.fromInvolution← WickContraction.fromInvolution (Physlib/QFT/PerturbationTheory/WickContraction/Involutions.lean:36): verbatim
- Verified
- 10 Oct 2026
- Axioms
- none listed
- Built on 23
- WickContraction.sndFieldOfContract_congrWickContraction.sndFieldOfContract_congr
- WickContraction.getDual?_get_self_neqWickContraction.getDual?_get_self_neq
- WickContraction.fstFieldOfContract_congrWickContraction.fstFieldOfContract_congr
- WickContractionGiven a natural number
n, which will correspond to the number of fields needing contracting, a Wick contraction is a finite set of pairs… - WickContraction.congr_trans_applyWickContraction.congr_trans_apply
- WickContraction.congr_transWickContraction.congr_trans
- WickContraction.card_congrWickContraction.card_congr
- WickContraction.sndFieldOfContract_memWickContraction.sndFieldOfContract_mem
- WickContraction.sndFieldOfContract_getDual?WickContraction.sndFieldOfContract_getDual?
- WickContraction.getDual?_get_self_memWickContraction.getDual?_get_self_mem
- WickContraction.getDual?_one_eq_noneWickContraction.getDual?_one_eq_none
- WickContraction.self_ne_getDual?_getWickContraction.self_ne_getDual?_get
- WickContraction.self_getDual?_get_memWickContraction.self_getDual?_get_mem
- WickContraction.congr_reflWickContraction.congr_refl
- WickContraction.instDecidableEqWick contractions are decidable.
- WickContraction.fstFieldOfContract_getDual?WickContraction.fstFieldOfContract_getDual?
- WickContraction.fstFieldOfContract_memWickContraction.fstFieldOfContract_mem
- WickContraction.getDual?_getDual?_get_getWickContraction.getDual?_getDual?_get_get
- WickContraction.congrLift_rflWickContraction.congrLift_rfl
- FieldSpecificationThe structure
FieldSpecificationis defined to have the following content: - A typeFieldwhose elements are the constituent fields of… - perm_card_left_gt_leFor a permutation s of {0, ..., n-1} and a position x with x <= s(x), the number of i < x with s(i) > s(x) is at most the number of j > x…
- catch_up_best_map_ne_loss_iffThe best outcome over a mapped list is not a loss if and only if some element maps to something other than a loss.
- catch_up_value_triple_win_of_sum_ltFor any natural numbers x < y < z such that x + y < z, the game value of Catch-Up played on the three-element set {x, y, z} is…
- Used by 6
- WickContraction.toInvolution_fromInvolutionWickContraction.toInvolution_fromInvolution
- WickContraction.fromInvolution_toInvolutionWickContraction.fromInvolution_toInvolution
- WickContraction.equivInvolutionThe equivalence between Wick contractions for
nand involutions ofFin n. The involution ofFin nassociated with a Wick contraction… - WickContraction.fromInvolution_getDual?_isSomeWickContraction.fromInvolution_getDual?_isSome
- WickContraction.fromInvolution_getDual?_eq_someWickContraction.fromInvolution_getDual?_eq_some
- WickContraction.fromInvolution_getDual?_getWickContraction.fromInvolution_getDual?_get
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in variable {𝓕 : FieldSpecification} in variable {n : ℕ} (c : WickContraction n) in /-- The Wick contraction formed by an involution `f` of `Fin n` by taking as the contracted sets of the contraction the orbits of `f` of cardinality `2`. -/ def WickContraction.fromInvolution (f : {f : Fin n → Fin n // Function.Involutive f}) : WickContraction n := ⟨Finset.univ.filter (fun a => a.card = 2 ∧ ∃ i, {i, f.1 i} = a), by intro a simp only [Finset.mem_filter, Finset.mem_univ, true_and, and_imp, forall_exists_index] intro h1 _ _ exact h1, by intro a ha b hb simp only [Finset.mem_filter, Finset.mem_univ, true_and] at ha hb obtain ⟨i, hai⟩ := ha.2 subst hai obtain ⟨j, hbj⟩ := hb.2 subst hbj by_cases h : i = j · subst h simp · by_cases hi : i = f.1 j · subst hi simp only [Finset.disjoint_insert_right, Finset.mem_insert, Finset.mem_singleton, not_or, Finset.disjoint_singleton_right, true_or, not_true_eq_false, and_false, or_false] rw [f.2] rw [@Finset.pair_comm] · apply Or.inr simp only [Finset.disjoint_insert_right, Finset.mem_insert, Finset.mem_singleton, not_or, Finset.disjoint_singleton_right] apply And.intro · apply And.intro · exact fun a => h a.symm · by_contra hn subst hn rw [f.2 i] at hi simp at hi · apply And.intro · exact fun a => hi a.symm · rw [Function.Injective.eq_iff] exact fun a => h (id (Eq.symm a)) exact Function.Involutive.injective f.2⟩