October 2026 · Preprint

A Lean 4 formalization of the area law for three-dimensional U(1) lattice gauge theory with the Wilson action

Abstract

In three-dimensional U(1) lattice gauge theory with the Wilson action, static charges are confined at every coupling: rectangular Wilson loops obey an area law, uniformly in the finite box. This was proved recently by the author in the paper [U1], "Area law for three-dimensional U(1) lattice gauge theory with the Wilson action at every coupling" (doi:10.5281/zenodo.23445737); the proof runs to over three hundred pages with its supplement and adapts the Debye-screening analysis of Brydges and Federbush and the multiscale expansion of Göpfert and Mack. We describe a formalization of this proof in Lean 4 with Mathlib, which also covers the corollaries of [U1] and its appendix on comparing Wilson and Villain loops. The formal theorems take no hypotheses and use only the standard axioms of Lean. The proof became formalizable through explicit interfaces between its parts, written-out versions of the steps that [U1] adapts from the literature or leaves out, and certified values for every numerical constant. The formalization also yielded 70 corrections and improvements to [U1], none of which changes its main results.

In plain words

In three-dimensional U(1) lattice gauge theory with the Wilson action, the energy of two opposite charges grows at least in proportion to their distance, at every strength of the interaction. The main paper's proof runs to over three hundred pages with its supplement. The main paper's main text adapts arguments from older papers and leaves some steps out. The formalization described in this companion paper writes out a complete proof in the proof assistant Lean, including those steps. Every main theorem rests only on Lean’s logic and its three standard axioms. Writing out the proof led to corrections to the first version of the main paper, none of which changes any of its main results.

Lean code: the definitions AreaLawAt and AreaLaw; the theorem U1.Main.thm_1_2 : U1.AreaLaw; and the line listing the axioms of its proof: propext, Classical.choice and Quot.sound.
The Lean definitions of the area law and the statement of the first part of the main theorem, as stated in this paper, with the axioms that Lean reports for the proof of the first part: the three standard ones and nothing else.

Formal statement and axioms

Each main result as stated in Lean, copied verbatim from the published package, with the axioms that the proof rests on. Lean v4.35.0-rc3, Mathlib c55e6e786f49. The package.

U1.Main.thm_1_2

Theorem 1.2, first assertion, the main theorem of the formalization: kernel-only

theorem thm_1_2 : AreaLaw
Definitions used in the statement
def AreaLaw : Prop :=
  ∃ c : ℝ, ∀ β : ℝ, 0 < β → ∃ σ : ℝ, 0 < σ ∧ ∃ R₁ : ℕ, AreaLawAt β σ R₁ c
def AreaLawAt (β σ : ℝ) (R₁ : ℕ) (c : ℝ) : Prop :=
  ∀ C : Rect, R₁ ≤ C.R → R₁ ≤ C.T → ∀ B : Box, C.InBox B →
    B.wilsonLoop β C.chain ≤ Real.exp (-σ * C.R * C.T + c * (C.R + C.T))
noncomputable def wilsonLoop (β : ℝ) (C : Bond → ℤ) : ℝ :=
  B.complex.wilsonExp β (B.complex.cosObs (B.restrict C))
def chain : Bond → ℤ := bd2 C.flat
def InBox (B : Box) : Prop := C.corners ⊆ B.sites
structure Rect where
  /-- The corner. -/
  x₀ : Site
  /-- The first side direction. -/
  μ : Fin 3
  /-- The second side direction. -/
  ν : Fin 3
  /-- The plane is a coordinate plane. -/
  hμν : μ ≠ ν
  /-- The side length along `e_μ`. -/
  R : ℕ
  /-- The side length along `e_ν`. -/
  T : ℕ
@[ext] structure Box where
  /-- The lower corner. -/
  a : Site
  /-- The upper corner. -/
  b : Site
deriving DecidableEq

Source: Zenodo record 23752572, u1lean-a187a42.zip/u1lean-a187a42/U1/MainTheorem.lean:30-30.

The package does not record Lean’s axiom report for this theorem, but names the axioms in words: propext, Classical.choice, Quot.sound.

U1.Main.thm_1_2_explicit

Theorem 1.2, second assertion, an explicit lower bound on the string tension: kernel-only

theorem thm_1_2_explicit : AreaLawExplicit
Definitions used in the statement
def AreaLawExplicit : Prop :=
  ∃ c : ℝ, ∀ K : ℝ, Kstar < K → ∃ β₀ : ℝ, 0 < β₀ ∧ ∃ σ : ℝ → ℝ, ∃ R₁ : ℝ → ℕ,
    (∀ β, β₀ ≤ β →
      1.35e-4 * (1 / 4) * 1.6e-19 * (K * β) ^ (-(1 : ℝ) / 2) * Real.exp (-2.49436 * (K * β)) ≤
        σ β) ∧
    ∀ β, 0 < β → AreaLawAt β (σ (max β β₀)) (R₁ (max β β₀)) c
noncomputable abbrev Kstar : ℝ := Const.Kstar
def Kstar : ℝ := 377.38
def AreaLawAt (β σ : ℝ) (R₁ : ℕ) (c : ℝ) : Prop :=
  ∀ C : Rect, R₁ ≤ C.R → R₁ ≤ C.T → ∀ B : Box, C.InBox B →
    B.wilsonLoop β C.chain ≤ Real.exp (-σ * C.R * C.T + c * (C.R + C.T))
noncomputable def wilsonLoop (β : ℝ) (C : Bond → ℤ) : ℝ :=
  B.complex.wilsonExp β (B.complex.cosObs (B.restrict C))
def chain : Bond → ℤ := bd2 C.flat
def InBox (B : Box) : Prop := C.corners ⊆ B.sites
structure Rect where
  /-- The corner. -/
  x₀ : Site
  /-- The first side direction. -/
  μ : Fin 3
  /-- The second side direction. -/
  ν : Fin 3
  /-- The plane is a coordinate plane. -/
  hμν : μ ≠ ν
  /-- The side length along `e_μ`. -/
  R : ℕ
  /-- The side length along `e_ν`. -/
  T : ℕ
@[ext] structure Box where
  /-- The lower corner. -/
  a : Site
  /-- The upper corner. -/
  b : Site
deriving DecidableEq

Source: Zenodo record 23752572, u1lean-a187a42.zip/u1lean-a187a42/U1/MainTheorem.lean:35-35.

The package does not record Lean’s axiom report for this theorem, but names the axioms in words: propext, Classical.choice, Quot.sound.