roseking's picture
Add lean source and binary files (part 16)
159357f verified
Raw History Blame Contribute Delete
3.96 kB
24
lemma coordinateSplit_direction {N : ℕ} (i : Fin (N+1)) (a : Fin 3) :
    coordinateSplit i (direction i a) = (EuclideanSpace.single a 1, 0) := by
proof · 5 lines
  rw [coordinateSplit_apply]
  apply Prod.ext
  · simp [direction]
  · funext j
    simp [direction, Fin.succAbove_ne]
32
def insertTest {N : ℕ} (i : Fin (N+1)) (φ : Test Space) (η : Test (Configuration N)) :
    Test (Configuration (N+1)) := (φ.tensor η).compCL (coordinateSplit i)
35
lemma insertTest_deriv {N : ℕ} (i : Fin (N+1)) (a : Fin 3)
    (φ : Test Space) (η : Test (Configuration N)) :
    (insertTest i φ η).deriv (direction i a) =
      insertTest i (φ.deriv (EuclideanSpace.single a 1)) η := by
proof · 2 lines
  rw [insertTest, Test.compCL_deriv, coordinateSplit_direction, Test.tensor_deriv]
  rfl
42
lemma insertTest_apply {N : ℕ} (i : Fin (N+1)) (φ : Test Space) (η : Test (Configuration N))
    (x : Configuration (N+1)) :
    (insertTest i φ η).fn x = φ.fn (x i) * η.fn (fun j => x (i.succAbove j)) := rfl
46
lemma insertOrbital_ae {N : ℕ} (i : Fin (N+1)) (u : Lp ℂ 2 oneMeasure) (ψ : Many N) :
    CoulombPauli.insertOrbital i u ψ =ᵐ[configMeasure (N+1) oneMeasure]
      (fun x : Fin (N+1) → OneParticle => u (x i) * ψ (fun j => x (i.succAbove j))) := by
proof · 2 lines
  dsimp only [CoulombPauli.insertOrbital, ContinuousLinearMap.comp_apply, tensorLeft_apply]
  exact (pull_ae _ _ _).trans ((splitAt_preserving i).quasiMeasurePreserving.ae (tensor_ae u ψ))
52
lemma oneTest_ae (φ : Test Space) (s : Fin 2) :
    tensor φ.toL2 (countVector s) =ᵐ[oneMeasure]
      (fun x : OneParticle => (φ.fn x.1 : ℂ) * (if x.2 = s then 1 else 0)) := by
proof · 5 lines
  filter_upwards [tensor_ae φ.toL2 (countVector s),
    Measure.quasiMeasurePreserving_fst.ae φ.coe_toL2,
    Measure.quasiMeasurePreserving_snd.ae (countVector_ae s)] with x h1 h2 h3
  rw [h1,h2,h3]
  by_cases h : x.2 = s <;> simp [h]
61
lemma insertOrbital_manyTest {N : ℕ} (i : Fin (N+1)) (φ : Test Space) (η : Test (Configuration N))
    (s : Fin 2) (τ : Spins N) :
    CoulombPauli.insertOrbital i (tensor φ.toL2 (countVector s)) (manyTest η τ) =
      manyTest (insertTest i φ η) (Fin.insertNth i s τ) := by
proof · 18 lines
  apply Lp.ext
  have h1 := (splitAt_preserving i).quasiMeasurePreserving.ae
    (Measure.quasiMeasurePreserving_fst.ae (oneTest_ae φ s))
  have h2 := (splitAt_preserving i).quasiMeasurePreserving.ae
    (Measure.quasiMeasurePreserving_snd.ae (manyTest_ae η τ))
  filter_upwards [insertOrbital_ae i (tensor φ.toL2 (countVector s)) (manyTest η τ),
    manyTest_ae (insertTest i φ η) (Fin.insertNth i s τ), h1, h2] with x hx hy hφ hη
  rw [hx,hy]
  change (tensor φ.toL2 (countVector s)) (x i) =
    (φ.fn (x i).1 : ℂ) * (if (x i).2 = s then 1 else 0) at hφ
  change manyTest η τ (fun j => x (i.succAbove j)) =
    (η.fn (fun j => (x (i.succAbove j)).1) : ℂ) *
      (if (fun j => (x (i.succAbove j)).2) = τ then 1 else 0) at hη
  rw [hφ,hη,insertTest_apply, Complex.ofReal_mul]
  have he : ((fun j => (x j).2) = Fin.insertNth i s τ) ↔
      (x i).2 = s ∧ (fun j => (x (i.succAbove j)).2) = τ := Fin.eq_insertNth_iff
  by_cases hs : (x i).2 = s <;> by_cases ht : (fun j => (x (i.succAbove j)).2) = τ <;>
    simp [he, hs, ht]