File size: 6,014 Bytes
159357f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
import Mathlib
import OAI.Analysis.CoulombIonization.FormDomain.WeakChangeVariables

namespace OAI

noncomputable section

open MeasureTheory Filter
open scoped Topology BigOperators ContDiff
open MeasureTheory Filter
open scoped Topology BigOperators ContDiff InnerProductSpace Convolution
namespace CoulombAtom

@[simp] lemma fermionPermutation_apply {N : ℕ} (π : Equiv.Perm (Fin N))
    (F : SectorHilbert N) (s : Spins N) :
    fermionPermutation π F s = (((Equiv.Perm.sign π : ℤ) : ℂ)) •
      Lp.compMeasurePreserving (permuteConfiguration π) (permuteConfiguration_preserving π)
        (F (s ∘ π)) := rfl

lemma permuteConfiguration_mul {N : ℕ} (π σ : Equiv.Perm (Fin N)) :
    (permuteConfiguration (π * σ) : Configuration N → Configuration N) =
      permuteConfiguration σ ∘ permuteConfiguration π := by
  funext x i
  simp only [Function.comp_apply, permuteConfiguration_apply, Equiv.Perm.coe_mul]

lemma fermionPermutation_mul {N : ℕ} (π σ : Equiv.Perm (Fin N)) (F : SectorHilbert N) :
    fermionPermutation π (fermionPermutation σ F) = fermionPermutation (π * σ) F := by
  apply PiLp.ext
  intro s
  simp only [fermionPermutation_apply]
  change _ • (Lp.compMeasurePreservingₗ ℂ (permuteConfiguration π)
    (permuteConfiguration_preserving π)) (_ • _) = _
  rw [map_smul]
  rw [smul_smul]
  have hsign : (((Equiv.Perm.sign (π * σ) : ℤ) : ℂ)) =
      (((Equiv.Perm.sign π : ℤ) : ℂ)) * (((Equiv.Perm.sign σ : ℤ) : ℂ)) := by
    simp
  rw [hsign]
  congr 1
  have hs : (s ∘ π) ∘ σ = s ∘ (π * σ) := rfl
  rw [hs]
  change Lp.compMeasurePreserving (permuteConfiguration π) _
    (Lp.compMeasurePreserving (permuteConfiguration σ) _ _) = _
  rw [← Lp.compMeasurePreserving_comp_apply]
  simp only [← permuteConfiguration_mul]

lemma sectorDirections_permute {N : ℕ} (π : Equiv.Perm (Fin N)) (k : Fin N × Fin 3) :
    permuteConfiguration π (sectorDirections N k) = sectorDirections N (π.symm k.1, k.2) := by
  classical
  ext i a
  simp only [permuteConfiguration_apply, Function.comp_apply, sectorDirections, direction]
  by_cases h : i = π.symm k.1
  · subst i
    simp
  · have h' : π i ≠ k.1 := by
      intro hh
      apply h
      exact π.injective (by simpa using hh)
    simp [h, h']

def sectorGraphPermutation {N : ℕ} (π : Equiv.Perm (Fin N)) : SectorGraph N →L[ℂ] SectorGraph N :=
  (PiLp.continuousLinearEquiv 2 ℂ (fun _ : Spins N => weakGraph (sectorDirections N))
    ).symm.toContinuousLinearMap.comp
    (ContinuousLinearMap.pi fun s =>
      ((((Equiv.Perm.sign π : ℤ) : ℂ)) • weakGraphChange (sectorDirections N)
        (permuteConfiguration π) (permuteConfiguration_preserving π)
        (fun k => (π.symm k.1, k.2)) (sectorDirections_permute π)).comp
        (PiLp.proj 2 (fun _ : Spins N => weakGraph (sectorDirections N)) (s ∘ π)))

lemma sectorGraphPermutation_value {N : ℕ} (π : Equiv.Perm (Fin N)) (F : SectorGraph N) :
    sectorGraphValue N (sectorGraphPermutation π F) = fermionPermutation π (sectorGraphValue N F) := by
  rfl

def fermionAverage (N : ℕ) : SectorHilbert N →L[ℂ] SectorHilbert N :=
  (Fintype.card (Equiv.Perm (Fin N)) : ℂ)⁻¹ • ∑ π : Equiv.Perm (Fin N), fermionPermutation π

lemma fermionAverage_mem {N : ℕ} (F : SectorHilbert N) : fermionAverage N F ∈ fermionSpace N := by
  classical
  rw [mem_fermionSpace]
  intro π
  simp only [fermionAverage, smul_apply, sum_apply,
    map_smul, map_sum, fermionPermutation_mul]
  congr 1
  exact Fintype.sum_equiv (Equiv.mulLeft π) _ _ (fun σ => rfl)

lemma fermionAverage_eq_self {N : ℕ} (F : fermionSpace N) : fermionAverage N F = F := by
  classical
  have hF := (mem_fermionSpace F.val).mp F.property
  simp only [fermionAverage, smul_apply, sum_apply, hF]
  simp [← Nat.cast_smul_eq_nsmul ℂ, smul_smul]

lemma sectorGraphValue_average (N : ℕ) (F : SectorGraph N) :
    sectorGraphValue N (((Fintype.card (Equiv.Perm (Fin N)) : ℂ)⁻¹ •
      ∑ π : Equiv.Perm (Fin N), sectorGraphPermutation π) F) =
      fermionAverage N (sectorGraphValue N F) := by
  simp only [smul_apply, sum_apply, map_smul, map_sum, sectorGraphPermutation_value,
    fermionAverage]

def fermionGraphAverage (N : ℕ) : SectorGraph N →L[ℂ] fermionGraph N :=
  ((Fintype.card (Equiv.Perm (Fin N)) : ℂ)⁻¹ • ∑ π : Equiv.Perm (Fin N), sectorGraphPermutation π
    ).codRestrict (fermionGraph N) (by
      intro F
      change sectorGraphValue N _ ∈ fermionSpace N
      rw [sectorGraphValue_average]
      exact fermionAverage_mem _)

lemma fermionGraphAverage_value {N : ℕ} (F : SectorGraph N) :
    (fermionGraphValue N (fermionGraphAverage N F)).val = fermionAverage N (sectorGraphValue N F) :=
  sectorGraphValue_average N F

lemma sectorGraphValue_denseRange (N : ℕ) : DenseRange (sectorGraphValue N) := by
  let eV := PiLp.continuousLinearEquiv 2 ℂ (fun _ : Spins N => weakGraph (sectorDirections N))
  let eH := PiLp.continuousLinearEquiv 2 ℂ
    (fun _ : Spins N => Lp ℂ 2 (volume : Measure (Configuration N)))
  have hd := DenseRange.piMap (fun _ : Spins N => weakGraphValue_denseRange (sectorDirections N))
  have hc : Continuous (Pi.map (fun _ : Spins N => weakGraphValue (sectorDirections N))) := by
    fun_prop
  exact eH.symm.surjective.denseRange.comp (hd.comp eV.surjective.denseRange hc) eH.symm.continuous

theorem fermionGraphValue_denseRange (N : ℕ) : DenseRange (fermionGraphValue N) := by
  let p : SectorHilbert N →L[ℂ] fermionSpace N :=
    (fermionAverage N).codRestrict (fermionSpace N) fermionAverage_mem
  have hp : Function.Surjective p := by
    intro F
    exact ⟨F.val, Subtype.ext (fermionAverage_eq_self F)⟩
  have hd := hp.denseRange.comp (sectorGraphValue_denseRange N) p.continuous
  have he : p ∘ sectorGraphValue N = fermionGraphValue N ∘ fermionGraphAverage N := by
    funext F
    exact Subtype.ext (fermionGraphAverage_value F).symm
  rw [he] at hd
  exact hd.of_comp

end CoulombAtom

end

end OAI