Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Electroweak interaction (Wikipedia): basic objects

Definition
ElectroweakWiki_defs

by LG · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

electroweakgauge-theorymathematical-physics

This file sets up the objects used throughout the mission, following the Wikipedia article Electroweak interaction.

  1. Weak mixing angle θW(g,g′)=arctan⁡(g′/g)\theta_W(g,g') = \arctan(g'/g)θW​(g,g′)=arctan(g′/g), and the electromagnetic coupling e(g,g′)=gg′/g2+g′2e(g,g') = gg'/\sqrt{g^2+g'^2}e(g,g′)=gg′/g2+g′2​ (the altitude of the Weinberg triangle).
  2. Neutral physical fields γ(θ,B,W3)=cos⁡θ B+sin⁡θ W3\gamma(\theta,B,W_3) = \cos\theta\,B + \sin\theta\,W_3γ(θ,B,W3​)=cosθB+sinθW3​ and Z0(θ,B,W3)=−sin⁡θ B+cos⁡θ W3Z^0(\theta,B,W_3) = -\sin\theta\,B+\cos\theta\,W_3Z0(θ,B,W3​)=−sinθB+cosθW3​.
  3. Charged fields W±(W1,W2)=(W1∓iW2)/2∈CW^\pm(W_1,W_2) = (W_1 \mp iW_2)/\sqrt2 \in \mathbb CW±(W1​,W2​)=(W1​∓iW2​)/2​∈C.
  4. Tree-level masses mW(g,v)=gv/2m_W(g,v) = gv/2mW​(g,v)=gv/2 and mZ(g,g′,v)=g2+g′2 v/2m_Z(g,g',v) = \sqrt{g^2+g'^2}\,v/2mZ​(g,g′,v)=g2+g′2​v/2.
  5. Pauli matrices σ1=(0110)\sigma_1 = \begin{pmatrix}0&1\\1&0\end{pmatrix}σ1​=(01​10​), σ2=(0−ii0)\sigma_2 = \begin{pmatrix}0&-i\\i&0\end{pmatrix}σ2​=(0i​−i0​), σ3=(100−1)\sigma_3 = \begin{pmatrix}1&0\\0&-1\end{pmatrix}σ3​=(10​0−1​) (Lean indices 0,1,20,1,20,1,2).
  6. Gauge part of the covariant derivative on a doublet of hypercharge YYY, with the factor −i-i−i removed:
M(g,g′,Y,B,W1,W2,W3)=g′2YB 1+g2 (W1σ1+W2σ2+W3σ3).M(g,g',Y,B,W_1,W_2,W_3) = \tfrac{g'}{2}YB\,\mathbb 1 + \tfrac g2\,(W_1\sigma_1+W_2\sigma_2+W_3\sigma_3).M(g,g′,Y,B,W1​,W2​,W3​)=2g′​YB1+2g​(W1​σ1​+W2​σ2​+W3​σ3​).
  1. Higgs vacuum h0(v)=(0,v/2)∈C2h_0(v) = (0, v/\sqrt2)\in\mathbb C^2h0​(v)=(0,v/2​)∈C2, the squared doublet norm ∣h∣2=∣h1∣2+∣h2∣2|h|^2 = |h_1|^2+|h_2|^2∣h∣2=∣h1​∣2+∣h2​∣2, and the Higgs potential Vλ,v(h)=λ(∣h∣2−v2/2)2V_{\lambda,v}(h) = \lambda(|h|^2 - v^2/2)^2Vλ,v​(h)=λ(∣h∣2−v2/2)2.
  2. Electric charge Q(T3,Y)=T3+Y/2Q(T_3,Y) = T_3 + Y/2Q(T3​,Y)=T3​+Y/2, and the generator a2σ3+b21\tfrac a2\sigma_3 + \tfrac b2\mathbb 12a​σ3​+2b​1, which is aT3+bY/2aT_3 + bY/2aT3​+bY/2 acting on the Higgs doublet (T3=σ3/2T_3=\sigma_3/2T3​=σ3​/2, Y=1Y=1Y=1).

Formalization Note The article writes Dμ=∂μ−ig′2YBμ−ig2TjWμjD_\mu = \partial_\mu - i\frac{g'}{2}YB_\mu - i\frac g2 T_jW^j_\muDμ​=∂μ​−i2g′​YBμ​−i2g​Tj​Wμj​; because the factor 12\frac1221​ is written out, TjT_jTj​ is taken to be the Pauli matrix σj\sigma_jσj​. Fields are real numbers at a single point and Lorentz index.

Definition code
import Mathlib

namespace ElectroweakWiki

open Complex

/-- The weak mixing (Weinberg) angle `θ_W`, fixed by `tan θ_W = g' / g`. -/
noncomputable def weinbergAngle (g g' : ℝ) : ℝ := Real.arctan (g' / g)

/-- The electromagnetic coupling read off the Weinberg triangle: `e = g g' / √(g² + g'²)`. -/
noncomputable def elemCharge (g g' : ℝ) : ℝ := g * g' / Real.sqrt (g ^ 2 + g' ^ 2)

/-- Photon field component `γ = cos θ · B + sin θ · W₃`. -/
noncomputable def photonField (θ B W3 : ℝ) : ℝ := Real.cos θ * B + Real.sin θ * W3

/-- Z-boson field component `Z⁰ = -sin θ · B + cos θ · W₃`. -/
noncomputable def zField (θ B W3 : ℝ) : ℝ := -Real.sin θ * B + Real.cos θ * W3

/-- Charged boson `W⁺ = (W₁ - i W₂) / √2`. -/
noncomputable def wPlus (W1 W2 : ℝ) : ℂ := ((W1 : ℂ) - I * (W2 : ℂ)) / (Real.sqrt 2 : ℂ)

/-- Charged boson `W⁻ = (W₁ + i W₂) / √2`. -/
noncomputable def wMinus (W1 W2 : ℝ) : ℂ := ((W1 : ℂ) + I * (W2 : ℂ)) / (Real.sqrt 2 : ℂ)

/-- Tree-level W mass `m_W = g v / 2`. -/
noncomputable def wMass (g v : ℝ) : ℝ := g * v / 2

/-- Tree-level Z mass `m_Z = √(g² + g'²) v / 2`. -/
noncomputable def zMass (g g' v : ℝ) : ℝ := Real.sqrt (g ^ 2 + g' ^ 2) * v / 2

/-- The Pauli matrices `σ₁, σ₂, σ₃` (indexed by `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 gauge-field part of the covariant derivative on a weak-isospin doublet of
hypercharge `Y`, with the factor `-i` stripped:
`(g'/2) Y B · 𝟙 + (g/2) (W¹ σ₁ + W² σ₂ + W³ σ₃)`. -/
noncomputable def gaugeTerm (g g' Y B W1 W2 W3 : ℝ) : Matrix (Fin 2) (Fin 2) ℂ :=
  ((g' / 2 * Y * B : ℝ) : ℂ) • (1 : Matrix (Fin 2) (Fin 2) ℂ) +
    ((g / 2 : ℝ) : ℂ) • ((W1 : ℂ) • pauli 0 + (W2 : ℂ) • pauli 1 + (W3 : ℂ) • pauli 2)

/-- The Higgs vacuum doublet `h₀ = (0, v / √2)`. -/
noncomputable def higgsVacuum (v : ℝ) : Fin 2 → ℂ := ![0, ((v / Real.sqrt 2 : ℝ) : ℂ)]

/-- Squared Hermitian norm `|h|² = |h₁|² + |h₂|²` of a doublet. -/
noncomputable def doubletNormSq (h : Fin 2 → ℂ) : ℝ := Complex.normSq (h 0) + Complex.normSq (h 1)

/-- The Higgs potential `λ (|h|² - v²/2)²`. -/
noncomputable def higgsPotential (lam v : ℝ) (h : Fin 2 → ℂ) : ℝ :=
  lam * (doubletNormSq h - v ^ 2 / 2) ^ 2

/-- Electric charge `Q = T₃ + Y / 2` of a state with isospin component `T₃` and hypercharge `Y`. -/
noncomputable def electricCharge (T3 Y : ℝ) : ℝ := T3 + Y / 2

/-- The generator `a T₃ + b Y / 2` acting on the Higgs doublet (hypercharge `Y = 1`),
with `T₃ = σ₃ / 2`: the matrix `(a/2) σ₃ + (b/2) 𝟙`. -/
noncomputable def isospinHyperchargeGenerator (a b : ℝ) : Matrix (Fin 2) (Fin 2) ℂ :=
  ((a / 2 : ℝ) : ℂ) • pauli 2 + ((b / 2 : ℝ) : ℂ) • (1 : Matrix (Fin 2) (Fin 2) ℂ)

end ElectroweakWiki
Source
Wikipedia, "Electroweak interaction", revision oldid=1360331872, https://en.wikipedia.org/w/index.php?title=Electroweak_interaction&oldid=1360331872; sections Formulation and Lagrangian (pp. 2–5 of the PDF)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted these Lean statements (at the explicit direction of the proposal's owner), not by an independent blind auditor. The author knew the intended meaning while writing it, so it must not be mistaken for independent testimony; reviewers should check it against the Lean code themselves.

The file declares the following objects in the namespace ElectroweakWiki. All real parameters range over all of R\mathbb RR; no definition carries a hypothesis.

  • weinbergAngle(g,g′)=arctan⁡(g′/g)\mathrm{weinbergAngle}(g,g') = \arctan(g'/g)weinbergAngle(g,g′)=arctan(g′/g). When g=0g=0g=0 the quotient is the junk value g′/0=0g'/0 = 0g′/0=0, so the angle is 000.
  • elemCharge(g,g′)=gg′/g2+g′2\mathrm{elemCharge}(g,g') = gg'/\sqrt{g^2+g'^2}elemCharge(g,g′)=gg′/g2+g′2​, where ⋅\sqrt{\cdot}⋅​ is the real square root; when g=g′=0g=g'=0g=g′=0 this is 0/0=00/0 = 00/0=0.
  • photonField(θ,B,W3)=cos⁡θ B+sin⁡θ W3\mathrm{photonField}(\theta,B,W_3) = \cos\theta\,B+\sin\theta\,W_3photonField(θ,B,W3​)=cosθB+sinθW3​ and zField(θ,B,W3)=−sin⁡θ B+cos⁡θ W3\mathrm{zField}(\theta,B,W_3) = -\sin\theta\,B+\cos\theta\,W_3zField(θ,B,W3​)=−sinθB+cosθW3​ (real numbers).
  • wPlus(W1,W2)=(W1−iW2)/2\mathrm{wPlus}(W_1,W_2) = (W_1 - iW_2)/\sqrt2wPlus(W1​,W2​)=(W1​−iW2​)/2​ and wMinus(W1,W2)=(W1+iW2)/2\mathrm{wMinus}(W_1,W_2) = (W_1+iW_2)/\sqrt2wMinus(W1​,W2​)=(W1​+iW2​)/2​, complex numbers.
  • wMass(g,v)=gv/2\mathrm{wMass}(g,v) = gv/2wMass(g,v)=gv/2 and zMass(g,g′,v)=g2+g′2 v/2\mathrm{zMass}(g,g',v) = \sqrt{g^2+g'^2}\,v/2zMass(g,g′,v)=g2+g′2​v/2; these can be negative if gv<0g v<0gv<0 or v<0v<0v<0.
  • pauli\mathrm{pauli}pauli sends the indices 0,1,20,1,20,1,2 to the complex 2×22\times22×2 matrices (0110)\begin{pmatrix}0&1\\1&0\end{pmatrix}(01​10​), (0−ii0)\begin{pmatrix}0&-i\\i&0\end{pmatrix}(0i​−i0​), (100−1)\begin{pmatrix}1&0\\0&-1\end{pmatrix}(10​0−1​).
  • gaugeTerm(g,g′,Y,B,W1,W2,W3)\mathrm{gaugeTerm}(g,g',Y,B,W_1,W_2,W_3)gaugeTerm(g,g′,Y,B,W1​,W2​,W3​) is the complex 2×22\times22×2 matrix g′2YB I+g2(W1σ1+W2σ2+W3σ3)\frac{g'}{2}YB\,I + \frac g2(W_1\sigma_1+W_2\sigma_2+W_3\sigma_3)2g′​YBI+2g​(W1​σ1​+W2​σ2​+W3​σ3​).
  • higgsVacuum(v)\mathrm{higgsVacuum}(v)higgsVacuum(v) is the vector (0,v/2)∈C2(0, v/\sqrt2)\in\mathbb C^2(0,v/2​)∈C2.
  • doubletNormSq(h)=∣h1∣2+∣h2∣2\mathrm{doubletNormSq}(h) = |h_1|^2+|h_2|^2doubletNormSq(h)=∣h1​∣2+∣h2​∣2 for h∈C2h\in\mathbb C^2h∈C2 (a real number).
  • higgsPotential(λ,v,h)=λ(doubletNormSq(h)−v2/2)2\mathrm{higgsPotential}(\lambda,v,h) = \lambda(\mathrm{doubletNormSq}(h) - v^2/2)^2higgsPotential(λ,v,h)=λ(doubletNormSq(h)−v2/2)2.
  • electricCharge(T3,Y)=T3+Y/2\mathrm{electricCharge}(T_3,Y) = T_3+Y/2electricCharge(T3​,Y)=T3​+Y/2.
  • isospinHyperchargeGenerator(a,b)=a2σ3+b2I\mathrm{isospinHyperchargeGenerator}(a,b) = \frac a2\sigma_3 + \frac b2 IisospinHyperchargeGenerator(a,b)=2a​σ3​+2b​I, i.e. the diagonal matrix diag(a+b2,b−a2)\mathrm{diag}\big(\frac{a+b}2, \frac{b-a}2\big)diag(2a+b​,2b−a​).
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Oct 8, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me