thet-logos

Gram clause, Route B — step T2: the averaging-projection lemma

Landed 2026-10-23, parent-verified. Module: lean/ThetLogos/AveragingProjection.lean (334 lines). Charter: whitepaper/gram-clause-scoping-2026-10-23.md §4 Route B, step T2; fences §5.

Verdict: T2 STANDS WHOLE (T1)

For a compact group G, a Haar probability measure μ on G (left-invariant and inversion-invariant, carried as typeclass hypotheses), and a continuous finite-dimensional unitary representation ρ of G on a complex inner product space E (representation laws as pointwise hypotheses), the averaging operator A = ∫ g, ρ g ∂μ is the orthogonal projection onto the invariant subspace. All four chartered items are proved:

  1. Idempotence — averagingOperator_idempotent: A ∘L A = A, via left Haar invariance (ρ g₀ (A v) = A v).
  2. Self-adjointness — averagingOperator_adjoint: A.adjoint = A, from unitarity plus inversion invariance of μ.
  3. Range = invariant subspace — averagingOperator_range, with A the identity there (averagingOperator_of_mem_invariant) and the orthogonality inner_apply_sub_left stated explicitly.
  4. Finite Gram sum — averagingOperator_gram: for an orthonormal basis e of the invariant subspace, A v = ∑ i, ⟪e i, v⟫ • e i.

No Peter–Weyl, no Schur, no irreducibility: invariance and unitarity only. Pure finite-dimensional harmonic analysis — no lattice, no plaquettes, no β, no gauge-theory statement. NO CLAIM — parts of any official Clay statement closed by this module: 0.

Verification (parent, on the shipped text)

Program census after this landing: 4,204 strict / 4,238 attribute-inclusive, 138 counted modules (the module’s one @[simp] sits on its own line above an already-counted lemma, so the attribute-inclusive total is unchanged).

Formulation choices (disclosed, builder’s record)

What remains on Route B