§4.1, p. 35 — permutation invariant and equivariant functions agree on isomorphic graphs
ProvedGeomDL.Sets.isomorphic_graphs_same_outputgeometric-deep-learninggraph-isomorphismp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1permutation-invariance
Let and be two attributed graphs on the node set that are isomorphic through the relabelling with permutation matrix , that is, and . Let be permutation invariant in the sense of (9) and permutation equivariant in the sense of (10). Then
In words, an invariant function returns the same output on isomorphic graphs, and an equivariant function returns the same output at corresponding nodes.
Formalization Note "Isomorphic (topologically-equivalent)" is made explicit as the existence of the relabelling carrying adjacency and features of one graph to those of the other.
Preamble
import Mathlib import Definitions.Def_GeomDL_Sets_Defs
Formal statement
namespace GeomDL.Sets
/-- §4.1, p. 35: permutation invariant and equivariant functions produce identical outputs on
isomorphic graphs. Two attributed graphs `(X, A)` and `(X', A')` on the node set `{1,…,n}` are
isomorphic via the relabelling `σ ∈ Σₙ` when `A' = PAPᵀ` and `X' = PX`. Then an invariant `f`
(eq. (9)) has `f(X', A') = f(X, A)`, and an equivariant `F` (eq. (10)) gives node `σ(u)` of the
second graph the output of node `u` of the first. -/
theorem isomorphic_graphs_same_output {n d d' : ℕ} {Y : Type*}
(f : Matrix (Fin n) (Fin d) ℝ → Matrix (Fin n) (Fin n) ℝ → Y)
(F : Matrix (Fin n) (Fin d) ℝ → Matrix (Fin n) (Fin n) ℝ → Matrix (Fin n) (Fin d') ℝ)
(hf : IsGraphPermInvariant f) (hF : IsGraphPermEquivariant F)
(σ : Equiv.Perm (Fin n)) (X X' : Matrix (Fin n) (Fin d) ℝ) (A A' : Matrix (Fin n) (Fin n) ℝ)
(hA : A' = permAdj σ A) (hX : X' = permRows σ X) :
f X' A' = f X A ∧ ∀ u : Fin n, F X' A' (σ u) = F X A u := by sorry
end GeomDL.Sets
Source
Bronstein et al., Geometric Deep Learning (arXiv:2104.13478v2), §4.1, p. 35
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.