Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lattice U(1)U(1)U(1) scalar field: phase rotations, local variations, path integral

Definition
WardTakahashi_LatticeU1

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

mathematical-physicsquantum-field-theoryward-identity

Lattice model of a charged (complex) scalar field used to state the Ward–Takahashi identities in a finite-dimensional, mathematically rigorous setting.

  1. A field configuration on NNN lattice sites is a vector φ=(φy)y∈CN\varphi=(\varphi_y)_{y}\in\mathbb C^Nφ=(φy​)y​∈CN.
  2. The global U(1)U(1)U(1) rotation by angle θ∈R\theta\in\mathbb Rθ∈R is (Rθφ)y=eiθφy(R_\theta\varphi)_y=e^{i\theta}\varphi_y(Rθ​φ)y​=eiθφy​ for every site yyy.
  3. The local generator at site xxx is the tangent vector (gxφ)y=δxy iφx(g_x\varphi)_y=\delta_{xy}\, i\varphi_x(gx​φ)y​=δxy​iφx​, i.e. the infinitesimal phase rotation of the single site xxx.
  4. For a real-differentiable functional FFF of the field (real- or complex-valued), its local variation at xxx is
δxF(φ)=DF(φ) [gxφ].\delta_x F(\varphi)=DF(\varphi)\,[g_x\varphi].δx​F(φ)=DF(φ)[gx​φ].
  1. An action S:CN→RS:\mathbb C^N\to\mathbb RS:CN→R is U(1)U(1)U(1)-invariant if S(Rθφ)=S(φ)S(R_\theta\varphi)=S(\varphi)S(Rθ​φ)=S(φ) for all θ,φ\theta,\varphiθ,φ.
  2. The (unnormalised) path integral of an observable F:CN→CF:\mathbb C^N\to\mathbb CF:CN→C is
ZS[F]=∫CNF(φ) e−S(φ) dφ,Z_S[F]=\int_{\mathbb C^N}F(\varphi)\,e^{-S(\varphi)}\,d\varphi,ZS​[F]=∫CN​F(φ)e−S(φ)dφ,

with Lebesgue measure dφd\varphidφ on CN≅R2N\mathbb C^N\cong\mathbb R^{2N}CN≅R2N.

For a U(1)U(1)U(1)-invariant action, δxS\delta_x Sδx​S plays the role of the (lattice) divergence of the Noether current at site xxx.

Formalization Note The Euclidean weight e−Se^{-S}e−S replaces the Minkowski weight eiSe^{iS}eiS of the source; expectation values are ratios ZS[F]/ZS[1]Z_S[F]/Z_S[1]ZS​[F]/ZS​[1], so identities are stated for the unnormalised ZSZ_SZS​. The integral is a Bochner integral (value 000 for non-integrable integrands).

Definition code
import Mathlib

namespace WardTakahashi

open MeasureTheory Complex

/-- Field configurations of a complex scalar field on `N` lattice sites:
a configuration assigns a complex number `φ y` to every site `y`. -/
abbrev FieldConfig (N : ℕ) := Fin N → ℂ

/-- The global `U(1)` phase rotation `φ ↦ e^{iθ} φ`, applied at every site. -/
noncomputable def phaseRotate {N : ℕ} (θ : ℝ) (φ : FieldConfig N) : FieldConfig N :=
  fun y => Complex.exp ((θ : ℂ) * I) * φ y

/-- Infinitesimal generator of the *local* phase rotation at site `x`:
the tangent vector whose only nonzero entry is `i φ x`, at site `x`. -/
noncomputable def localGen {N : ℕ} (x : Fin N) (φ : FieldConfig N) : FieldConfig N :=
  Pi.single x (I * φ x)

/-- Infinitesimal local variation at site `x` of a (real-)differentiable functional `F`
of the field: the directional derivative of `F` at `φ` along `localGen x φ`. -/
noncomputable def localVar {N : ℕ} {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V]
    (x : Fin N) (F : FieldConfig N → V) (φ : FieldConfig N) : V :=
  fderiv ℝ F φ (localGen x φ)

/-- An action `S` is invariant under global `U(1)` phase rotations. -/
def IsU1Invariant {N : ℕ} (S : FieldConfig N → ℝ) : Prop :=
  ∀ (θ : ℝ) (φ : FieldConfig N), S (phaseRotate θ φ) = S φ

/-- The (unnormalised) Euclidean lattice path integral of an observable `F`
with Boltzmann weight `e^{-S}` against Lebesgue measure on `ℂ^N`. -/
noncomputable def pathIntegral {N : ℕ} (S : FieldConfig N → ℝ) (F : FieldConfig N → ℂ) : ℂ :=
  ∫ φ, F φ * (Real.exp (-S φ) : ℂ)

end WardTakahashi
Source
Wikipedia, "Ward–Takahashi identity" (revision oldid=1374751657), https://en.wikipedia.org/w/index.php?title=Ward%E2%80%93Takahashi_identity&oldid=1374751657 ; section "Derivation in the path integral formulation" (finite-dimensional lattice model)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) — NON-BLIND, same agent that drafted the statements

Note — NON-BLIND read-back. This read-back was written by the same agent that drafted the Lean statements (Aristotle by Harmonic), with full knowledge of the source material and of the intended meaning. It is not independent testimony and must not be treated as a blind audit; an independent blind read-back is still recommended before submission.

The file introduces, for each natural number NNN (including N=0N=0N=0):

  • the type of field configurations CN\mathbb C^NCN = functions from the NNN sites {0,…,N−1}\{0,\dots,N-1\}{0,…,N−1} to C\mathbb CC (with the product/sup-norm structure and Lebesgue product measure inherited from C\mathbb CC);
  • RθφR_\theta\varphiRθ​φ (phaseRotate): for θ∈R\theta\in\mathbb Rθ∈R, the configuration y↦eiθφyy\mapsto e^{i\theta}\varphi_yy↦eiθφy​;
  • gxφg_x\varphigx​φ (localGen): the configuration equal to iφxi\varphi_xiφx​ at site xxx and 000 at every other site;
  • δxF(φ)\delta_xF(\varphi)δx​F(φ) (localVar): for any map FFF from CN\mathbb C^NCN into a real normed space VVV, the value of the real Fréchet derivative DF(φ)DF(\varphi)DF(φ) applied to gxφg_x\varphigx​φ. No differentiability is assumed in the definition; if FFF is not differentiable at φ\varphiφ the derivative is taken to be the zero map, so δxF(φ)=0\delta_xF(\varphi)=0δx​F(φ)=0 there;
  • IsU1Invariant SSS for S:CN→RS:\mathbb C^N\to\mathbb RS:CN→R: the proposition that S(Rθφ)=S(φ)S(R_\theta\varphi)=S(\varphi)S(Rθ​φ)=S(φ) for every real θ\thetaθ and every φ\varphiφ;
  • pathIntegral ZS[F]Z_S[F]ZS​[F] for S:CN→RS:\mathbb C^N\to\mathbb RS:CN→R and F:CN→CF:\mathbb C^N\to\mathbb CF:CN→C: the complex number
ZS[F]=∫CNF(φ) e−S(φ) dφZ_S[F]=\int_{\mathbb C^N}F(\varphi)\,e^{-S(\varphi)}\,d\varphiZS​[F]=∫CN​F(φ)e−S(φ)dφ

(Bochner integral with respect to Lebesgue measure on CN\mathbb C^NCN, equal to 000 whenever φ↦F(φ)e−S(φ)\varphi\mapsto F(\varphi)e^{-S(\varphi)}φ↦F(φ)e−S(φ) is not integrable). There is no normalisation by ZS[1]Z_S[1]ZS​[1].

Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Sep 27, 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