From 632be54c875563b13e5db1c785650751f6778a89 Mon Sep 17 00:00:00 2001 From: Emil Kubanychbek <64525925+kubanemil@users.noreply.github.com> Date: Fri, 16 Oct 2026 20:10:51 +0000 Subject: [PATCH 01/12] =?UTF-8?q?feat(QuantumMechanics):=20add=20waveDeriv?= =?UTF-8?q?,=20raise,=20reducedHamiltonian=20and=20scatteringPoly=20for=20?= =?UTF-8?q?P=C3=B6schl-Teller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the polynomial operators acting on p in p(tanh (κ x)) e^{i k x}, the intertwining relation reducedHamiltonian_raise, the scattering polynomials scatteringPoly with reducedHamiltonian_scatteringPoly, and their values scatteringPoly_eval_one / scatteringPoly_eval_neg_one (nonzero). --- Physlib.lean | 1 + .../PoschlTeller/Scattering.lean | 196 ++++++++++++++++++ 2 files changed, 197 insertions(+) create mode 100644 Physlib/QuantumMechanics/PoschlTeller/Scattering.lean diff --git a/Physlib.lean b/Physlib.lean index 8134ca073e..b1a7261de7 100644 --- a/Physlib.lean +++ b/Physlib.lean @@ -409,6 +409,7 @@ public import Physlib.QuantumMechanics.Operators.Unbounded public import Physlib.QuantumMechanics.Operators.Uncertainty public import Physlib.QuantumMechanics.PlanckConstant public import Physlib.QuantumMechanics.PoschlTeller.Basic +public import Physlib.QuantumMechanics.PoschlTeller.Scattering public import Physlib.QuantumMechanics.QuantumSystem.Basic public import Physlib.QuantumMechanics.RectangularBarrier.Basic public import Physlib.QuantumMechanics.SpaceDQuantumSystem diff --git a/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean b/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean new file mode 100644 index 0000000000..0e0b9a15cf --- /dev/null +++ b/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean @@ -0,0 +1,196 @@ +/- +Copyright (c) 2026 Emil Kubanychbek. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Emil Kubanychbek +-/ +module + +public import Physlib.QuantumMechanics.PoschlTeller.Basic +/-! + +# Scattering states of the 1d Pöschl-Teller system + +The polynomials describing the scattering states of the Pöschl-Teller system. + +## i. Overview + +At energy `E = ℏ² k² / (2 m)` the scattering states of the Pöschl-Teller system are of the form +`ψₖ(x) = Pₖ(tanh (κ x)) e^{i k x}`, where the polynomial `Pₖ` is obtained by applying the +operators `-∂ₓ + n κ tanh (κ x)`, for `n = 1, …, N`, to the plane wave `e^{i k x}`. The operator +`-∂ₓ + n κ tanh (κ x)` intertwines the Hamiltonians of the Pöschl-Teller systems with family +numbers `n - 1` and `n`, so it maps solutions of the one to solutions of the other at the same +energy. + +This file works with the polynomial in `tanh (κ x)` multiplying `e^{i k x}`, as an element of +`ℂ[X]`. The derivative, the raising operators and the Hamiltonian become operators on `ℂ[X]`, and +the intertwining relation becomes an identity of polynomials. + +## ii. Key results + +- `reducedHamiltonian_raise` : the raising operator intertwines the Hamiltonians with family + numbers `n` and `n + 1`. +- `reducedHamiltonian_scatteringPoly` : the scattering polynomial `Pₖ` is an eigenvector of the + reduced Hamiltonian with eigenvalue `k²`. +- `scatteringPoly_eval_one`, `scatteringPoly_eval_neg_one` : the values `Pₖ(1) = ∏ₙ (n κ - i k)` + and `Pₖ(-1) = ∏ₙ (-n κ - i k)`. + +## iii. Table of contents + +- A. Polynomials in `tanh (κ x)` + - A.1. Derivative, raising operator and Hamiltonian + - A.2. The intertwining relation + - A.3. The scattering polynomials + - A.4. Values at `±1` + +## iv. References + +* https://arxiv.org/pdf/2411.14941. [ref: arxiv_2411_14941] +-/ +@[expose] public section + +noncomputable section + +namespace QuantumMechanics + +namespace PoschlTeller + +open Complex Polynomial + +variable (Q : PoschlTeller) + +/-! +## A. Polynomials in `tanh (κ x)` +-/ + +/-! +### A.1. Derivative, raising operator and Hamiltonian +-/ + +/-- The derivative acting on the polynomial of a wave `p(tanh (κ x)) e^{i k x}`, + `p ↦ κ (1 - X²) p' + i k p`, so that + `∂ₓ (p(tanh (κ x)) e^{i k x}) = (waveDeriv k p)(tanh (κ x)) e^{i k x}`. -/ +def waveDeriv (k : ℝ) (p : ℂ[X]) : ℂ[X] := + C (Q.κ : ℂ) * (1 - X ^ 2) * derivative p + C (k * I) * p + +/-- The raising operator `-∂ₓ + n κ tanh (κ x)` acting on the polynomial of a wave + `p(tanh (κ x)) e^{i k x}`. -/ +def raise (k : ℝ) (n : ℕ) (p : ℂ[X]) : ℂ[X] := -Q.waveDeriv k p + C (n * Q.κ : ℂ) * X * p + +/-- The operator `-∂ₓ² - n (n + 1) κ² / cosh² (κ x)` acting on the polynomial of a wave + `p(tanh (κ x)) e^{i k x}`. This is `2 m / ℏ²` times the Hamiltonian of the Pöschl-Teller system + with family number `n`. -/ +def reducedHamiltonian (k : ℝ) (n : ℕ) (p : ℂ[X]) : ℂ[X] := + -Q.waveDeriv k (Q.waveDeriv k p) - C ((Q.κ : ℂ) ^ 2 * n * (n + 1)) * (1 - X ^ 2) * p + +/-! +### A.2. The intertwining relation +-/ + +/-- The raising operator intertwines the Hamiltonians with family numbers `n` and `n + 1`. -/ +lemma reducedHamiltonian_raise (k : ℝ) (n : ℕ) (p : ℂ[X]) : + Q.reducedHamiltonian k (n + 1) (Q.raise k (n + 1) p) = + Q.raise k (n + 1) (Q.reducedHamiltonian k n p) := by + simp only [reducedHamiltonian, raise, waveDeriv, derivative_mul, derivative_add, + derivative_sub, derivative_neg, derivative_C, derivative_X, derivative_X_sq, derivative_one, + derivative_zero] + simp only [map_mul, map_pow, map_add, map_natCast, map_one, map_ofNat, Nat.cast_add, + Nat.cast_one] + ring + +/-- The derivative of a constant multiple of the plane wave `c e^{i k x}` is `i k c e^{i k x}`. -/ +lemma waveDeriv_C (k : ℝ) (c : ℂ) : Q.waveDeriv k (C c) = C (k * I * c) := by + simp only [waveDeriv, derivative_C, mul_zero, zero_add, C_mul] + +/-- The raising operator is linear with respect to constant multiples. -/ +lemma raise_C_mul (k : ℝ) (n : ℕ) (c : ℂ) (p : ℂ[X]) : + Q.raise k n (C c * p) = C c * Q.raise k n p := by + simp only [raise, waveDeriv, derivative_mul, derivative_C, zero_mul, zero_add] + ring + +/-! +### A.3. The scattering polynomials +-/ + +/-- The polynomial `Pₖ` of the scattering state `Pₖ(tanh (κ x)) e^{i k x}` of the Pöschl-Teller + system with family number `n`, obtained by applying the raising operators with + `1, …, n` to `1`. -/ +def scatteringPoly (k : ℝ) : ℕ → ℂ[X] + | 0 => 1 + | n + 1 => Q.raise k (n + 1) (scatteringPoly k n) + +/-- The scattering polynomial with family number `n` is an eigenvector of the reduced Hamiltonian + with eigenvalue `k²`. -/ +lemma reducedHamiltonian_scatteringPoly (k : ℝ) (n : ℕ) : + Q.reducedHamiltonian k n (Q.scatteringPoly k n) = C ((k : ℂ) ^ 2) * Q.scatteringPoly k n := by + induction n with + | zero => + rw [scatteringPoly, reducedHamiltonian, ← C_1, Q.waveDeriv_C, Q.waveDeriv_C] + simp only [Nat.cast_zero, mul_zero, zero_mul, map_zero, sub_zero, ← C_neg, ← C_mul] + congr 1 + linear_combination (-(k : ℂ) ^ 2) * I_sq + | succ n ih => rw [scatteringPoly, reducedHamiltonian_raise, ih, raise_C_mul] + +/-! +### A.4. Values at `±1` +-/ + +/-- At `tanh (κ x) = 1` the raising operator acts as multiplication by `n κ - i k`. -/ +lemma eval_one_raise (k : ℝ) (n : ℕ) (p : ℂ[X]) : + (Q.raise k n p).eval 1 = (n * Q.κ - k * I) * p.eval 1 := by + simp only [raise, waveDeriv, map_mul, neg_add_rev, map_natCast, eval_add, eval_neg, eval_mul, + eval_C, eval_sub, eval_one, eval_pow, eval_X, one_pow, sub_self, mul_zero, zero_mul, neg_zero, + add_zero, eval_natCast, mul_one] + ring + +/-- At `tanh (κ x) = -1` the raising operator acts as multiplication by `-n κ - i k`. -/ +lemma eval_neg_one_raise (k : ℝ) (n : ℕ) (p : ℂ[X]) : + (Q.raise k n p).eval (-1) = (-(n * Q.κ) - k * I) * p.eval (-1) := by + simp only [raise, waveDeriv, map_mul, neg_add_rev, map_natCast, eval_add, eval_neg, eval_mul, + eval_C, eval_sub, eval_one, eval_pow, eval_X, even_two, Even.neg_pow, one_pow, sub_self, + mul_zero, zero_mul, neg_zero, add_zero, eval_natCast, mul_neg, mul_one, neg_mul] + ring + +/-- The value at `1` of the scattering polynomial is `∏ₙ (n κ - i k)`. -/ +lemma scatteringPoly_eval_one (k : ℝ) (n : ℕ) : + (Q.scatteringPoly k n).eval 1 = ∏ j ∈ Finset.range n, ((j + 1) * Q.κ - k * I) := by + induction n with + | zero => simp only [scatteringPoly, eval_one, Finset.range_zero, Finset.prod_empty] + | succ n ih => + rw [scatteringPoly, eval_one_raise, ih, Finset.prod_range_succ] + push_cast + ring + +/-- The value at `-1` of the scattering polynomial is `∏ₙ (-n κ - i k)`. -/ +lemma scatteringPoly_eval_neg_one (k : ℝ) (n : ℕ) : + (Q.scatteringPoly k n).eval (-1) = ∏ j ∈ Finset.range n, (-((j + 1) * Q.κ) - k * I) := by + induction n with + | zero => simp only [scatteringPoly, eval_one, Finset.range_zero, Finset.prod_empty] + | succ n ih => + rw [scatteringPoly, eval_neg_one_raise, ih, Finset.prod_range_succ] + push_cast + ring + +/-- The value at `1` of the scattering polynomial is non-zero. -/ +lemma scatteringPoly_eval_one_ne_zero (k : ℝ) (n : ℕ) : (Q.scatteringPoly k n).eval 1 ≠ 0 := by + rw [scatteringPoly_eval_one, Finset.prod_ne_zero_iff] + intro j _ hj + have hre := congrArg Complex.re hj + simp only [sub_re, mul_re, add_re, natCast_re, one_re, ofReal_re, ofReal_im, I_re, I_im, + zero_re] at hre + have := Q.κ_pos + nlinarith [(Nat.cast_nonneg j : (0 : ℝ) ≤ j)] + +/-- The value at `-1` of the scattering polynomial is non-zero. -/ +lemma scatteringPoly_eval_neg_one_ne_zero (k : ℝ) (n : ℕ) : + (Q.scatteringPoly k n).eval (-1) ≠ 0 := by + rw [scatteringPoly_eval_neg_one, Finset.prod_ne_zero_iff] + intro j _ hj + have hre := congrArg Complex.re hj + simp only [sub_re, neg_re, mul_re, add_re, natCast_re, one_re, ofReal_re, ofReal_im, I_re, + I_im, zero_re] at hre + have := Q.κ_pos + nlinarith [(Nat.cast_nonneg j : (0 : ℝ) ≤ j)] + +end PoschlTeller +end QuantumMechanics +end From cc055c3017624160d9dd60e41036dbf43b8a7d84 Mon Sep 17 00:00:00 2001 From: Emil Kubanychbek <64525925+kubanemil@users.noreply.github.com> Date: Fri, 16 Oct 2026 20:10:51 +0000 Subject: [PATCH 02/12] feat(Mathematics): add hasDerivAt_tanh, tendsto_tanh_atTop and tendsto_tanh_atBot --- .../ForMathlib/Trigonometry/Tanh.lean | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Physlib/Mathematics/ForMathlib/Trigonometry/Tanh.lean b/Physlib/Mathematics/ForMathlib/Trigonometry/Tanh.lean index 5cc886c4b0..3996bc7aa1 100644 --- a/Physlib/Mathematics/ForMathlib/Trigonometry/Tanh.lean +++ b/Physlib/Mathematics/ForMathlib/Trigonometry/Tanh.lean @@ -58,6 +58,29 @@ lemma contDiff_tanh {n : ℕ} : ContDiff ℝ n tanh := by rw [tanh_eq_sinh_div_cosh] exact hdiv +/-- The derivative of tanh at `x` is `1 - tanh(x)^2` -/ +lemma hasDerivAt_tanh (x : ℝ) : HasDerivAt Real.tanh (1 - Real.tanh x ^ 2) x := by + have h := ((contDiff_tanh (n := 1)).differentiable one_ne_zero x).hasDerivAt + rwa [deriv_tanh] at h + +/-- tanh(x) tends to `1` as `x → ∞` -/ +lemma tendsto_tanh_atTop : Filter.Tendsto Real.tanh Filter.atTop (nhds 1) := by + have h : Real.tanh = fun x => (1 - Real.exp (-x) ^ 2) / (1 + Real.exp (-x) ^ 2) := by + funext x + rw [Real.tanh_eq, Real.exp_neg] + have := Real.exp_pos x + field_simp + have he := Real.tendsto_exp_neg_atTop_nhds_zero + rw [h] + convert (tendsto_const_nhds.sub (he.pow 2)).div (tendsto_const_nhds.add (he.pow 2)) + (by norm_num : (1 : ℝ) + 0 ^ 2 ≠ 0) using 2 + norm_num + +/-- tanh(x) tends to `-1` as `x → -∞` -/ +lemma tendsto_tanh_atBot : Filter.Tendsto Real.tanh Filter.atBot (nhds (-1)) := by + have h := (tendsto_tanh_atTop.comp Filter.tendsto_neg_atBot_atTop).neg + simpa only [Function.comp_apply, Real.tanh_neg, neg_neg] using h + /-- The nth derivative of Tanh(x) is a polynomial of Tanh(x) -/ lemma iteratedDeriv_tanh_is_polynomial_of_tanh (n : ℕ) : ∃ P : Polynomial ℝ, ∀ x, iteratedDeriv n Real.tanh x = P.eval (Real.tanh x) := by From 7c8a19ad047e766186a8627d1252b1a6480ab939 Mon Sep 17 00:00:00 2001 From: Emil Kubanychbek <64525925+kubanemil@users.noreply.github.com> Date: Fri, 16 Oct 2026 20:10:51 +0000 Subject: [PATCH 03/12] feat(QuantumMechanics): add PoschlTeller.scatteringState and prove reflectionless MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds schrodingerOperator, polyWave with its derivatives and asymptotics, scatteringState with schrodingerOperator_scatteringState and its limits at ±∞, and theorem reflectionless. Removes the completed TODO from Basic.lean. --- .../QuantumMechanics/PoschlTeller/Basic.lean | 2 - .../PoschlTeller/Scattering.lean | 221 ++++++++++++++++-- scripts/lint/exemptions/Theorems.txt | 1 + 3 files changed, 206 insertions(+), 18 deletions(-) diff --git a/Physlib/QuantumMechanics/PoschlTeller/Basic.lean b/Physlib/QuantumMechanics/PoschlTeller/Basic.lean index 32d9be5cba..78022c57c3 100644 --- a/Physlib/QuantumMechanics/PoschlTeller/Basic.lean +++ b/Physlib/QuantumMechanics/PoschlTeller/Basic.lean @@ -55,8 +55,6 @@ TODO "Develop the eigensystem of the Hamiltonian for the Pöschl-Teller quantum using properties of the creation/annihilation operators (e.g. following https://arxiv.org/pdf/2411.14941 [ref: arxiv_2411_14941])." -TODO "Prove that the Pöschl-Teller potential is reflectionless." - noncomputable section namespace QuantumMechanics diff --git a/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean b/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean index 0e0b9a15cf..eee531be51 100644 --- a/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean +++ b/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean @@ -10,29 +10,33 @@ public import Physlib.QuantumMechanics.PoschlTeller.Basic # Scattering states of the 1d Pöschl-Teller system -The polynomials describing the scattering states of the Pöschl-Teller system. +The Pöschl-Teller potential is reflectionless. ## i. Overview -At energy `E = ℏ² k² / (2 m)` the scattering states of the Pöschl-Teller system are of the form -`ψₖ(x) = Pₖ(tanh (κ x)) e^{i k x}`, where the polynomial `Pₖ` is obtained by applying the -operators `-∂ₓ + n κ tanh (κ x)`, for `n = 1, …, N`, to the plane wave `e^{i k x}`. The operator -`-∂ₓ + n κ tanh (κ x)` intertwines the Hamiltonians of the Pöschl-Teller systems with family -numbers `n - 1` and `n`, so it maps solutions of the one to solutions of the other at the same -energy. +At energy `E = ℏ² k² / (2 m)` the time-independent Schrödinger equation of the Pöschl-Teller +system has the exact solution `ψₖ(x) = Pₖ(tanh (κ x)) e^{i k x}`, where the polynomial `Pₖ` is +obtained by applying the operators `-∂ₓ + n κ tanh (κ x)`, for `n = 1, …, N`, to the plane wave +`e^{i k x}`. The operator `-∂ₓ + n κ tanh (κ x)` intertwines the Hamiltonians of the Pöschl-Teller +systems with family numbers `n - 1` and `n`, so it maps solutions of the one to solutions of the +other at the same energy. -This file works with the polynomial in `tanh (κ x)` multiplying `e^{i k x}`, as an element of -`ℂ[X]`. The derivative, the raising operators and the Hamiltonian become operators on `ℂ[X]`, and +Since `tanh (κ x) → ±1` as `x → ±∞`, the solution tends to `Pₖ(±1) e^{i k x}` at both ends. +For `k ≠ 0` it describes a wave incident from the left (`k > 0`) or from the right (`k < 0`) +which is fully transmitted: no reflected wave `e^{-i k x}` appears. This is the statement that the +Pöschl-Teller potential is reflectionless. + +The polynomial in `tanh (κ x)` multiplying `e^{i k x}` is tracked as an element of `ℂ[X]`, so that the intertwining relation becomes an identity of polynomials. ## ii. Key results -- `reducedHamiltonian_raise` : the raising operator intertwines the Hamiltonians with family - numbers `n` and `n + 1`. -- `reducedHamiltonian_scatteringPoly` : the scattering polynomial `Pₖ` is an eigenvector of the - reduced Hamiltonian with eigenvalue `k²`. -- `scatteringPoly_eval_one`, `scatteringPoly_eval_neg_one` : the values `Pₖ(1) = ∏ₙ (n κ - i k)` - and `Pₖ(-1) = ∏ₙ (-n κ - i k)`. +- `schrodingerOperator_scatteringState` : the scattering state solves the time-independent + Schrödinger equation at energy `ℏ² k² / (2 m)`. +- `tendsto_scatteringState_mul_exp_atTop`, `tendsto_scatteringState_mul_exp_atBot` : the + scattering state tends to `∏ₙ (n κ - i k) e^{i k x}` as `x → ∞` and to + `∏ₙ (-n κ - i k) e^{i k x}` as `x → -∞`. +- `reflectionless` : the Pöschl-Teller potential is reflectionless. ## iii. Table of contents @@ -41,6 +45,13 @@ the intertwining relation becomes an identity of polynomials. - A.2. The intertwining relation - A.3. The scattering polynomials - A.4. Values at `±1` +- B. The Schrödinger operator +- C. Waves modulated by polynomials in `tanh (κ x)` + - C.1. Derivatives and smoothness + - C.2. The Schrödinger operator + - C.3. Asymptotics +- D. Scattering states +- E. Reflectionlessness ## iv. References @@ -54,7 +65,8 @@ namespace QuantumMechanics namespace PoschlTeller -open Complex Polynomial +open Complex Constants Polynomial Filter Topology +open scoped ContDiff variable (Q : PoschlTeller) @@ -191,6 +203,183 @@ lemma scatteringPoly_eval_neg_one_ne_zero (k : ℝ) (n : ℕ) : have := Q.κ_pos nlinarith [(Nat.cast_nonneg j : (0 : ℝ) ≤ j)] +/-! +## B. The Schrödinger operator +-/ + +/-- The Schrödinger operator of the Pöschl-Teller system acting on functions `ℝ → ℂ`, + `ψ ↦ -ℏ² / (2 m) ψ'' + V ψ`. -/ +def schrodingerOperator (ψ : ℝ → ℂ) : ℝ → ℂ := fun x => + -(ℏ ^ 2 / (2 * Q.m) : ℝ) * deriv (deriv ψ) x + Q.potential (Space.oneEquiv.symm x) * ψ x + +/-! +## C. Waves modulated by polynomials in `tanh (κ x)` +-/ + +/-- The wave `x ↦ p(tanh (κ x)) e^{i k x}`. -/ +def polyWave (k : ℝ) (p : ℂ[X]) (x : ℝ) : ℂ := + p.eval (Real.tanh (Q.κ * x) : ℂ) * exp (k * x * I) + +/-! +### C.1. Derivatives and smoothness +-/ + +/-- The derivative of `p(tanh (κ x)) e^{i k x}` is `(waveDeriv k p)(tanh (κ x)) e^{i k x}`. -/ +lemma hasDerivAt_polyWave (k : ℝ) (p : ℂ[X]) (x : ℝ) : + HasDerivAt (Q.polyWave k p) (Q.polyWave k (Q.waveDeriv k p) x) x := by + have ht : HasDerivAt (fun x => (Real.tanh (Q.κ * x) : ℂ)) + (((1 - Real.tanh (Q.κ * x) ^ 2) * (Q.κ * 1) : ℝ) : ℂ) x := + ((hasDerivAt_tanh _).comp x ((hasDerivAt_id x).const_mul Q.κ)).ofReal_comp + have hp := (p.hasDerivAt _).comp x ht + have he : HasDerivAt (fun x : ℝ => exp (k * x * I)) (exp (k * x * I) * (k * 1 * I)) x := + ((((hasDerivAt_id x).ofReal_comp).const_mul (k : ℂ)).mul_const I).cexp + refine (hp.mul he).congr_deriv ?_ + simp only [polyWave, waveDeriv, Function.comp_apply, eval_add, eval_mul, eval_C, eval_sub, + eval_one, eval_pow, eval_X] + push_cast + ring + +lemma deriv_polyWave (k : ℝ) (p : ℂ[X]) : + deriv (Q.polyWave k p) = Q.polyWave k (Q.waveDeriv k p) := + funext fun x => (Q.hasDerivAt_polyWave k p x).deriv + +lemma differentiable_polyWave (k : ℝ) (p : ℂ[X]) : Differentiable ℝ (Q.polyWave k p) := + fun x => (Q.hasDerivAt_polyWave k p x).differentiableAt + +/-- The wave `p(tanh (κ x)) e^{i k x}` is smooth. -/ +lemma contDiff_polyWave (k : ℝ) (p : ℂ[X]) : ContDiff ℝ ∞ (Q.polyWave k p) := by + rw [contDiff_infty] + intro n + induction n generalizing p with + | zero => exact contDiff_zero.mpr (Q.differentiable_polyWave k p).continuous + | succ n ih => + rw [Nat.cast_succ, contDiff_succ_iff_deriv, deriv_polyWave] + exact ⟨Q.differentiable_polyWave k p, + by simp only [WithTop.natCast_ne_top, analyticOn_univ, IsEmpty.forall_iff], ih _⟩ + +/-! +### C.2. The Schrödinger operator +-/ + +/-- Multiplying the polynomial by a constant multiplies the wave by that constant. -/ +lemma polyWave_C_mul (k : ℝ) (c : ℂ) (p : ℂ[X]) : + Q.polyWave k (C c * p) = c • Q.polyWave k p := by + funext x + simp only [polyWave, ofReal_tanh, ofReal_mul, eval_mul, eval_C, mul_assoc, Pi.smul_apply, + smul_eq_mul] + +/-- The Schrödinger operator acts on `p(tanh (κ x)) e^{i k x}` through the reduced + Hamiltonian with family number `N`. -/ +lemma schrodingerOperator_polyWave (k : ℝ) (p : ℂ[X]) : + Q.schrodingerOperator (Q.polyWave k p) = + ((ℏ ^ 2 / (2 * Q.m) : ℝ) : ℂ) • Q.polyWave k (Q.reducedHamiltonian k Q.N p) := by + funext x + simp only [schrodingerOperator, deriv_polyWave, Q.potential_eq_tanh, Space.oneEquiv_symm_apply, + depth] + simp only [polyWave, reducedHamiltonian, eval_sub, eval_neg, eval_mul, eval_C, eval_one, + eval_pow, eval_X, Pi.smul_apply, smul_eq_mul] + push_cast + ring + +/-! +### C.3. Asymptotics +-/ + +/-- Removing the plane wave factor from `p(tanh (κ x)) e^{i k x}` leaves `p(tanh (κ x))`. -/ +lemma polyWave_mul_exp (k : ℝ) (p : ℂ[X]) (x : ℝ) : + Q.polyWave k p x * exp (-(k * x * I)) = p.eval (Real.tanh (Q.κ * x) : ℂ) := by + rw [polyWave, mul_assoc, ← exp_add, add_neg_cancel, exp_zero, mul_one] + +/-- As `x → ∞`, `p(tanh (κ x)) e^{i k x}` approaches `p(1) e^{i k x}`. -/ +lemma tendsto_polyWave_mul_exp_atTop (k : ℝ) (p : ℂ[X]) : + Tendsto (fun x => Q.polyWave k p x * exp (-(k * x * I))) atTop (𝓝 (p.eval 1)) := by + simp_rw [Q.polyWave_mul_exp] + have ht : Tendsto (fun x => Real.tanh (Q.κ * x)) atTop (𝓝 1) := + tendsto_tanh_atTop.comp (tendsto_id.const_mul_atTop Q.κ_pos) + have h := (p.continuous.tendsto _).comp ((continuous_ofReal.tendsto _).comp ht) + simpa only [ofReal_tanh, ofReal_mul, Function.comp_def, ofReal_one] using h + +/-- As `x → -∞`, `p(tanh (κ x)) e^{i k x}` approaches `p(-1) e^{i k x}`. -/ +lemma tendsto_polyWave_mul_exp_atBot (k : ℝ) (p : ℂ[X]) : + Tendsto (fun x => Q.polyWave k p x * exp (-(k * x * I))) atBot (𝓝 (p.eval (-1))) := by + simp_rw [Q.polyWave_mul_exp] + have ht : Tendsto (fun x => Real.tanh (Q.κ * x)) atBot (𝓝 (-1)) := + tendsto_tanh_atBot.comp (tendsto_id.const_mul_atBot Q.κ_pos) + have h := (p.continuous.tendsto _).comp ((continuous_ofReal.tendsto _).comp ht) + simpa only [ofReal_tanh, ofReal_mul, Function.comp_def, ofReal_neg, ofReal_one] using h + +/-! +## D. Scattering states +-/ + +/-- The scattering state of the Pöschl-Teller system with wavenumber `k`, + `ψₖ(x) = Pₖ(tanh (κ x)) e^{i k x}`. -/ +def scatteringState (k : ℝ) : ℝ → ℂ := Q.polyWave k (Q.scatteringPoly k Q.N) + +/-- The scattering state is smooth. -/ +lemma contDiff_scatteringState (k : ℝ) : ContDiff ℝ ∞ (Q.scatteringState k) := + Q.contDiff_polyWave k _ + +/-- The scattering state with wavenumber `k` solves the time-independent Schrödinger equation at + energy `ℏ² k² / (2 m)`. -/ +lemma schrodingerOperator_scatteringState (k : ℝ) : + Q.schrodingerOperator (Q.scatteringState k) = + ((ℏ ^ 2 * k ^ 2 / (2 * Q.m) : ℝ) : ℂ) • Q.scatteringState k := by + rw [scatteringState, schrodingerOperator_polyWave, reducedHamiltonian_scatteringPoly, + polyWave_C_mul, smul_smul] + congr 1 + push_cast + ring + +/-- As `x → ∞`, the scattering state tends to `∏ₙ (n κ - i k) e^{i k x}`. -/ +lemma tendsto_scatteringState_mul_exp_atTop (k : ℝ) : + Tendsto (fun x => Q.scatteringState k x * exp (-(k * x * I))) atTop + (𝓝 (∏ j ∈ Finset.range Q.N, ((j + 1) * Q.κ - k * I))) := by + rw [← scatteringPoly_eval_one] + exact Q.tendsto_polyWave_mul_exp_atTop k _ + +/-- As `x → -∞`, the scattering state tends to `∏ₙ (-n κ - i k) e^{i k x}`. -/ +lemma tendsto_scatteringState_mul_exp_atBot (k : ℝ) : + Tendsto (fun x => Q.scatteringState k x * exp (-(k * x * I))) atBot + (𝓝 (∏ j ∈ Finset.range Q.N, (-((j + 1) * Q.κ) - k * I))) := by + rw [← scatteringPoly_eval_neg_one] + exact Q.tendsto_polyWave_mul_exp_atBot k _ + +/-! +## E. Reflectionlessness +-/ + +/-- A function `ψ` approaches the plane wave `T e^{i k x}` if and only if `ψ(x) e^{-i k x}` + tends to `T`. -/ +lemma tendsto_sub_mul_exp_iff (l : Filter ℝ) (ψ : ℝ → ℂ) (k : ℝ) (T : ℂ) : + Tendsto (fun x => ψ x - T * exp (k * x * I)) l (𝓝 0) ↔ + Tendsto (fun x => ψ x * exp (-(k * x * I))) l (𝓝 T) := by + conv_rhs => rw [tendsto_iff_norm_sub_tendsto_zero] + rw [tendsto_zero_iff_norm_tendsto_zero] + refine tendsto_congr fun x => ?_ + have h : ψ x - T * exp (k * x * I) = (ψ x * exp (-(k * x * I)) - T) * exp (k * x * I) := by + rw [sub_mul, mul_assoc (ψ x), ← exp_add, neg_add_cancel, exp_zero, mul_one] + rw [h, norm_mul, ← ofReal_mul, norm_exp_ofReal_mul_I, mul_one] + +/-- **The Pöschl-Teller potential is reflectionless.** For every wavenumber `k` there is a smooth + solution `ψ` of the time-independent Schrödinger equation at energy `ℏ² k² / (2 m)` which + tends to the plane wave `T e^{i k x}` as `x → ∞` and to `T' e^{i k x}` as `x → -∞`, with + `T, T' ≠ 0`. For `k ≠ 0` this is a wave which passes through the well with no reflected wave + `e^{-i k x}`. -/ +theorem reflectionless (k : ℝ) : + ∃ ψ : ℝ → ℂ, ContDiff ℝ ∞ ψ ∧ + Q.schrodingerOperator ψ = ((ℏ ^ 2 * k ^ 2 / (2 * Q.m) : ℝ) : ℂ) • ψ ∧ + ∃ T T' : ℂ, T ≠ 0 ∧ T' ≠ 0 ∧ + Tendsto (fun x => ψ x - T * exp (k * x * I)) atTop (𝓝 0) ∧ + Tendsto (fun x => ψ x - T' * exp (k * x * I)) atBot (𝓝 0) := by + refine ⟨Q.scatteringState k, Q.contDiff_scatteringState k, + Q.schrodingerOperator_scatteringState k, _, _, Q.scatteringPoly_eval_one_ne_zero k Q.N, + Q.scatteringPoly_eval_neg_one_ne_zero k Q.N, ?_, ?_⟩ + · rw [tendsto_sub_mul_exp_iff] + exact Q.tendsto_polyWave_mul_exp_atTop k _ + · rw [tendsto_sub_mul_exp_iff] + exact Q.tendsto_polyWave_mul_exp_atBot k _ + end PoschlTeller end QuantumMechanics end diff --git a/scripts/lint/exemptions/Theorems.txt b/scripts/lint/exemptions/Theorems.txt index 230446e3c7..21f5af4828 100644 --- a/scripts/lint/exemptions/Theorems.txt +++ b/scripts/lint/exemptions/Theorems.txt @@ -43,6 +43,7 @@ WickContraction.card_eq_cardFun WickContraction.card_of_isfull_even WickContraction.card_of_isfull_odd QuantumMechanics.OneDimension.HarmonicOscillator.eigenfunction_completeness +QuantumMechanics.PoschlTeller.reflectionless LinearPMap.numericalRange_convex LinearPMap.inner_map_polarization' spaceTime.γ_anticomm From f674b835ec5657f28fb9b41e311a6cb7e33842d0 Mon Sep 17 00:00:00 2001 From: Emil Kubanychbek <64525925+kubanemil@users.noreply.github.com> Date: Mon, 19 Oct 2026 06:36:48 +0000 Subject: [PATCH 04/12] =?UTF-8?q?refactor(QuantumMechanics):=20rename=20P?= =?UTF-8?q?=C3=B6schl-Teller=20polynomial=20operators=20to=20polyDeriv,=20?= =?UTF-8?q?polyRaise,=20polyReducedHamiltonian=20and=20polyScattering?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PoschlTeller/Scattering.lean | 103 +++++++++--------- 1 file changed, 52 insertions(+), 51 deletions(-) diff --git a/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean b/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean index eee531be51..4a5cb97ac2 100644 --- a/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean +++ b/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean @@ -80,29 +80,29 @@ variable (Q : PoschlTeller) /-- The derivative acting on the polynomial of a wave `p(tanh (κ x)) e^{i k x}`, `p ↦ κ (1 - X²) p' + i k p`, so that - `∂ₓ (p(tanh (κ x)) e^{i k x}) = (waveDeriv k p)(tanh (κ x)) e^{i k x}`. -/ -def waveDeriv (k : ℝ) (p : ℂ[X]) : ℂ[X] := + `∂ₓ (p(tanh (κ x)) e^{i k x}) = (polyDeriv k p)(tanh (κ x)) e^{i k x}`. -/ +def polyDeriv (k : ℝ) (p : ℂ[X]) : ℂ[X] := C (Q.κ : ℂ) * (1 - X ^ 2) * derivative p + C (k * I) * p /-- The raising operator `-∂ₓ + n κ tanh (κ x)` acting on the polynomial of a wave `p(tanh (κ x)) e^{i k x}`. -/ -def raise (k : ℝ) (n : ℕ) (p : ℂ[X]) : ℂ[X] := -Q.waveDeriv k p + C (n * Q.κ : ℂ) * X * p +def polyRaise (k : ℝ) (n : ℕ) (p : ℂ[X]) : ℂ[X] := -Q.polyDeriv k p + C (n * Q.κ : ℂ) * X * p /-- The operator `-∂ₓ² - n (n + 1) κ² / cosh² (κ x)` acting on the polynomial of a wave `p(tanh (κ x)) e^{i k x}`. This is `2 m / ℏ²` times the Hamiltonian of the Pöschl-Teller system with family number `n`. -/ -def reducedHamiltonian (k : ℝ) (n : ℕ) (p : ℂ[X]) : ℂ[X] := - -Q.waveDeriv k (Q.waveDeriv k p) - C ((Q.κ : ℂ) ^ 2 * n * (n + 1)) * (1 - X ^ 2) * p +def polyReducedHamiltonian (k : ℝ) (n : ℕ) (p : ℂ[X]) : ℂ[X] := + -Q.polyDeriv k (Q.polyDeriv k p) - C ((Q.κ : ℂ) ^ 2 * n * (n + 1)) * (1 - X ^ 2) * p /-! ### A.2. The intertwining relation -/ /-- The raising operator intertwines the Hamiltonians with family numbers `n` and `n + 1`. -/ -lemma reducedHamiltonian_raise (k : ℝ) (n : ℕ) (p : ℂ[X]) : - Q.reducedHamiltonian k (n + 1) (Q.raise k (n + 1) p) = - Q.raise k (n + 1) (Q.reducedHamiltonian k n p) := by - simp only [reducedHamiltonian, raise, waveDeriv, derivative_mul, derivative_add, +lemma polyReducedHamiltonian_polyRaise (k : ℝ) (n : ℕ) (p : ℂ[X]) : + Q.polyReducedHamiltonian k (n + 1) (Q.polyRaise k (n + 1) p) = + Q.polyRaise k (n + 1) (Q.polyReducedHamiltonian k n p) := by + simp only [polyReducedHamiltonian, polyRaise, polyDeriv, derivative_mul, derivative_add, derivative_sub, derivative_neg, derivative_C, derivative_X, derivative_X_sq, derivative_one, derivative_zero] simp only [map_mul, map_pow, map_add, map_natCast, map_one, map_ofNat, Nat.cast_add, @@ -110,13 +110,13 @@ lemma reducedHamiltonian_raise (k : ℝ) (n : ℕ) (p : ℂ[X]) : ring /-- The derivative of a constant multiple of the plane wave `c e^{i k x}` is `i k c e^{i k x}`. -/ -lemma waveDeriv_C (k : ℝ) (c : ℂ) : Q.waveDeriv k (C c) = C (k * I * c) := by - simp only [waveDeriv, derivative_C, mul_zero, zero_add, C_mul] +lemma polyDeriv_C (k : ℝ) (c : ℂ) : Q.polyDeriv k (C c) = C (k * I * c) := by + simp only [polyDeriv, derivative_C, mul_zero, zero_add, C_mul] /-- The raising operator is linear with respect to constant multiples. -/ -lemma raise_C_mul (k : ℝ) (n : ℕ) (c : ℂ) (p : ℂ[X]) : - Q.raise k n (C c * p) = C c * Q.raise k n p := by - simp only [raise, waveDeriv, derivative_mul, derivative_C, zero_mul, zero_add] +lemma polyRaise_C_mul (k : ℝ) (n : ℕ) (c : ℂ) (p : ℂ[X]) : + Q.polyRaise k n (C c * p) = C c * Q.polyRaise k n p := by + simp only [polyRaise, polyDeriv, derivative_mul, derivative_C, zero_mul, zero_add] ring /-! @@ -126,65 +126,66 @@ lemma raise_C_mul (k : ℝ) (n : ℕ) (c : ℂ) (p : ℂ[X]) : /-- The polynomial `Pₖ` of the scattering state `Pₖ(tanh (κ x)) e^{i k x}` of the Pöschl-Teller system with family number `n`, obtained by applying the raising operators with `1, …, n` to `1`. -/ -def scatteringPoly (k : ℝ) : ℕ → ℂ[X] +def polyScattering (k : ℝ) : ℕ → ℂ[X] | 0 => 1 - | n + 1 => Q.raise k (n + 1) (scatteringPoly k n) + | n + 1 => Q.polyRaise k (n + 1) (polyScattering k n) /-- The scattering polynomial with family number `n` is an eigenvector of the reduced Hamiltonian with eigenvalue `k²`. -/ -lemma reducedHamiltonian_scatteringPoly (k : ℝ) (n : ℕ) : - Q.reducedHamiltonian k n (Q.scatteringPoly k n) = C ((k : ℂ) ^ 2) * Q.scatteringPoly k n := by +lemma polyReducedHamiltonian_polyScattering (k : ℝ) (n : ℕ) : + Q.polyReducedHamiltonian k n (Q.polyScattering k n) = + C ((k : ℂ) ^ 2) * Q.polyScattering k n := by induction n with | zero => - rw [scatteringPoly, reducedHamiltonian, ← C_1, Q.waveDeriv_C, Q.waveDeriv_C] + rw [polyScattering, polyReducedHamiltonian, ← C_1, Q.polyDeriv_C, Q.polyDeriv_C] simp only [Nat.cast_zero, mul_zero, zero_mul, map_zero, sub_zero, ← C_neg, ← C_mul] congr 1 linear_combination (-(k : ℂ) ^ 2) * I_sq - | succ n ih => rw [scatteringPoly, reducedHamiltonian_raise, ih, raise_C_mul] + | succ n ih => rw [polyScattering, polyReducedHamiltonian_polyRaise, ih, polyRaise_C_mul] /-! ### A.4. Values at `±1` -/ /-- At `tanh (κ x) = 1` the raising operator acts as multiplication by `n κ - i k`. -/ -lemma eval_one_raise (k : ℝ) (n : ℕ) (p : ℂ[X]) : - (Q.raise k n p).eval 1 = (n * Q.κ - k * I) * p.eval 1 := by - simp only [raise, waveDeriv, map_mul, neg_add_rev, map_natCast, eval_add, eval_neg, eval_mul, +lemma eval_one_polyRaise (k : ℝ) (n : ℕ) (p : ℂ[X]) : + (Q.polyRaise k n p).eval 1 = (n * Q.κ - k * I) * p.eval 1 := by + simp only [polyRaise, polyDeriv, map_mul, neg_add_rev, map_natCast, eval_add, eval_neg, eval_mul, eval_C, eval_sub, eval_one, eval_pow, eval_X, one_pow, sub_self, mul_zero, zero_mul, neg_zero, add_zero, eval_natCast, mul_one] ring /-- At `tanh (κ x) = -1` the raising operator acts as multiplication by `-n κ - i k`. -/ -lemma eval_neg_one_raise (k : ℝ) (n : ℕ) (p : ℂ[X]) : - (Q.raise k n p).eval (-1) = (-(n * Q.κ) - k * I) * p.eval (-1) := by - simp only [raise, waveDeriv, map_mul, neg_add_rev, map_natCast, eval_add, eval_neg, eval_mul, +lemma eval_neg_one_polyRaise (k : ℝ) (n : ℕ) (p : ℂ[X]) : + (Q.polyRaise k n p).eval (-1) = (-(n * Q.κ) - k * I) * p.eval (-1) := by + simp only [polyRaise, polyDeriv, map_mul, neg_add_rev, map_natCast, eval_add, eval_neg, eval_mul, eval_C, eval_sub, eval_one, eval_pow, eval_X, even_two, Even.neg_pow, one_pow, sub_self, mul_zero, zero_mul, neg_zero, add_zero, eval_natCast, mul_neg, mul_one, neg_mul] ring /-- The value at `1` of the scattering polynomial is `∏ₙ (n κ - i k)`. -/ -lemma scatteringPoly_eval_one (k : ℝ) (n : ℕ) : - (Q.scatteringPoly k n).eval 1 = ∏ j ∈ Finset.range n, ((j + 1) * Q.κ - k * I) := by +lemma polyScattering_eval_one (k : ℝ) (n : ℕ) : + (Q.polyScattering k n).eval 1 = ∏ j ∈ Finset.range n, ((j + 1) * Q.κ - k * I) := by induction n with - | zero => simp only [scatteringPoly, eval_one, Finset.range_zero, Finset.prod_empty] + | zero => simp only [polyScattering, eval_one, Finset.range_zero, Finset.prod_empty] | succ n ih => - rw [scatteringPoly, eval_one_raise, ih, Finset.prod_range_succ] + rw [polyScattering, eval_one_polyRaise, ih, Finset.prod_range_succ] push_cast ring /-- The value at `-1` of the scattering polynomial is `∏ₙ (-n κ - i k)`. -/ -lemma scatteringPoly_eval_neg_one (k : ℝ) (n : ℕ) : - (Q.scatteringPoly k n).eval (-1) = ∏ j ∈ Finset.range n, (-((j + 1) * Q.κ) - k * I) := by +lemma polyScattering_eval_neg_one (k : ℝ) (n : ℕ) : + (Q.polyScattering k n).eval (-1) = ∏ j ∈ Finset.range n, (-((j + 1) * Q.κ) - k * I) := by induction n with - | zero => simp only [scatteringPoly, eval_one, Finset.range_zero, Finset.prod_empty] + | zero => simp only [polyScattering, eval_one, Finset.range_zero, Finset.prod_empty] | succ n ih => - rw [scatteringPoly, eval_neg_one_raise, ih, Finset.prod_range_succ] + rw [polyScattering, eval_neg_one_polyRaise, ih, Finset.prod_range_succ] push_cast ring /-- The value at `1` of the scattering polynomial is non-zero. -/ -lemma scatteringPoly_eval_one_ne_zero (k : ℝ) (n : ℕ) : (Q.scatteringPoly k n).eval 1 ≠ 0 := by - rw [scatteringPoly_eval_one, Finset.prod_ne_zero_iff] +lemma polyScattering_eval_one_ne_zero (k : ℝ) (n : ℕ) : (Q.polyScattering k n).eval 1 ≠ 0 := by + rw [polyScattering_eval_one, Finset.prod_ne_zero_iff] intro j _ hj have hre := congrArg Complex.re hj simp only [sub_re, mul_re, add_re, natCast_re, one_re, ofReal_re, ofReal_im, I_re, I_im, @@ -193,9 +194,9 @@ lemma scatteringPoly_eval_one_ne_zero (k : ℝ) (n : ℕ) : (Q.scatteringPoly k nlinarith [(Nat.cast_nonneg j : (0 : ℝ) ≤ j)] /-- The value at `-1` of the scattering polynomial is non-zero. -/ -lemma scatteringPoly_eval_neg_one_ne_zero (k : ℝ) (n : ℕ) : - (Q.scatteringPoly k n).eval (-1) ≠ 0 := by - rw [scatteringPoly_eval_neg_one, Finset.prod_ne_zero_iff] +lemma polyScattering_eval_neg_one_ne_zero (k : ℝ) (n : ℕ) : + (Q.polyScattering k n).eval (-1) ≠ 0 := by + rw [polyScattering_eval_neg_one, Finset.prod_ne_zero_iff] intro j _ hj have hre := congrArg Complex.re hj simp only [sub_re, neg_re, mul_re, add_re, natCast_re, one_re, ofReal_re, ofReal_im, I_re, @@ -224,9 +225,9 @@ def polyWave (k : ℝ) (p : ℂ[X]) (x : ℝ) : ℂ := ### C.1. Derivatives and smoothness -/ -/-- The derivative of `p(tanh (κ x)) e^{i k x}` is `(waveDeriv k p)(tanh (κ x)) e^{i k x}`. -/ +/-- The derivative of `p(tanh (κ x)) e^{i k x}` is `(polyDeriv k p)(tanh (κ x)) e^{i k x}`. -/ lemma hasDerivAt_polyWave (k : ℝ) (p : ℂ[X]) (x : ℝ) : - HasDerivAt (Q.polyWave k p) (Q.polyWave k (Q.waveDeriv k p) x) x := by + HasDerivAt (Q.polyWave k p) (Q.polyWave k (Q.polyDeriv k p) x) x := by have ht : HasDerivAt (fun x => (Real.tanh (Q.κ * x) : ℂ)) (((1 - Real.tanh (Q.κ * x) ^ 2) * (Q.κ * 1) : ℝ) : ℂ) x := ((hasDerivAt_tanh _).comp x ((hasDerivAt_id x).const_mul Q.κ)).ofReal_comp @@ -234,13 +235,13 @@ lemma hasDerivAt_polyWave (k : ℝ) (p : ℂ[X]) (x : ℝ) : have he : HasDerivAt (fun x : ℝ => exp (k * x * I)) (exp (k * x * I) * (k * 1 * I)) x := ((((hasDerivAt_id x).ofReal_comp).const_mul (k : ℂ)).mul_const I).cexp refine (hp.mul he).congr_deriv ?_ - simp only [polyWave, waveDeriv, Function.comp_apply, eval_add, eval_mul, eval_C, eval_sub, + simp only [polyWave, polyDeriv, Function.comp_apply, eval_add, eval_mul, eval_C, eval_sub, eval_one, eval_pow, eval_X] push_cast ring lemma deriv_polyWave (k : ℝ) (p : ℂ[X]) : - deriv (Q.polyWave k p) = Q.polyWave k (Q.waveDeriv k p) := + deriv (Q.polyWave k p) = Q.polyWave k (Q.polyDeriv k p) := funext fun x => (Q.hasDerivAt_polyWave k p x).deriv lemma differentiable_polyWave (k : ℝ) (p : ℂ[X]) : Differentiable ℝ (Q.polyWave k p) := @@ -272,11 +273,11 @@ lemma polyWave_C_mul (k : ℝ) (c : ℂ) (p : ℂ[X]) : Hamiltonian with family number `N`. -/ lemma schrodingerOperator_polyWave (k : ℝ) (p : ℂ[X]) : Q.schrodingerOperator (Q.polyWave k p) = - ((ℏ ^ 2 / (2 * Q.m) : ℝ) : ℂ) • Q.polyWave k (Q.reducedHamiltonian k Q.N p) := by + ((ℏ ^ 2 / (2 * Q.m) : ℝ) : ℂ) • Q.polyWave k (Q.polyReducedHamiltonian k Q.N p) := by funext x simp only [schrodingerOperator, deriv_polyWave, Q.potential_eq_tanh, Space.oneEquiv_symm_apply, depth] - simp only [polyWave, reducedHamiltonian, eval_sub, eval_neg, eval_mul, eval_C, eval_one, + simp only [polyWave, polyReducedHamiltonian, eval_sub, eval_neg, eval_mul, eval_C, eval_one, eval_pow, eval_X, Pi.smul_apply, smul_eq_mul] push_cast ring @@ -314,7 +315,7 @@ lemma tendsto_polyWave_mul_exp_atBot (k : ℝ) (p : ℂ[X]) : /-- The scattering state of the Pöschl-Teller system with wavenumber `k`, `ψₖ(x) = Pₖ(tanh (κ x)) e^{i k x}`. -/ -def scatteringState (k : ℝ) : ℝ → ℂ := Q.polyWave k (Q.scatteringPoly k Q.N) +def scatteringState (k : ℝ) : ℝ → ℂ := Q.polyWave k (Q.polyScattering k Q.N) /-- The scattering state is smooth. -/ lemma contDiff_scatteringState (k : ℝ) : ContDiff ℝ ∞ (Q.scatteringState k) := @@ -325,7 +326,7 @@ lemma contDiff_scatteringState (k : ℝ) : ContDiff ℝ ∞ (Q.scatteringState k lemma schrodingerOperator_scatteringState (k : ℝ) : Q.schrodingerOperator (Q.scatteringState k) = ((ℏ ^ 2 * k ^ 2 / (2 * Q.m) : ℝ) : ℂ) • Q.scatteringState k := by - rw [scatteringState, schrodingerOperator_polyWave, reducedHamiltonian_scatteringPoly, + rw [scatteringState, schrodingerOperator_polyWave, polyReducedHamiltonian_polyScattering, polyWave_C_mul, smul_smul] congr 1 push_cast @@ -335,14 +336,14 @@ lemma schrodingerOperator_scatteringState (k : ℝ) : lemma tendsto_scatteringState_mul_exp_atTop (k : ℝ) : Tendsto (fun x => Q.scatteringState k x * exp (-(k * x * I))) atTop (𝓝 (∏ j ∈ Finset.range Q.N, ((j + 1) * Q.κ - k * I))) := by - rw [← scatteringPoly_eval_one] + rw [← polyScattering_eval_one] exact Q.tendsto_polyWave_mul_exp_atTop k _ /-- As `x → -∞`, the scattering state tends to `∏ₙ (-n κ - i k) e^{i k x}`. -/ lemma tendsto_scatteringState_mul_exp_atBot (k : ℝ) : Tendsto (fun x => Q.scatteringState k x * exp (-(k * x * I))) atBot (𝓝 (∏ j ∈ Finset.range Q.N, (-((j + 1) * Q.κ) - k * I))) := by - rw [← scatteringPoly_eval_neg_one] + rw [← polyScattering_eval_neg_one] exact Q.tendsto_polyWave_mul_exp_atBot k _ /-! @@ -373,8 +374,8 @@ theorem reflectionless (k : ℝ) : Tendsto (fun x => ψ x - T * exp (k * x * I)) atTop (𝓝 0) ∧ Tendsto (fun x => ψ x - T' * exp (k * x * I)) atBot (𝓝 0) := by refine ⟨Q.scatteringState k, Q.contDiff_scatteringState k, - Q.schrodingerOperator_scatteringState k, _, _, Q.scatteringPoly_eval_one_ne_zero k Q.N, - Q.scatteringPoly_eval_neg_one_ne_zero k Q.N, ?_, ?_⟩ + Q.schrodingerOperator_scatteringState k, _, _, Q.polyScattering_eval_one_ne_zero k Q.N, + Q.polyScattering_eval_neg_one_ne_zero k Q.N, ?_, ?_⟩ · rw [tendsto_sub_mul_exp_iff] exact Q.tendsto_polyWave_mul_exp_atTop k _ · rw [tendsto_sub_mul_exp_iff] From a024e636274c02ec2a86f7f0e45bcad21d4f2c5b Mon Sep 17 00:00:00 2001 From: Emil Kubanychbek <64525925+kubanemil@users.noreply.github.com> Date: Mon, 19 Oct 2026 06:37:45 +0000 Subject: [PATCH 05/12] refactor(QuantumMechanics): rename PoschlTeller.polyWave to waveOfPoly --- .../PoschlTeller/Scattering.lean | 76 +++++++++---------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean b/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean index 4a5cb97ac2..cf1ea65db5 100644 --- a/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean +++ b/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean @@ -218,7 +218,7 @@ def schrodingerOperator (ψ : ℝ → ℂ) : ℝ → ℂ := fun x => -/ /-- The wave `x ↦ p(tanh (κ x)) e^{i k x}`. -/ -def polyWave (k : ℝ) (p : ℂ[X]) (x : ℝ) : ℂ := +def waveOfPoly (k : ℝ) (p : ℂ[X]) (x : ℝ) : ℂ := p.eval (Real.tanh (Q.κ * x) : ℂ) * exp (k * x * I) /-! @@ -226,8 +226,8 @@ def polyWave (k : ℝ) (p : ℂ[X]) (x : ℝ) : ℂ := -/ /-- The derivative of `p(tanh (κ x)) e^{i k x}` is `(polyDeriv k p)(tanh (κ x)) e^{i k x}`. -/ -lemma hasDerivAt_polyWave (k : ℝ) (p : ℂ[X]) (x : ℝ) : - HasDerivAt (Q.polyWave k p) (Q.polyWave k (Q.polyDeriv k p) x) x := by +lemma hasDerivAt_waveOfPoly (k : ℝ) (p : ℂ[X]) (x : ℝ) : + HasDerivAt (Q.waveOfPoly k p) (Q.waveOfPoly k (Q.polyDeriv k p) x) x := by have ht : HasDerivAt (fun x => (Real.tanh (Q.κ * x) : ℂ)) (((1 - Real.tanh (Q.κ * x) ^ 2) * (Q.κ * 1) : ℝ) : ℂ) x := ((hasDerivAt_tanh _).comp x ((hasDerivAt_id x).const_mul Q.κ)).ofReal_comp @@ -235,27 +235,27 @@ lemma hasDerivAt_polyWave (k : ℝ) (p : ℂ[X]) (x : ℝ) : have he : HasDerivAt (fun x : ℝ => exp (k * x * I)) (exp (k * x * I) * (k * 1 * I)) x := ((((hasDerivAt_id x).ofReal_comp).const_mul (k : ℂ)).mul_const I).cexp refine (hp.mul he).congr_deriv ?_ - simp only [polyWave, polyDeriv, Function.comp_apply, eval_add, eval_mul, eval_C, eval_sub, + simp only [waveOfPoly, polyDeriv, Function.comp_apply, eval_add, eval_mul, eval_C, eval_sub, eval_one, eval_pow, eval_X] push_cast ring -lemma deriv_polyWave (k : ℝ) (p : ℂ[X]) : - deriv (Q.polyWave k p) = Q.polyWave k (Q.polyDeriv k p) := - funext fun x => (Q.hasDerivAt_polyWave k p x).deriv +lemma deriv_waveOfPoly (k : ℝ) (p : ℂ[X]) : + deriv (Q.waveOfPoly k p) = Q.waveOfPoly k (Q.polyDeriv k p) := + funext fun x => (Q.hasDerivAt_waveOfPoly k p x).deriv -lemma differentiable_polyWave (k : ℝ) (p : ℂ[X]) : Differentiable ℝ (Q.polyWave k p) := - fun x => (Q.hasDerivAt_polyWave k p x).differentiableAt +lemma differentiable_waveOfPoly (k : ℝ) (p : ℂ[X]) : Differentiable ℝ (Q.waveOfPoly k p) := + fun x => (Q.hasDerivAt_waveOfPoly k p x).differentiableAt /-- The wave `p(tanh (κ x)) e^{i k x}` is smooth. -/ -lemma contDiff_polyWave (k : ℝ) (p : ℂ[X]) : ContDiff ℝ ∞ (Q.polyWave k p) := by +lemma contDiff_waveOfPoly (k : ℝ) (p : ℂ[X]) : ContDiff ℝ ∞ (Q.waveOfPoly k p) := by rw [contDiff_infty] intro n induction n generalizing p with - | zero => exact contDiff_zero.mpr (Q.differentiable_polyWave k p).continuous + | zero => exact contDiff_zero.mpr (Q.differentiable_waveOfPoly k p).continuous | succ n ih => - rw [Nat.cast_succ, contDiff_succ_iff_deriv, deriv_polyWave] - exact ⟨Q.differentiable_polyWave k p, + rw [Nat.cast_succ, contDiff_succ_iff_deriv, deriv_waveOfPoly] + exact ⟨Q.differentiable_waveOfPoly k p, by simp only [WithTop.natCast_ne_top, analyticOn_univ, IsEmpty.forall_iff], ih _⟩ /-! @@ -263,21 +263,21 @@ lemma contDiff_polyWave (k : ℝ) (p : ℂ[X]) : ContDiff ℝ ∞ (Q.polyWave k -/ /-- Multiplying the polynomial by a constant multiplies the wave by that constant. -/ -lemma polyWave_C_mul (k : ℝ) (c : ℂ) (p : ℂ[X]) : - Q.polyWave k (C c * p) = c • Q.polyWave k p := by +lemma waveOfPoly_C_mul (k : ℝ) (c : ℂ) (p : ℂ[X]) : + Q.waveOfPoly k (C c * p) = c • Q.waveOfPoly k p := by funext x - simp only [polyWave, ofReal_tanh, ofReal_mul, eval_mul, eval_C, mul_assoc, Pi.smul_apply, + simp only [waveOfPoly, ofReal_tanh, ofReal_mul, eval_mul, eval_C, mul_assoc, Pi.smul_apply, smul_eq_mul] /-- The Schrödinger operator acts on `p(tanh (κ x)) e^{i k x}` through the reduced Hamiltonian with family number `N`. -/ -lemma schrodingerOperator_polyWave (k : ℝ) (p : ℂ[X]) : - Q.schrodingerOperator (Q.polyWave k p) = - ((ℏ ^ 2 / (2 * Q.m) : ℝ) : ℂ) • Q.polyWave k (Q.polyReducedHamiltonian k Q.N p) := by +lemma schrodingerOperator_waveOfPoly (k : ℝ) (p : ℂ[X]) : + Q.schrodingerOperator (Q.waveOfPoly k p) = + ((ℏ ^ 2 / (2 * Q.m) : ℝ) : ℂ) • Q.waveOfPoly k (Q.polyReducedHamiltonian k Q.N p) := by funext x - simp only [schrodingerOperator, deriv_polyWave, Q.potential_eq_tanh, Space.oneEquiv_symm_apply, + simp only [schrodingerOperator, deriv_waveOfPoly, Q.potential_eq_tanh, Space.oneEquiv_symm_apply, depth] - simp only [polyWave, polyReducedHamiltonian, eval_sub, eval_neg, eval_mul, eval_C, eval_one, + simp only [waveOfPoly, polyReducedHamiltonian, eval_sub, eval_neg, eval_mul, eval_C, eval_one, eval_pow, eval_X, Pi.smul_apply, smul_eq_mul] push_cast ring @@ -287,23 +287,23 @@ lemma schrodingerOperator_polyWave (k : ℝ) (p : ℂ[X]) : -/ /-- Removing the plane wave factor from `p(tanh (κ x)) e^{i k x}` leaves `p(tanh (κ x))`. -/ -lemma polyWave_mul_exp (k : ℝ) (p : ℂ[X]) (x : ℝ) : - Q.polyWave k p x * exp (-(k * x * I)) = p.eval (Real.tanh (Q.κ * x) : ℂ) := by - rw [polyWave, mul_assoc, ← exp_add, add_neg_cancel, exp_zero, mul_one] +lemma waveOfPoly_mul_exp (k : ℝ) (p : ℂ[X]) (x : ℝ) : + Q.waveOfPoly k p x * exp (-(k * x * I)) = p.eval (Real.tanh (Q.κ * x) : ℂ) := by + rw [waveOfPoly, mul_assoc, ← exp_add, add_neg_cancel, exp_zero, mul_one] /-- As `x → ∞`, `p(tanh (κ x)) e^{i k x}` approaches `p(1) e^{i k x}`. -/ -lemma tendsto_polyWave_mul_exp_atTop (k : ℝ) (p : ℂ[X]) : - Tendsto (fun x => Q.polyWave k p x * exp (-(k * x * I))) atTop (𝓝 (p.eval 1)) := by - simp_rw [Q.polyWave_mul_exp] +lemma tendsto_waveOfPoly_mul_exp_atTop (k : ℝ) (p : ℂ[X]) : + Tendsto (fun x => Q.waveOfPoly k p x * exp (-(k * x * I))) atTop (𝓝 (p.eval 1)) := by + simp_rw [Q.waveOfPoly_mul_exp] have ht : Tendsto (fun x => Real.tanh (Q.κ * x)) atTop (𝓝 1) := tendsto_tanh_atTop.comp (tendsto_id.const_mul_atTop Q.κ_pos) have h := (p.continuous.tendsto _).comp ((continuous_ofReal.tendsto _).comp ht) simpa only [ofReal_tanh, ofReal_mul, Function.comp_def, ofReal_one] using h /-- As `x → -∞`, `p(tanh (κ x)) e^{i k x}` approaches `p(-1) e^{i k x}`. -/ -lemma tendsto_polyWave_mul_exp_atBot (k : ℝ) (p : ℂ[X]) : - Tendsto (fun x => Q.polyWave k p x * exp (-(k * x * I))) atBot (𝓝 (p.eval (-1))) := by - simp_rw [Q.polyWave_mul_exp] +lemma tendsto_waveOfPoly_mul_exp_atBot (k : ℝ) (p : ℂ[X]) : + Tendsto (fun x => Q.waveOfPoly k p x * exp (-(k * x * I))) atBot (𝓝 (p.eval (-1))) := by + simp_rw [Q.waveOfPoly_mul_exp] have ht : Tendsto (fun x => Real.tanh (Q.κ * x)) atBot (𝓝 (-1)) := tendsto_tanh_atBot.comp (tendsto_id.const_mul_atBot Q.κ_pos) have h := (p.continuous.tendsto _).comp ((continuous_ofReal.tendsto _).comp ht) @@ -315,19 +315,19 @@ lemma tendsto_polyWave_mul_exp_atBot (k : ℝ) (p : ℂ[X]) : /-- The scattering state of the Pöschl-Teller system with wavenumber `k`, `ψₖ(x) = Pₖ(tanh (κ x)) e^{i k x}`. -/ -def scatteringState (k : ℝ) : ℝ → ℂ := Q.polyWave k (Q.polyScattering k Q.N) +def scatteringState (k : ℝ) : ℝ → ℂ := Q.waveOfPoly k (Q.polyScattering k Q.N) /-- The scattering state is smooth. -/ lemma contDiff_scatteringState (k : ℝ) : ContDiff ℝ ∞ (Q.scatteringState k) := - Q.contDiff_polyWave k _ + Q.contDiff_waveOfPoly k _ /-- The scattering state with wavenumber `k` solves the time-independent Schrödinger equation at energy `ℏ² k² / (2 m)`. -/ lemma schrodingerOperator_scatteringState (k : ℝ) : Q.schrodingerOperator (Q.scatteringState k) = ((ℏ ^ 2 * k ^ 2 / (2 * Q.m) : ℝ) : ℂ) • Q.scatteringState k := by - rw [scatteringState, schrodingerOperator_polyWave, polyReducedHamiltonian_polyScattering, - polyWave_C_mul, smul_smul] + rw [scatteringState, schrodingerOperator_waveOfPoly, polyReducedHamiltonian_polyScattering, + waveOfPoly_C_mul, smul_smul] congr 1 push_cast ring @@ -337,14 +337,14 @@ lemma tendsto_scatteringState_mul_exp_atTop (k : ℝ) : Tendsto (fun x => Q.scatteringState k x * exp (-(k * x * I))) atTop (𝓝 (∏ j ∈ Finset.range Q.N, ((j + 1) * Q.κ - k * I))) := by rw [← polyScattering_eval_one] - exact Q.tendsto_polyWave_mul_exp_atTop k _ + exact Q.tendsto_waveOfPoly_mul_exp_atTop k _ /-- As `x → -∞`, the scattering state tends to `∏ₙ (-n κ - i k) e^{i k x}`. -/ lemma tendsto_scatteringState_mul_exp_atBot (k : ℝ) : Tendsto (fun x => Q.scatteringState k x * exp (-(k * x * I))) atBot (𝓝 (∏ j ∈ Finset.range Q.N, (-((j + 1) * Q.κ) - k * I))) := by rw [← polyScattering_eval_neg_one] - exact Q.tendsto_polyWave_mul_exp_atBot k _ + exact Q.tendsto_waveOfPoly_mul_exp_atBot k _ /-! ## E. Reflectionlessness @@ -377,9 +377,9 @@ theorem reflectionless (k : ℝ) : Q.schrodingerOperator_scatteringState k, _, _, Q.polyScattering_eval_one_ne_zero k Q.N, Q.polyScattering_eval_neg_one_ne_zero k Q.N, ?_, ?_⟩ · rw [tendsto_sub_mul_exp_iff] - exact Q.tendsto_polyWave_mul_exp_atTop k _ + exact Q.tendsto_waveOfPoly_mul_exp_atTop k _ · rw [tendsto_sub_mul_exp_iff] - exact Q.tendsto_polyWave_mul_exp_atBot k _ + exact Q.tendsto_waveOfPoly_mul_exp_atBot k _ end PoschlTeller end QuantumMechanics From ac2fb2db62dfcbce44363acbed860c349f8f44e5 Mon Sep 17 00:00:00 2001 From: Emil Kubanychbek <64525925+kubanemil@users.noreply.github.com> Date: Thu, 29 Oct 2026 09:34:26 +0000 Subject: [PATCH 06/12] feat(Mathematics): add HasTemperateGrowth.fderiv, polynomial_eval and integrable_mul_schwartzMap --- .../ForMathlib/HasTemperateGrowth.lean | 33 ++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/Physlib/Mathematics/ForMathlib/HasTemperateGrowth.lean b/Physlib/Mathematics/ForMathlib/HasTemperateGrowth.lean index 5ab893702e..1d56fd4c4f 100644 --- a/Physlib/Mathematics/ForMathlib/HasTemperateGrowth.lean +++ b/Physlib/Mathematics/ForMathlib/HasTemperateGrowth.lean @@ -5,7 +5,8 @@ Authors: Gregory J. Loges -/ module -public import Mathlib.Analysis.Distribution.TemperateGrowth +public import Mathlib.Analysis.Distribution.SchwartzSpace.Basic +public import Mathlib.Algebra.Polynomial.Eval.Defs /-! # Functions of temperate growth @@ -19,6 +20,7 @@ This file is intended to collect useful general properties of `HasTemperateGrowt namespace Function.HasTemperateGrowth open Finset +open scoped ContDiff /-- The finite product of functions of temperate growth is again of temperate growth. -/ @[to_fun (attr := fun_prop)] @@ -32,4 +34,33 @@ lemma prod {ι : Type*} {s : Finset ι} {E F : Type*} [NormedAddCommGroup E] simp_rw [insert_eq, prod_union (disjoint_singleton_left.mpr hjt), prod_singleton] exact fun_mul (hf j <| mem_insert_self j t) (ih fun i h ↦ hf i <| mem_insert_of_mem h) +/-- The derivative of a function of temperate growth is again of temperate growth. -/ +lemma fderiv {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] + [NormedSpace ℝ F] {f : E → F} (hf : HasTemperateGrowth f) : + HasTemperateGrowth (fderiv ℝ f) := by + refine ⟨hf.1.fderiv_right (m := ∞) (by simp), fun n => ?_⟩ + obtain ⟨k, C, h⟩ := hf.2 (n + 1) + exact ⟨k, C, fun x => norm_iteratedFDeriv_fderiv.le.trans (h x)⟩ + +/-- A polynomial evaluated on a function of temperate growth is again of temperate growth. -/ +lemma polynomial_eval {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedCommRing F] + [NormedAlgebra ℝ F] {f : E → F} (hf : HasTemperateGrowth f) (p : Polynomial F) : + HasTemperateGrowth (fun x => p.eval (f x)) := by + induction p using Polynomial.induction_on' with + | add p q hp hq => + simp only [Polynomial.eval_add] + exact hp.add hq + | monomial n a => + simp only [Polynomial.eval_monomial] + exact (const a).mul (hf.pow n) + +/-- The product of a function of temperate growth and a Schwartz map is integrable. -/ +lemma integrable_mul_schwartzMap {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] + [MeasurableSpace E] [BorelSpace E] [SecondCountableTopology E] {μ : MeasureTheory.Measure E} + [μ.HasTemperateGrowth] {g : E → ℂ} (hg : HasTemperateGrowth g) (ψ : SchwartzMap E ℂ) : + MeasureTheory.Integrable (fun x => g x * ψ x) μ := by + have h := (SchwartzMap.smulLeftCLM ℂ g ψ).integrable (μ := μ) + rw [SchwartzMap.smulLeftCLM_apply hg] at h + simpa using h + end Function.HasTemperateGrowth From 209f61066e470ff6e885d313f79f87561e48330b Mon Sep 17 00:00:00 2001 From: Emil Kubanychbek <64525925+kubanemil@users.noreply.github.com> Date: Thu, 29 Oct 2026 09:34:26 +0000 Subject: [PATCH 07/12] feat(QuantumMechanics): add integral_mul_momentumCLM --- .../QuantumMechanics/Operators/Momentum.lean | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Physlib/QuantumMechanics/Operators/Momentum.lean b/Physlib/QuantumMechanics/Operators/Momentum.lean index 696f04d269..6365e116b9 100644 --- a/Physlib/QuantumMechanics/Operators/Momentum.lean +++ b/Physlib/QuantumMechanics/Operators/Momentum.lean @@ -9,7 +9,9 @@ public import Physlib.QuantumMechanics.Operators.Unbounded public import Physlib.QuantumMechanics.HilbertSpaces.SpaceD.SchwartzSubmodule public import Physlib.QuantumMechanics.PlanckConstant public import Physlib.SpaceAndTime.Space.Derivatives.Basic +public import Physlib.Mathematics.ForMathlib.HasTemperateGrowth import Mathlib.Analysis.Calculus.FDeriv.Star +import Mathlib.Analysis.Calculus.LineDeriv.IntegrationByParts /-! # Momentum operators @@ -26,6 +28,10 @@ Definitions: - `momentumOperator` : a symmetric unbounded operator acting on the Schwartz submodule of the Hilbert space `SpaceDHilbertSpace d`. +Results: +- `integral_mul_momentumCLM` : integration by parts of `momentumCLM` against a function of + temperate growth. + Notation: - `𝐩` for `momentumOperator` @@ -33,6 +39,7 @@ Notation: - A. Momentum vector operator - B. Unbounded momentum vector operator +- C. Integration by parts against functions of temperate growth ## iv. References @@ -166,5 +173,32 @@ lemma momentumSqOperator_domain_eq : momentumSqOperator.domain = SchwartzSubmodu rw [← iInf_const (a := SchwartzSubmodule d) (ι := Fin d)] congr +/-! + +## C. Integration by parts against functions of temperate growth + +-/ + +/-- For a function `g` of temperate growth and a Schwartz map `ψ`, + `∫ g (𝐩ᵢ ψ) = iℏ ∫ (∂ᵢ g) ψ`. -/ +lemma integral_mul_momentumCLM {g : Space d → ℂ} (hg : g.HasTemperateGrowth) + (ψ : 𝓢(Space d, ℂ)) : + ∫ x, g x * 𝐩 i ψ x = I * ℏ * ∫ x, ∂[i] g x * ψ x := by + have hg' : (∂[i] g).HasTemperateGrowth := + (ContinuousLinearMap.apply ℝ ℂ (basis i)).hasTemperateGrowth.comp hg.fderiv + have hψ' : ∂[i] ψ = ⇑(SchwartzMap.evalCLM ℂ (Space d) ℂ (basis i) + (SchwartzMap.fderivCLM ℂ (Space d) ℂ ψ)) := rfl + have hibp : ∫ x, g x * ∂[i] ψ x = -∫ x, ∂[i] g x * ψ x := by + have h := integral_bilinear_hasLineDerivAt_right_eq_neg_left_of_integrable + (μ := volume) (B := ContinuousLinearMap.mul ℝ ℂ) (f := g) (f' := ∂[i] g) (g := ψ) + (g' := ∂[i] ψ) (v := basis i) (hg'.integrable_mul_schwartzMap ψ) + (by rw [hψ']; exact hg.integrable_mul_schwartzMap _) (hg.integrable_mul_schwartzMap ψ) + (fun x _ => ((hg.1.differentiable (by simp)) x).hasFDerivAt.hasLineDerivAt (basis i)) + (fun x _ => ψ.differentiableAt.hasFDerivAt.hasLineDerivAt (basis i)) + simpa using h + simp only [momentumCLM_apply] + simp_rw [mul_left_comm (g _), integral_const_mul, hibp] + ring + end end QuantumMechanics From 4c42be23dcb162cf84b723a0b04c72e8f017d357 Mon Sep 17 00:00:00 2001 From: Emil Kubanychbek <64525925+kubanemil@users.noreply.github.com> Date: Thu, 29 Oct 2026 09:34:26 +0000 Subject: [PATCH 08/12] feat(QuantumMechanics): add SpaceDQuantumSystem.IsReflectionless --- .../QuantumMechanics/SpaceDQuantumSystem.lean | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Physlib/QuantumMechanics/SpaceDQuantumSystem.lean b/Physlib/QuantumMechanics/SpaceDQuantumSystem.lean index 8ccf56cc8d..8944e81194 100644 --- a/Physlib/QuantumMechanics/SpaceDQuantumSystem.lean +++ b/Physlib/QuantumMechanics/SpaceDQuantumSystem.lean @@ -27,6 +27,7 @@ namely the number of spatial dimensions, the particle's mass and the potential f - B.1. Kinetic energy - B.2. Potential energy - B.3. Hamiltonian +- C. Reflectionless systems in one dimension ## iv. References @@ -147,6 +148,26 @@ lemma hamiltonianOperator_eq : Q.hamiltonianOperator = Q.kineticOperator + Q.pot end +/-! +## C. Reflectionless systems in one dimension +-/ + +open Constants Filter Topology SchwartzMap +open scoped ComplexConjugate + +/-- A system in one dimension is reflectionless if for every wavenumber `k ≠ 0` there is a + continuous wavefunction `ψ` which solves the time-independent Schrödinger equation at energy + `ℏ² k² / (2 m)` against all Schwartz maps, `∫ ψ̄ (H φ) = E ∫ ψ̄ φ`, and which tends to non-zero + multiples of the plane wave `e^{i k x}` both as `x → ∞` and as `x → -∞`. No reflected wave + `e^{-i k x}` appears. -/ +def IsReflectionless (Q : SpaceDQuantumSystem 1) : Prop := + ∀ k : ℝ, k ≠ 0 → ∃ ψ : ℝ → ℂ, Continuous ψ ∧ + (∀ φ : 𝓢(Space 1, ℂ), ∫ x, conj (ψ (x 0)) * Q.hamiltonianCLM φ x = + ((ℏ ^ 2 * k ^ 2 / (2 * Q.m) : ℝ) : ℂ) * ∫ x, conj (ψ (x 0)) * φ x) ∧ + ∃ T T' : ℂ, T ≠ 0 ∧ T' ≠ 0 ∧ + Tendsto (fun x => ψ x - T * exp (k * x * I)) atTop (𝓝 0) ∧ + Tendsto (fun x => ψ x - T' * exp (k * x * I)) atBot (𝓝 0) + end end SpaceDQuantumSystem end QuantumMechanics From e6326f7bcd7791c488fb85a9d32f017c25bc9f5e Mon Sep 17 00:00:00 2001 From: Emil Kubanychbek <64525925+kubanemil@users.noreply.github.com> Date: Thu, 29 Oct 2026 09:34:26 +0000 Subject: [PATCH 09/12] feat(QuantumMechanics): add PoschlTeller.scatteringState as a bra and prove isReflectionless MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces schrodingerOperator on functions ℝ → ℂ by the Hamiltonian on Schwartz maps: scatteringState_comp_hamiltonianCLM shows ⟨ψₖ| H = E ⟨ψₖ|. The theorem reflectionless becomes the lemma isReflectionless : Q.toSpaceDQuantumSystem.IsReflectionless. --- .../PoschlTeller/Scattering.lean | 257 +++++++++++------- scripts/lint/exemptions/Theorems.txt | 1 - 2 files changed, 165 insertions(+), 93 deletions(-) diff --git a/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean b/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean index cf1ea65db5..e94229dc4e 100644 --- a/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean +++ b/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean @@ -5,6 +5,7 @@ Authors: Emil Kubanychbek -/ module +public import Mathlib.Analysis.Distribution.TemperedDistribution public import Physlib.QuantumMechanics.PoschlTeller.Basic /-! @@ -29,14 +30,19 @@ Pöschl-Teller potential is reflectionless. The polynomial in `tanh (κ x)` multiplying `e^{i k x}` is tracked as an element of `ℂ[X]`, so that the intertwining relation becomes an identity of polynomials. +The scattering wave `ψₖ` is not normalizable, so it does not lie in the Hilbert space. Following +`momentumState`, the scattering state is instead the bra `⟨ψₖ|` in the strong dual of the Schwartz +space, and the Schrödinger equation holds in the form `⟨ψₖ| H = E ⟨ψₖ|`, where `H` is the +Hamiltonian acting on Schwartz maps. + ## ii. Key results -- `schrodingerOperator_scatteringState` : the scattering state solves the time-independent - Schrödinger equation at energy `ℏ² k² / (2 m)`. -- `tendsto_scatteringState_mul_exp_atTop`, `tendsto_scatteringState_mul_exp_atBot` : the - scattering state tends to `∏ₙ (n κ - i k) e^{i k x}` as `x → ∞` and to +- `scatteringState_comp_hamiltonianCLM` : the scattering state is a generalized eigenvector of the + Hamiltonian with energy `ℏ² k² / (2 m)`. +- `tendsto_scatteringWave_mul_exp_atTop`, `tendsto_scatteringWave_mul_exp_atBot` : the + scattering wave tends to `∏ₙ (n κ - i k) e^{i k x}` as `x → ∞` and to `∏ₙ (-n κ - i k) e^{i k x}` as `x → -∞`. -- `reflectionless` : the Pöschl-Teller potential is reflectionless. +- `isReflectionless` : the Pöschl-Teller potential is reflectionless. ## iii. Table of contents @@ -45,13 +51,14 @@ the intertwining relation becomes an identity of polynomials. - A.2. The intertwining relation - A.3. The scattering polynomials - A.4. Values at `±1` -- B. The Schrödinger operator -- C. Waves modulated by polynomials in `tanh (κ x)` - - C.1. Derivatives and smoothness - - C.2. The Schrödinger operator - - C.3. Asymptotics -- D. Scattering states -- E. Reflectionlessness +- B. Waves modulated by polynomials in `tanh (κ x)` + - B.1. Derivatives and temperate growth + - B.2. The Hamiltonian + - B.3. Asymptotics +- C. Scattering states + - C.1. The scattering wave + - C.2. Scattering states as generalized eigenvectors +- D. Reflectionlessness ## iv. References @@ -65,8 +72,8 @@ namespace QuantumMechanics namespace PoschlTeller -open Complex Constants Polynomial Filter Topology -open scoped ContDiff +open Complex Constants Polynomial Filter Topology SchwartzMap MeasureTheory Space +open scoped ComplexConjugate variable (Q : PoschlTeller) @@ -205,16 +212,7 @@ lemma polyScattering_eval_neg_one_ne_zero (k : ℝ) (n : ℕ) : nlinarith [(Nat.cast_nonneg j : (0 : ℝ) ≤ j)] /-! -## B. The Schrödinger operator --/ - -/-- The Schrödinger operator of the Pöschl-Teller system acting on functions `ℝ → ℂ`, - `ψ ↦ -ℏ² / (2 m) ψ'' + V ψ`. -/ -def schrodingerOperator (ψ : ℝ → ℂ) : ℝ → ℂ := fun x => - -(ℏ ^ 2 / (2 * Q.m) : ℝ) * deriv (deriv ψ) x + Q.potential (Space.oneEquiv.symm x) * ψ x - -/-! -## C. Waves modulated by polynomials in `tanh (κ x)` +## B. Waves modulated by polynomials in `tanh (κ x)` -/ /-- The wave `x ↦ p(tanh (κ x)) e^{i k x}`. -/ @@ -222,7 +220,7 @@ def waveOfPoly (k : ℝ) (p : ℂ[X]) (x : ℝ) : ℂ := p.eval (Real.tanh (Q.κ * x) : ℂ) * exp (k * x * I) /-! -### C.1. Derivatives and smoothness +### B.1. Derivatives and temperate growth -/ /-- The derivative of `p(tanh (κ x)) e^{i k x}` is `(polyDeriv k p)(tanh (κ x)) e^{i k x}`. -/ @@ -240,26 +238,42 @@ lemma hasDerivAt_waveOfPoly (k : ℝ) (p : ℂ[X]) (x : ℝ) : push_cast ring -lemma deriv_waveOfPoly (k : ℝ) (p : ℂ[X]) : - deriv (Q.waveOfPoly k p) = Q.waveOfPoly k (Q.polyDeriv k p) := - funext fun x => (Q.hasDerivAt_waveOfPoly k p x).deriv - -lemma differentiable_waveOfPoly (k : ℝ) (p : ℂ[X]) : Differentiable ℝ (Q.waveOfPoly k p) := - fun x => (Q.hasDerivAt_waveOfPoly k p x).differentiableAt - -/-- The wave `p(tanh (κ x)) e^{i k x}` is smooth. -/ -lemma contDiff_waveOfPoly (k : ℝ) (p : ℂ[X]) : ContDiff ℝ ∞ (Q.waveOfPoly k p) := by - rw [contDiff_infty] - intro n - induction n generalizing p with - | zero => exact contDiff_zero.mpr (Q.differentiable_waveOfPoly k p).continuous - | succ n ih => - rw [Nat.cast_succ, contDiff_succ_iff_deriv, deriv_waveOfPoly] - exact ⟨Q.differentiable_waveOfPoly k p, - by simp only [WithTop.natCast_ne_top, analyticOn_univ, IsEmpty.forall_iff], ih _⟩ +/-- The wave `p(tanh (κ x)) e^{i k x}` has temperate growth. -/ +lemma waveOfPoly_hasTemperateGrowth (k : ℝ) (p : ℂ[X]) : + (Q.waveOfPoly k p).HasTemperateGrowth := by + have ht : (fun x : ℝ => (Real.tanh (Q.κ * x) : ℂ)).HasTemperateGrowth := + Complex.ofRealCLM.hasTemperateGrowth.comp (tanh_const_mul_hasTemperateGrowth Q.κ) + have he : (fun x : ℝ => exp (k * x * I)).HasTemperateGrowth := by + convert Complex.hasTemperateGrowth_exp_mul_I.comp + (k • ContinuousLinearMap.id ℝ ℝ).hasTemperateGrowth using 2 with x + simp + exact (ht.polynomial_eval p).mul he + +/-- The complex conjugate of `p(tanh (κ x)) e^{i k x}`, as a function on `Space 1`, has temperate + growth. -/ +lemma conj_waveOfPoly_hasTemperateGrowth (k : ℝ) (p : ℂ[X]) : + (fun x : Space 1 => conj (Q.waveOfPoly k p (x 0))).HasTemperateGrowth := + Complex.conjCLE.hasTemperateGrowth.comp + ((Q.waveOfPoly_hasTemperateGrowth k p).comp (Space.eval_hasTemperateGrowth 0)) + +/-- The derivative of the complex conjugate of `p(tanh (κ x)) e^{i k x}` on `Space 1`. -/ +lemma deriv_conj_waveOfPoly (k : ℝ) (p : ℂ[X]) : + ∂[0] (fun x : Space 1 => conj (Q.waveOfPoly k p (x 0))) = + fun x => conj (Q.waveOfPoly k (Q.polyDeriv k p) (x 0)) := by + funext x + have he : HasFDerivAt (fun x : Space 1 => x 0) (Space.coordCLM 0) x := by + convert (Space.coordCLM (d := 1) 0).hasFDerivAt using 1 + funext y + simp [Space.coordCLM_apply, Space.coord] + have h := Complex.conjCLE.hasFDerivAt.comp x + ((Q.hasDerivAt_waveOfPoly k p (x 0)).hasFDerivAt.comp x he) + have hfun : (fun x : Space 1 => conj (Q.waveOfPoly k p (x 0))) = + ⇑Complex.conjCLE ∘ Q.waveOfPoly k p ∘ fun x => x 0 := rfl + rw [Space.deriv, hfun, h.fderiv] + simp [Space.coordCLM_apply, Space.coord] /-! -### C.2. The Schrödinger operator +### B.2. The Hamiltonian -/ /-- Multiplying the polynomial by a constant multiplies the wave by that constant. -/ @@ -269,21 +283,19 @@ lemma waveOfPoly_C_mul (k : ℝ) (c : ℂ) (p : ℂ[X]) : simp only [waveOfPoly, ofReal_tanh, ofReal_mul, eval_mul, eval_C, mul_assoc, Pi.smul_apply, smul_eq_mul] -/-- The Schrödinger operator acts on `p(tanh (κ x)) e^{i k x}` through the reduced +/-- The Hamiltonian `-ℏ² / (2 m) ∂ₓ² + V` acts on `p(tanh (κ x)) e^{i k x}` through the reduced Hamiltonian with family number `N`. -/ -lemma schrodingerOperator_waveOfPoly (k : ℝ) (p : ℂ[X]) : - Q.schrodingerOperator (Q.waveOfPoly k p) = - ((ℏ ^ 2 / (2 * Q.m) : ℝ) : ℂ) • Q.waveOfPoly k (Q.polyReducedHamiltonian k Q.N p) := by - funext x - simp only [schrodingerOperator, deriv_waveOfPoly, Q.potential_eq_tanh, Space.oneEquiv_symm_apply, - depth] - simp only [waveOfPoly, polyReducedHamiltonian, eval_sub, eval_neg, eval_mul, eval_C, eval_one, - eval_pow, eval_X, Pi.smul_apply, smul_eq_mul] +lemma waveOfPoly_polyReducedHamiltonian (k : ℝ) (p : ℂ[X]) (x : Space 1) : + ((ℏ ^ 2 / (2 * Q.m) : ℝ) : ℂ) * Q.waveOfPoly k (Q.polyReducedHamiltonian k Q.N p) (x 0) = + -((ℏ ^ 2 / (2 * Q.m) : ℝ) : ℂ) * Q.waveOfPoly k (Q.polyDeriv k (Q.polyDeriv k p)) (x 0) + + Q.potential x * Q.waveOfPoly k p (x 0) := by + simp only [waveOfPoly, polyReducedHamiltonian, Q.potential_eq_tanh, depth, eval_sub, eval_neg, + eval_mul, eval_C, eval_one, eval_pow, eval_X] push_cast ring /-! -### C.3. Asymptotics +### B.3. Asymptotics -/ /-- Removing the plane wave factor from `p(tanh (κ x)) e^{i k x}` leaves `p(tanh (κ x))`. -/ @@ -310,44 +322,112 @@ lemma tendsto_waveOfPoly_mul_exp_atBot (k : ℝ) (p : ℂ[X]) : simpa only [ofReal_tanh, ofReal_mul, Function.comp_def, ofReal_neg, ofReal_one] using h /-! -## D. Scattering states +## C. Scattering states -/ -/-- The scattering state of the Pöschl-Teller system with wavenumber `k`, - `ψₖ(x) = Pₖ(tanh (κ x)) e^{i k x}`. -/ -def scatteringState (k : ℝ) : ℝ → ℂ := Q.waveOfPoly k (Q.polyScattering k Q.N) - -/-- The scattering state is smooth. -/ -lemma contDiff_scatteringState (k : ℝ) : ContDiff ℝ ∞ (Q.scatteringState k) := - Q.contDiff_waveOfPoly k _ +/-! +### C.1. The scattering wave +-/ -/-- The scattering state with wavenumber `k` solves the time-independent Schrödinger equation at - energy `ℏ² k² / (2 m)`. -/ -lemma schrodingerOperator_scatteringState (k : ℝ) : - Q.schrodingerOperator (Q.scatteringState k) = - ((ℏ ^ 2 * k ^ 2 / (2 * Q.m) : ℝ) : ℂ) • Q.scatteringState k := by - rw [scatteringState, schrodingerOperator_waveOfPoly, polyReducedHamiltonian_polyScattering, - waveOfPoly_C_mul, smul_smul] - congr 1 - push_cast - ring +/-- The scattering wave of the Pöschl-Teller system with wavenumber `k`, + `ψₖ(x) = Pₖ(tanh (κ x)) e^{i k x}`. -/ +def scatteringWave (k : ℝ) : ℝ → ℂ := Q.waveOfPoly k (Q.polyScattering k Q.N) -/-- As `x → ∞`, the scattering state tends to `∏ₙ (n κ - i k) e^{i k x}`. -/ -lemma tendsto_scatteringState_mul_exp_atTop (k : ℝ) : - Tendsto (fun x => Q.scatteringState k x * exp (-(k * x * I))) atTop +/-- As `x → ∞`, the scattering wave tends to `∏ₙ (n κ - i k) e^{i k x}`. -/ +lemma tendsto_scatteringWave_mul_exp_atTop (k : ℝ) : + Tendsto (fun x => Q.scatteringWave k x * exp (-(k * x * I))) atTop (𝓝 (∏ j ∈ Finset.range Q.N, ((j + 1) * Q.κ - k * I))) := by rw [← polyScattering_eval_one] exact Q.tendsto_waveOfPoly_mul_exp_atTop k _ -/-- As `x → -∞`, the scattering state tends to `∏ₙ (-n κ - i k) e^{i k x}`. -/ -lemma tendsto_scatteringState_mul_exp_atBot (k : ℝ) : - Tendsto (fun x => Q.scatteringState k x * exp (-(k * x * I))) atBot +/-- As `x → -∞`, the scattering wave tends to `∏ₙ (-n κ - i k) e^{i k x}`. -/ +lemma tendsto_scatteringWave_mul_exp_atBot (k : ℝ) : + Tendsto (fun x => Q.scatteringWave k x * exp (-(k * x * I))) atBot (𝓝 (∏ j ∈ Finset.range Q.N, (-((j + 1) * Q.κ) - k * I))) := by rw [← polyScattering_eval_neg_one] exact Q.tendsto_waveOfPoly_mul_exp_atBot k _ +/-- The scattering wave solves the time-independent Schrödinger equation at energy + `ℏ² k² / (2 m)` against all Schwartz maps, `∫ ψ̄ₖ (H φ) = E ∫ ψ̄ₖ φ`. -/ +lemma integral_conj_scatteringWave_mul_hamiltonianCLM (k : ℝ) (φ : 𝓢(Space 1, ℂ)) : + ∫ x, conj (Q.scatteringWave k (x 0)) * Q.toSpaceDQuantumSystem.hamiltonianCLM φ x = + ((ℏ ^ 2 * k ^ 2 / (2 * Q.m) : ℝ) : ℂ) * ∫ x, conj (Q.scatteringWave k (x 0)) * φ x := by + have hg := Q.conj_waveOfPoly_hasTemperateGrowth k + set c : ℂ := (((2 * Q.m)⁻¹ : ℝ) : ℂ) + -- The Schrödinger equation for the conjugate of the scattering wave, pointwise. + have hpt (x : Space 1) : + c * (I * ℏ * (I * ℏ * + conj (Q.waveOfPoly k (Q.polyDeriv k (Q.polyDeriv k (Q.polyScattering k Q.N))) (x 0)))) + + conj (Q.waveOfPoly k (Q.polyScattering k Q.N) (x 0)) * Q.potential x = + ((ℏ ^ 2 * k ^ 2 / (2 * Q.m) : ℝ) : ℂ) * + conj (Q.waveOfPoly k (Q.polyScattering k Q.N) (x 0)) := by + have h := Q.waveOfPoly_polyReducedHamiltonian k (Q.polyScattering k Q.N) x + rw [polyReducedHamiltonian_polyScattering, waveOfPoly_C_mul, Pi.smul_apply, + smul_eq_mul] at h + have h' := congrArg conj h + simp only [map_mul, map_add, map_neg, map_pow, Complex.conj_ofReal] at h' + simp only [c] + push_cast at h' ⊢ + linear_combination -h' + ((2 * (Q.m : ℂ))⁻¹ * (ℏ : ℂ) ^ 2 * + conj (Q.waveOfPoly k (Q.polyDeriv k (Q.polyDeriv k (Q.polyScattering k Q.N))) (x 0))) * I_sq + -- Integrating by parts twice moves both derivatives of the kinetic term onto the wave. + have hkin : ∫ a, conj (Q.waveOfPoly k (Q.polyScattering k Q.N) (a 0)) * + (c * 𝐩 0 (𝐩 0 φ) a) = + c * (I * ℏ * (I * ℏ * ∫ a, conj (Q.waveOfPoly k + (Q.polyDeriv k (Q.polyDeriv k (Q.polyScattering k Q.N))) (a 0)) * φ a)) := by + calc _ = ∫ a, c * (conj (Q.waveOfPoly k (Q.polyScattering k Q.N) (a 0)) * + 𝐩 0 (𝐩 0 φ) a) := by + congr 1; funext a; ring + _ = _ := by + rw [integral_const_mul, integral_mul_momentumCLM 0 (hg _), Q.deriv_conj_waveOfPoly, + integral_mul_momentumCLM 0 (hg _), Q.deriv_conj_waveOfPoly] + simp only [scatteringWave, Q.toSpaceDQuantumSystem_hamiltonianCLM_apply, Complex.real_smul, + mul_add] + have hpot := (hg (Q.polyScattering k Q.N)).integrable_mul_schwartzMap (μ := volume) + (Q.toSpaceDQuantumSystem.potentialCLM φ) + simp only [Q.toSpaceDQuantumSystem_potentialCLM_apply, Complex.real_smul] at hpot + rw [integral_add + (((hg _).integrable_mul_schwartzMap (𝐩 0 (𝐩 0 φ))).const_mul c |>.congr + (by filter_upwards with x; ring)) hpot] + rw [hkin, ← integral_const_mul (I * ℏ), ← integral_const_mul (I * ℏ), ← integral_const_mul c, + ← integral_add, ← integral_const_mul] + · refine integral_congr_ae (Eventually.of_forall fun a => ?_) + simp only + linear_combination φ a * hpt a + · exact ((hg _).integrable_mul_schwartzMap φ).const_mul (c * (I * ℏ * (I * ℏ))) + |>.congr (by filter_upwards with a; ring) + · exact hpot + +/-! +### C.2. Scattering states as generalized eigenvectors +-/ + +/-- The scattering state with wavenumber `k` as a member of the strong dual of the Schwartz space. + + This is the bra `⟨ψₖ|` of the non-normalizable scattering wave `ψₖ`, that is + `φ ↦ ⟨ψₖ, φ⟩ = ∫ ψ̄ₖ φ`. -/ +def scatteringState (k : ℝ) : StrongDual ℂ 𝓢(Space 1, ℂ) := + Function.HasTemperateGrowth.toTemperedDistribution volume + (Q.conj_waveOfPoly_hasTemperateGrowth k (Q.polyScattering k Q.N)) + +/-- The defining property of the scattering state. -/ +lemma scatteringState_apply (k : ℝ) (φ : 𝓢(Space 1, ℂ)) : + Q.scatteringState k φ = ∫ x, conj (Q.scatteringWave k (x 0)) * φ x := + (Function.HasTemperateGrowth.toTemperedDistribution_apply volume + (Q.conj_waveOfPoly_hasTemperateGrowth k (Q.polyScattering k Q.N)) φ).trans <| by + simp [scatteringWave, mul_comm] + +/-- The scattering state `scatteringState k` is a generalized eigenvector of the Hamiltonian with + energy `ℏ² k² / (2 m)`, in the bra form `⟨ψₖ| H = E ⟨ψₖ|` as functionals on Schwartz space. -/ +lemma scatteringState_comp_hamiltonianCLM (k : ℝ) : + Q.scatteringState k ∘L Q.toSpaceDQuantumSystem.hamiltonianCLM = + ((ℏ ^ 2 * k ^ 2 / (2 * Q.m) : ℝ) : ℂ) • Q.scatteringState k := by + ext φ + simp only [ContinuousLinearMap.comp_apply, _root_.smul_apply, smul_eq_mul, + scatteringState_apply, integral_conj_scatteringWave_mul_hamiltonianCLM] + /-! -## E. Reflectionlessness +## D. Reflectionlessness -/ /-- A function `ψ` approaches the plane wave `T e^{i k x}` if and only if `ψ(x) e^{-i k x}` @@ -362,20 +442,13 @@ lemma tendsto_sub_mul_exp_iff (l : Filter ℝ) (ψ : ℝ → ℂ) (k : ℝ) (T : rw [sub_mul, mul_assoc (ψ x), ← exp_add, neg_add_cancel, exp_zero, mul_one] rw [h, norm_mul, ← ofReal_mul, norm_exp_ofReal_mul_I, mul_one] -/-- **The Pöschl-Teller potential is reflectionless.** For every wavenumber `k` there is a smooth - solution `ψ` of the time-independent Schrödinger equation at energy `ℏ² k² / (2 m)` which - tends to the plane wave `T e^{i k x}` as `x → ∞` and to `T' e^{i k x}` as `x → -∞`, with - `T, T' ≠ 0`. For `k ≠ 0` this is a wave which passes through the well with no reflected wave - `e^{-i k x}`. -/ -theorem reflectionless (k : ℝ) : - ∃ ψ : ℝ → ℂ, ContDiff ℝ ∞ ψ ∧ - Q.schrodingerOperator ψ = ((ℏ ^ 2 * k ^ 2 / (2 * Q.m) : ℝ) : ℂ) • ψ ∧ - ∃ T T' : ℂ, T ≠ 0 ∧ T' ≠ 0 ∧ - Tendsto (fun x => ψ x - T * exp (k * x * I)) atTop (𝓝 0) ∧ - Tendsto (fun x => ψ x - T' * exp (k * x * I)) atBot (𝓝 0) := by - refine ⟨Q.scatteringState k, Q.contDiff_scatteringState k, - Q.schrodingerOperator_scatteringState k, _, _, Q.polyScattering_eval_one_ne_zero k Q.N, - Q.polyScattering_eval_neg_one_ne_zero k Q.N, ?_, ?_⟩ +/-- The Pöschl-Teller potential is reflectionless: for every wavenumber `k ≠ 0` the scattering wave + passes the well with no reflected wave `e^{-i k x}`. -/ +lemma isReflectionless : Q.toSpaceDQuantumSystem.IsReflectionless := by + intro k _ + refine ⟨Q.scatteringWave k, (Q.waveOfPoly_hasTemperateGrowth k _).1.continuous, + Q.integral_conj_scatteringWave_mul_hamiltonianCLM k, _, _, + Q.polyScattering_eval_one_ne_zero k Q.N, Q.polyScattering_eval_neg_one_ne_zero k Q.N, ?_, ?_⟩ · rw [tendsto_sub_mul_exp_iff] exact Q.tendsto_waveOfPoly_mul_exp_atTop k _ · rw [tendsto_sub_mul_exp_iff] diff --git a/scripts/lint/exemptions/Theorems.txt b/scripts/lint/exemptions/Theorems.txt index dfb439546f..01e058bfc5 100644 --- a/scripts/lint/exemptions/Theorems.txt +++ b/scripts/lint/exemptions/Theorems.txt @@ -43,7 +43,6 @@ WickContraction.card_eq_cardFun WickContraction.card_of_isfull_even WickContraction.card_of_isfull_odd QuantumMechanics.OneDimension.HarmonicOscillator.eigenfunction_completeness -QuantumMechanics.PoschlTeller.reflectionless LinearPMap.numericalRange_convex LinearPMap.inner_map_polarization' spaceTime.γ_anticomm From 325329f3c486702a5599fa4b698e391fe91902f8 Mon Sep 17 00:00:00 2001 From: Emil Kubanychbek <64525925+kubanemil@users.noreply.github.com> Date: Sun, 8 Nov 2026 14:12:37 +0000 Subject: [PATCH 10/12] feat: add translateSchwartz_single_apply and momentumState_oneEquiv_symm_apply --- .../HilbertSpaces/SpaceD/MomentumStates.lean | 16 ++++++++++++++++ Physlib/SpaceAndTime/Space/Translations.lean | 9 +++++++++ 2 files changed, 25 insertions(+) diff --git a/Physlib/QuantumMechanics/HilbertSpaces/SpaceD/MomentumStates.lean b/Physlib/QuantumMechanics/HilbertSpaces/SpaceD/MomentumStates.lean index ff6310bae0..b8381f9dd2 100644 --- a/Physlib/QuantumMechanics/HilbertSpaces/SpaceD/MomentumStates.lean +++ b/Physlib/QuantumMechanics/HilbertSpaces/SpaceD/MomentumStates.lean @@ -71,6 +71,22 @@ def momentumState (p : Space d) : StrongDual ℂ 𝓢(Space d, ℂ) := lemma momentumState_apply (p : Space d) (ψ : 𝓢(Space d, ℂ)) : momentumState p ψ = 𝓕 ψ ((2 * π)⁻¹ • p) := rfl +open MeasureTheory Space Complex in +/-- In one dimension the momentum state with wavenumber `k` pairs `ψ` with the plane wave + `exp (I k x)`. -/ +lemma momentumState_oneEquiv_symm_apply (k : ℝ) (ψ : 𝓢(Space 1, ℂ)) : + momentumState (oneEquiv.symm k) ψ = ∫ x : Space 1, exp (-(k * (x 0 : ℝ) * I)) * ψ x := by + rw [momentumState_apply, SchwartzMap.fourier_coe, Real.fourier_eq] + refine integral_congr_ae (Filter.Eventually.of_forall fun x => ?_) + have hi : inner ℝ x ((2 * π)⁻¹ • oneEquiv.symm k) = (2 * π)⁻¹ * (x 0 * k) := by + rw [inner_smul_right, Space.inner_eq_sum] + simp [oneEquiv_symm_apply] + simp only [Circle.smul_def, smul_eq_mul, Real.fourierChar_apply, hi] + congr 2 + push_cast + have := Real.pi_ne_zero + field_simp + /-- Two Schwartz maps are equal if they are equal on all momentum states. -/ lemma eq_of_eq_momentumState {ψ φ : 𝓢(Space d, ℂ)} (h : ∀ p, momentumState p ψ = momentumState p φ) : ψ = φ := diff --git a/Physlib/SpaceAndTime/Space/Translations.lean b/Physlib/SpaceAndTime/Space/Translations.lean index 523dbc092d..c83b234df0 100644 --- a/Physlib/SpaceAndTime/Space/Translations.lean +++ b/Physlib/SpaceAndTime/Space/Translations.lean @@ -90,6 +90,15 @@ lemma translateSchwartz_coe_eq {d : ℕ} (a : EuclideanSpace ℝ (Fin d)) ext simp +/-- In one dimension, translating by `a` subtracts the point `a` from the argument. -/ +lemma translateSchwartz_single_apply (a : ℝ) (η : 𝓢(Space 1, X)) (x : Space 1) : + translateSchwartz (EuclideanSpace.single 0 a) η x = η (x - oneEquiv.symm a) := by + rw [translateSchwartz_apply] + congr 2 + ext i + fin_cases i + simp [oneEquiv_symm_apply] + /-- The continuous linear map translating distributions. -/ noncomputable def distTranslate {d : ℕ} (a : EuclideanSpace ℝ (Fin d)) : ((Space d) →d[ℝ] X) →ₗ[ℝ] ((Space d) →d[ℝ] X) where From e7507270c99eaeb7ef89a4c56f78b3ad9f90c9ea Mon Sep 17 00:00:00 2001 From: Emil Kubanychbek <64525925+kubanemil@users.noreply.github.com> Date: Sun, 8 Nov 2026 14:12:37 +0000 Subject: [PATCH 11/12] refactor(QuantumMechanics): state IsReflectionless on the Schwartz dual MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit IsReflectionless now asks for a bra Ψ with Ψ ∘L H = E • Ψ whose translates approach a non-zero multiple of momentumState at ±∞. Removes PoschlTeller.scatteringWave, moves scatteringState to the top of the file, and adds tendsto_exp_mul_scatteringState_translateSchwartz_atTop/atBot. --- .../PoschlTeller/Scattering.lean | 316 ++++++++++-------- .../QuantumMechanics/SpaceDQuantumSystem.lean | 29 +- 2 files changed, 201 insertions(+), 144 deletions(-) diff --git a/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean b/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean index e94229dc4e..b82a93275a 100644 --- a/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean +++ b/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean @@ -39,26 +39,26 @@ Hamiltonian acting on Schwartz maps. - `scatteringState_comp_hamiltonianCLM` : the scattering state is a generalized eigenvector of the Hamiltonian with energy `ℏ² k² / (2 m)`. -- `tendsto_scatteringWave_mul_exp_atTop`, `tendsto_scatteringWave_mul_exp_atBot` : the - scattering wave tends to `∏ₙ (n κ - i k) e^{i k x}` as `x → ∞` and to - `∏ₙ (-n κ - i k) e^{i k x}` as `x → -∞`. +- `tendsto_exp_mul_scatteringState_translateSchwartz_atTop`, + `tendsto_exp_mul_scatteringState_translateSchwartz_atBot` : the scattering state approaches a + non-zero multiple of the plane wave bra `⟨k|` as test functions are translated to `±∞`. - `isReflectionless` : the Pöschl-Teller potential is reflectionless. ## iii. Table of contents -- A. Polynomials in `tanh (κ x)` - - A.1. Derivative, raising operator and Hamiltonian - - A.2. The intertwining relation - - A.3. The scattering polynomials - - A.4. Values at `±1` -- B. Waves modulated by polynomials in `tanh (κ x)` - - B.1. Derivatives and temperate growth - - B.2. The Hamiltonian - - B.3. Asymptotics -- C. Scattering states - - C.1. The scattering wave - - C.2. Scattering states as generalized eigenvectors -- D. Reflectionlessness +- A. The scattering state + - A.1. The scattering polynomials + - A.2. Waves modulated by polynomials in `tanh (κ x)` + - A.3. The scattering state as a bra +- B. Polynomial identities + - B.1. The intertwining relation + - B.2. Values at `±1` +- C. The wave equation and asymptotics + - C.1. Derivatives + - C.2. The Hamiltonian + - C.3. Asymptotics +- D. Scattering states as generalized eigenvectors +- E. Reflectionlessness ## iv. References @@ -73,16 +73,17 @@ namespace QuantumMechanics namespace PoschlTeller open Complex Constants Polynomial Filter Topology SchwartzMap MeasureTheory Space +open SpaceDHilbertSpace open scoped ComplexConjugate variable (Q : PoschlTeller) /-! -## A. Polynomials in `tanh (κ x)` +## A. The scattering state -/ /-! -### A.1. Derivative, raising operator and Hamiltonian +### A.1. The scattering polynomials -/ /-- The derivative acting on the polynomial of a wave `p(tanh (κ x)) e^{i k x}`, @@ -95,16 +96,72 @@ def polyDeriv (k : ℝ) (p : ℂ[X]) : ℂ[X] := `p(tanh (κ x)) e^{i k x}`. -/ def polyRaise (k : ℝ) (n : ℕ) (p : ℂ[X]) : ℂ[X] := -Q.polyDeriv k p + C (n * Q.κ : ℂ) * X * p +/-- The polynomial `Pₖ` of the scattering state `Pₖ(tanh (κ x)) e^{i k x}` of the Pöschl-Teller + system with family number `n`, obtained by applying the raising operators with + `1, …, n` to `1`. -/ +def polyScattering (k : ℝ) : ℕ → ℂ[X] + | 0 => 1 + | n + 1 => Q.polyRaise k (n + 1) (polyScattering k n) + +/-! +### A.2. Waves modulated by polynomials in `tanh (κ x)` +-/ + +/-- The wave `x ↦ p(tanh (κ x)) e^{i k x}`. -/ +def waveOfPoly (k : ℝ) (p : ℂ[X]) (x : ℝ) : ℂ := + p.eval (Real.tanh (Q.κ * x) : ℂ) * exp (k * x * I) + +/-- The wave `p(tanh (κ x)) e^{i k x}` has temperate growth. -/ +lemma waveOfPoly_hasTemperateGrowth (k : ℝ) (p : ℂ[X]) : + (Q.waveOfPoly k p).HasTemperateGrowth := by + have ht : (fun x : ℝ => (Real.tanh (Q.κ * x) : ℂ)).HasTemperateGrowth := + Complex.ofRealCLM.hasTemperateGrowth.comp (tanh_const_mul_hasTemperateGrowth Q.κ) + have he : (fun x : ℝ => exp (k * x * I)).HasTemperateGrowth := by + convert Complex.hasTemperateGrowth_exp_mul_I.comp + (k • ContinuousLinearMap.id ℝ ℝ).hasTemperateGrowth using 2 with x + simp + exact (ht.polynomial_eval p).mul he + +/-- The complex conjugate of `p(tanh (κ x)) e^{i k x}`, as a function on `Space 1`, has temperate + growth. -/ +lemma conj_waveOfPoly_hasTemperateGrowth (k : ℝ) (p : ℂ[X]) : + (fun x : Space 1 => conj (Q.waveOfPoly k p (x 0))).HasTemperateGrowth := + Complex.conjCLE.hasTemperateGrowth.comp + ((Q.waveOfPoly_hasTemperateGrowth k p).comp (Space.eval_hasTemperateGrowth 0)) + +/-! +### A.3. The scattering state as a bra +-/ + +/-- The scattering state with wavenumber `k` as a member of the strong dual of the Schwartz space. + + This is the bra `⟨ψₖ|` of the non-normalizable scattering wave `ψₖ`, that is + `φ ↦ ⟨ψₖ, φ⟩ = ∫ ψ̄ₖ φ`. -/ +def scatteringState (k : ℝ) : StrongDual ℂ 𝓢(Space 1, ℂ) := + Function.HasTemperateGrowth.toTemperedDistribution volume + (Q.conj_waveOfPoly_hasTemperateGrowth k (Q.polyScattering k Q.N)) + +/-- The defining property of the scattering state. -/ +lemma scatteringState_apply (k : ℝ) (φ : 𝓢(Space 1, ℂ)) : + Q.scatteringState k φ = ∫ x, conj (Q.waveOfPoly k (Q.polyScattering k Q.N) (x 0)) * φ x := + (Function.HasTemperateGrowth.toTemperedDistribution_apply volume + (Q.conj_waveOfPoly_hasTemperateGrowth k (Q.polyScattering k Q.N)) φ).trans <| by + simp [mul_comm] + +/-! +## B. Polynomial identities +-/ + +/-! +### B.1. The intertwining relation +-/ + /-- The operator `-∂ₓ² - n (n + 1) κ² / cosh² (κ x)` acting on the polynomial of a wave `p(tanh (κ x)) e^{i k x}`. This is `2 m / ℏ²` times the Hamiltonian of the Pöschl-Teller system with family number `n`. -/ def polyReducedHamiltonian (k : ℝ) (n : ℕ) (p : ℂ[X]) : ℂ[X] := -Q.polyDeriv k (Q.polyDeriv k p) - C ((Q.κ : ℂ) ^ 2 * n * (n + 1)) * (1 - X ^ 2) * p -/-! -### A.2. The intertwining relation --/ - /-- The raising operator intertwines the Hamiltonians with family numbers `n` and `n + 1`. -/ lemma polyReducedHamiltonian_polyRaise (k : ℝ) (n : ℕ) (p : ℂ[X]) : Q.polyReducedHamiltonian k (n + 1) (Q.polyRaise k (n + 1) p) = @@ -126,17 +183,6 @@ lemma polyRaise_C_mul (k : ℝ) (n : ℕ) (c : ℂ) (p : ℂ[X]) : simp only [polyRaise, polyDeriv, derivative_mul, derivative_C, zero_mul, zero_add] ring -/-! -### A.3. The scattering polynomials --/ - -/-- The polynomial `Pₖ` of the scattering state `Pₖ(tanh (κ x)) e^{i k x}` of the Pöschl-Teller - system with family number `n`, obtained by applying the raising operators with - `1, …, n` to `1`. -/ -def polyScattering (k : ℝ) : ℕ → ℂ[X] - | 0 => 1 - | n + 1 => Q.polyRaise k (n + 1) (polyScattering k n) - /-- The scattering polynomial with family number `n` is an eigenvector of the reduced Hamiltonian with eigenvalue `k²`. -/ lemma polyReducedHamiltonian_polyScattering (k : ℝ) (n : ℕ) : @@ -151,7 +197,7 @@ lemma polyReducedHamiltonian_polyScattering (k : ℝ) (n : ℕ) : | succ n ih => rw [polyScattering, polyReducedHamiltonian_polyRaise, ih, polyRaise_C_mul] /-! -### A.4. Values at `±1` +### B.2. Values at `±1` -/ /-- At `tanh (κ x) = 1` the raising operator acts as multiplication by `n κ - i k`. -/ @@ -212,15 +258,11 @@ lemma polyScattering_eval_neg_one_ne_zero (k : ℝ) (n : ℕ) : nlinarith [(Nat.cast_nonneg j : (0 : ℝ) ≤ j)] /-! -## B. Waves modulated by polynomials in `tanh (κ x)` +## C. The wave equation and asymptotics -/ -/-- The wave `x ↦ p(tanh (κ x)) e^{i k x}`. -/ -def waveOfPoly (k : ℝ) (p : ℂ[X]) (x : ℝ) : ℂ := - p.eval (Real.tanh (Q.κ * x) : ℂ) * exp (k * x * I) - /-! -### B.1. Derivatives and temperate growth +### C.1. Derivatives -/ /-- The derivative of `p(tanh (κ x)) e^{i k x}` is `(polyDeriv k p)(tanh (κ x)) e^{i k x}`. -/ @@ -238,24 +280,6 @@ lemma hasDerivAt_waveOfPoly (k : ℝ) (p : ℂ[X]) (x : ℝ) : push_cast ring -/-- The wave `p(tanh (κ x)) e^{i k x}` has temperate growth. -/ -lemma waveOfPoly_hasTemperateGrowth (k : ℝ) (p : ℂ[X]) : - (Q.waveOfPoly k p).HasTemperateGrowth := by - have ht : (fun x : ℝ => (Real.tanh (Q.κ * x) : ℂ)).HasTemperateGrowth := - Complex.ofRealCLM.hasTemperateGrowth.comp (tanh_const_mul_hasTemperateGrowth Q.κ) - have he : (fun x : ℝ => exp (k * x * I)).HasTemperateGrowth := by - convert Complex.hasTemperateGrowth_exp_mul_I.comp - (k • ContinuousLinearMap.id ℝ ℝ).hasTemperateGrowth using 2 with x - simp - exact (ht.polynomial_eval p).mul he - -/-- The complex conjugate of `p(tanh (κ x)) e^{i k x}`, as a function on `Space 1`, has temperate - growth. -/ -lemma conj_waveOfPoly_hasTemperateGrowth (k : ℝ) (p : ℂ[X]) : - (fun x : Space 1 => conj (Q.waveOfPoly k p (x 0))).HasTemperateGrowth := - Complex.conjCLE.hasTemperateGrowth.comp - ((Q.waveOfPoly_hasTemperateGrowth k p).comp (Space.eval_hasTemperateGrowth 0)) - /-- The derivative of the complex conjugate of `p(tanh (κ x)) e^{i k x}` on `Space 1`. -/ lemma deriv_conj_waveOfPoly (k : ℝ) (p : ℂ[X]) : ∂[0] (fun x : Space 1 => conj (Q.waveOfPoly k p (x 0))) = @@ -273,7 +297,7 @@ lemma deriv_conj_waveOfPoly (k : ℝ) (p : ℂ[X]) : simp [Space.coordCLM_apply, Space.coord] /-! -### B.2. The Hamiltonian +### C.2. The Hamiltonian -/ /-- Multiplying the polynomial by a constant multiplies the wave by that constant. -/ @@ -295,7 +319,7 @@ lemma waveOfPoly_polyReducedHamiltonian (k : ℝ) (p : ℂ[X]) (x : Space 1) : ring /-! -### B.3. Asymptotics +### C.3. Asymptotics -/ /-- Removing the plane wave factor from `p(tanh (κ x)) e^{i k x}` leaves `p(tanh (κ x))`. -/ @@ -322,36 +346,17 @@ lemma tendsto_waveOfPoly_mul_exp_atBot (k : ℝ) (p : ℂ[X]) : simpa only [ofReal_tanh, ofReal_mul, Function.comp_def, ofReal_neg, ofReal_one] using h /-! -## C. Scattering states --/ - -/-! -### C.1. The scattering wave +## D. Scattering states as generalized eigenvectors -/ -/-- The scattering wave of the Pöschl-Teller system with wavenumber `k`, - `ψₖ(x) = Pₖ(tanh (κ x)) e^{i k x}`. -/ -def scatteringWave (k : ℝ) : ℝ → ℂ := Q.waveOfPoly k (Q.polyScattering k Q.N) - -/-- As `x → ∞`, the scattering wave tends to `∏ₙ (n κ - i k) e^{i k x}`. -/ -lemma tendsto_scatteringWave_mul_exp_atTop (k : ℝ) : - Tendsto (fun x => Q.scatteringWave k x * exp (-(k * x * I))) atTop - (𝓝 (∏ j ∈ Finset.range Q.N, ((j + 1) * Q.κ - k * I))) := by - rw [← polyScattering_eval_one] - exact Q.tendsto_waveOfPoly_mul_exp_atTop k _ - -/-- As `x → -∞`, the scattering wave tends to `∏ₙ (-n κ - i k) e^{i k x}`. -/ -lemma tendsto_scatteringWave_mul_exp_atBot (k : ℝ) : - Tendsto (fun x => Q.scatteringWave k x * exp (-(k * x * I))) atBot - (𝓝 (∏ j ∈ Finset.range Q.N, (-((j + 1) * Q.κ) - k * I))) := by - rw [← polyScattering_eval_neg_one] - exact Q.tendsto_waveOfPoly_mul_exp_atBot k _ - -/-- The scattering wave solves the time-independent Schrödinger equation at energy - `ℏ² k² / (2 m)` against all Schwartz maps, `∫ ψ̄ₖ (H φ) = E ∫ ψ̄ₖ φ`. -/ -lemma integral_conj_scatteringWave_mul_hamiltonianCLM (k : ℝ) (φ : 𝓢(Space 1, ℂ)) : - ∫ x, conj (Q.scatteringWave k (x 0)) * Q.toSpaceDQuantumSystem.hamiltonianCLM φ x = - ((ℏ ^ 2 * k ^ 2 / (2 * Q.m) : ℝ) : ℂ) * ∫ x, conj (Q.scatteringWave k (x 0)) * φ x := by +/-- The scattering wave `ψₖ = waveOfPoly k (polyScattering k N)` solves the time-independent + Schrödinger equation at energy `ℏ² k² / (2 m)` against all Schwartz maps, + `∫ ψ̄ₖ (H φ) = E ∫ ψ̄ₖ φ`. -/ +lemma integral_conj_waveOfPoly_polyScattering_mul_hamiltonianCLM (k : ℝ) (φ : 𝓢(Space 1, ℂ)) : + ∫ x, conj (Q.waveOfPoly k (Q.polyScattering k Q.N) (x 0)) * + Q.toSpaceDQuantumSystem.hamiltonianCLM φ x = + ((ℏ ^ 2 * k ^ 2 / (2 * Q.m) : ℝ) : ℂ) * + ∫ x, conj (Q.waveOfPoly k (Q.polyScattering k Q.N) (x 0)) * φ x := by have hg := Q.conj_waveOfPoly_hasTemperateGrowth k set c : ℂ := (((2 * Q.m)⁻¹ : ℝ) : ℂ) -- The Schrödinger equation for the conjugate of the scattering wave, pointwise. @@ -381,8 +386,7 @@ lemma integral_conj_scatteringWave_mul_hamiltonianCLM (k : ℝ) (φ : 𝓢(Space _ = _ := by rw [integral_const_mul, integral_mul_momentumCLM 0 (hg _), Q.deriv_conj_waveOfPoly, integral_mul_momentumCLM 0 (hg _), Q.deriv_conj_waveOfPoly] - simp only [scatteringWave, Q.toSpaceDQuantumSystem_hamiltonianCLM_apply, Complex.real_smul, - mul_add] + simp only [Q.toSpaceDQuantumSystem_hamiltonianCLM_apply, Complex.real_smul, mul_add] have hpot := (hg (Q.polyScattering k Q.N)).integrable_mul_schwartzMap (μ := volume) (Q.toSpaceDQuantumSystem.potentialCLM φ) simp only [Q.toSpaceDQuantumSystem_potentialCLM_apply, Complex.real_smul] at hpot @@ -398,25 +402,6 @@ lemma integral_conj_scatteringWave_mul_hamiltonianCLM (k : ℝ) (φ : 𝓢(Space |>.congr (by filter_upwards with a; ring) · exact hpot -/-! -### C.2. Scattering states as generalized eigenvectors --/ - -/-- The scattering state with wavenumber `k` as a member of the strong dual of the Schwartz space. - - This is the bra `⟨ψₖ|` of the non-normalizable scattering wave `ψₖ`, that is - `φ ↦ ⟨ψₖ, φ⟩ = ∫ ψ̄ₖ φ`. -/ -def scatteringState (k : ℝ) : StrongDual ℂ 𝓢(Space 1, ℂ) := - Function.HasTemperateGrowth.toTemperedDistribution volume - (Q.conj_waveOfPoly_hasTemperateGrowth k (Q.polyScattering k Q.N)) - -/-- The defining property of the scattering state. -/ -lemma scatteringState_apply (k : ℝ) (φ : 𝓢(Space 1, ℂ)) : - Q.scatteringState k φ = ∫ x, conj (Q.scatteringWave k (x 0)) * φ x := - (Function.HasTemperateGrowth.toTemperedDistribution_apply volume - (Q.conj_waveOfPoly_hasTemperateGrowth k (Q.polyScattering k Q.N)) φ).trans <| by - simp [scatteringWave, mul_comm] - /-- The scattering state `scatteringState k` is a generalized eigenvector of the Hamiltonian with energy `ℏ² k² / (2 m)`, in the bra form `⟨ψₖ| H = E ⟨ψₖ|` as functionals on Schwartz space. -/ lemma scatteringState_comp_hamiltonianCLM (k : ℝ) : @@ -424,35 +409,102 @@ lemma scatteringState_comp_hamiltonianCLM (k : ℝ) : ((ℏ ^ 2 * k ^ 2 / (2 * Q.m) : ℝ) : ℂ) • Q.scatteringState k := by ext φ simp only [ContinuousLinearMap.comp_apply, _root_.smul_apply, smul_eq_mul, - scatteringState_apply, integral_conj_scatteringWave_mul_hamiltonianCLM] + scatteringState_apply, integral_conj_waveOfPoly_polyScattering_mul_hamiltonianCLM] /-! -## D. Reflectionlessness +## E. Reflectionlessness -/ -/-- A function `ψ` approaches the plane wave `T e^{i k x}` if and only if `ψ(x) e^{-i k x}` - tends to `T`. -/ -lemma tendsto_sub_mul_exp_iff (l : Filter ℝ) (ψ : ℝ → ℂ) (k : ℝ) (T : ℂ) : - Tendsto (fun x => ψ x - T * exp (k * x * I)) l (𝓝 0) ↔ - Tendsto (fun x => ψ x * exp (-(k * x * I))) l (𝓝 T) := by - conv_rhs => rw [tendsto_iff_norm_sub_tendsto_zero] - rw [tendsto_zero_iff_norm_tendsto_zero] - refine tendsto_congr fun x => ?_ - have h : ψ x - T * exp (k * x * I) = (ψ x * exp (-(k * x * I)) - T) * exp (k * x * I) := by - rw [sub_mul, mul_assoc (ψ x), ← exp_add, neg_add_cancel, exp_zero, mul_one] - rw [h, norm_mul, ← ofReal_mul, norm_exp_ofReal_mul_I, mul_one] - -/-- The Pöschl-Teller potential is reflectionless: for every wavenumber `k ≠ 0` the scattering wave - passes the well with no reflected wave `e^{-i k x}`. -/ +/-- The wave `p(tanh (κ x)) e^{i k x}` is bounded. -/ +lemma exists_norm_waveOfPoly_le (k : ℝ) (p : ℂ[X]) : ∃ M, ∀ x, ‖Q.waveOfPoly k p x‖ ≤ M := by + obtain ⟨M, hM⟩ := (isCompact_Icc (a := (-1 : ℝ)) (b := 1)).exists_bound_of_continuousOn + (f := fun t : ℝ => p.eval (t : ℂ)) (by fun_prop) + refine ⟨M, fun x => ?_⟩ + rw [waveOfPoly, norm_mul, ← ofReal_mul, norm_exp_ofReal_mul_I, mul_one] + exact hM _ ⟨(Real.neg_one_lt_tanh _).le, (Real.tanh_lt_one _).le⟩ + +/-- Translating a Schwartz map by `a` shifts the argument of the wave by `a`. -/ +lemma integral_conj_waveOfPoly_mul_translateSchwartz (k a : ℝ) (p : ℂ[X]) (φ : 𝓢(Space 1, ℂ)) : + ∫ x, conj (Q.waveOfPoly k p (x 0)) * translateSchwartz (EuclideanSpace.single 0 a) φ x = + ∫ x, conj (Q.waveOfPoly k p (x 0 + a)) * φ x := by + have h := integral_sub_right_eq_self (μ := volume) + (fun x : Space 1 => conj (Q.waveOfPoly k p (x 0 + a)) * φ x) (oneEquiv.symm a) + rw [← h] + refine integral_congr_ae (Eventually.of_forall fun x => ?_) + have hx : (x - oneEquiv.symm a) 0 + a = x 0 := by simp [oneEquiv_symm_apply] + simp only [translateSchwartz_single_apply, hx] + +/-- If `ψ(x) e^{-i k x}` tends to `c` far along the filter `l`, then translating a test function + along `l` pairs it with `c̄ ⟨k|`, up to the phase `e^{-i k a}`. -/ +lemma tendsto_exp_mul_integral_conj_waveOfPoly_mul_translateSchwartz {l : Filter ℝ} + [l.IsCountablyGenerated] (k : ℝ) (p : ℂ[X]) (c : ℂ) (φ : 𝓢(Space 1, ℂ)) + (h : ∀ x, Tendsto (fun a => Q.waveOfPoly k p (x + a) * exp (-(k * (x + a : ℝ) * I))) l (𝓝 c)) : + Tendsto (fun a : ℝ => exp (k * a * I) * ∫ x, conj (Q.waveOfPoly k p (x 0)) * + translateSchwartz (EuclideanSpace.single 0 a) φ x) l + (𝓝 (conj c * momentumState (oneEquiv.symm k) φ)) := by + obtain ⟨M, hM⟩ := Q.exists_norm_waveOfPoly_le k p + have hcont := (Q.waveOfPoly_hasTemperateGrowth k p).1.continuous + simp_rw [integral_conj_waveOfPoly_mul_translateSchwartz, momentumState_oneEquiv_symm_apply, + ← integral_const_mul] + refine tendsto_integral_filter_of_dominated_convergence (fun x => M * ‖φ x‖) ?_ ?_ + (φ.integrable.norm.const_mul M) ?_ + · refine Eventually.of_forall fun a => Continuous.aestronglyMeasurable ?_ + have : Continuous fun x : Space 1 => Q.waveOfPoly k p (x 0 + a) := + hcont.comp (by fun_prop) + exact continuous_const.mul ((Complex.continuous_conj.comp this).mul φ.continuous) + · refine Eventually.of_forall fun a => Eventually.of_forall fun x => ?_ + rw [norm_mul, ← ofReal_mul, norm_exp_ofReal_mul_I, one_mul, norm_mul, Complex.norm_conj] + exact mul_le_mul_of_nonneg_right (hM _) (norm_nonneg _) + · refine Eventually.of_forall fun x => ?_ + have hc := ((Complex.continuous_conj.tendsto _).comp (h (x 0))).mul_const + (exp (-(k * (x 0 : ℝ) * I)) * φ x) + refine hc.congr fun a => ?_ + have hconj : conj (exp (-(k * (x 0 + a : ℝ) * I))) = exp (k * (x 0 + a : ℝ) * I) := by + rw [← Complex.exp_conj] + simp + have hexp : exp (k * (x 0 + a : ℝ) * I) * exp (-(k * (x 0 : ℝ) * I)) = exp (k * a * I) := by + rw [← exp_add] + congr 1 + push_cast + ring + simp only [Function.comp_apply, map_mul, hconj] + linear_combination (conj (Q.waveOfPoly k p (x 0 + a)) * φ x) * hexp + +/-- Far to the right the scattering state looks like the bra of the transmitted plane wave: + `e^{i k a} ⟨ψₖ|τₐ φ⟩ → conj (∏ₙ (n κ - i k)) ⟨k|φ⟩` as `a → ∞`. -/ +lemma tendsto_exp_mul_scatteringState_translateSchwartz_atTop (k : ℝ) (φ : 𝓢(Space 1, ℂ)) : + Tendsto (fun a : ℝ => exp (k * a * I) * + Q.scatteringState k (translateSchwartz (EuclideanSpace.single 0 a) φ)) atTop + (𝓝 (conj (∏ j ∈ Finset.range Q.N, ((j + 1) * Q.κ - k * I)) * + momentumState (oneEquiv.symm k) φ)) := by + simp_rw [scatteringState_apply] + rw [← polyScattering_eval_one] + exact Q.tendsto_exp_mul_integral_conj_waveOfPoly_mul_translateSchwartz k _ _ φ fun x => + (Q.tendsto_waveOfPoly_mul_exp_atTop k _).comp (tendsto_atTop_add_const_left _ x tendsto_id) + +/-- Far to the left the scattering state looks like the bra of the same plane wave, with no + reflected part: `e^{i k a} ⟨ψₖ|τₐ φ⟩ → conj (∏ₙ (-n κ - i k)) ⟨k|φ⟩` as `a → -∞`. -/ +lemma tendsto_exp_mul_scatteringState_translateSchwartz_atBot (k : ℝ) (φ : 𝓢(Space 1, ℂ)) : + Tendsto (fun a : ℝ => exp (k * a * I) * + Q.scatteringState k (translateSchwartz (EuclideanSpace.single 0 a) φ)) atBot + (𝓝 (conj (∏ j ∈ Finset.range Q.N, (-((j + 1) * Q.κ) - k * I)) * + momentumState (oneEquiv.symm k) φ)) := by + simp_rw [scatteringState_apply] + rw [← polyScattering_eval_neg_one] + exact Q.tendsto_exp_mul_integral_conj_waveOfPoly_mul_translateSchwartz k _ _ φ fun x => + (Q.tendsto_waveOfPoly_mul_exp_atBot k _).comp (tendsto_atBot_add_const_left _ x tendsto_id) + +/-- The Pöschl-Teller potential is reflectionless: for every wavenumber `k ≠ 0` the scattering + state passes the well with no reflected wave `e^{-i k x}`. -/ lemma isReflectionless : Q.toSpaceDQuantumSystem.IsReflectionless := by intro k _ - refine ⟨Q.scatteringWave k, (Q.waveOfPoly_hasTemperateGrowth k _).1.continuous, - Q.integral_conj_scatteringWave_mul_hamiltonianCLM k, _, _, - Q.polyScattering_eval_one_ne_zero k Q.N, Q.polyScattering_eval_neg_one_ne_zero k Q.N, ?_, ?_⟩ - · rw [tendsto_sub_mul_exp_iff] - exact Q.tendsto_waveOfPoly_mul_exp_atTop k _ - · rw [tendsto_sub_mul_exp_iff] - exact Q.tendsto_waveOfPoly_mul_exp_atBot k _ + refine ⟨Q.scatteringState k, Q.scatteringState_comp_hamiltonianCLM k, _, _, ?_, ?_, fun φ => + ⟨Q.tendsto_exp_mul_scatteringState_translateSchwartz_atTop k φ, + Q.tendsto_exp_mul_scatteringState_translateSchwartz_atBot k φ⟩⟩ + · rw [Ne, map_eq_zero, ← polyScattering_eval_one] + exact Q.polyScattering_eval_one_ne_zero k Q.N + · rw [Ne, map_eq_zero, ← polyScattering_eval_neg_one] + exact Q.polyScattering_eval_neg_one_ne_zero k Q.N end PoschlTeller end QuantumMechanics diff --git a/Physlib/QuantumMechanics/SpaceDQuantumSystem.lean b/Physlib/QuantumMechanics/SpaceDQuantumSystem.lean index 8944e81194..1bd603939a 100644 --- a/Physlib/QuantumMechanics/SpaceDQuantumSystem.lean +++ b/Physlib/QuantumMechanics/SpaceDQuantumSystem.lean @@ -5,8 +5,10 @@ Authors: Gregory J. Loges -/ module +public import Physlib.QuantumMechanics.HilbertSpaces.SpaceD.MomentumStates public import Physlib.QuantumMechanics.Operators.Momentum public import Physlib.QuantumMechanics.Operators.Multiplication +public import Physlib.SpaceAndTime.Space.Translations /-! # Single-particle quantum system on `Space d` @@ -152,21 +154,24 @@ end ## C. Reflectionless systems in one dimension -/ -open Constants Filter Topology SchwartzMap -open scoped ComplexConjugate +open Constants Filter Topology SchwartzMap Space SpaceDHilbertSpace /-- A system in one dimension is reflectionless if for every wavenumber `k ≠ 0` there is a - continuous wavefunction `ψ` which solves the time-independent Schrödinger equation at energy - `ℏ² k² / (2 m)` against all Schwartz maps, `∫ ψ̄ (H φ) = E ∫ ψ̄ φ`, and which tends to non-zero - multiples of the plane wave `e^{i k x}` both as `x → ∞` and as `x → -∞`. No reflected wave - `e^{-i k x}` appears. -/ + generalized eigenvector `⟨Ψ|` of the Hamiltonian in the strong dual of the Schwartz space, with + energy `ℏ² k² / (2 m)`, which looks like a non-zero multiple of the plane wave bra `⟨k|` at both + ends. Far away is probed by translating a test function by `a`: + `e^{i k a} ⟨Ψ|τₐ φ⟩ → T ⟨k|φ⟩` as `a → ∞`, and likewise with `T'` as `a → -∞`. A reflected wave + `e^{-i k x}` would add a term oscillating like `e^{2 i k a}`, so the limits would not exist. -/ def IsReflectionless (Q : SpaceDQuantumSystem 1) : Prop := - ∀ k : ℝ, k ≠ 0 → ∃ ψ : ℝ → ℂ, Continuous ψ ∧ - (∀ φ : 𝓢(Space 1, ℂ), ∫ x, conj (ψ (x 0)) * Q.hamiltonianCLM φ x = - ((ℏ ^ 2 * k ^ 2 / (2 * Q.m) : ℝ) : ℂ) * ∫ x, conj (ψ (x 0)) * φ x) ∧ - ∃ T T' : ℂ, T ≠ 0 ∧ T' ≠ 0 ∧ - Tendsto (fun x => ψ x - T * exp (k * x * I)) atTop (𝓝 0) ∧ - Tendsto (fun x => ψ x - T' * exp (k * x * I)) atBot (𝓝 0) + ∀ k : ℝ, k ≠ 0 → ∃ Ψ : StrongDual ℂ 𝓢(Space 1, ℂ), + Ψ ∘L Q.hamiltonianCLM = ((ℏ ^ 2 * k ^ 2 / (2 * Q.m) : ℝ) : ℂ) • Ψ ∧ + ∃ T T' : ℂ, T ≠ 0 ∧ T' ≠ 0 ∧ ∀ φ : 𝓢(Space 1, ℂ), + Tendsto (fun a : ℝ => exp (k * a * I) * + Ψ (translateSchwartz (EuclideanSpace.single 0 a) φ)) atTop + (𝓝 (T * momentumState (oneEquiv.symm k) φ)) ∧ + Tendsto (fun a : ℝ => exp (k * a * I) * + Ψ (translateSchwartz (EuclideanSpace.single 0 a) φ)) atBot + (𝓝 (T' * momentumState (oneEquiv.symm k) φ)) end end SpaceDQuantumSystem From 3e6d158a0ba840278906494f95dcd127c3143ad0 Mon Sep 17 00:00:00 2001 From: Emil Kubanychbek <64525925+kubanemil@users.noreply.github.com> Date: Sat, 14 Nov 2026 19:56:25 +0000 Subject: [PATCH 12/12] chore(QuantumMechanics): remove transitive imports in Scattering and SpaceDQuantumSystem --- Physlib/QuantumMechanics/PoschlTeller/Scattering.lean | 1 - Physlib/QuantumMechanics/SpaceDQuantumSystem.lean | 1 - 2 files changed, 2 deletions(-) diff --git a/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean b/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean index b82a93275a..0e9e777b7f 100644 --- a/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean +++ b/Physlib/QuantumMechanics/PoschlTeller/Scattering.lean @@ -5,7 +5,6 @@ Authors: Emil Kubanychbek -/ module -public import Mathlib.Analysis.Distribution.TemperedDistribution public import Physlib.QuantumMechanics.PoschlTeller.Basic /-! diff --git a/Physlib/QuantumMechanics/SpaceDQuantumSystem.lean b/Physlib/QuantumMechanics/SpaceDQuantumSystem.lean index 1bd603939a..4722b210e6 100644 --- a/Physlib/QuantumMechanics/SpaceDQuantumSystem.lean +++ b/Physlib/QuantumMechanics/SpaceDQuantumSystem.lean @@ -6,7 +6,6 @@ Authors: Gregory J. Loges module public import Physlib.QuantumMechanics.HilbertSpaces.SpaceD.MomentumStates -public import Physlib.QuantumMechanics.Operators.Momentum public import Physlib.QuantumMechanics.Operators.Multiplication public import Physlib.SpaceAndTime.Space.Translations /-!