Penning trap: mode matrix and its characteristic cubic
DefinitionPenningTrap_modelThis is the linear model of a charged particle in a Penning trap.
Let be a real matrix and . Write for the antisymmetric matrix of the map ,
For real numbers (the free-space cyclotron frequency ) and , the mode matrix is the complex matrix
obtained by substituting into the equation of motion of a particle moving in the linear force field and the magnetic field ; here is the Hessian of the electrostatic potential divided by the mass.
The characteristic cubic of the trap is the real polynomial in
These three constructions are the whole model: the normal-mode frequencies of the trap are the with , and the tilt of the magnetic field relative to the axis of the potential, as well as any elliptic distortion of the potential, are encoded simply by letting be an arbitrary symmetric matrix.
Formalization Note. All three are total definitions with no side conditions: symmetry of , tracelessness of and are hypotheses of the individual theorems rather than part of the model.
import Mathlib
open Matrix
namespace PenningTrap
/-- The matrix of the linear map `u ↦ b ×₃ u` on `Fin 3 → ℝ`. -/
def crossMatrix (b : Fin 3 → ℝ) : Matrix (Fin 3) (Fin 3) ℝ :=
!![0, -b 2, b 1; b 2, 0, -b 0; -b 1, b 0, 0]
/-- The mode matrix `M(ω) = K - ω² I - i ω ω_c C(b)` of a charged particle moving in the
linear force field `-K r` together with the magnetic force `ω_c (r' ×₃ b)`. -/
noncomputable def modeMatrix (K : Matrix (Fin 3) (Fin 3) ℝ) (b : Fin 3 → ℝ) (wc w : ℝ) :
Matrix (Fin 3) (Fin 3) ℂ :=
K.map (fun x : ℝ => (x : ℂ)) - ((w : ℂ) ^ 2) • (1 : Matrix (Fin 3) (Fin 3) ℂ)
- (Complex.I * (w : ℂ) * (wc : ℂ)) • (crossMatrix b).map (fun x : ℝ => (x : ℂ))
/-- The characteristic cubic of the trap, as a polynomial in `lam = ω²`:
`det (lam I - K) - ω_c² lam (lam ⟪b, b⟫ - ⟪b, K b⟫)`. -/
noncomputable def charCubic (K : Matrix (Fin 3) (Fin 3) ℝ) (b : Fin 3 → ℝ) (wc lam : ℝ) : ℝ :=
(lam • (1 : Matrix (Fin 3) (Fin 3) ℝ) - K).det
- wc ^ 2 * lam * (lam * (b ⬝ᵥ b) - b ⬝ᵥ K.mulVec b)
end PenningTrap
Read-back
What the Lean code literally says, in plain math · NOT INDEPENDENT - written by the drafting agent itself (Aristotle by Harmonic), not by a blind auditor
Disclosure — this read-back is NOT blind. 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 an independent auditor working from the code alone. It is therefore not independent testimony and must not be counted as an independence check: any misreading baked into the formalization is likely reproduced here verbatim. Please obtain a blind read-back from an independent auditor before relying on these statements.
The bundle introduces three constructions. Throughout, is an arbitrary real matrix (no symmetry, no trace condition), is an arbitrary vector of three real numbers (not required to be a unit vector, and possibly zero), and are arbitrary real numbers (possibly zero or negative).
1. The cross matrix. For as above, is the real matrix
i.e. the antisymmetric matrix whose action on a vector is the cross product .
2. The mode matrix. For , , , as above, is the complex matrix
where is the identity matrix, is the imaginary unit, and the real matrices and are turned into complex matrices by regarding each entry as a complex number. Nothing is assumed relating to , or ; is simply this entrywise expression.
3. The characteristic cubic. For , , and a real number , this is the real number
with the ordinary dot product on and the matrix–vector product. The argument is an arbitrary real number; it is not required to be a square, to be non-negative, or to be a root of anything. All three constructions are total: they are defined for every input, with no side conditions.