Particle on a ring: periodicity, normalization, , and the Schrödinger equation
DefinitionParticleInARing_modelThe model of a free quantum particle of mass confined to a ring of radius , described in the angular coordinate .
A state is a function . The definitions are:
- : the periodic boundary condition for every real , expressing that is single-valued on the circle.
- : the normalization over one period.
- for , the candidate eigenfunctions.
- for , the candidate energy levels.
- : the time-independent Schrödinger equation , required at every real , obtained from using on the ring.
- : a stationary state of energy , i.e. a twice continuously differentiable, -periodic solution of that equation.
The parameters are real; the second derivative is the iterated derivative of order .
import Mathlib
namespace ParticleInARing
open Complex Real
/-- Periodicity with period `2π`: the wave function is single-valued on the circle. -/
def IsRingPeriodic (ψ : ℝ → ℂ) : Prop := ∀ θ : ℝ, ψ (θ + 2 * Real.pi) = ψ θ
/-- Normalization over one period: `∫₀^{2π} ‖ψ θ‖ ^ 2 dθ = 1`. -/
def IsRingNormalized (ψ : ℝ → ℂ) : Prop :=
∫ θ in (0 : ℝ)..(2 * Real.pi), ‖ψ θ‖ ^ 2 = 1
/-- The candidate eigenfunctions `ψ n θ = (1 / √(2π)) * exp (n * θ * I)`, `n : ℤ`. -/
noncomputable def eigenstate (n : ℤ) : ℝ → ℂ :=
fun θ => (1 / Real.sqrt (2 * Real.pi) : ℝ) * Complex.exp ((n : ℂ) * (θ : ℂ) * Complex.I)
/-- The candidate energy levels `E n = n ^ 2 * ħ ^ 2 / (2 * m * R ^ 2)`, `n : ℤ`. -/
noncomputable def energy (hbar m R : ℝ) (n : ℤ) : ℝ :=
(n : ℝ) ^ 2 * hbar ^ 2 / (2 * m * R ^ 2)
/-- The time-independent Schrödinger equation for a free particle of mass `m`
confined to a ring of radius `R`, in the angular coordinate:
`-(ħ ^ 2 / (2 * m * R ^ 2)) * ψ'' θ = E * ψ θ` for every `θ`. -/
def SolvesSchrodinger (hbar m R E : ℝ) (ψ : ℝ → ℂ) : Prop :=
∀ θ : ℝ, (-(hbar ^ 2 / (2 * m * R ^ 2)) : ℝ) * iteratedDeriv 2 ψ θ = (E : ℂ) * ψ θ
/-- A stationary state of energy `E`: a twice continuously differentiable, `2π`-periodic
solution of the Schrödinger equation on the ring. -/
structure IsRingEigenstate (hbar m R E : ℝ) (ψ : ℝ → ℂ) : Prop where
smooth : ContDiff ℝ 2 ψ
periodic : IsRingPeriodic ψ
schrodinger : SolvesSchrodinger hbar m R E ψ
end ParticleInARing
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Disclosure — this read-back is not independent. It was written by the same agent that drafted the Lean statements of this proposal, at the explicit instruction of the proposal owner, and not by a separate auditor working blind from the Lean code alone. It is therefore not independent testimony: the author already knew what each statement was intended to say, so it cannot be relied on to expose a mismatch between intent and formalization in the way a blind read-back can. Please read it as an author's rendering of the code, and audit the Lean statements directly.
This bundle sets up a model of a complex-valued function of one real variable, together with four predicates and two functions.
Periodicity. For a function , the predicate asserts that for every real number ,
This is an identity required at every real , with the usual real constant. It is implied by, but does not require, periodicity of any smaller period.
Normalization. asserts the real-number equation
an oriented interval integral from to against Lebesgue measure, where is the complex modulus. No integrability hypothesis is imposed: if the integrand fails to be integrable the integral takes the value by convention, and the predicate is then false.
The family . For each integer , is the function
where the real prefactor is cast into , and and are cast into before multiplication by the imaginary unit. Negative and zero are included; is the constant function .
The numbers . For real parameters and an integer ,
No positivity or nonvanishing assumption is attached to , or here; when or the denominator is and the value is , by the convention that division by zero yields zero.
The differential equation. For real and , asserts that for every real ,
an equation in in which the two real coefficients are cast into and denotes the second iterated derivative of as a function . Where is not twice differentiable the iterated derivative is by convention, so the predicate on its own does not force differentiability. Again, degenerate parameters ( or ) make the left coefficient , so the condition degenerates to for all .
Stationary states. For real and , is the conjunction of exactly three conditions: is twice continuously differentiable on all of as a map into (differentiability class over the reals); holds; and holds. Nothing here excludes the identically zero function, and nothing here requires normalization.