roseking's picture
Add lean source and binary files (part 16)
159357f verified
Raw History Blame Contribute Delete
10.8 kB
102
abbrev cutCoreNumber {L : ℕ} (b : Fin L → Fin 2) : ℕ := Fintype.card {i // b i = 0}
103
abbrev cutOutNumber {L : ℕ} (b : Fin L → Fin 2) : ℕ := Fintype.card {i // b i ≠ 0}
105
def cutOrder {L : ℕ} (b : Fin L → Fin 2) :
    Fin (cutCoreNumber b + cutOutNumber b) ≃ Fin L :=
body · 3 lines
  finSumFinEquiv.symm.trans ((Equiv.sumCongr
    (Fintype.equivFin {i // b i = 0}).symm (Fintype.equivFin {i // b i ≠ 0}).symm).trans
      (Equiv.sumCompl (fun i => b i = 0)))
111
lemma cutNumbers_sum {L : ℕ} (b : Fin L → Fin 2) : cutCoreNumber b + cutOutNumber b = L := by
proof · 1 line
  simpa only [Fintype.card_fin] using Fintype.card_congr (cutOrder b)
114
lemma cutOrder_labels {L : ℕ} (b : Fin L → Fin 2) :
    b ∘ cutOrder b = coreCutLabels (cutCoreNumber b) (cutOutNumber b) := by
proof · 12 lines
  funext i
  obtain ⟨j,rfl⟩ := finSumFinEquiv.surjective i
  rcases j with j | j
  · change b (cutOrder b (finSumFinEquiv (Sum.inl j))) = _
    simp only [cutOrder, Equiv.trans_apply, Equiv.symm_apply_apply, Equiv.sumCongr_apply,
      Sum.map_inl, Equiv.sumCompl_apply_inl, coreCutLabels, joinLists_left]
    exact ((Fintype.equivFin {i // b i = 0}).symm j).property
  · change b (cutOrder b (finSumFinEquiv (Sum.inr j))) = _
    simp only [cutOrder, Equiv.trans_apply, Equiv.symm_apply_apply, Equiv.sumCongr_apply,
      Sum.map_inr, Equiv.sumCompl_apply_inr, coreCutLabels, joinLists_right]
    have hh := ((Fintype.equivFin {i // b i ≠ 0}).symm j).property
    omega
129
lemma spatialProductValue_reindex {M N : ℕ} (e : Fin M ≃ Fin N)
    (p : Fin 2 → SmoothMultiplier spaceDirections) (b : Fin N → Fin 2) (x : Configuration M) :
    spatialProductValue p b (x ∘ e.symm) = spatialProductValue p (b ∘ e) x := by
proof · 3 lines
  unfold spatialProductValue
  rw [← Equiv.prod_comp e (fun i => (p (b i)).value ((x ∘ e.symm) i))]
  simp only [Function.comp_apply, Equiv.symm_apply_apply]
136
def orderedCutForm {L : ℕ} (p : Fin 2 → SmoothMultiplier spaceDirections)
    (hp : ∀ x, ∑ h : Fin 2, (p h).value x ^ 2 = 1)
    (ψ : FormVector L) (b : Fin L → Fin 2) :
    FormVector (cutCoreNumber b + cutOutNumber b) :=
body · 1 line
  reindexForm (cutOrder b) (multiplyForm (spatialProduct (N := L) p hp b) ψ)
142
lemma orderedCutForm_value {L : ℕ} (p : Fin 2 → SmoothMultiplier spaceDirections)
    (hp : ∀ x, ∑ h : Fin 2, (p h).value x ^ 2 = 1)
    (ψ : FormVector L) (b : Fin L → Fin 2) (s) (x) :
    (orderedCutForm p hp ψ b).value s x =
      (multiplyForm (spatialProduct p hp (coreCutLabels (cutCoreNumber b) (cutOutNumber b)))
        (reindexForm (cutOrder b) ψ)).value s x := by
proof · 3 lines
  change (spatialProductValue p b (x ∘ (cutOrder b).symm) : ℂ) * _ = _
  rw [spatialProductValue_reindex, cutOrder_labels]
  rfl
152
lemma orderedCutForm_sobolev {L : ℕ} (p : Fin 2 → SmoothMultiplier spaceDirections)
    (hp : ∀ x, ∑ h : Fin 2, (p h).value x ^ 2 = 1)
    {ψ : FormVector L} (hψ : SobolevVector ψ) (b : Fin L → Fin 2) :
    SobolevVector (orderedCutForm p hp ψ b) :=
proof · 1 line
  (hψ.multiply _).reindex _
158
lemma orderedCutForm_core_antisymmetric {L : ℕ} (p : Fin 2 → SmoothMultiplier spaceDirections)
    (hp : ∀ x, ∑ h : Fin 2, (p h).value x ^ 2 = 1)
    {ψ : FormVector L} (hψ : SobolevFermion ψ) (b : Fin L → Fin 2) :
    CoreAntisymmetric (orderedCutForm p hp ψ b) := by
proof · 5 lines
  have ha := (hψ.reindex (cutOrder b)).coreAntisymmetric.multiply
    (spatialProduct p hp (coreCutLabels (cutCoreNumber b) (cutOutNumber b)))
    (fun π x => spatialProduct_invariant p _ (corePerm _ π) (coreCutLabels_invariant π) x)
  intro π s
  simpa only [orderedCutForm_value] using ha π s
168
lemma orderedCutForm_mass {L : ℕ} (p : Fin 2 → SmoothMultiplier spaceDirections)
    (hp : ∀ x, ∑ h : Fin 2, (p h).value x ^ 2 = 1)
    (ψ : FormVector L) (b : Fin L → Fin 2) :
    formMass (orderedCutForm p hp ψ b) = formMass (multiplyForm (spatialProduct (N := L) p hp b) ψ) :=
proof · 1 line
  formMass_reindex _ _
174
lemma orderedCutForm_energy {L : ℕ} (p : Fin 2 → SmoothMultiplier spaceDirections)
    (hp : ∀ x, ∑ h : Fin 2, (p h).value x ^ 2 = 1)
    (ψ : FormVector L) (b : Fin L → Fin 2) (Z : ℝ) :
    formEnergy Z (orderedCutForm p hp ψ b) = formEnergy Z (multiplyForm (spatialProduct (N := L) p hp b) ψ) :=
proof · 1 line
  formEnergy_reindex _ _ _
180
def cutCoreEnergy {L : ℕ} (p : Fin 2 → SmoothMultiplier spaceDirections)
    (hp : ∀ x, ∑ h : Fin 2, (p h).value x ^ 2 = 1)
    (Z : ℝ) (ψ : FormVector L) (b : Fin L → Fin 2) : ℝ :=
body · 2 lines
  ∑ t : Spins (cutOutNumber b), ∫ y,
    formEnergy Z (coreSlice (orderedCutForm p hp ψ b) t y)
186
theorem cutCoreEnergy_priced {L : ℕ} (p : Fin 2 → SmoothMultiplier spaceDirections)
    (hp : ∀ x, ∑ h : Fin 2, (p h).value x ^ 2 = 1)
    {ψ : FormVector L} (hψ : SobolevFermion ψ) (b : Fin L → Fin 2)
    {Z lam : ℝ} (hZ : 0 ≤ Z) (hlam : 0 < lam) :
    priceEnergy (energy Z) lam * formMass (multiplyForm (spatialProduct (N := L) p hp b) ψ) ≤
      cutCoreEnergy p hp Z ψ b + lam * cutCoreNumber b *
        formMass (multiplyForm (spatialProduct (N := L) p hp b) ψ) := by
proof · 3 lines
  have hh := (orderedCutForm_core_antisymmetric p hp hψ b).integrated_priced
    (orderedCutForm_sobolev p hp hψ.sobolevVector b) hZ hlam
  simpa only [orderedCutForm_mass, cutCoreEnergy] using hh
197
theorem fock_cut_deletion {L : ℕ} (p : Fin 2 → SmoothMultiplier spaceDirections)
    (hp : ∀ x, ∑ h : Fin 2, (p h).value x ^ 2 = 1)
    {ψ : FormVector L} (hψ : SobolevFermion ψ) {Z lam ε : ℝ}
    (hZ : 0 ≤ Z) (hlam : 0 < lam) (hm : formMass ψ = 1)
    (he : formEnergy Z ψ + lam * L ≤ priceEnergy (energy Z) lam + ε) :
    (∑ b : (Fin L → Fin 2),
      (formEnergy Z (multiplyForm (spatialProduct (N := L) p hp b) ψ) - cutCoreEnergy p hp Z ψ b +
        lam * cutOutNumber b * formMass (multiplyForm (spatialProduct (N := L) p hp b) ψ))) ≤
      ε + (1/2:ℝ) * weightedParticleCount ψ (spatialErrorWeight p) := by
proof · 19 lines
  have hb (b : Fin L → Fin 2) := cutCoreEnergy_priced p hp hψ b hZ hlam
  have hmass := spatial_cut_mass p hp hψ.sobolevVector
  have henergy := spatial_cut_ims p hp hψ.sobolevVector Z
  have hsum := Finset.sum_le_sum (s := Finset.univ) (fun b _ => hb b)
  have hcard (b : Fin L → Fin 2) : (cutCoreNumber b : ℝ) + cutOutNumber b = L := by
    exact_mod_cast cutNumbers_sum b
  have hid (b : Fin L → Fin 2) :
      lam * cutOutNumber b * formMass (multiplyForm (spatialProduct (N := L) p hp b) ψ) =
        lam * L * formMass (multiplyForm (spatialProduct (N := L) p hp b) ψ) -
          lam * cutCoreNumber b * formMass (multiplyForm (spatialProduct (N := L) p hp b) ψ) := by
    rw [← hcard b]; ring
  simp_rw [hid]
  simp only [Finset.sum_add_distrib, Finset.sum_sub_distrib, ← Finset.mul_sum] at hsum ⊢
  rw [hm] at hmass
  rw [hmass, mul_one] at hsum ⊢
  rw [henergy]
  change _ ≤ ε + (1/2:ℝ) * weightedParticleCount ψ (spatialErrorWeight p)
  unfold weightedParticleCount
  linarith