roseking's picture
Add lean source and binary files (part 16)
159357f verified
Raw History Blame Contribute Delete
6.01 kB
14
@[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
20
lemma permuteConfiguration_mul {N : ℕ} (π σ : Equiv.Perm (Fin N)) :
    (permuteConfiguration (π * σ) : Configuration N → Configuration N) =
      permuteConfiguration σ ∘ permuteConfiguration π := by
proof · 2 lines
  funext x i
  simp only [Function.comp_apply, permuteConfiguration_apply, Equiv.Perm.coe_mul]
26
lemma fermionPermutation_mul {N : ℕ} (π σ : Equiv.Perm (Fin N)) (F : SectorHilbert N) :
    fermionPermutation π (fermionPermutation σ F) = fermionPermutation (π * σ) F := by
proof · 18 lines
  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]
47
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
proof · 11 lines
  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']
61
def sectorGraphPermutation {N : ℕ} (π : Equiv.Perm (Fin N)) : SectorGraph N →L[ℂ] SectorGraph N :=
body · 7 lines
  (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 ∘ π)))
70
lemma sectorGraphPermutation_value {N : ℕ} (π : Equiv.Perm (Fin N)) (F : SectorGraph N) :
    sectorGraphValue N (sectorGraphPermutation π F) = fermionPermutation π (sectorGraphValue N F) := by
proof · 1 line
  rfl
74
def fermionAverage (N : ℕ) : SectorHilbert N →L[ℂ] SectorHilbert N :=
body · 1 line
  (Fintype.card (Equiv.Perm (Fin N)) : ℂ)⁻¹ • ∑ π : Equiv.Perm (Fin N), fermionPermutation π
77
lemma fermionAverage_mem {N : ℕ} (F : SectorHilbert N) : fermionAverage N F ∈ fermionSpace N := by
proof · 7 lines
  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)
86
lemma fermionAverage_eq_self {N : ℕ} (F : fermionSpace N) : fermionAverage N F = F := by
proof · 4 lines
  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]
92
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
proof · 2 lines
  simp only [smul_apply, sum_apply, map_smul, map_sum, sectorGraphPermutation_value,
    fermionAverage]
99
def fermionGraphAverage (N : ℕ) : SectorGraph N →L[ℂ] fermionGraph N :=
body · 6 lines
  ((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 _)
107
lemma fermionGraphAverage_value {N : ℕ} (F : SectorGraph N) :
    (fermionGraphValue N (fermionGraphAverage N F)).val = fermionAverage N (sectorGraphValue N F) :=
proof · 1 line
  sectorGraphValue_average N F
111
lemma sectorGraphValue_denseRange (N : ℕ) : DenseRange (sectorGraphValue N) := by
proof · 7 lines
  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
120
theorem fermionGraphValue_denseRange (N : ℕ) : DenseRange (fermionGraphValue N) := by
proof · 11 lines
  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