Exact Lean source
TensorWedge
formalization/Cloning/TensorWedge.lean
Source hash: 8f7dd6f9fc188dad552691c535897e4bd8a457975a595b805683ffd9ff813aa5
Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.
The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.
Declarations in this module
definition
Cloning.TensorLie.tensorMultilineartheorem Cloning.TensorLie.tensorMultilinear_applydefinition Cloning.TensorLie.wedgeTensortheorem Cloning.TensorLie.wedgeTensor_applytheorem Cloning.TensorLie.collectiveGenerator_wedgeTensortheorem Cloning.TensorLie.tensorVector_basistheorem Cloning.TensorLie.wedgeTensor_basis_coefficienttheorem Cloning.TensorLie.wedgeTensor_basis_ne_zerotheorem Cloning.TensorLie.matrixUnit_basis1import Cloning.TensorLieLeibniz
2import Mathlib.LinearAlgebra.Alternating.Basic
3
4/-! Actual antisymmetric tensors and the matrix-unit action on their factors. -/
5noncomputable section
6open scoped BigOperators InnerProductSpace ComplexOrder
7namespace Cloning.TensorLie
8open Cloning.PCT
9set_option maxHeartbeats 1000000
10set_option backward.isDefEq.respectTransparency false
11variable {A : Type*} [Fintype A] [DecidableEq A] {n : ℕ}
12
13private theorem tensorVector_update_apply [DecidableEq (Fin n)] (v : Fin n → Register A) (i : Fin n)
14 (x : Register A) (w : Fin n → A) :
15 tensorVector (Function.update v i x) w =
16 x (w i) * ∏ j ∈ Finset.univ.erase i, v j (w j) := by
17 rw [tensorVector_apply, ← Finset.mul_prod_erase Finset.univ
18 (fun j => Function.update v i x j (w j)) (Finset.mem_univ i)]
19 simp only [Function.update_self]
20 congr 1
21 apply Finset.prod_congr rfl
22 intro j hj
23 rw [Function.update_of_ne (Finset.mem_erase.mp hj).1]
24
25/-- The literal product of one-particle coefficients, packaged multilinearly. -/
26def tensorMultilinear (n : ℕ) :
27 MultilinearMap ℂ (fun _ : Fin n => Register A) (TensorRegister n A) where
28 toFun := tensorVector
29 map_update_add' v i x y := by
30 ext w
31 simp only [tensorVector_update_apply, lp.coeFn_add, Pi.add_apply, add_mul]
32 map_update_smul' v i c x := by
33 ext w
34 simp only [tensorVector_update_apply, lp.coeFn_smul, Pi.smul_apply, smul_eq_mul, mul_assoc]
35
36@[simp] theorem tensorMultilinear_apply (v : Fin n → Register A) :
37 tensorMultilinear n v = tensorVector v := rfl
38
39/-- Unnormalized antisymmetric tensor, with every sign and permutation explicit. -/
40def wedgeTensor (n : ℕ) : (Register A) [⋀^Fin n]→ₗ[ℂ] TensorRegister n A :=
41 (tensorMultilinear n).alternatization
42
43theorem wedgeTensor_apply (v : Fin n → Register A) :
44 wedgeTensor n v = ∑ σ : Equiv.Perm (Fin n),
45 Equiv.Perm.sign σ • tensorVector (fun i => v (σ i)) := by
46 simp [wedgeTensor, MultilinearMap.alternatization_apply,
47 MultilinearMap.domDomCongr_apply]
48
49/-- The collective tensor action is the alternating Leibniz sum. -/
50theorem collectiveGenerator_wedgeTensor (a b : A) (v : Fin n → Register A) :
51 collectiveGenerator n a b (wedgeTensor n v) =
52 ∑ i : Fin n, wedgeTensor n (Function.update v i
53 (InnerProductSpace.rankOne ℂ (registerBasis A a) (registerBasis A b) (v i))) := by
54 rw [wedgeTensor_apply, map_sum]
55 simp only [map_zsmul_unit, collectiveGenerator_tensorVector, Finset.smul_sum]
56 simp_rw [wedgeTensor_apply]
57 conv_rhs => rw [Finset.sum_comm]
58 apply Finset.sum_congr rfl
59 intro σ _
60 conv_rhs => rw [← Equiv.sum_comp σ]
61 apply Finset.sum_congr rfl
62 intro i _
63 congr 2
64 funext j
65 by_cases h : j = i
66 · subst j; simp
67 · simp [Function.update_of_ne h, Function.update_of_ne (σ.injective.ne h)]
68
69@[simp] theorem tensorVector_basis (f : Fin n → A) :
70 tensorVector (fun i => registerBasis A (f i)) = registerBasis (Fin n → A) f := by
71 ext w
72 simp only [tensorVector_apply, registerBasis_apply, lp.single_apply, Pi.single_apply]
73 by_cases h : w = f
74 · subst w; simp
75 · rw [if_neg h]
76 obtain ⟨i, hi⟩ : ∃ i, w i ≠ f i := by
77 by_contra hn
78 exact h (funext (fun i => not_not.mp (not_exists.mp hn i)))
79 exact Finset.prod_eq_zero (Finset.mem_univ i) (if_neg hi)
80
81/-- Injective factors have an explicit nonzero coefficient, including the empty tensor. -/
82theorem wedgeTensor_basis_coefficient (f : Fin n ↪ A) :
83 wedgeTensor n (fun i => registerBasis A (f i)) f = 1 := by
84 rw [wedgeTensor_apply]
85 simp only [tensorVector_basis, lp.coeFn_sum, Finset.sum_apply]
86 rw [Finset.sum_eq_single (Equiv.refl (Fin n))]
87 · simp [registerBasis_apply]
88 · intro σ _ hσ
89 have hf : (fun i => f (σ i)) ≠ f := by
90 intro he
91 apply hσ
92 apply Equiv.ext
93 intro i
94 exact f.injective (congrFun he i)
95 simp [registerBasis_apply, lp.single_apply, hf, Ne.symm hf, Units.smul_def]
96 · simp
97
98theorem wedgeTensor_basis_ne_zero (f : Fin n ↪ A) :
99 wedgeTensor n (fun i => registerBasis A (f i)) ≠ 0 := by
100 intro h
101 have hh := wedgeTensor_basis_coefficient f
102 rw [h] at hh
103 simpa using hh
104
105@[simp] theorem matrixUnit_basis (a b c : A) :
106 InnerProductSpace.rankOne ℂ (registerBasis A a) (registerBasis A b)
107 (registerBasis A c) = if b = c then registerBasis A a else 0 := by
108 rw [InnerProductSpace.rankOne_apply,
109 orthonormal_iff_ite.mp (registerBasis A).orthonormal]
110 split_ifs <;> simp_all
111
112end Cloning.TensorLie