Date: 2026-10-17. Module: lean/ThetLogos/LatticeGauge.lean
(1,656 lines). Governing spec: §6.1 of
whitepaper/pitch-4-continuum-scoping-DRAFT-2026-10-17.md, with §8’s
mandatory header clauses and the §3 transition frame. Tier: T1
throughout (finite lattice algebra + finite integration, machine-checked
in Lean 4 against pinned Mathlib v4.35.0-rc3).
Verdict: PITCH 4 STAGE 0 STANDS WHOLE. In the scoping’s §8
nomenclature the pitch-level shape is therefore PARTIAL-α (Stage 0
only; Stages 1a/1b/1c, 2, 3a/3b/3c, 4 untouched). It is not
PARTIAL-γ: the landing is not abelian-only — every headline is proved
for a general compact group G and a general unitary representation
ρ, with the nonabelian unitary-group family discharged as an instance
at every dimension d. Parts of the official Clay Yang–Mills
statement closed by this module: 0.
lake build ThetLogos.LatticeGauge — green,
3,390 jobs. The module is not in the root import list (the corpus
pattern for recent exhibits; disclosed in the module header).sorry/admit in code (grep-verified; the only grep hit is
the word “sorrys” in the header’s prose honesty ledger).#print axioms), each exactly
[propext, Classical.choice, Quot.sound]:
wilsonAction_gauge_invariant, configMeasure_map_gaugeAction,
wilsonLoop_gauge_invariant, gibbsExpect_zero_plaquette,
gibbsExpect_zero_plaquette_eq_zero,
circle_plaquette_expectation_zero,
unitary_plaquette_expectation_zero, integral_gaugeAction.gaugeAction (U^g)(x,μ) = g x · U(x,μ) · (g (σ μ x))⁻¹;
plaquette_gauge: U_p(U^g) = g x · U_p(U) · (g x)⁻¹ (the proof
uses shift commutation σ ν (σ μ x) = σ μ (σ ν x) — with this
gauge-action convention the two walks around the square must agree);
trace_repMatrix_conj gives trace invariance, hence density and
action invariance.g —
STANDS (the stage headline). wilsonAction_gauge_invariant :
S_β(U^g) = S_β(U) for all g : Λ → G, no gauge fixing anywhere
(pre-kill (a) honored by construction).configMeasure_map_gaugeAction proves
Measure.map (gaugeAction σ g) (configMeasure μG) = configMeasure μG,
via Mathlib’s product-measure preservation under per-coordinate
measure-preserving maps (each coordinate map is a left/right
translation pair). integral_gaugeAction is the integral corollary.
Right-invariance and inversion-invariance of the normalized Haar
measure itself are proved in-file (Measure.IsMulRightInvariant
(haarProb G), Measure.IsInvInvariant (haarProb G)) from
uniqueness of normalized Haar measure on a compact group.Steps (fwd μ /
bwd μ from a base site); wilsonLoop = tr ρ(loopProd);
wilsonLoop_gauge_invariant for closed loops by conjugation plus
trace cyclicity (trace_repMatrix_conj). The plaquette is a closed
loop in the formalism: loopProd_plaquetteSteps (uses commutation).
Expectations ⟨W_C⟩_β defined (wilsonLoopExpectation via
gibbsExpect).(G, ρ) form (stronger than
the scoped floor). gibbsExpect_zero: at β = 0 the Gibbs
expectation is the plain product-Haar expectation. The Haar
intertwiner P = ∫ ρ dμ is analyzed directly: intertwining on both
sides (repMatrix_mul_haarIntertwiner, haarIntertwiner_mul_repMatrix),
idempotence (haarIntertwiner_idempotent), range = fixed vectors
(repMatrix_mulVec_haarIntertwiner, haarIntertwiner_mulVec_of_fixed),
and P = 0 when ρ has no nonzero fixed vectors
(haarIntertwiner_eq_zero_of_no_fixed). Single-link expectations
factor through P (integral_repMatrix_link,
integral_trace_repMatrix_link), and the plaquette expectation
factorizes over its four distinct links into P⁴ = P:
gibbsExpect_zero_plaquette : ⟨W_p⟩₀ = tr P and
gibbsExpect_zero_plaquette_eq_zero : ⟨W_p⟩₀ = 0 when ρ has
no nonzero fixed vectors — also in Wilson-loop form
(gibbsExpect_zero_wilsonLoop_plaquette). This is Haar
orthogonality in projection form; no shaped-instance partial was
needed, and nothing is priced here. The factorization needs only
σ μ x ≠ x, σ ν x ≠ x, μ ≠ ν (the four plaquette links are then
pairwise distinct) — commutation is not needed for the β = 0
plaquette theorem. Instances discharged (§8): the circle’s
fundamental representation (circle_plaquette_expectation_zero)
and the unitary group’s identity representation at every d
(unitary_plaquette_expectation_zero; d = 2 is the SU(2)-shaped
case up to the determinant condition, which these expectations do
not see) — both have no nonzero fixed vectors (witnesses: z = −1;
a diagonal sign flip), so both get ⟨W_p⟩₀ = 0 on the torus for
N ≥ 2.plaquette_one
(trivial configuration), plaquette_swap
(U_p(x,ν,μ) = U_p(x,μ,ν)⁻¹), the unitary trace bounds
re_trace_le_of_mem_unitaryGroup / neg_re_trace_le_… from the
entry bound abs_entry_of_mem_unitaryGroup (entries of a unitary
matrix have norm ≤ 1), the density bound plaquetteDensity_mem_Icc
(density ∈ [0, 2] for 0 < d), action nonnegativity
wilsonAction_nonneg and the explicit bound wilsonAction_le
for β ≥ 0, and denominator positivity gibbsDenom_pos
(β ≥ 0), which makes the ratio-of-integrals expectation honest.Λ [Fintype Λ]
with four shift bijections σ : Fin 4 → Equiv.Perm Λ; commutation
is a hypothesis on exactly the theorems that use it
(plaquette_gauge, the loop identifications), never baked into
definitions. The concrete torus Fin 4 → ZMod N (shifts =
Equiv.addLeft (Pi.single μ 1)) is instantiated in §8:
torusShift_comm, and torusShift_ne_self for 2 ≤ N — the
abstract layer is inhabited by the intended model.ρ : G →* ↥(Matrix.unitaryGroup (Fin d) ℂ) (the brief’s subgroup
device, stated at its natural generality: the unitary-group instance
is the identity homomorphism). repMatrix ρ g := (ρ g).1.U_p(x,μ,ν) = U(x,μ) · U(σ μ x, ν) · (U(σ ν x, μ))⁻¹ · (U(x,ν))⁻¹;
the action sums over x, μ, and ν ∈ Ioi μ (each unordered
plaquette once).haarProb G := ((haar univ)⁻¹) • haar, built
in-file from Mathlib’s Measure.haar by scalar normalization (a
ready-made normalized-Haar-probability instance under that name was
not available in the pinned Mathlib; its Haar/right/inversion
invariance is proved in-file from uniqueness). All measure theorems
are parametrized over any μG with [IsProbabilityMeasure μG]
[IsMulLeftInvariant μG] [IsMulRightInvariant μG] [IsInvInvariant μG].gibbsExpect = ratio of integrals
∫ e^{−S} F dμ / ∫ e^{−S} dμ (the brief’s explicitly allowed
device; no Gibbs measure object is constructed).[SecondCountableTopology G] is carried as a hypothesis in the
integration sections (§6–§7) — in this Mathlib it is what makes
multiplication of G-valued measurable functions measurable. Both
instance families satisfy it (for the unitary group it is supplied
in-module, see below).Matrix.of fun i j => ∫ g,
repMatrix ρ g i j ∂μG): Mathlib deliberately registers no global
norm on matrices, so the matrix-valued Bochner integral is not
available off the shelf; the entrywise integral is the same object.↥(Matrix.unitaryGroup (Fin d)
ℂ) (§8): Mathlib provides the group structure but not
ContinuousMul, IsTopologicalGroup, or CompactSpace for it;
all three are proved in-module (continuity of inversion via
⇑A⁻¹ = star A; compactness as a closed subset of a product of
entry disks, using the entry bound). The Pi-transported
LocallyCompactSpace / SecondCountableTopology instances on
matrices themselves are also registered in-module (Pi type with the
Pi topology), and second countability of the subtype goes through
TopologicalSpace.secondCountableTopology_induced.repMatrix_inv is stated in star form (repMatrix ρ g⁻¹ =
star (repMatrix ρ g)), the form the unitary-group API gives
directly.(a) No gauge fixing as a definition anywhere — invariance is proved
for all g. (b) Group-valued links only — no Lie-algebra/exp
variables. (c) β is a bare parameter — no coupling/scale language in
code or header. (d) The formal a → 0 plaquette expansion is not a
theorem — it appears in the header only, labeled T5-context and
disclaimed. (e) No continuum word is applied to any result; no
mass-gap language; no Hilbert-space/dynamics claims. The header
carries §8’s five mandatory clauses verbatim in substance
(finite-lattice discipline; gap discipline; gauge discipline; RG
discipline; the standing charter “Parts of the official Clay
Yang–Mills statement closed by this module: 0”).
Reflection positivity / transfer matrix = Stage 1b (priced L–XL
in the scoping); strong-coupling / cluster expansion = Stage 1c
(priced XL, separately killable). Stage 0 itself has no priced
remainder: every scoped item above stands, at general (G, ρ)
wherever the scoping allowed a shaped fallback.
Program total after this landing: 2,080 + 68 = 2,148 theorem/lemma declarations (the 68 are this module’s T1 count by the method above; its 22 defs and 11 instances are not theorems and are not counted in the program total, matching prior dossiers’ convention).