Formalization of Langlands's Second Main Lemma for Local Epsilon Factors
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.
