Exact Lean source
GeneralSymmetricProjector
formalization/Cloning/GeneralSymmetricProjector.lean
Source hash: 953df1a3b95511e97d03643261225cba6d3150fd619983044392463351db7af0
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.GeneralSymmetricOccupation.projectortheorem Cloning.GeneralSymmetricOccupation.projector_applytheorem Cloning.GeneralSymmetricOccupation.column_mem_symmetrictheorem Cloning.GeneralSymmetricOccupation.projector_mem_symmetrictheorem Cloning.GeneralSymmetricOccupation.inner_columntheorem Cloning.GeneralSymmetricOccupation.projector_coefficienttheorem Cloning.GeneralSymmetricOccupation.projector_eq_selftheorem Cloning.GeneralSymmetricOccupation.projector_idempotenttheorem Cloning.GeneralSymmetricOccupation.projector_selfAdjointtheorem Cloning.GeneralSymmetricOccupation.projector_isStarProjectiontheorem Cloning.GeneralSymmetricOccupation.projector_rangetheorem Cloning.GeneralSymmetricOccupation.projector_eq_starProjection1import Cloning.GeneralSymmetricOccupation
2import Mathlib.Analysis.InnerProductSpace.Projection.FiniteDimensional
3
4/-! # The physical symmetric projector for arbitrary one-particle dimension
5
6The rank-one sum of the constructed occupation columns is proved to be the
7orthogonal projector onto the invariant subspace of all tensor-slot
8permutations. Its computational-basis action is the average over exactly one
9occupation fiber.
10-/
11
12noncomputable section
13set_option synthInstance.maxHeartbeats 200000
14set_option maxHeartbeats 1000000
15open scoped BigOperators InnerProductSpace
16
17namespace Cloning.GeneralSymmetricOccupation
18
19/-- Explicit occupation-basis resolution of the symmetric tensor projector. -/
20def projector (L d : ℕ) : TensorSpace L d →L[ℂ] TensorSpace L d :=
21 ∑ q : Occupation L d, InnerProductSpace.rankOne ℂ (column q) (column q)
22
23theorem projector_apply {L d : ℕ} (v : TensorSpace L d) :
24 projector L d v = ∑ q : Occupation L d, ⟪column q, v⟫_ℂ • column q := by
25 simp [projector, ContinuousLinearMap.sum_apply, InnerProductSpace.rankOne_apply]
26
27theorem column_mem_symmetric {L d : ℕ} (q : Occupation L d) :
28 column q ∈ symmetricSubspace L d := by
29 intro w σ
30 simp only [column_apply, label_permute]
31
32theorem projector_mem_symmetric {L d : ℕ} (v : TensorSpace L d) :
33 projector L d v ∈ symmetricSubspace L d := by
34 rw [projector_apply]
35 exact Submodule.sum_mem _ (fun q hq => Submodule.smul_mem _ _ (column_mem_symmetric q))
36
37theorem inner_column {L d : ℕ} (q : Occupation L d) (v : TensorSpace L d) :
38 ⟪column q, v⟫_ℂ =
39 (Real.sqrt (multiplicity q : ℝ) : ℂ)⁻¹ *
40 ∑ w ∈ Finset.univ.filter (fun w : Word L d => label w = q), v w := by
41 classical
42 rw [lp.inner_eq_tsum, tsum_fintype]
43 simp only [column_apply, RCLike.inner_apply]
44 rw [Finset.mul_sum]
45 rw [Finset.sum_filter]
46 apply Finset.sum_congr rfl
47 intro w hw
48 split_ifs with h
49 · simp [mul_comm]
50 · simp
51
52/-- Every computational coefficient is the average over its occupation fiber. -/
53theorem projector_coefficient {L d : ℕ} (v : TensorSpace L d) (w : Word L d) :
54 projector L d v w = (multiplicity (label w) : ℂ)⁻¹ *
55 ∑ z ∈ Finset.univ.filter (fun z : Word L d => label z = label w), v z := by
56 classical
57 rw [projector_apply]
58 simp only [lp.coeFn_sum, Finset.sum_apply, lp.coeFn_smul, Pi.smul_apply, smul_eq_mul]
59 rw [Finset.sum_eq_single (label w)]
60 · rw [column_apply, if_pos rfl, inner_column]
61 have hs : (Real.sqrt (multiplicity (label w) : ℝ) : ℂ) ^ 2 =
62 (multiplicity (label w) : ℂ) := by
63 rw [← Complex.ofReal_pow, Real.sq_sqrt (by positivity)]
64 norm_cast
65 rw [mul_assoc, mul_comm (_ : ℂ) ((Real.sqrt _ : ℂ)⁻¹), ← mul_assoc,
66 ← pow_two, inv_pow, hs]
67 · intro q hq hn
68 simp [column_apply, Ne.symm hn]
69 · simp
70
71theorem projector_eq_self {L d : ℕ} {v : TensorSpace L d}
72 (hv : v ∈ symmetricSubspace L d) : projector L d v = v := by
73 classical
74 ext w
75 rw [projector_coefficient]
76 have hs : (∑ z ∈ Finset.univ.filter (fun z : Word L d => label z = label w), v z) =
77 (multiplicity (label w) : ℂ) * v w := by
78 calc
79 _ = ∑ _z ∈ Finset.univ.filter (fun z : Word L d => label z = label w), v w := by
80 apply Finset.sum_congr rfl
81 intro z hz
82 exact (symmetric_iff_constant_on_fibers v).mp hv _ _ (Finset.mem_filter.mp hz).2
83 _ = _ := by simp [multiplicity]
84 rw [hs, ← mul_assoc, inv_mul_cancel₀, one_mul]
85 exact_mod_cast (multiplicity_pos (label w)).ne'
86
87theorem projector_idempotent (L d : ℕ) : IsIdempotentElem (projector L d) := by
88 apply ContinuousLinearMap.ext
89 intro v
90 exact projector_eq_self (projector_mem_symmetric v)
91
92theorem projector_selfAdjoint (L d : ℕ) : IsSelfAdjoint (projector L d) := by
93 change star (projector L d) = projector L d
94 simp [projector, ContinuousLinearMap.star_eq_adjoint]
95
96theorem projector_isStarProjection (L d : ℕ) : IsStarProjection (projector L d) :=
97 ⟨projector_idempotent L d, projector_selfAdjoint L d⟩
98
99theorem projector_range (L d : ℕ) : (projector L d).range = symmetricSubspace L d := by
100 ext v
101 constructor
102 · rintro ⟨u, rfl⟩
103 exact projector_mem_symmetric u
104 · intro hv
105 exact ⟨v, projector_eq_self hv⟩
106
107instance symmetricSubspace_hasOrthogonalProjection (L d : ℕ) :
108 (symmetricSubspace L d).HasOrthogonalProjection := by
109 rw [← projector_range]
110 exact ContinuousLinearMap.IsIdempotentElem.hasOrthogonalProjection_range
111 (projector_idempotent L d)
112
113/-- The explicit fiber average is exactly Mathlib's orthogonal projection onto
114permutation-invariant computational tensors. -/
115theorem projector_eq_starProjection (L d : ℕ) :
116 projector L d = (symmetricSubspace L d).starProjection := by
117 apply ContinuousLinearMap.IsStarProjection.ext (projector_isStarProjection L d)
118 isStarProjection_starProjection
119 rw [projector_range, Submodule.range_starProjection]
120
121end Cloning.GeneralSymmetricOccupation