Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Table 8: the basis of SO(2)\mathrm{SO}(2)SO(2)-steerable kernels

Proved
SteerableE2CNN.so2_steerable_kernel_basis

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

convolutionequivariant-networksgroup-representationsorthogonal-groupsteerable-kernels

Let m,n∈Nm,n\in\mathbb{N}m,n∈N and let ψm,ψn\psi_m,\psi_nψm​,ψn​ be the real irreps of SO(2)\mathrm{SO}(2)SO(2) of frequencies mmm and nnn: ψ0(rθ)=1\psi_0(r_\theta)=1ψ0​(rθ​)=1 and ψk(rθ)=ψ(kθ)\psi_k(r_\theta)=\psi(k\theta)ψk​(rθ​)=ψ(kθ) for k≥1k\ge1k≥1. Let {bβ}\{b_\beta\}{bβ​} be the angular functions of Table 8, each of angular frequency μβ\mu_\betaμβ​:

  • m=n=0m=n=0m=n=0: b(ϕ)=[1]b(\phi)=[1]b(ϕ)=[1], μ=0\mu=0μ=0;
  • m=0<nm=0<nm=0<n: bγ(ϕ)=[cos⁡(nϕ+γ), sin⁡(nϕ+γ)]b_\gamma(\phi)=[\cos(n\phi+\gamma),\ \sin(n\phi+\gamma)]bγ​(ϕ)=[cos(nϕ+γ), sin(nϕ+γ)], γ∈{0,π/2}\gamma\in\{0,\pi/2\}γ∈{0,π/2}, μ=n\mu=nμ=n;
  • n=0<mn=0<mn=0<m: bγ(ϕ)=[cos⁡(mϕ+γ); sin⁡(mϕ+γ)]b_\gamma(\phi)=[\cos(m\phi+\gamma);\ \sin(m\phi+\gamma)]bγ​(ϕ)=[cos(mϕ+γ); sin(mϕ+γ)], γ∈{0,π/2}\gamma\in\{0,\pi/2\}γ∈{0,π/2}, μ=m\mu=mμ=m;
  • m,n>0m,n>0m,n>0: bγ,s(ϕ)=ψ(μϕ+γ)ξ(s)b_{\gamma,s}(\phi)=\psi(\mu\phi+\gamma)\xi(s)bγ,s​(ϕ)=ψ(μϕ+γ)ξ(s) with μ=m−sn\mu=m-snμ=m−sn, γ∈{0,π/2}\gamma\in\{0,\pi/2\}γ∈{0,π/2}, s∈{±1}s\in\{\pm1\}s∈{±1}.

Then:

  1. A kernel κ:R2→Rdim⁡ψm×dim⁡ψn\kappa:\mathbb{R}^2\to\mathbb{R}^{\dim\psi_m\times\dim\psi_n}κ:R2→Rdimψm​×dimψn​ satisfies
κ(rθx)=ψm(rθ) κ(x) ψn(rθ)−1∀θ∈R, x∈R2\kappa(r_\theta x)=\psi_m(r_\theta)\,\kappa(x)\,\psi_n(r_\theta)^{-1}\qquad\forall\theta\in\mathbb{R},\ x\in\mathbb{R}^2κ(rθ​x)=ψm​(rθ​)κ(x)ψn​(rθ​)−1∀θ∈R, x∈R2

if and only if there are radial functions wβ:[0,∞)→Rw_\beta:[0,\infty)\to\mathbb{R}wβ​:[0,∞)→R such that κ(x(r,ϕ))=∑βwβ(r) bβ(ϕ)\kappa(x(r,\phi))=\sum_\beta w_\beta(r)\,b_\beta(\phi)κ(x(r,ϕ))=∑β​wβ​(r)bβ​(ϕ) for all r≥0r\ge0r≥0 and ϕ\phiϕ, with wβ(0)=0w_\beta(0)=0wβ​(0)=0 whenever μβ≠0\mu_\beta\neq0μβ​=0. At the origin only the frequency-000 elements survive (Appendix F.4.6). 2. The functions bβb_\betabβ​ are linearly independent.

Formalization Note The paper works with square-integrable kernels and Fourier expansions. The Lean statement takes arbitrary functions and imposes the constraint at every point, as in eq. (2). The radial coefficients are then arbitrary functions. The Fourier coefficients Aαβ,μ,Bαβ,μA_{\alpha\beta,\mu},B_{\alpha\beta,\mu}Aαβ,μ​,Bαβ,μ​ of eq. (5) do not appear.

Preamble
import Mathlib
import Definitions.Def_SteerableE2CNN_Basic

open Matrix MeasureTheory
Formal statement
namespace SteerableE2CNN

theorem so2_steerable_kernel_basis (m n : ℕ)
    (κ : Plane → Matrix (Fin (so2Dim m)) (Fin (so2Dim n)) ℝ) :
    (KernelConstraint rotMat (so2Irrep m) (so2Irrep n) κ ↔
      ∃ w : Fin (so2BasisCard m n) → ℝ → ℝ,
        (∀ b, so2BasisFreq m n b ≠ 0 → w b 0 = 0) ∧
        ∀ r : ℝ, 0 ≤ r → ∀ φ : ℝ, κ (polar r φ) = ∑ b, w b r • so2Basis m n b φ) ∧
    LinearIndependent ℝ (so2Basis m n) := by sorry

end SteerableE2CNN
Source
Weiler and Cesa, General E(2)-Equivariant Steerable CNNs, arXiv:1911.08251v2 (NeurIPS 2019), Section 2.5, eq. (5), p. 5; Appendix F.3, Table 8, p. 29; Appendix F.4.1, eqs. (24), (26), (28), (29), pp. 31-37; Appendix F.4.6, p. 48
Read-back

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

Setting. Fix natural numbers m,n≥0m, n \ge 0m,n≥0. For a frequency k∈Nk \in \mathbb{N}k∈N, let dkd_kdk​ be 111 if k=0k = 0k=0 and 222 if k≥1k \ge 1k≥1. Let κ:R2→Rdm×dn\kappa : \mathbb{R}^2 \to \mathbb{R}^{d_m \times d_n}κ:R2→Rdm​×dn​ be an arbitrary function. No continuity, measurability or other regularity is assumed.

Notation. The theorem uses the following matrices and maps.

  • The rotation matrix is
ψ(θ)=(cos⁡θ−sin⁡θsin⁡θcos⁡θ).\psi(\theta) = \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}.ψ(θ)=(cosθsinθ​−sinθcosθ​).
  • For a sign s∈{+1,−1}s \in \{+1, -1\}s∈{+1,−1}, the flip matrix is
ξ(s)=(100s).\xi(s) = \begin{pmatrix} 1 & 0 \\ 0 & s \end{pmatrix}.ξ(s)=(10​0s​).
  • For each kkk, the map ψk:R→Rdk×dk\psi_k : \mathbb{R} \to \mathbb{R}^{d_k \times d_k}ψk​:R→Rdk​×dk​ is defined by
ψ0(θ)=(1) (the 1×1 identity),ψk(θ)=ψ(kθ)  (k≥1).\psi_0(\theta) = (1) \ \text{(the } 1\times 1 \text{ identity)}, \qquad \psi_k(\theta) = \psi(k\theta) \ \ (k \ge 1).ψ0​(θ)=(1) (the 1×1 identity),ψk​(θ)=ψ(kθ)  (k≥1).
  • The polar point is x(r,φ)=(rcos⁡φ, rsin⁡φ)x(r,\varphi) = (r\cos\varphi,\ r\sin\varphi)x(r,φ)=(rcosφ, rsinφ).

Angular basis. The family κb:R→Rdm×dn\kappa_b : \mathbb{R} \to \mathbb{R}^{d_m \times d_n}κb​:R→Rdm​×dn​ is indexed by bbb in a finite set Bm,nB_{m,n}Bm,n​. Each element has an integer frequency μb\mu_bμb​. There are four cases.

  • m=n=0m = n = 0m=n=0: There is one element, κ0(φ)=(1)\kappa_0(\varphi) = (1)κ0​(φ)=(1), with μ0=0\mu_0 = 0μ0​=0.
  • m=0<nm = 0 < nm=0<n: There are two elements b∈{0,1}b \in \{0, 1\}b∈{0,1}. Each is a 1×21 \times 21×2 row,
κb(φ)=(cos⁡(nφ+bπ2), sin⁡(nφ+bπ2)),\kappa_b(\varphi) = \big(\cos(n\varphi + b\tfrac{\pi}{2}),\ \sin(n\varphi + b\tfrac{\pi}{2})\big),κb​(φ)=(cos(nφ+b2π​), sin(nφ+b2π​)),

with μb=n\mu_b = nμb​=n.

  • n=0<mn = 0 < mn=0<m: There are two elements b∈{0,1}b \in \{0, 1\}b∈{0,1}. Each is a 2×12 \times 12×1 column,
κb(φ)=(cos⁡(mφ+bπ2), sin⁡(mφ+bπ2))T,\kappa_b(\varphi) = \big(\cos(m\varphi + b\tfrac{\pi}{2}),\ \sin(m\varphi + b\tfrac{\pi}{2})\big)^{\mathsf T},κb​(φ)=(cos(mφ+b2π​), sin(mφ+b2π​))T,

with μb=m\mu_b = mμb​=m.

  • m,n≥1m, n \ge 1m,n≥1: There are four elements b∈{0,1,2,3}b \in \{0,1,2,3\}b∈{0,1,2,3}. Set sb=+1s_b = +1sb​=+1 for b∈{0,1}b \in \{0,1\}b∈{0,1} and sb=−1s_b = -1sb​=−1 for b∈{2,3}b \in \{2,3\}b∈{2,3}, and set γb=(b mod 2) π2\gamma_b = (b \bmod 2)\,\tfrac{\pi}{2}γb​=(bmod2)2π​. Then
κb(φ)=ψ((m−sbn)φ+γb) ξ(sb),μb=m−sbn.\kappa_b(\varphi) = \psi\big((m - s_b n)\varphi + \gamma_b\big)\,\xi(s_b), \qquad \mu_b = m - s_b n.κb​(φ)=ψ((m−sb​n)φ+γb​)ξ(sb​),μb​=m−sb​n.

So μb=m−n\mu_b = m - nμb​=m−n for b=0,1b = 0, 1b=0,1, which is zero exactly when m=nm = nm=n. For b=2,3b = 2, 3b=2,3, μb=m+n>0\mu_b = m + n > 0μb​=m+n>0.

Claim. The theorem asserts the conjunction of two statements.

(1) Characterisation. The following two conditions are equivalent.

  • (a) Rotation constraint. For every real θ\thetaθ and every x∈R2x \in \mathbb{R}^2x∈R2,
κ(ψ(θ) x)=ψm(θ) κ(x) ψn(θ)−1.\kappa(\psi(\theta)\,x) = \psi_m(\theta)\,\kappa(x)\,\psi_n(\theta)^{-1}.κ(ψ(θ)x)=ψm​(θ)κ(x)ψn​(θ)−1.

Here θ\thetaθ ranges over all reals, not over the elements of a group object. The inverse is the ordinary matrix inverse; these matrices are invertible, with ψn(θ)−1=ψn(−θ)\psi_n(\theta)^{-1} = \psi_n(-\theta)ψn​(θ)−1=ψn​(−θ).

  • (b) Expansion in the basis. There exist arbitrary functions wb:R→Rw_b : \mathbb{R} \to \mathbb{R}wb​:R→R, one for each b∈Bm,nb \in B_{m,n}b∈Bm,n​, such that:
    • wb(0)=0w_b(0) = 0wb​(0)=0 for every bbb with μb≠0\mu_b \neq 0μb​=0;
    • for every r≥0r \ge 0r≥0 and every real φ\varphiφ,
κ(x(r,φ))=∑b∈Bm,nwb(r) κb(φ).\kappa\big(x(r,\varphi)\big) = \sum_{b \in B_{m,n}} w_b(r)\,\kappa_b(\varphi).κ(x(r,φ))=b∈Bm,n​∑​wb​(r)κb​(φ).

The values of wbw_bwb​ at negative rrr are unconstrained and play no role. The coefficient functions have no regularity requirement. At r=0r = 0r=0 the expansion says that κ(0)=∑bwb(0) κb(φ)\kappa(0) = \sum_b w_b(0)\,\kappa_b(\varphi)κ(0)=∑b​wb​(0)κb​(φ) for every φ\varphiφ. Only coefficients with μb=0\mu_b = 0μb​=0 may be nonzero there. That happens only for m=n=0m = n = 0m=n=0, or for m=n≥1m = n \ge 1m=n≥1 with b∈{0,1}b \in \{0,1\}b∈{0,1}.

(2) Linear independence. The functions κb\kappa_bκb​, b∈Bm,nb \in B_{m,n}b∈Bm,n​, are linearly independent over R\mathbb{R}R as elements of the space of all functions R→Rdm×dn\mathbb{R} \to \mathbb{R}^{d_m \times d_n}R→Rdm​×dn​. That is, if real numbers cbc_bcb​ satisfy ∑bcb κb(φ)=0\sum_b c_b\,\kappa_b(\varphi) = 0∑b​cb​κb​(φ)=0 for all φ\varphiφ, then every cb=0c_b = 0cb​=0. This part does not involve κ\kappaκ.

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