Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix D.2.2: norm nonlinearities are equivariant under unitary representations

Proved
SteerableE2CNN.norm_nonlinearity_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) and let ρ\rhoρ be a unitary representation of GGG on Rn\mathbb{R}^{n}Rn, i.e. ∣ρ(g)v∣=∣v∣|\rho(g)v|=|v|∣ρ(g)v∣=∣v∣ for all ggg and vvv, where ∣⋅∣|\cdot|∣⋅∣ is the Euclidean norm. For any function η\etaη, the norm nonlinearity σnorm(v)=η(∣v∣) v∣v∣\sigma_{\mathrm{norm}}(v)=\eta(|v|)\,\dfrac{v}{|v|}σnorm​(v)=η(∣v∣)∣v∣v​ satisfies

σnorm(ρ(g)v)=ρ(g) σnorm(v)∀g∈G, v∈Rn.\sigma_{\mathrm{norm}}(\rho(g)v)=\rho(g)\,\sigma_{\mathrm{norm}}(v)\qquad\forall g\in G,\ v\in\mathbb{R}^{n}.σnorm​(ρ(g)v)=ρ(g)σnorm​(v)∀g∈G, v∈Rn.

Examples are norm-ReLUs, squashing nonlinearities and gated nonlinearities.

Formalization Note The paper's formula is undefined at v=0v=0v=0. In Lean, v/∣v∣v/|v|v/∣v∣ is 000 there, so σnorm(0)=0\sigma_{\mathrm{norm}}(0)=0σnorm​(0)=0. The function η\etaη is taken on all of R\mathbb{R}R; only its values on [0,∞)[0,\infty)[0,∞) enter.

Preamble
import Mathlib
import Definitions.Def_SteerableE2CNN_Basic

open Matrix MeasureTheory
Formal statement
namespace SteerableE2CNN

theorem norm_nonlinearity_equivariant (G : Subgroup O2)
    {n : Type*} [Fintype n] [DecidableEq n] (ρ : MatRep G n)
    (hρ : ∀ (g : G) (v : n → ℝ), eNorm (repMat ρ g *ᵥ v) = eNorm v)
    (η : ℝ → ℝ) (g : G) (v : n → ℝ) :
    normNL η (repMat ρ g *ᵥ v) = repMat ρ g *ᵥ normNL η v := by sorry

end SteerableE2CNN
Source
Weiler and Cesa, General E(2)-Equivariant Steerable CNNs, arXiv:1911.08251v2 (NeurIPS 2019), Section 2.6, p. 6; Appendix D.2.2, p. 23
Read-back

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

Let GGG be any 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}. Let nnn be any finite index set, possibly empty, so that feature vectors are v∈Rnv \in \mathbb{R}^nv∈Rn. Let ρ:G→GL(Rn)\rho : G \to \mathrm{GL}(\mathbb{R}^n)ρ:G→GL(Rn) be any group homomorphism into invertible real n×nn \times nn×n matrices, and write ρ(g)\rho(g)ρ(g) for the matrix of ggg.

Hypothesis. Assume that every ρ(g)\rho(g)ρ(g) preserves the Euclidean norm:

∀g∈G, ∀v∈Rn:∣ρ(g) v∣=∣v∣,where ∣v∣=∑ivi2.\forall g \in G,\ \forall v \in \mathbb{R}^n:\quad |\rho(g)\,v| = |v|, \qquad\text{where } |v| = \sqrt{\textstyle\sum_{i} v_i^2}.∀g∈G, ∀v∈Rn:∣ρ(g)v∣=∣v∣,where ∣v∣=∑i​vi2​​.

This is equivalent to every ρ(g)\rho(g)ρ(g) being an orthogonal matrix. The hypothesis can be satisfied, for example by the trivial representation ρ(g)=I\rho(g) = Iρ(g)=I.

Further data. Let η:R→R\eta : \mathbb{R} \to \mathbb{R}η:R→R be any function whatsoever. No continuity, measurability, sign or value conditions are imposed, and in particular η(0)\eta(0)η(0) is unrestricted. The norm nonlinearity is defined for every w∈Rnw \in \mathbb{R}^nw∈Rn by

ση(w)=η(∣w∣)∣w∣ w,\sigma_\eta(w) = \frac{\eta(|w|)}{|w|}\, w ,ση​(w)=∣w∣η(∣w∣)​w,

with the convention that a real number divided by 000 equals 000. So ση(0)=0\sigma_\eta(0) = 0ση​(0)=0 regardless of η(0)\eta(0)η(0).

Conclusion. For a given g∈Gg \in Gg∈G and a given v∈Rnv \in \mathbb{R}^nv∈Rn,

ση(ρ(g) v)=ρ(g) ση(v).\sigma_\eta\big(\rho(g)\, v\big) = \rho(g)\, \sigma_\eta(v).ση​(ρ(g)v)=ρ(g)ση​(v).

Remarks on scope.

  • The only property of GGG used in the statement is that it is a group. The way GGG acts on the plane R2\mathbb{R}^2R2 does not appear.
  • In the degenerate cases, both sides are trivially equal:
    • when nnn is empty, Rn\mathbb{R}^nRn is the zero space;
    • when v=0v = 0v=0, both sides are 000.
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