Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Table 2 (as derived in Appendix F.4.3): the basis of O(2)\mathrm{O}(2)O(2)-steerable kernels

Proved
SteerableE2CNN.o2_steerable_kernel_basis

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

convolutionequivariant-networksgroup-representationsorthogonal-groupsteerable-kernels

Let ψi,m\psi_{i,m}ψi,m​ and ψj,n\psi_{j,n}ψj,n​ be real irreps of O(2)\mathrm{O}(2)O(2), where i,j∈{0,1}i,j\in\{0,1\}i,j∈{0,1} and m,n∈Nm,n\in\mathbb{N}m,n∈N, with m=0m=0m=0 or i=1i=1i=1 and with n=0n=0n=0 or j=1j=1j=1. They are ψi,0(rθs)=si\psi_{i,0}(r_\theta s)=s^iψi,0​(rθ​s)=si and ψ1,k(rθs)=ψ(kθ)ξ(s)\psi_{1,k}(r_\theta s)=\psi(k\theta)\xi(s)ψ1,k​(rθ​s)=ψ(kθ)ξ(s) for k≥1k\ge1k≥1, and rθsr_\theta srθ​s acts on the plane by the matrix ψ(θ)ξ(s)\psi(\theta)\xi(s)ψ(θ)ξ(s). Let {bβ}\{b_\beta\}{bβ​} be the angular functions derived in Appendix F.4.3, each of angular frequency μβ\mu_\betaμβ​:

  • m=n=0m=n=0m=n=0: b(ϕ)=[1]b(\phi)=[1]b(ϕ)=[1] (μ=0\mu=0μ=0) if i=ji=ji=j, and no element if i≠ji\neq ji=j (eq. 35);
  • m=0<nm=0<nm=0<n: b(ϕ)=[cos⁡(nϕ+iπ2), sin⁡(nϕ+iπ2)]b(\phi)=[\cos(n\phi+i\tfrac{\pi}{2}),\ \sin(n\phi+i\tfrac{\pi}{2})]b(ϕ)=[cos(nϕ+i2π​), sin(nϕ+i2π​)], μ=n\mu=nμ=n (eq. 38);
  • n=0<mn=0<mn=0<m: b(ϕ)=[cos⁡(mϕ+jπ2); sin⁡(mϕ+jπ2)]b(\phi)=[\cos(m\phi+j\tfrac{\pi}{2});\ \sin(m\phi+j\tfrac{\pi}{2})]b(ϕ)=[cos(mϕ+j2π​); sin(mϕ+j2π​)], μ=m\mu=mμ=m (eq. 37);
  • m,n>0m,n>0m,n>0: bs(ϕ)=ψ(μϕ)ξ(s)b_s(\phi)=\psi(\mu\phi)\xi(s)bs​(ϕ)=ψ(μϕ)ξ(s) with μ=m−sn\mu=m-snμ=m−sn, s∈{±1}s\in\{\pm1\}s∈{±1}, i.e. ψ((m−n)ϕ)\psi((m-n)\phi)ψ((m−n)ϕ) and ψ((m+n)ϕ)ξ(−1)\psi((m+n)\phi)\xi(-1)ψ((m+n)ϕ)ξ(−1) (eq. 34).

Then:

  1. A kernel κ:R2→Rdim⁡ψi,m×dim⁡ψj,n\kappa:\mathbb{R}^2\to\mathbb{R}^{\dim\psi_{i,m}\times\dim\psi_{j,n}}κ:R2→Rdimψi,m​×dimψj,n​ satisfies the irrep constraint
κ(gx)=ψi,m(g) κ(x) ψj,n(g)−1∀g=rθs∈O(2), x∈R2\kappa(gx)=\psi_{i,m}(g)\,\kappa(x)\,\psi_{j,n}(g)^{-1}\qquad\forall g=r_\theta s\in\mathrm{O}(2),\ x\in\mathbb{R}^2κ(gx)=ψi,m​(g)κ(x)ψj,n​(g)−1∀g=rθ​s∈O(2), x∈R2

if and only if there are radial functions wβw_\betawβ​ with κ(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ϕ, and wβ(0)=0w_\beta(0)=0wβ​(0)=0 whenever μβ≠0\mu_\beta\neq0μβ​=0. 2. The functions bβb_\betabβ​ are linearly independent.

Combined with the irrep decomposition of Section 2.4, this gives a complete basis of O(2)\mathrm{O}(2)O(2)-steerable kernels between arbitrary field types. It is the kernel space used by E(2)\mathrm{E}(2)E(2)-steerable CNNs.

Formalization Note This is the statement as derived in Appendix F.4.3. Table 2 (and Table 9) lists, for the trivial-input or trivial-output cells mixing a one- and a two-dimensional irrep, the functions that eqs. (37), (38) derive for the sign-flip irrep, and the other way round. For example, [sin⁡(nϕ),−cos⁡(nϕ)][\sin(n\phi),-\cos(n\phi)][sin(nϕ),−cos(nϕ)] violates the constraint for ψ0,0←ψ1,n\psi_{0,0}\leftarrow\psi_{1,n}ψ0,0​←ψ1,n​ at the reflection s=−1s=-1s=−1, θ=0\theta=0θ=0, while [cos⁡(nϕ),sin⁡(nϕ)][\cos(n\phi),\sin(n\phi)][cos(nϕ),sin(nϕ)] satisfies it. The Lean statement uses the derived functions. The spans of the 1×11\times11×1 and 2×22\times22×2 cells agree with Table 2. Kernels are arbitrary functions with the constraint imposed at every point, and the radial coefficients are arbitrary functions. The group elements are parametrised as rθsr_\theta srθ​s with θ∈R\theta\in\mathbb{R}θ∈R and s∈{±1}s\in\{\pm1\}s∈{±1}, which covers all of O(2)\mathrm{O}(2)O(2).

Preamble
import Mathlib
import Definitions.Def_SteerableE2CNN_Basic

open Matrix MeasureTheory
Formal statement
namespace SteerableE2CNN

theorem o2_steerable_kernel_basis (l l' : O2IrrepLabel)
    (κ : Plane → Matrix (Fin (o2Dim l)) (Fin (o2Dim l')) ℝ) :
    (KernelConstraint (fun g : ℝ × ℤˣ => o2Elem g.1 g.2) (fun g => o2Irrep l g.1 g.2)
        (fun g => o2Irrep l' g.1 g.2) κ ↔
      ∃ w : Fin (o2BasisCard l l') → ℝ → ℝ,
        (∀ b, o2BasisFreq l l' b ≠ 0 → w b 0 = 0) ∧
        ∀ r : ℝ, 0 ≤ r → ∀ φ : ℝ, κ (polar r φ) = ∑ b, w b r • o2Basis l l' b φ) ∧
    LinearIndependent ℝ (o2Basis l l') := by sorry

end SteerableE2CNN
Source
Weiler and Cesa, General E(2)-Equivariant Steerable CNNs, arXiv:1911.08251v2 (NeurIPS 2019), Section 2.5, eq. (5) and Table 2, p. 5; Appendix F.3, Table 9, p. 29; Appendix F.4.3, eqs. (34), (35), (37), (38), pp. 40-43; Appendix F.4.6, p. 48
Read-back

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

Setting. The statement concerns two real irreducible representations of O(2)O(2)O(2), each given by a label:

  • an output label ℓ=(i,m)\ell = (i, m)ℓ=(i,m);
  • an input label ℓ′=(j,n)\ell' = (j, n)ℓ′=(j,n).

Here i,j∈{0,1}i, j \in \{0,1\}i,j∈{0,1} and m,n∈Nm, n \in \mathbb{N}m,n∈N. A label (i,k)(i,k)(i,k) is only allowed if k=0k = 0k=0 or i=1i = 1i=1. So the possible labels are (0,0)(0,0)(0,0), (1,0)(1,0)(1,0), and (1,k)(1,k)(1,k) with k≥1k \ge 1k≥1.

Dimensions. The dimension d(i,k)d_{(i,k)}d(i,k)​ is 111 if k=0k = 0k=0 and 222 if k≥1k \ge 1k≥1.

The representation matrices. For θ∈R\theta \in \mathbb{R}θ∈R and s∈{+1,−1}s \in \{+1,-1\}s∈{+1,−1}, let

ψ(θ)=(cos⁡θ−sin⁡θsin⁡θcos⁡θ),ξ(s)=(100s).\psi(\theta) = \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}, \qquad \xi(s) = \begin{pmatrix} 1 & 0 \\ 0 & s \end{pmatrix}.ψ(θ)=(cosθsinθ​−sinθcosθ​),ξ(s)=(10​0s​).

The representation matrix for a label is then given by the explicit formulas

ρ(i,0)(θ,s)=[ si ] (1×1),ρ(1,k)(θ,s)=ψ(kθ) ξ(s)  (k≥1).\rho_{(i,0)}(\theta, s) = \big[\, s^{i} \,\big] \ (1\times 1), \qquad \rho_{(1,k)}(\theta,s) = \psi(k\theta)\,\xi(s) \ \ (k \ge 1).ρ(i,0)​(θ,s)=[si] (1×1),ρ(1,k)​(θ,s)=ψ(kθ)ξ(s)  (k≥1).

These are given directly as functions of the pair (θ,s)(\theta,s)(θ,s). No homomorphism or irreducibility property is assumed or used.

The kernel. The theorem quantifies over an arbitrary function

κ:R2→Rdℓ×dℓ′.\kappa : \mathbb{R}^2 \to \mathbb{R}^{d_\ell \times d_{\ell'}}.κ:R2→Rdℓ​×dℓ′​.

No continuity, measurability or other regularity is assumed.

The kernel constraint. This is the condition that for all θ∈R\theta \in \mathbb{R}θ∈R, all s∈{±1}s \in \{\pm1\}s∈{±1} and all x∈R2x \in \mathbb{R}^2x∈R2,

κ(ψ(θ)ξ(s) x)=ρℓ(θ,s) κ(x) ρℓ′(θ,s)−1.\kappa\big(\psi(\theta)\xi(s)\,x\big) = \rho_\ell(\theta,s)\,\kappa(x)\,\rho_{\ell'}(\theta,s)^{-1}.κ(ψ(θ)ξ(s)x)=ρℓ​(θ,s)κ(x)ρℓ′​(θ,s)−1.

Here −1^{-1}−1 is the ordinary matrix inverse; all the matrices ρℓ′(θ,s)\rho_{\ell'}(\theta,s)ρℓ′​(θ,s) are invertible.

The angular basis. The basis consists of functions Bb:R→Rdℓ×dℓ′B_b : \mathbb{R} \to \mathbb{R}^{d_\ell \times d_{\ell'}}Bb​:R→Rdℓ​×dℓ′​. Each BbB_bBb​ has an integer frequency μb\mu_bμb​. The number of basis elements and their formulas depend on mmm and nnn:

  • m=n=0m = n = 0m=n=0:
    • If i=ji = ji=j: one element, B0(φ)=[1]B_0(\varphi) = [1]B0​(φ)=[1], with μ0=0\mu_0 = 0μ0​=0.
    • If i≠ji \ne ji=j: no elements.
  • m=0<nm = 0 < nm=0<n: one element, the 1×21\times 21×2 row
B0(φ)=[cos⁡(nφ+iπ2), sin⁡(nφ+iπ2)],μ0=n.B_0(\varphi) = \big[\cos(n\varphi + i\tfrac{\pi}{2}),\ \sin(n\varphi + i\tfrac{\pi}{2})\big], \qquad \mu_0 = n.B0​(φ)=[cos(nφ+i2π​), sin(nφ+i2π​)],μ0​=n.

The phase uses the output index iii.

  • n=0<mn = 0 < mn=0<m: one element, the 2×12\times 12×1 column
B0(φ)=[cos⁡(mφ+jπ2); sin⁡(mφ+jπ2)],μ0=m.B_0(\varphi) = \big[\cos(m\varphi + j\tfrac{\pi}{2});\ \sin(m\varphi + j\tfrac{\pi}{2})\big], \qquad \mu_0 = m.B0​(φ)=[cos(mφ+j2π​); sin(mφ+j2π​)],μ0​=m.

The phase uses the input index jjj.

  • m,n≥1m, n \ge 1m,n≥1: two elements,
B0(φ)=ψ((m−n)φ),μ0=m−n;B1(φ)=ψ((m+n)φ) ξ(−1),μ1=m+n.B_0(\varphi) = \psi\big((m-n)\varphi\big), \quad \mu_0 = m - n; \qquad B_1(\varphi) = \psi\big((m+n)\varphi\big)\,\xi(-1), \quad \mu_1 = m + n.B0​(φ)=ψ((m−n)φ),μ0​=m−n;B1​(φ)=ψ((m+n)φ)ξ(−1),μ1​=m+n.

The assertion. The theorem asserts the conjunction of two statements.

(1) An equivalence. κ\kappaκ satisfies the kernel constraint if and only if there exist functions wb:R→Rw_b : \mathbb{R} \to \mathbb{R}wb​:R→R, one for each basis index bbb, with both of the following properties:

  • Origin condition: wb(0)=0w_b(0) = 0wb​(0)=0 for every bbb with μb≠0\mu_b \ne 0μb​=0. This applies in all cases except the single element in case m=n=0, i=jm=n=0,\ i=jm=n=0, i=j, and B0B_0B0​ when m=n≥1m=n\ge1m=n≥1. In those two cases wb(0)w_b(0)wb​(0) is unconstrained.
  • Expansion: for every r≥0r \ge 0r≥0 and every φ∈R\varphi \in \mathbb{R}φ∈R,
κ(rcos⁡φ, rsin⁡φ)=∑bwb(r) Bb(φ).\kappa(r\cos\varphi,\ r\sin\varphi) = \sum_b w_b(r)\, B_b(\varphi).κ(rcosφ, rsinφ)=b∑​wb​(r)Bb​(φ).

Three consequences of this formulation:

  • The functions wbw_bwb​ are completely arbitrary real functions. No regularity is required, and their values for r<0r < 0r<0 play no role.
  • At r=0r = 0r=0 the expansion requires κ(0)=∑bwb(0)Bb(φ)\kappa(0) = \sum_b w_b(0) B_b(\varphi)κ(0)=∑b​wb​(0)Bb​(φ) for every φ\varphiφ.
  • When there are no basis elements (m=n=0m=n=0m=n=0, i≠ji\neq ji=j), the sum is empty. The right-hand side then says exactly that κ\kappaκ is identically zero on R2\mathbb{R}^2R2.

(2) Linear independence. The family (Bb)b(B_b)_b(Bb​)b​ is linearly independent over R\mathbb{R}R as functions from R\mathbb{R}R to matrices. That is, ∑bcbBb(φ)=0\sum_b c_b B_b(\varphi) = 0∑b​cb​Bb​(φ)=0 for all φ\varphiφ implies all cb=0c_b = 0cb​=0. When the family is empty, this holds trivially.

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