← All papers
First page of Formalization of Langlands's Second Main Lemma for Local Epsilon Factors

Formalization of Langlands's Second Main Lemma for Local Epsilon Factors

Fukuhiro Ueda

math.GM Sep 20, 2026 · v2
Formalizes Langlands's Second Main Lemma for local epsilon factors in Lean 4 with Mathlib, mapping each proof step to its Lean declarations.
We describe the Lean 4 formalization of Langlands's Second Main Lemma for local epsilon factors over nonarchimedean local fields, in mixed and equal characteristic. The lemma compares the induction expressions attached to compatible characters of the intermediate fields of a bicyclic extension of prime-square degree. We explain the mathematical constructions and comparisons that constitute the proof, and identify their Lean declarations.

Langlands's Second Main Lemma states that for a bicyclic extension of prime-square degree over a nonarchimedean local field, the induction expressions of local constants attached to primitive compatible characters of the intermediate fields agree. The wild dyadic case is new in the companion proof and needed machine-checked verification.

The proof is formalized in Lean 4 using Mathlib and follows the case division of the companion paper: tame, wild odd-prime, and biquadratic (p=2) cases. The formalization builds on a prior Lean formalization of the First Main Lemma. It uses Lamprecht's formula with stationary representatives and critical functions, conductor behavior under norms, and norm-character group structure. The paper links each mathematical construction to its Lean declarations and records exact source and Mathlib revisions.

A complete machine-checked proof of the Second Main Lemma in mixed and equal characteristic, for all residue characteristics and all primes ℓ, including the new wild dyadic case. The formalization also suggested six simplifications of the mathematical proof.