Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Equivariant feed-forward networks, generalized convolution on quotient spaces, G-CNNs and Fourier transforms on finite groups

Definition
EquivarianceConvolution_Basic

by Xeroth · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

equivariancegroup-convolutionneural-networksnoncommutative-fourier-analysisrepresentation-theory

Objects of Sections 3–5 and Appendices A, B and E of Kondor and Trivedi (2018). Throughout, GGG is a finite group.

  1. Actions on functions (Section 3.1). If GGG acts on a set X\mathcal XX, it acts on functions f:X→Vf:\mathcal X\to Vf:X→V by (Tgf)(x)=f(g−1x)(\mathbb T_g f)(x)=f(g^{-1}x)(Tg​f)(x)=f(g−1x).
  2. Equivariance (Definition 2). A map ϕ:LV1(X1)→LV2(X2)\phi:L_{V_1}(\mathcal X_1)\to L_{V_2}(\mathcal X_2)ϕ:LV1​​(X1​)→LV2​​(X2​) is GGG-equivariant if ϕ(Tgf)=Tg′ ϕ(f)\phi(\mathbb T_g f)=\mathbb T'_g\,\phi(f)ϕ(Tg​f)=Tg′​ϕ(f) for all fff and all g∈Gg\in Gg∈G.
  3. Feed-forward networks (Definitions 1 and 3). A network has index sets X0,…,XL\mathcal X_0,\dots,\mathcal X_LX0​,…,XL​, activation spaces Vℓ=CdℓV_\ell=\mathbb C^{d_\ell}Vℓ​=Cdℓ​, linear maps ϕℓ:LVℓ−1(Xℓ−1)→LVℓ(Xℓ)\phi_\ell:L_{V_{\ell-1}}(\mathcal X_{\ell-1})\to L_{V_\ell}(\mathcal X_\ell)ϕℓ​:LVℓ−1​​(Xℓ−1​)→LVℓ​​(Xℓ​) and pointwise nonlinearities σℓ:Vℓ→Vℓ\sigma_\ell:V_\ell\to V_\ellσℓ​:Vℓ​→Vℓ​. Its activations are fℓ(x)=σℓ(ϕℓ(fℓ−1)(x))f_\ell(x)=\sigma_\ell(\phi_\ell(f_{\ell-1})(x))fℓ​(x)=σℓ​(ϕℓ​(fℓ−1​)(x)), starting from the input f0f_0f0​. The network is GGG-equivariant if replacing f0f_0f0​ by Tg0f0\mathbb T^0_gf_0Tg0​f0​ replaces every fℓf_\ellfℓ​ by Tgℓfℓ\mathbb T^\ell_gf_\ellTgℓ​fℓ​.
  4. Quotient spaces and liftings (Section 3 box). For a subgroup HHH, a function fff on G/HG/HG/H lifts to f↑G(g)=f(gH)f\uparrow^G(g)=f(gH)f↑G(g)=f(gH), and a function on H\GH\backslash GH\G lifts to f↑G(g)=f(Hg)f\uparrow^G(g)=f(Hg)f↑G(g)=f(Hg). A function on the double quotient H\G/KH\backslash G/KH\G/K is identified with its lift, a function χ\chiχ on GGG with χ(hvk)=χ(v)\chi(hvk)=\chi(v)χ(hvk)=χ(v) for h∈Hh\in Hh∈H, k∈Kk\in Kk∈K.
  5. Convolution (eqs. (7)–(8), Definitions 4 and 7). (f∗g)(u)=∑v∈Gf(uv−1)g(v)(f*g)(u)=\sum_{v\in G}f(uv^{-1})g(v)(f∗g)(u)=∑v∈G​f(uv−1)g(v). For f:G→Cmf:G\to\mathbb C^mf:G→Cm and a matrix-valued χ:G→Cn×m\chi:G\to\mathbb C^{n\times m}χ:G→Cn×m, (f∗χ)(u)=∑v∈Gχ(v)f(uv−1)(f*\chi)(u)=\sum_{v\in G}\chi(v)f(uv^{-1})(f∗χ)(u)=∑v∈G​χ(v)f(uv−1).
  6. G-CNN (Definition 5). A linear map ϕ:LCm(G/H)→LCn(G/K)\phi:L_{\mathbb C^m}(G/H)\to L_{\mathbb C^n}(G/K)ϕ:LCm​(G/H)→LCn​(G/K) is a generalized convolution if there is a filter χ\chiχ on H\G/KH\backslash G/KH\G/K with ϕ(f)↑G=f↑G∗χ↑G\phi(f)\uparrow^G=f\uparrow^G*\chi\uparrow^Gϕ(f)↑G=f↑G∗χ↑G. A network with Xℓ=G/Hℓ\mathcal X_\ell=G/H_\ellXℓ​=G/Hℓ​ is a GGG-CNN if every ϕℓ\phi_\ellϕℓ​ is a generalized convolution with a filter on Hℓ−1\G/HℓH_{\ell-1}\backslash G/H_\ellHℓ−1​\G/Hℓ​.
  7. Representations (Appendix A). A representation is a homomorphism ρ:G→Cn×n\rho:G\to\mathbb C^{n\times n}ρ:G→Cn×n. It is irreducible if n≥1n\ge1n≥1 and the only subspaces of Cn\mathbb C^nCn invariant under every ρ(g)\rho(g)ρ(g) are 000 and Cn\mathbb C^nCn. The trivial representation is ρtr(g)=(1)\rho_{\mathrm{tr}}(g)=(1)ρtr​(g)=(1). A decomposition ρ∣H=μ1⊕⋯⊕μk\rho|_H=\mu_1\oplus\cdots\oplus\mu_kρ∣H​=μ1​⊕⋯⊕μk​ means that every ρ(h)\rho(h)ρ(h), h∈Hh\in Hh∈H, is block diagonal with consecutive diagonal blocks μ1(h),…,μk(h)\mu_1(h),\dots,\mu_k(h)μ1​(h),…,μk​(h), and each μt\mu_tμt​ is an irreducible representation of HHH. A block is trivial if it is one-dimensional and equals 111 on HHH.
  8. Fourier transform (eq. (13), Section 4.2). f^(ρ)=∑u∈Gf(u)ρ(u)\hat f(\rho)=\sum_{u\in G}f(u)\rho(u)f^​(ρ)=∑u∈G​f(u)ρ(u). A function on a quotient space is transformed through its lift.
  9. Subrepresentations (Appendices A, E). For linear actions {Tg}\{T_g\}{Tg​} on a complex vector space UUU: a subspace WWW is invariant if TgW⊆WT_gW\subseteq WTg​W⊆W for all ggg. It is irreducible if it is nonzero, invariant, and contains no invariant subspaces other than 000 and WWW. Two such restrictions are equivalent if a linear isomorphism intertwines them. The isotypic component UρU_\rhoUρ​ of an irrep ρ\rhoρ is the sum of all invariant subspaces on which the action is equivalent to ρ\rhoρ.

Formalization Note The layers are indexed from 000: the Lean map phi ℓ is the paper's ϕℓ+1\phi_{\ell+1}ϕℓ+1​, and a network is given for all ℓ∈N\ell\in\mathbb Nℓ∈N, of which an (L+1)(L+1)(L+1)-layer statement uses ℓ<L\ell<Lℓ<L. The origin of G/HG/HG/H is the coset HHH. Functions on H\G/KH\backslash G/KH\G/K are represented by their lifts to GGG. The paper's filter type LVℓ−1×VℓL_{V_{\ell-1}\times V_\ell}LVℓ−1​×Vℓ​​ is read as matrices acting on Vℓ−1V_{\ell-1}Vℓ−1​, using the product of Definition 7 (3). The paper states its results for compact groups but works with finite or countable groups throughout (Section 4.1, Appendix A). A countable compact (Hausdorff) group is finite, so the statements take GGG finite.

Definition code
import Mathlib

/-!
Kondor and Trivedi, *On the Generalization of Equivariance and Convolution in Neural Networks to
the Action of Compact Groups*, arXiv:1802.03690v3 (ICML 2018): feed-forward networks and
equivariance (Section 3, Definitions 1–3), convolution on finite groups and quotient spaces
(Section 4, eqs. (7)–(12), Definition 4, Appendix B Definition 7), G-CNNs (Section 5,
Definition 5), representations and Fourier transforms (Section 4.2, eq. (13), Appendix A), and the
subrepresentations and isotypic components used in Appendix E.

The paper assumes throughout that the group is finite or countable (Section 4.1, Appendix A) and
states its results for compact groups; the statements take `G` finite.
-/

noncomputable section

namespace EquivarianceConvolution

open scoped BigOperators

section Basic

variable {G : Type*} [Group G]

/-- Section 3.1, item 3: the action of `g ∈ G` on functions `f : X → V` induced by an action on
`X`, `f' (T_g x) = f x`, i.e. `(T_g f)(x) = f (g⁻¹ x)`. -/
def translateFun {X V : Type*} [MulAction G X] (g : G) (f : X → V) : X → V :=
  fun x => f (g⁻¹ • x)

/-- Definition 2: a (linear or non-linear) map `φ : L_{V₁}(X₁) → L_{V₂}(X₂)` is `G`-equivariant
if `φ (T_g f) = T'_g (φ f)` for every `f` and every `g ∈ G`. -/
def IsEquivariantMap (G : Type*) [Group G] {X₁ X₂ V₁ V₂ : Type*} [MulAction G X₁]
    [MulAction G X₂] (φ : (X₁ → V₁) → (X₂ → V₂)) : Prop :=
  ∀ (g : G) (f : X₁ → V₁), φ (translateFun g f) = translateFun g (φ f)

/-- Definition 1: a multilayer feed-forward network with index sets `X ℓ` and activations in
`V_ℓ = ℂ^{d ℓ}`: linear maps `phi ℓ : L_{V_ℓ}(X_ℓ) → L_{V_{ℓ+1}}(X_{ℓ+1})` (the paper's
`φ_{ℓ+1}`) and pointwise nonlinearities `sigma ℓ : V_{ℓ+1} → V_{ℓ+1}` (the paper's `σ_{ℓ+1}`).
A network with `L + 1` layers uses the entries with `ℓ < L` only. -/
structure FeedForwardNet (X : ℕ → Type*) (d : ℕ → ℕ) where
  /-- The linear map from layer `ℓ` to layer `ℓ + 1`. -/
  phi : ∀ l : ℕ, (X l → Fin (d l) → ℂ) →ₗ[ℂ] (X (l + 1) → Fin (d (l + 1)) → ℂ)
  /-- The pointwise nonlinearity of layer `ℓ + 1`. -/
  sigma : ∀ l : ℕ, (Fin (d (l + 1)) → ℂ) → (Fin (d (l + 1)) → ℂ)

/-- Definition 1: the activations `f_0 ↦ f_1 ↦ … `, `f_{ℓ+1}(x) = σ(φ(f_ℓ)(x))`, as a function of
the input `f_0`. -/
def FeedForwardNet.act {X : ℕ → Type*} {d : ℕ → ℕ} (N : FeedForwardNet X d) :
    (l : ℕ) → (X 0 → Fin (d 0) → ℂ) → (X l → Fin (d l) → ℂ)
  | 0 => fun f => f
  | l + 1 => fun f x => N.sigma l (N.phi l (N.act l f) x)

/-- Definition 3: an `L + 1` layer network is `G`-equivariant if transforming the input
`f_0 ↦ T^0_g f_0` transforms every layer `f_ℓ ↦ T^ℓ_g f_ℓ`, `0 ≤ ℓ ≤ L`, for every `g ∈ G`. -/
def IsEquivariantNet (G : Type*) [Group G] {X : ℕ → Type*} [∀ l, MulAction G (X l)]
    {d : ℕ → ℕ} (L : ℕ) (N : FeedForwardNet X d) : Prop :=
  ∀ (g : G) (f₀ : X 0 → Fin (d 0) → ℂ) (l : ℕ), l ≤ L →
    N.act l (translateFun g f₀) = translateFun g (N.act l f₀)

/-- Box "Essential definitions for quotient spaces" (Section 3): the lifting `f↑^G(g) = f([g]_X)`
of a function on `X = G/H` to `G`, with origin `x₀ = H` so that `[g]_X = gH`. -/
def liftQ {H : Subgroup G} {V : Type*} (f : G ⧸ H → V) : G → V :=
  fun g => f (g : G ⧸ H)

/-- The lifting `f↑^G(g) = f(Hg)` of a function on the right quotient space `H\G` to `G`
(Section 3 box; Section 4.2). -/
def liftR {H : Subgroup G} {V : Type*} (f : Quotient (QuotientGroup.rightRel H) → V) : G → V :=
  fun g => f (Quotient.mk _ g)

/-- Lifts of functions on the double quotient space `H\G/K` (Section 3 box, Case III of
Section 4.1): `χ (h v k) = χ v` for all `h ∈ H`, `k ∈ K`, `v ∈ G`. -/
def IsDoubleCosetFun (H K : Subgroup G) {V : Type*} (χ : G → V) : Prop :=
  ∀ h ∈ H, ∀ k ∈ K, ∀ v : G, χ (h * v * k) = χ v

/-- Eq. (7) and Definition 4 (eq. (8)) on lifted functions: `(f ∗ g)(u) = ∑_{v ∈ G} f(u v⁻¹) g(v)`. -/
def groupConv [Fintype G] (f g : G → ℂ) : G → ℂ :=
  fun u => ∑ v, f (u * v⁻¹) * g v

/-- Appendix B, Definition 7 (3) (eq. (25)): for `f : G → ℂ^m` and `χ : G → ℂ^{n×m}`,
`(f ∗ χ)(u) = ∑_{v ∈ G} χ(v) f(u v⁻¹)`. -/
def vecConv [Fintype G] {m n : ℕ} (f : G → Fin m → ℂ) (χ : G → Matrix (Fin n) (Fin m) ℂ) :
    G → Fin n → ℂ :=
  fun u => ∑ v, Matrix.mulVec (χ v) (f (u * v⁻¹))

/-- Definitions 4, 5 and 7: `φ : L_{ℂ^m}(G/H) → L_{ℂ^n}(G/K)` is a generalized convolution
`φ(f) = f ∗ χ` with a filter `χ` on `H\G/K` (given by its lift to `G`), the result read as a
function on `G/K`. -/
def IsConvLayer [Fintype G] (H K : Subgroup G) {m n : ℕ}
    (φ : (G ⧸ H → Fin m → ℂ) → (G ⧸ K → Fin n → ℂ)) : Prop :=
  ∃ χ : G → Matrix (Fin n) (Fin m) ℂ, IsDoubleCosetFun H K χ ∧
    ∀ (f : G ⧸ H → Fin m → ℂ) (u : G), liftQ (φ f) u = vecConv (liftQ f) χ u

/-- Definition 5: an `L + 1` layer network with index sets `X_ℓ = G/H_ℓ` is a `G`-CNN if every
linear map `φ_ℓ` is a generalized convolution with a filter on `H_{ℓ-1}\G/H_ℓ`. -/
def IsGCNN [Fintype G] (H : ℕ → Subgroup G) {d : ℕ → ℕ} (L : ℕ)
    (N : FeedForwardNet (fun l => G ⧸ H l) d) : Prop :=
  ∀ l < L, IsConvLayer (H l) (H (l + 1)) (N.phi l)

/-- Appendix A ("Equivalence, reducibility and irreps"): the matrices `ρ(g)`, `g ∈ S`, acting on
`ℂ^ι` are irreducible: `ι` is nonempty and the only subspaces invariant under all of them are `0`
and `ℂ^ι`. -/
def IsIrreducibleOn {ι : Type*} [Fintype ι] (S : Set G) (ρ : G → Matrix ι ι ℂ) : Prop :=
  Nonempty ι ∧ ∀ W : Submodule ℂ (ι → ℂ),
    (∀ g ∈ S, ∀ w ∈ W, Matrix.mulVec (ρ g) w ∈ W) → W = ⊥ ∨ W = ⊤

/-- Appendix A: `ρ : G → ℂ^{n×n}` with `ρ(g₁)ρ(g₂) = ρ(g₁g₂)` is an irreducible representation. -/
def IsIrrep {n : ℕ} (ρ : G →* Matrix (Fin n) (Fin n) ℂ) : Prop :=
  IsIrreducibleOn Set.univ (fun g => ρ g)

/-- Appendix A: `ρ` is the trivial representation `ρ_tr(g) = (1)`. -/
def IsTrivialRep {n : ℕ} (ρ : G →* Matrix (Fin n) (Fin n) ℂ) : Prop :=
  n = 1 ∧ ∀ g, ρ g = 1

/-- Proposition 1 (hypothesis): on restriction to `H`, `ρ` is block diagonal,
`ρ|_H = μ_1 ⊕ ⋯ ⊕ μ_k`, with consecutive blocks; `b i` is the block containing index `i`, and each
block `μ_t` is an irreducible representation of `H`. -/
def IsRestrictionDecomp {n k : ℕ} (H : Subgroup G) (ρ : G →* Matrix (Fin n) (Fin n) ℂ)
    (b : Fin n → Fin k) : Prop :=
  Monotone b ∧ (∀ h ∈ H, ∀ i j, b i ≠ b j → ρ h i j = 0) ∧
    ∀ t : Fin k, IsIrreducibleOn (H : Set G)
      (fun h => (ρ h).submatrix (fun i : {i // b i = t} => i.1) (fun i => i.1))

/-- Proposition 1: the block `μ_t` of the decomposition `b` of `ρ|_H` is the trivial
representation of `H` (one-dimensional, equal to `(1)` on `H`). -/
def IsTrivialBlock {n k : ℕ} (H : Subgroup G) (ρ : G →* Matrix (Fin n) (Fin n) ℂ)
    (b : Fin n → Fin k) (t : Fin k) : Prop :=
  Fintype.card {i // b i = t} = 1 ∧ ∀ h ∈ H, ∀ i, b i = t → ρ h i i = 1

/-- Eq. (13): the Fourier transform `f̂(ρ) = ∑_{u ∈ G} f(u) ρ(u)`; for a function on a quotient
space it is applied to the lifting (Section 4.2). -/
def groupFourier [Fintype G] {n : ℕ} (ρ : G →* Matrix (Fin n) (Fin n) ℂ) (f : G → ℂ) :
    Matrix (Fin n) (Fin n) ℂ :=
  ∑ u, f u • ρ u

section Modules

variable {U V : Type*} [AddCommGroup U] [Module ℂ U] [AddCommGroup V] [Module ℂ V]

/-- Appendix E: a subspace `W ⊆ U` fixed by the linear action `{T_g}`. -/
def IsInvariantSubspace (T : Representation ℂ G U) (W : Submodule ℂ U) : Prop :=
  ∀ g : G, ∀ w ∈ W, T g w ∈ W

/-- Appendix E (Lemma 5): an irreducible subspace: nonzero, invariant, and with no invariant
subspaces other than `0` and itself. -/
def IsIrreducibleSubspace (T : Representation ℂ G U) (W : Submodule ℂ U) : Prop :=
  W ≠ ⊥ ∧ IsInvariantSubspace T W ∧
    ∀ W' : Submodule ℂ U, W' ≤ W → IsInvariantSubspace T W' → W' = ⊥ ∨ W' = W

/-- Appendix E (Lemmas 5–6): a linear map `φ : U → V` equivariant with the actions `{T_g}` and
`{T'_g}`: `φ (T_g u) = T'_g (φ u)`. -/
def IsEquivariantLinear (T : Representation ℂ G U) (T' : Representation ℂ G V)
    (φ : U →ₗ[ℂ] V) : Prop :=
  ∀ (g : G) (u : U), φ (T g u) = T' g (φ u)

/-- Appendix A and E (Lemma 5): the restriction of `{T_g}` to `W` and of `{T'_g}` to `Z` are
equivalent representations: a linear isomorphism `W ≅ Z` intertwining them. -/
def AreEquivalentSubreps (T : Representation ℂ G U) (W : Submodule ℂ U)
    (T' : Representation ℂ G V) (Z : Submodule ℂ V) : Prop :=
  ∃ e : W ≃ₗ[ℂ] Z, ∀ (g : G) (w w' : W), (w' : U) = T g w → (e w' : V) = T' g (e w)

/-- Appendix A and E: an invariant subspace `W` on which `{T_g}` is equivalent to the matrix
representation `ρ`. -/
def IsOfType {n : ℕ} (T : Representation ℂ G U) (W : Submodule ℂ U)
    (ρ : G →* Matrix (Fin n) (Fin n) ℂ) : Prop :=
  IsInvariantSubspace T W ∧
    ∃ e : W ≃ₗ[ℂ] (Fin n → ℂ), ∀ (g : G) (w w' : W),
      (w' : U) = T g w → e w' = Matrix.mulVec (ρ g) (e w)

/-- Appendix E (Lemma 6): the isotypic component `U_ρ` of `U` belonging to the irrep `ρ`, the sum
of all invariant subspaces of `U` on which the action is equivalent to `ρ`. -/
def isotypicPart {n : ℕ} (T : Representation ℂ G U) (ρ : G →* Matrix (Fin n) (Fin n) ℂ) :
    Submodule ℂ U :=
  ⨆ (W : Submodule ℂ U) (_ : IsOfType T W ρ), W

end Modules

end Basic

end EquivarianceConvolution
Source
Kondor and Trivedi, On the Generalization of Equivariance and Convolution in Neural Networks to the Action of Compact Groups, arXiv:1802.03690v3 (ICML 2018), Sections 3-5 (Definitions 1-5, eqs. (7)-(13)), Appendix A, Appendix B (Definition 7), Appendix E
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Throughout, GGG is an arbitrary group (not assumed finite unless stated) with identity 111. "Left action of GGG on XXX" means a map (g,x)↦g⋅x(g,x)\mapsto g\cdot x(g,x)↦g⋅x with 1⋅x=x1\cdot x = x1⋅x=x and (gh)⋅x=g⋅(h⋅x)(gh)\cdot x = g\cdot(h\cdot x)(gh)⋅x=g⋅(h⋅x). Cd\mathbb{C}^dCd denotes ddd-tuples of complex numbers indexed by {0,…,d−1}\{0,\dots,d-1\}{0,…,d−1}; when d=0d=0d=0 it is the zero space.

Translation of functions (TgT_gTg​). Let XXX carry a left action of GGG and let VVV be any set (no algebraic structure). For g∈Gg\in Gg∈G and f:X→Vf : X\to Vf:X→V, the translated function Tgf:X→VT_g f : X \to VTg​f:X→V is

(Tgf)(x)=f(g−1⋅x)(x∈X).(T_g f)(x) = f(g^{-1}\cdot x)\qquad (x\in X).(Tg​f)(x)=f(g−1⋅x)(x∈X).

Equivariant map. Let X1,X2X_1, X_2X1​,X2​ carry left actions of GGG, and let V1,V2V_1, V_2V1​,V2​ be arbitrary sets. Let φ\varphiφ be any function (not assumed linear, continuous, or otherwise structured) sending functions X1→V1X_1\to V_1X1​→V1​ to functions X2→V2X_2\to V_2X2​→V2​. Then φ\varphiφ is called GGG-equivariant exactly when

φ(Tgf)=Tg(φf)for every g∈G and every f:X1→V1,\varphi(T_g f) = T_g(\varphi f)\quad\text{for every } g\in G \text{ and every } f : X_1\to V_1,φ(Tg​f)=Tg​(φf)for every g∈G and every f:X1​→V1​,

where TgT_gTg​ is the translation above, using the action on X1X_1X1​ on the left side and the action on X2X_2X2​ on the right side.

Feed-forward network (data). Fix a sequence of sets X0,X1,X2,…X_0, X_1, X_2,\dotsX0​,X1​,X2​,… indexed by all natural numbers ℓ∈N\ell\in\mathbb{N}ℓ∈N. No finiteness is assumed. Fix a sequence of dimensions d0,d1,⋯∈Nd_0, d_1, \dots \in \mathbb{N}d0​,d1​,⋯∈N. A network NNN consists of two infinite sequences, one entry for every ℓ∈N\ell\in\mathbb{N}ℓ∈N:

  • a C\mathbb{C}C-linear map φℓ\varphi_\ellφℓ​ from the space of functions Xℓ→CdℓX_\ell\to\mathbb{C}^{d_\ell}Xℓ​→Cdℓ​ to the space of functions Xℓ+1→Cdℓ+1X_{\ell+1}\to\mathbb{C}^{d_{\ell+1}}Xℓ+1​→Cdℓ+1​;
  • an arbitrary function σℓ:Cdℓ+1→Cdℓ+1\sigma_\ell : \mathbb{C}^{d_{\ell+1}}\to\mathbb{C}^{d_{\ell+1}}σℓ​:Cdℓ+1​→Cdℓ+1​, with no linearity, continuity or other condition.

Activations of a network. Given NNN as above and an input f0:X0→Cd0f_0 : X_0\to\mathbb{C}^{d_0}f0​:X0​→Cd0​, the activations fℓ:Xℓ→Cdℓf_\ell : X_\ell\to\mathbb{C}^{d_\ell}fℓ​:Xℓ​→Cdℓ​ are defined for every ℓ∈N\ell\in\mathbb{N}ℓ∈N by

f0=f0,fℓ+1(x)=σℓ(φℓ(fℓ)(x))(x∈Xℓ+1).f_0 = f_0,\qquad f_{\ell+1}(x) = \sigma_\ell\big(\varphi_\ell(f_\ell)(x)\big)\quad (x\in X_{\ell+1}).f0​=f0​,fℓ+1​(x)=σℓ​(φℓ​(fℓ​)(x))(x∈Xℓ+1​).

That is, the same σℓ\sigma_\ellσℓ​ is applied at every point xxx. We write Nℓ(f0)N_\ell(f_0)Nℓ​(f0​) for fℓf_\ellfℓ​ viewed as a function of the input.

Equivariant network. Suppose each XℓX_\ellXℓ​ (ℓ∈N\ell\in\mathbb{N}ℓ∈N) carries a left action of GGG, and fix L∈NL\in\mathbb{N}L∈N. The network NNN is called GGG-equivariant up to depth LLL exactly when

Nℓ(Tgf0)=Tg(Nℓ(f0))for all g∈G, f0:X0→Cd0, ℓ≤L,N_\ell(T_g f_0) = T_g\big(N_\ell(f_0)\big)\quad\text{for all } g\in G,\ f_0 : X_0\to\mathbb{C}^{d_0},\ \ell\le L,Nℓ​(Tg​f0​)=Tg​(Nℓ​(f0​))for all g∈G, f0​:X0​→Cd0​, ℓ≤L,

with TgT_gTg​ the translation on X0X_0X0​ on the left side and on XℓX_\ellXℓ​ on the right side. Only the layers ℓ≤L\ell\le Lℓ≤L are constrained, so φℓ,σℓ\varphi_\ell,\sigma_\ellφℓ​,σℓ​ for ℓ≥L\ell\ge Lℓ≥L play no role. The case ℓ=0\ell=0ℓ=0 holds automatically. When L=0L=0L=0 the condition is satisfied by every network.

Lift from a left quotient. For a subgroup H≤GH\le GH≤G and any set VVV, a function fff on the left coset space G/H={gH}G/H=\{gH\}G/H={gH} is lifted to GGG by

f↑(g)=f(gH).f^{\uparrow}(g) = f(gH).f↑(g)=f(gH).

Lift from a right quotient. For a subgroup H≤GH\le GH≤G and any set VVV, a function fff on the right coset space H\G={Hg}H\backslash G=\{Hg\}H\G={Hg} is lifted to GGG by

f↑(g)=f(Hg).f^{\uparrow}(g) = f(Hg).f↑(g)=f(Hg).

Here ggg and g′g'g′ lie in the same class iff g′g−1∈Hg'g^{-1}\in Hg′g−1∈H.

Double-coset function. For subgroups H,K≤GH, K\le GH,K≤G and any set VVV, a function χ:G→V\chi : G\to Vχ:G→V has this property exactly when

χ(h v k)=χ(v)for all h∈H, k∈K, v∈G.\chi(h\,v\,k) = \chi(v)\quad\text{for all } h\in H,\ k\in K,\ v\in G.χ(hvk)=χ(v)for all h∈H, k∈K, v∈G.

Scalar group convolution. Assume GGG is finite. For f,g:G→Cf, g : G\to\mathbb{C}f,g:G→C,

(f∗g)(u)=∑v∈Gf(uv−1) g(v)(u∈G).(f * g)(u) = \sum_{v\in G} f(u v^{-1})\, g(v)\qquad(u\in G).(f∗g)(u)=v∈G∑​f(uv−1)g(v)(u∈G).

Vector-valued convolution. Assume GGG is finite and let m,n∈Nm,n\in\mathbb{N}m,n∈N. For f:G→Cmf : G\to\mathbb{C}^mf:G→Cm and χ:G→Cn×m\chi : G\to\mathbb{C}^{n\times m}χ:G→Cn×m (complex n×mn\times mn×m matrices),

(f∗χ)(u)=∑v∈Gχ(v) f(uv−1)∈Cn(u∈G).(f * \chi)(u) = \sum_{v\in G} \chi(v)\, f(u v^{-1}) \in \mathbb{C}^n\qquad(u\in G).(f∗χ)(u)=v∈G∑​χ(v)f(uv−1)∈Cn(u∈G).

The product is the matrix–vector product, with the matrix on the left.

Convolution layer. Assume GGG is finite. Let H,K≤GH, K\le GH,K≤G be subgroups and m,n∈Nm,n\in\mathbb{N}m,n∈N. Let φ\varphiφ be any function (not assumed linear) from functions G/H→CmG/H\to\mathbb{C}^mG/H→Cm to functions G/K→CnG/K\to\mathbb{C}^nG/K→Cn. Then φ\varphiφ is a convolution layer exactly when there exists χ:G→Cn×m\chi : G\to\mathbb{C}^{n\times m}χ:G→Cn×m satisfying two conditions:

  1. χ(hvk)=χ(v)\chi(hvk)=\chi(v)χ(hvk)=χ(v) for all h∈Hh\in Hh∈H, k∈Kk\in Kk∈K, v∈Gv\in Gv∈G;
  2. for every f:G/H→Cmf : G/H\to\mathbb{C}^mf:G/H→Cm and every u∈Gu\in Gu∈G,
(φf)(uK)=∑v∈Gχ(v) f(uv−1H).(\varphi f)(uK) = \sum_{v\in G}\chi(v)\, f\big(u v^{-1} H\big).(φf)(uK)=v∈G∑​χ(v)f(uv−1H).

Equivalently, (φf)↑=f↑∗χ(\varphi f)^{\uparrow} = f^{\uparrow} * \chi(φf)↑=f↑∗χ as functions on GGG, with both lifts taken from left quotients. The equality is required at every u∈Gu\in Gu∈G, not just at coset representatives.

G-CNN. Assume GGG is finite. Let H0,H1,…H_0, H_1, \dotsH0​,H1​,… be subgroups of GGG, one for each ℓ∈N\ell\in\mathbb{N}ℓ∈N, and let d0,d1,⋯∈Nd_0,d_1,\dots\in\mathbb{N}d0​,d1​,⋯∈N and L∈NL\in\mathbb{N}L∈N. Let NNN be a feed-forward network with index sets Xℓ=G/HℓX_\ell = G/H_\ellXℓ​=G/Hℓ​ (left cosets). NNN is a GGG-CNN up to depth LLL exactly when, for every ℓ<L\ell<Lℓ<L, the underlying function of the linear map φℓ\varphi_\ellφℓ​ is a convolution layer from G/HℓG/H_\ellG/Hℓ​ to G/Hℓ+1G/H_{\ell+1}G/Hℓ+1​, with m=dℓm=d_\ellm=dℓ​ and n=dℓ+1n=d_{\ell+1}n=dℓ+1​. The nonlinearities σℓ\sigma_\ellσℓ​ are not constrained. When L=0L=0L=0 the condition holds for every such network.

Irreducibility on a subset. Let ι\iotaι be a finite index set, S⊆GS\subseteq GS⊆G any subset, and ρ:G→Cι×ι\rho : G\to\mathbb{C}^{\iota\times\iota}ρ:G→Cι×ι any function. ρ\rhoρ need not be a homomorphism and its values need not be invertible. The family is irreducible on SSS exactly when both of the following hold:

  • ι\iotaι is nonempty;
  • every complex linear subspace W⊆CιW\subseteq\mathbb{C}^\iotaW⊆Cι with ρ(g)w∈W\rho(g)w\in Wρ(g)w∈W for all g∈Sg\in Sg∈S and w∈Ww\in Ww∈W is either {0}\{0\}{0} or all of Cι\mathbb{C}^\iotaCι.

Only the values ρ(g)\rho(g)ρ(g) for g∈Sg\in Sg∈S matter. If S=∅S=\varnothingS=∅, every subspace is invariant, so the condition holds iff ∣ι∣=1|\iota|=1∣ι∣=1.

Irreducible representation. For n∈Nn\in\mathbb{N}n∈N, let ρ\rhoρ be a monoid homomorphism from GGG to complex n×nn\times nn×n matrices under multiplication, so ρ(1)=I\rho(1)=Iρ(1)=I and ρ(gh)=ρ(g)ρ(h)\rho(gh)=\rho(g)\rho(h)ρ(gh)=ρ(g)ρ(h). Then ρ\rhoρ is irreducible exactly when both of the following hold:

  • n≥1n\ge 1n≥1;
  • the only subspaces of Cn\mathbb{C}^nCn invariant under all ρ(g)\rho(g)ρ(g), g∈Gg\in Gg∈G, are {0}\{0\}{0} and Cn\mathbb{C}^nCn.

Trivial representation. For such a homomorphism ρ:G→Cn×n\rho : G\to\mathbb{C}^{n\times n}ρ:G→Cn×n, ρ\rhoρ is trivial exactly when n=1n=1n=1 and ρ(g)\rho(g)ρ(g) is the 1×11\times 11×1 identity matrix (1)(1)(1) for every g∈Gg\in Gg∈G.

Restriction decomposition. Let n,k∈Nn,k\in\mathbb{N}n,k∈N, H≤GH\le GH≤G a subgroup, ρ:G→Cn×n\rho : G\to\mathbb{C}^{n\times n}ρ:G→Cn×n a monoid homomorphism, and b:{0,…,n−1}→{0,…,k−1}b:\{0,\dots,n-1\}\to\{0,\dots,k-1\}b:{0,…,n−1}→{0,…,k−1} a function assigning each index iii a block label b(i)b(i)b(i). The condition holds exactly when all three of the following are true:

  1. bbb is non-decreasing: i≤j⇒b(i)≤b(j)i\le j\Rightarrow b(i)\le b(j)i≤j⇒b(i)≤b(j).
  2. For every h∈Hh\in Hh∈H and all indices i,ji,ji,j with b(i)≠b(j)b(i)\ne b(j)b(i)=b(j), the entry ρ(h)ij=0\rho(h)_{ij}=0ρ(h)ij​=0.
  3. For every label t∈{0,…,k−1}t\in\{0,\dots,k-1\}t∈{0,…,k−1}, let It=b−1(t)I_t = b^{-1}(t)It​=b−1(t) and let μt(g)\mu_t(g)μt​(g) be the principal submatrix (ρ(g)ij)i,j∈It(\rho(g)_{ij})_{i,j\in I_t}(ρ(g)ij​)i,j∈It​​. Then the family μt\mu_tμt​ is irreducible on the set HHH. That is, It≠∅I_t\neq\varnothingIt​=∅, and the only subspaces of CIt\mathbb{C}^{I_t}CIt​ invariant under all μt(h)\mu_t(h)μt​(h), h∈Hh\in Hh∈H, are {0}\{0\}{0} and CIt\mathbb{C}^{I_t}CIt​.

Consequences:

  • Condition 3 forces every label to be used, so bbb is surjective and k≤nk\le nk≤n.
  • If k=0k=0k=0 then necessarily n=0n=0n=0, and all conditions hold vacuously.
  • No condition is imposed on ρ(g)\rho(g)ρ(g) for g∉Hg\notin Hg∈/H.

Trivial block. With n,k,H,ρ,bn,k,H,\rho,bn,k,H,ρ,b as above (but without assuming bbb is a restriction decomposition) and a label t∈{0,…,k−1}t\in\{0,\dots,k-1\}t∈{0,…,k−1}, the block ttt is trivial exactly when two conditions hold:

  • exactly one index iii has b(i)=tb(i)=tb(i)=t;
  • for every h∈Hh\in Hh∈H and every index iii with b(i)=tb(i)=tb(i)=t, the diagonal entry ρ(h)ii=1\rho(h)_{ii}=1ρ(h)ii​=1.

Fourier transform. Assume GGG is finite. For a monoid homomorphism ρ:G→Cn×n\rho : G\to\mathbb{C}^{n\times n}ρ:G→Cn×n and a function f:G→Cf : G\to\mathbb{C}f:G→C,

f^(ρ)=∑u∈Gf(u) ρ(u) ∈Cn×n.\hat f(\rho) = \sum_{u\in G} f(u)\,\rho(u)\ \in\mathbb{C}^{n\times n}.f^​(ρ)=u∈G∑​f(u)ρ(u) ∈Cn×n.

ρ\rhoρ is not assumed irreducible.

In the remaining definitions, UUU and VVV are complex vector spaces of arbitrary (possibly infinite) dimension. A representation TTT of GGG on UUU is a homomorphism g↦Tgg\mapsto T_gg↦Tg​ from GGG to the C\mathbb{C}C-linear endomorphisms of UUU, so T1=idT_1=\mathrm{id}T1​=id and Tgh=TgThT_{gh}=T_gT_hTgh​=Tg​Th​. Likewise T′T'T′ is a representation of GGG on VVV.

Invariant subspace. A linear subspace W⊆UW\subseteq UW⊆U is invariant under TTT exactly when Tgw∈WT_g w\in WTg​w∈W for all g∈Gg\in Gg∈G and w∈Ww\in Ww∈W.

Irreducible subspace. A subspace W⊆UW\subseteq UW⊆U is irreducible under TTT exactly when all three of the following hold:

  1. W≠{0}W\neq\{0\}W={0};
  2. WWW is invariant;
  3. every invariant subspace W′⊆WW'\subseteq WW′⊆W equals {0}\{0\}{0} or WWW.

Equivariant linear map. A C\mathbb{C}C-linear map φ:U→V\varphi:U\to Vφ:U→V is equivariant exactly when

φ(Tgu)=Tg′(φu)for all g∈G, u∈U.\varphi(T_g u)=T'_g(\varphi u)\quad\text{for all } g\in G,\ u\in U.φ(Tg​u)=Tg′​(φu)for all g∈G, u∈U.

Equivalent subrepresentations. Let W⊆UW\subseteq UW⊆U and Z⊆VZ\subseteq VZ⊆V be subspaces. Neither is required to be invariant. They are equivalent exactly when there is a C\mathbb{C}C-linear isomorphism e:W→Ze:W\to Ze:W→Z such that, for all g∈Gg\in Gg∈G and all w,w′∈Ww,w'\in Ww,w′∈W,

w′=Tgw ⟹ e(w′)=Tg′(e(w)).w' = T_g w \ \Longrightarrow\ e(w') = T'_g\big(e(w)\big).w′=Tg​w ⟹ e(w′)=Tg′​(e(w)).

The condition only constrains pairs where TgwT_g wTg​w happens to lie in WWW. If WWW is not invariant, it says nothing about those g,wg,wg,w with Tgw∉WT_g w\notin WTg​w∈/W. Neither WWW nor ZZZ is required to be irreducible.

Subspace of type ρ\rhoρ. Let ρ:G→Cn×n\rho:G\to\mathbb{C}^{n\times n}ρ:G→Cn×n be a monoid homomorphism, not assumed irreducible. A subspace W⊆UW\subseteq UW⊆U is of type ρ\rhoρ exactly when both of the following hold:

  • WWW is invariant under TTT;
  • there is a C\mathbb{C}C-linear isomorphism e:W→Cne:W\to\mathbb{C}^ne:W→Cn with e(Tgw)=ρ(g) e(w)e(T_g w)=\rho(g)\,e(w)e(Tg​w)=ρ(g)e(w) for all g∈Gg\in Gg∈G and w∈Ww\in Ww∈W.

In particular dim⁡W=n\dim W = ndimW=n, and when n=0n=0n=0 the zero subspace qualifies.

Isotypic component. For TTT and ρ:G→Cn×n\rho:G\to\mathbb{C}^{n\times n}ρ:G→Cn×n as above, UρU_\rhoUρ​ is the sum (the smallest subspace containing them all) of every subspace W⊆UW\subseteq UW⊆U that is of type ρ\rhoρ. Concretely, UρU_\rhoUρ​ is the set of all finite sums of vectors from such subspaces. If no subspace is of type ρ\rhoρ, or only {0}\{0\}{0} is, then Uρ={0}U_\rho=\{0\}Uρ​={0}. Irreducibility of ρ\rhoρ is not assumed.

Human review
  • Endorsed by Shuze Chen · Nov 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 23, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me