Theorem 1 (as proved): G-CNNs are exactly the networks with equivariant linear layers
ProvedEquivarianceConvolution.gcnn_iff_equivariant_layersLet be a finite group and let be an -layer feed-forward network whose -th index set is for subgroups . Its activations lie in , its layers are linear maps , and its pointwise nonlinearities are arbitrary. Then:
- if is a -CNN, then is -equivariant;
- is a -CNN, i.e. every is a generalized convolution with a filter on , if and only if every linear map , , is -equivariant:
This is the paper's main theorem, that convolutional structure is necessary and sufficient for equivariance, in the form its proof establishes.
Formalization Note The printed Theorem 1 asserts that is -equivariant (Definition 3) if and only if it is a -CNN. Its "only if" direction is false. Equivariance of the activations does not force the linear maps to be equivariant when a nonlinearity is not injective, or when earlier layers do not reach every function. For example, take , , , , and . Every activation of layers 1 and 2 is , so the network is equivariant, but is not equivariant and therefore not a convolution. The proof in Appendix E assumes that each is equivariant ("this is equivalent to asserting that is equivariant") and shows that each is then a convolution. The statement above is what the two proofs establish. The group is finite (see the definitions), and the activation spaces are , as in Definition 7.
import Mathlib import Definitions.Def_EquivarianceConvolution_Basic open scoped BigOperators
namespace EquivarianceConvolution
theorem gcnn_iff_equivariant_layers {G : Type*} [Group G] [Fintype G] (H : ℕ → Subgroup G)
{d : ℕ → ℕ} (L : ℕ) (N : FeedForwardNet (fun l => G ⧸ H l) d) :
(IsGCNN H L N → IsEquivariantNet G L N) ∧
(IsGCNN H L N ↔ ∀ l < L, IsEquivariantMap G ⇑(N.phi l)) := by sorry
end EquivarianceConvolutionRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a finite group. Let be an arbitrary sequence of subgroups of , indexed by . No relation between different is assumed, and each may be trivial or all of . Let be an arbitrary sequence of natural numbers, where is allowed. Let ; is allowed.
The network. Let be a feed-forward network in which layer has index set the left coset space and activations in . So a layer- activation is a function . For every (not only ), consists of:
- a -linear map from functions to functions ;
- an arbitrary function , with no linearity, continuity or other condition.
Given an input , the activations are defined recursively:
The group action on functions. acts on by left multiplication, . It acts on functions on by
The three properties. The theorem relates the following three properties of .
- is a -CNN up to depth . For every there is a matrix-valued function with two properties:
- it is constant on double cosets: for all , , ;
- for every input and every ,
where multiplies the vector as a matrix. Since the left side depends only on the coset , this requires the right side to take the same value for all in a given coset.
- is a -equivariant network up to depth . For every , every input and every with , the -th activation computed from equals applied to the -th activation computed from :
- Every linear layer below is equivariant. For every , every and every ,
The claim. The theorem asserts both of the following:
- property 1 implies property 2, for arbitrary nonlinearities ;
- property 1 holds if and only if property 3 holds.
The second statement involves only the linear maps for ; it places no condition on any .
Edge cases.
- The maps and with appear in no hypothesis or conclusion.
- When , properties 1 and 3 hold vacuously. Property 2 then only asks that for the input layer, which is trivially true.
- The converse "property 2 implies property 1" is not asserted.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.