Two-level open-system neutrino oscillations: states, entropies, Lindbladian
DefinitionNeutrinoDecoherence_DefsShared definitions for the mission, all in the namespace NeutrinoDecoherence.
- Density matrix. An complex matrix is a density matrix if it is positive semidefinite and .
- Linear entropy (eq. (2.44)).
- Von Neumann entropy (eq. (2.39)), computed as with applied by the continuous functional calculus.
- Relative entropy (eq. (2.42)), real parts, matrix logarithm by functional calculus.
- Pauli matrices (eq. (3.3)).
- Dissipator (eq. (3.4)) of a complex Kossakowski matrix :
- Lindbladian (eq. (2.35) with constant coefficients), and the predicate that a curve solves for all (entrywise, one-sided derivative at ).
- Two-flavour vacuum Hamiltonian in the mass basis, (eq. (3.9)); mixing matrix with Majorana phase ,
(eq. (3.13)); the initial muon-neutrino state (eq. (3.14)). 9. Transition probability (eq. (1.11)).
These objects are the whole model on which every theorem of the mission is stated.
Formalization Note Indices of the thesis are 0,1,2 in Lean. The functional calculus returns junk values for non-self-adjoint inputs and reads as ; the theorems add density-matrix / positive-definiteness hypotheses where this matters. Time evolution is encoded by the differential equation itself rather than by the exponential of eq. (2.38).
import Mathlib
/-!
# Neutrino oscillations as an open quantum system — definitions
Definition layer for a draft mission proposal based on
G. F. S. Alves, *Decoherence in Neutrino Oscillations in the IceCube Experiment*,
Master's dissertation, Instituto de Física, Universidade de São Paulo (2020).
Equation numbers refer to that dissertation.
-/
open Matrix Complex
open scoped ComplexOrder
namespace NeutrinoDecoherence
/-- A density matrix (eq. (2.1)): positive semidefinite with unit trace. -/
def IsDensityMatrix {n : Type*} [Fintype n] (ρ : Matrix n n ℂ) : Prop :=
ρ.PosSemidef ∧ ρ.trace = 1
/-- Linear entropy (eq. (2.44)): `S_l(ρ) = 1 - Tr ρ²`. -/
noncomputable def linearEntropy {n : Type*} [Fintype n] (ρ : Matrix n n ℂ) : ℝ :=
1 - (ρ * ρ).trace.re
/-- Von Neumann entropy (eq. (2.39)): `S(ρ) = -Tr(ρ ln ρ)`, computed through the
continuous functional calculus as `Tr(η(ρ))` with `η(x) = -x ln x` (and `η(0) = 0`). -/
noncomputable def vonNeumannEntropy {n : Type*} [Fintype n] [DecidableEq n]
(ρ : Matrix n n ℂ) : ℝ :=
(cfc Real.negMulLog ρ).trace.re
/-- Relative entropy (eq. (2.42)): `S(ρ‖σ) = Tr(ρ ln ρ) - Tr(ρ ln σ)`, with the matrix
logarithm taken through the continuous functional calculus (`ln 0` is read as `0`, so this is
only meaningful when `σ` is positive definite). -/
noncomputable def relativeEntropy {n : Type*} [Fintype n] [DecidableEq n]
(ρ σ : Matrix n n ℂ) : ℝ :=
(ρ * cfc Real.log ρ).trace.re - (ρ * cfc Real.log σ).trace.re
/-- The Pauli matrices `σ₁, σ₂, σ₃` (eq. (3.3)), indexed by `Fin 3`
(index `0 ↦ σ₁`, `1 ↦ σ₂`, `2 ↦ σ₃`). -/
def pauli : Fin 3 → Matrix (Fin 2) (Fin 2) ℂ
| 0 => !![0, 1; 1, 0]
| 1 => !![0, -I; I, 0]
| 2 => !![1, 0; 0, -1]
/-- The two-level Dissipator (eq. (3.4)) associated with a Kossakowski matrix `a`
(indices `0,1,2` stand for the thesis' `1,2,3`):
`D[ρ] = ½ ∑_{i,j} a_{ij} (2 σ_i ρ σ_j - {σ_j σ_i, ρ})`. -/
noncomputable def dissipator (a : Matrix (Fin 3) (Fin 3) ℂ)
(ρ : Matrix (Fin 2) (Fin 2) ℂ) :
Matrix (Fin 2) (Fin 2) ℂ :=
(1 / 2 : ℂ) • ∑ i, ∑ j, a i j •
((2 : ℂ) • (pauli i * ρ * pauli j) - (pauli j * pauli i * ρ + ρ * (pauli j * pauli i)))
/-- The two-level Lindbladian (eq. (2.35) with constant coefficients):
`L[ρ] = -i [H, ρ] + D[ρ]`. -/
noncomputable def lindbladian (H : Matrix (Fin 2) (Fin 2) ℂ) (a : Matrix (Fin 3) (Fin 3) ℂ)
(ρ : Matrix (Fin 2) (Fin 2) ℂ) : Matrix (Fin 2) (Fin 2) ℂ :=
(-I) • (H * ρ - ρ * H) + dissipator a ρ
/-- `ρ : ℝ → M₂(ℂ)` solves the Lindblad equation `dρ/dt = L[ρ]` for all times `t ≥ 0`
(eqs. (2.35), (2.38), (3.8)), expressed entrywise with one-sided derivatives at `t = 0`. -/
def IsLindbladSolution (H : Matrix (Fin 2) (Fin 2) ℂ) (a : Matrix (Fin 3) (Fin 3) ℂ)
(ρ : ℝ → Matrix (Fin 2) (Fin 2) ℂ) : Prop :=
∀ t : ℝ, 0 ≤ t → ∀ i j : Fin 2,
HasDerivWithinAt (fun s => ρ s i j) (lindbladian H a (ρ t) i j) (Set.Ici 0) t
/-- The two-flavour vacuum Hamiltonian in the mass basis (eq. (3.9)):
`H = diag(0, Δm²/(2E))`. -/
noncomputable def twoFlavourHamiltonian (Δm2 E : ℝ) : Matrix (Fin 2) (Fin 2) ℂ :=
!![0, 0; 0, ((Δm2 / (2 * E) : ℝ) : ℂ)]
/-- The two-flavour mixing matrix with Majorana phase `α` (eq. (3.13)). -/
noncomputable def mixingMatrix (θ α : ℝ) : Matrix (Fin 2) (Fin 2) ℂ :=
!![(Real.cos θ : ℂ), exp (α * I) * (Real.sin θ : ℂ);
-(exp (-(α * I)) * (Real.sin θ : ℂ)), (Real.cos θ : ℂ)]
/-- The initial muon-neutrino state written in the mass basis (eq. (3.14)):
`ρ_μ(0) = U† |ν₁⟩⟨ν₁| U`. -/
noncomputable def muonInitialState (θ α : ℝ) : Matrix (Fin 2) (Fin 2) ℂ :=
(mixingMatrix θ α)ᴴ * Matrix.single 0 0 1 * mixingMatrix θ α
/-- Transition probability between an evolved state and a detected pure state
(eq. (1.11)): `P = Tr{ρ_β ρ_α}` (real part). -/
noncomputable def transitionProbability {n : Type*} [Fintype n]
(ρ_evolved ρ_detected : Matrix n n ℂ) : ℝ :=
(ρ_evolved * ρ_detected).trace.re
end NeutrinoDecoherence
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; non-blind
Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statements of this proposal, at the explicit request of the account owner. The author knew the intended meaning while writing it, so it must not be mistaken for a blind, independent audit; a reviewer should check the Lean code directly or commission an independent read-back.
The file imports Mathlib and, inside the namespace NeutrinoDecoherence, defines:
- for a square complex matrix over any finite index type: is positive semidefinite (Hermitian with ) and . Over an empty index type no matrix satisfies it.
- , for any square complex matrix (no hypothesis).
- , where (with ) is applied via the real continuous functional calculus; for a non-self-adjoint the functional calculus returns the zero matrix, so there.
- , logarithms via the functional calculus with Lean's convention (and for negative eigenvalues); zero-matrix junk for non-self-adjoint arguments.
- , , , indexed .
- For any (no Hermiticity or positivity built in) and : .
- for arbitrary .
- for : for every and every entry , the scalar function has derivative at within . Nothing is required for .
- (real division; if the entry is ).
- for real .
- , where is the matrix unit with a in the top-left entry.
- for square complex matrices.