Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix D.1: convolution with a GGG-steerable kernel is equivariant

Proved
SteerableE2CNN.steerable_conv_equivariant

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

convolutionequivariant-networksgroup-representationsorthogonal-groupsteerable-kernels

Let G≤O(2)G\le\mathrm{O}(2)G≤O(2), let ρin:G→GL(Rn)\rho_{\mathrm{in}}:G\to\mathrm{GL}(\mathbb{R}^{n})ρin​:G→GL(Rn) and ρout:G→GL(Rm)\rho_{\mathrm{out}}:G\to\mathrm{GL}(\mathbb{R}^{m})ρout​:G→GL(Rm) be representations, and let k:R2→Rm×nk:\mathbb{R}^2\to\mathbb{R}^{m\times n}k:R2→Rm×n be a GGG-steerable kernel:

k(gx)=ρout(g) k(x) ρin(g)−1∀g∈G, x∈R2.k(gx)=\rho_{\mathrm{out}}(g)\,k(x)\,\rho_{\mathrm{in}}(g)^{-1}\qquad\forall g\in G,\ x\in\mathbb{R}^2.k(gx)=ρout​(g)k(x)ρin​(g)−1∀g∈G, x∈R2.

Let f:R2→Rnf:\mathbb{R}^2\to\mathbb{R}^{n}f:R2→Rn be a field for which y↦k(y)f(x+y)y\mapsto k(y)f(x+y)y↦k(y)f(x+y) is Lebesgue integrable for every xxx. Then for every t∈R2t\in\mathbb{R}^2t∈R2 and g∈Gg\in Gg∈G the convolution (k⋆f)(x)=∫k(y)f(x+y) dy(k\star f)(x)=\int k(y)f(x+y)\,dy(k⋆f)(x)=∫k(y)f(x+y)dy satisfies

k⋆([Ind⁡ρin](tg)f)=[Ind⁡ρout](tg) (k⋆f),k\star\big([\operatorname{Ind}\rho_{\mathrm{in}}](tg)f\big)=[\operatorname{Ind}\rho_{\mathrm{out}}](tg)\,(k\star f),k⋆([Indρin​](tg)f)=[Indρout​](tg)(k⋆f),

where ([Ind⁡ρ](tg)f)(x)=ρ(g)f(g−1(x−t))([\operatorname{Ind}\rho](tg)f)(x)=\rho(g)f(g^{-1}(x-t))([Indρ](tg)f)(x)=ρ(g)f(g−1(x−t)).

The kernel constraint is therefore sufficient for a convolution layer to map ρin\rho_{\mathrm{in}}ρin​-fields equivariantly to ρout\rho_{\mathrm{out}}ρout​-fields.

Formalization Note The paper assumes tacitly that the convolution exists. The Lean statement assumes the integrability of y↦k(y)f(x+y)y\mapsto k(y)f(x+y)y↦k(y)f(x+y) for every xxx.

Preamble
import Mathlib
import Definitions.Def_SteerableE2CNN_Basic

open Matrix MeasureTheory
Formal statement
namespace SteerableE2CNN

theorem steerable_conv_equivariant (G : Subgroup O2)
    {m n : Type*} [Fintype m] [DecidableEq m] [Fintype n] [DecidableEq n]
    (ρin : MatRep G n) (ρout : MatRep G m) (k : Plane → Matrix m n ℝ)
    (hk : IsSteerable G ρin ρout k) (f : Plane → n → ℝ)
    (hf : ∀ x : Plane, Integrable (fun y : Plane => k y *ᵥ f (x + y))) (t : Plane) (g : G) :
    steerConv k (indAct G ρin t g f) = indAct G ρout t g (steerConv k f) := by sorry

end SteerableE2CNN
Source
Weiler and Cesa, General E(2)-Equivariant Steerable CNNs, arXiv:1911.08251v2 (NeurIPS 2019), Section 2.3, eqs. (1)-(2), pp. 3-4; Appendix D.1 (Equivariance of E(2)-steerable convolutions), p. 21
Read-back

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

Setting.

  • GGG is an arbitrary subgroup of the orthogonal group O(2)={O∈R2×2:O⊤O=I}O(2)=\{O\in\mathbb R^{2\times 2} : O^\top O = I\}O(2)={O∈R2×2:O⊤O=I}. It may be the trivial subgroup, a finite group, SO(2)SO(2)SO(2), O(2)O(2)O(2) itself, or any other subgroup.
  • Each g∈Gg\in Gg∈G acts on the plane R2\mathbb R^2R2 by matrix multiplication x↦gxx\mapsto gxx↦gx.
  • mmm and nnn are arbitrary finite index sets, possibly empty. They index the output and input channels.
  • ρin:G→GLn(R)\rho_{\mathrm{in}}:G\to GL_n(\mathbb R)ρin​:G→GLn​(R) and ρout:G→GLm(R)\rho_{\mathrm{out}}:G\to GL_m(\mathbb R)ρout​:G→GLm​(R) are arbitrary group homomorphisms into invertible real matrices. They are not assumed irreducible, orthogonal, or continuous.
  • k:R2→Rm×nk:\mathbb R^2\to\mathbb R^{m\times n}k:R2→Rm×n is a matrix-valued function. It is assumed to satisfy the steerability constraint pointwise, for every g∈Gg\in Gg∈G and every x∈R2x\in\mathbb R^2x∈R2 (not merely almost everywhere):
k(gx)=ρout(g) k(x) ρin(g)−1.k(gx)=\rho_{\mathrm{out}}(g)\,k(x)\,\rho_{\mathrm{in}}(g)^{-1}.k(gx)=ρout​(g)k(x)ρin​(g)−1.
  • f:R2→Rnf:\mathbb R^2\to\mathbb R^nf:R2→Rn is a feature field. It is assumed that for every x∈R2x\in\mathbb R^2x∈R2 the function y↦k(y) f(x+y)y\mapsto k(y)\,f(x+y)y↦k(y)f(x+y) is Lebesgue-integrable on R2\mathbb R^2R2, meaning almost-everywhere strongly measurable with finite integral of its norm. No other condition is placed on fff. In particular, nothing is assumed about the integrability of the transformed integrand that appears on the left-hand side below.
  • Finally, t∈R2t\in\mathbb R^2t∈R2 is an arbitrary translation and g∈Gg\in Gg∈G an arbitrary group element.

Operations used.

The convolution is the correlation

(k⋆f)(x)=∫R2k(y) f(x+y) dy,(k\star f)(x)=\int_{\mathbb R^2}k(y)\,f(x+y)\,dy,(k⋆f)(x)=∫R2​k(y)f(x+y)dy,

taken as a Bochner integral with respect to Lebesgue measure on R2\mathbb R^2R2. By convention this integral is 000 whenever the integrand is not integrable.

The induced action of the pair (t,g)(t,g)(t,g) on a field h:R2→Rch:\mathbb R^2\to\mathbb R^ch:R2→Rc of type ρ\rhoρ is

([Ind ρ](t,g) h)(x)=ρ(g) h(g−1(x−t)),\big([\mathrm{Ind}\,\rho](t,g)\,h\big)(x)=\rho(g)\,h\big(g^{-1}(x-t)\big),([Indρ](t,g)h)(x)=ρ(g)h(g−1(x−t)),

where g−1g^{-1}g−1 is the inverse of ggg in GGG, which as a matrix equals g⊤g^\topg⊤.

Claim. Convolution with kkk intertwines the two induced actions, as an equality of functions R2→Rm\mathbb R^2\to\mathbb R^mR2→Rm:

k⋆([Ind ρin](t,g) f)=[Ind ρout](t,g) (k⋆f).k\star\big([\mathrm{Ind}\,\rho_{\mathrm{in}}](t,g)\,f\big)=[\mathrm{Ind}\,\rho_{\mathrm{out}}](t,g)\,(k\star f).k⋆([Indρin​](t,g)f)=[Indρout​](t,g)(k⋆f).

Written out, this says that for every x∈R2x\in\mathbb R^2x∈R2:

∫R2k(y) ρin(g) f(g−1(x+y−t)) dy  =  ρout(g)∫R2k(y) f(g−1(x−t)+y) dy.\int_{\mathbb R^2}k(y)\,\rho_{\mathrm{in}}(g)\,f\big(g^{-1}(x+y-t)\big)\,dy\;=\;\rho_{\mathrm{out}}(g)\int_{\mathbb R^2}k(y)\,f\big(g^{-1}(x-t)+y\big)\,dy.∫R2​k(y)ρin​(g)f(g−1(x+y−t))dy=ρout​(g)∫R2​k(y)f(g−1(x−t)+y)dy.

Degenerate cases.

  • If mmm or nnn is empty, both sides are trivially equal (zero-dimensional or zero).
  • The steerability hypothesis is always satisfiable, for example by k≡0k\equiv 0k≡0, in which case both sides are 000.
  • The integrability hypothesis is also satisfiable, for example by f≡0f\equiv 0f≡0.
Human review
  • Endorsed by Shuze Chen · Nov 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 24, 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