Yukawa potential and the potential of a uniform spherical shell
DefinitionYukawaPotential_DefsTwo definitions used throughout the mission.
- Yukawa potential. For real parameters (coupling), (scaling constant), (mass) and a radial distance ,
- Potential of a uniform spherical shell. For a thin uniform shell of radius centred at the origin with total scaling constant , the potential at felt by a point of scaling constant is times the average, over the unit sphere with its uniform surface measure , of the pair interaction:
These are the objects of the article's introduction and of its section Spherical shell.
Formalization Note Lean's division by zero returns , so and the shell integrand is at a point with ; statements about these objects restrict to , , or as appropriate. The surface measure is Mathlib's Measure.toSphere of Lebesgue measure; the definition uses the normalised average ⨍.
import Mathlib
namespace YukawaPotential
open MeasureTheory
/-- The Yukawa (screened Coulomb) potential
`V(r) = -g^2 * exp(-α m r) / r`, with coupling `g`, scaling constant `α`,
mass `m` and radial distance `r`. -/
noncomputable def yukawaPotential (g α m r : ℝ) : ℝ :=
-g ^ 2 * Real.exp (-(α * m * r)) / r
/-- Potential at the point `x ∈ ℝ³` felt by a point of scaling constant `g`, produced by an
infinitesimally thin uniform spherical shell of radius `R` centred at the origin with total
scaling constant `G`, where each pair interacts through `G g exp(-α m d) / d` at distance `d`:
`G g` times the average of `exp(-α m ‖x - R u‖) / ‖x - R u‖` over the unit sphere `u ∈ S²`
(with respect to the uniform surface measure). -/
noncomputable def yukawaShellPotential (G g α m R : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : ℝ :=
G * g * ⨍ u : Metric.sphere (0 : EuclideanSpace ℝ (Fin 3)) 1,
Real.exp (-(α * m * ‖x - R • (u : EuclideanSpace ℝ (Fin 3))‖)) /
‖x - R • (u : EuclideanSpace ℝ (Fin 3))‖ ∂(volume.toSphere)
end YukawaPotential
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — non-blind, same agent as the drafter
Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement it describes, with full knowledge of the source article and of the intended meaning. It was produced at the explicit request of the proposal owner and must not be mistaken for a blind, independent audit.
The file declares two real-valued functions inside the namespace YukawaPotential.
First function. For any four real numbers it returns
No restriction is placed on any argument: may be negative or zero, and may be zero or negative. At the value is , because division by zero is defined to return . For the formula is evaluated literally.
Second function. For real numbers and a point of three-dimensional Euclidean space , it returns
where is the unit sphere , the Euclidean norm, and the measure on obtained from Lebesgue measure on by the cone construction (the measure of a set is times the Lebesgue volume of ); this is a rotation-invariant measure of total mass . The integral is a Bochner integral divided by the total mass (an average). If the integrand is not integrable, the integral is defined to be . When for some the integrand at that is by the division convention. No restriction is placed on (it may be zero or negative), nor on , , , .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.