Systems, supports, closures and binary charts for Riemannian symmetric graphs
Definitionrsg_paper_structureStructural vocabulary for finite simple graphs with automorphism group , built on the published module rsg_recognition_core (which supplies , the index set , the action of automorphisms on vertices and unordered edges, valid witnesses, and the predicate RSG).
- Index kinds. The index set is , or . A vertex witness at is an automorphism of exact order two fixing and moving every neighbour of ; an edge witness at is an automorphism of exact order two exchanging and .
- Systems. A family of witnesses is a system when it satisfies the Loos law
For this is a full Riemannian system; for or it is a compatible vertex or edge system. A graph is a VIG (resp. EIG) if every vertex (resp. edge) has a witness. 3. Supports. A subgroup is an equivariant support of when every and for every automorphism . The witness group is . The stabilizer-centre criterion for asks that every -orbit on contain a representative with a valid witness in commuting with every element of fixing . 4. Closures. The -closure consists of the permutations agreeing with some element of on each ordered -tuple of vertices. 5. Graph properties. Vertex-transitivity; modules (sets such that every outside vertex is adjacent to all or none of ), with no nontrivial module meaning every module has at most one element or is all of ; and the Kneser graph on the -subsets of a -set, adjacent when disjoint. 6. Binary charts. A chart identifies with ; a permutation is allowed when it reads . Profiles carry the derivatives with , the position kernel of a subgroup (the pure label translations in ), and the Boolean degree, where degree at most means that all -fold derivatives vanish.
These notions are shared by every statement of the mission.
Formalization Note The position kernel is taken as the -span of the profiles of the pure label translations in ; for a subgroup these already form a subspace. Boolean degree is defined through vanishing derivatives, which over is equivalent to the degree of the multilinear (algebraic normal form) representation.
import Definitions.Def_rsg_recognition_core
import Mathlib.Combinatorics.SimpleGraph.Bipartite
import Mathlib.Combinatorics.SimpleGraph.Connectivity.Connected
import Mathlib.Data.ZMod.Basic
import Mathlib.Algebra.Group.Subgroup.Basic
import Mathlib.LinearAlgebra.Span.Defs
set_option autoImplicit false
namespace RSGPaper
open RSGRecognition
/-! ### Index sets and systems -/
/-- The three index sets of the paper: vertices `V`, edges `E`, or `V ⊔ E`. -/
inductive IndexKind
| vertex
| edge
| full
deriving DecidableEq
/-- The image of an unordered edge under a graph automorphism. -/
def edgeImage {V : Type} (G : SimpleGraph V) (f : GraphAut G) (e : G.edgeSet) : G.edgeSet :=
let iso : G ≃g G := { f.val with map_rel_iff' := fun {u v} => f.property u v }
iso.mapEdgeSet e
/-- The index type for each kind of system. -/
abbrev IdxType {V : Type} (G : SimpleGraph V) : IndexKind → Type
| .vertex => V
| .edge => G.edgeSet
| .full => Index G
/-- An index of a given kind, viewed as a vertex-or-edge index. -/
def toIndex {V : Type} (G : SimpleGraph V) : (k : IndexKind) → IdxType G k → Index G
| .vertex, v => .inl v
| .edge, e => .inr e
| .full, a => a
/-- Automorphisms act on vertices, on unordered edges, and on both. -/
def actK {V : Type} (G : SimpleGraph V) : (k : IndexKind) → GraphAut G → IdxType G k → IdxType G k
| .vertex, f, v => f.val v
| .edge, f, e => edgeImage G f e
| .full, f, a => act G f a
/-- A system of kind `k`: a valid witness at every index (exact order two, fixing a vertex
and moving all its neighbours, or exchanging the endpoints of an edge), satisfying the Loos law
`s_{s_a(b)} = s_a s_b s_a⁻¹` for all indices `a, b` of that kind, written after right
multiplication by `s_a`. For `k = full` this is a full Riemannian system; for `vertex`/`edge`
a compatible vertex/edge system. -/
def IsSystem {V : Type} (G : SimpleGraph V) (k : IndexKind)
(σ : IdxType G k → GraphAut G) : Prop :=
(∀ a, ValidAt G (toIndex G k a) (σ a)) ∧
∀ a b, σ (actK G k (σ a) b) * σ a = σ a * σ b
/-- `G` admits a system of kind `k`. -/
def HasSystem {V : Type} (G : SimpleGraph V) (k : IndexKind) : Prop :=
∃ σ : IdxType G k → GraphAut G, IsSystem G k σ
/-- Vertex involutive graph: every vertex has a vertex witness. -/
def IsVIG {V : Type} (G : SimpleGraph V) : Prop :=
∀ v : V, ∃ f : GraphAut G, ValidAt G (.inl v) f
/-- Edge involutive graph: every edge has an edge witness. -/
def IsEIG {V : Type} (G : SimpleGraph V) : Prop :=
∀ e : G.edgeSet, ∃ f : GraphAut G, ValidAt G (.inr e) f
/-! ### Supporting groups -/
/-- `H ≤ Sym(V)` is an equivariant support of the family `σ`: every witness lies in `H`, and
`σ_{h(a)} = h σ_a h⁻¹` for every automorphism `h ∈ H` and every index `a`. -/
def Supports {V : Type} (G : SimpleGraph V) (k : IndexKind) (H : Subgroup (Equiv.Perm V))
(σ : IdxType G k → GraphAut G) : Prop :=
(∀ a, (σ a).val ∈ H) ∧
∀ h : GraphAut G, h.val ∈ H → ∀ a, σ (actK G k h a) = h * σ a * h⁻¹
/-- The witness group `⟨σ_a : a ∈ 𝓘⟩ ≤ Sym(V)`. -/
def witnessGroup {V : Type} (G : SimpleGraph V) (k : IndexKind)
(σ : IdxType G k → GraphAut G) : Subgroup (Equiv.Perm V) :=
Subgroup.closure (Set.range fun a => (σ a).val)
/-- The stabilizer-centre criterion for `H`: every `H`-orbit on the indices of kind `k` has a
representative `b = h₀(a)` and a valid witness `f ∈ H` at `b` commuting with every element of
`H` that fixes `b`. -/
def CentralWitnessCriterion {V : Type} (G : SimpleGraph V) (k : IndexKind)
(H : Subgroup (Equiv.Perm V)) : Prop :=
∀ a : IdxType G k, ∃ h₀ : GraphAut G, h₀.val ∈ H ∧
∃ f : GraphAut G, f.val ∈ H ∧ ValidAt G (toIndex G k (actK G k h₀ a)) f ∧
∀ h : GraphAut G, h.val ∈ H → actK G k h (actK G k h₀ a) = actK G k h₀ a →
f * h = h * f
/-- The `k`-closure `H^{(k)}`: permutations that agree with some element of `H` on every ordered
`k`-tuple of vertices, i.e. that preserve every `H`-orbit on ordered `k`-tuples. -/
def kClosure {V : Type} (m : ℕ) (H : Subgroup (Equiv.Perm V)) : Subgroup (Equiv.Perm V) where
carrier := {g | ∀ t : Fin m → V, ∃ h ∈ H, ∀ i, g (t i) = h (t i)}
one_mem' := fun _ => ⟨1, H.one_mem, fun _ => rfl⟩
mul_mem' := by
intro g₁ g₂ hg₁ hg₂ t
obtain ⟨h₂, hh₂, e₂⟩ := hg₂ t
obtain ⟨h₁, hh₁, e₁⟩ := hg₁ (fun i => g₂ (t i))
refine ⟨h₁ * h₂, H.mul_mem hh₁ hh₂, fun i => ?_⟩
simp only [Equiv.Perm.coe_mul, Function.comp_apply]
rw [e₁ i, e₂ i]
inv_mem' := by
intro g hg t
obtain ⟨h, hh, e⟩ := hg (fun i => g⁻¹ (t i))
refine ⟨h⁻¹, H.inv_mem hh, fun i => ?_⟩
have h1 : g (g⁻¹ (t i)) = h (g⁻¹ (t i)) := e i
have h2 : t i = h (g⁻¹ (t i)) := by
rw [← h1]; exact (Equiv.apply_symm_apply g (t i)).symm
exact (Equiv.Perm.inv_eq_iff_eq.mpr h2).symm
/-! ### Graph-theoretic properties -/
/-- Every vertex can be mapped to every other by an automorphism. -/
def IsVertexTransitive {V : Type} (G : SimpleGraph V) : Prop :=
∀ u v : V, ∃ f : GraphAut G, f.val u = v
/-- `M` is a module: every vertex outside `M` is adjacent to all of `M` or to none of it. -/
def IsModule {V : Type} (G : SimpleGraph V) (M : Set V) : Prop :=
∀ x ∉ M, (∀ y ∈ M, G.Adj x y) ∨ (∀ y ∈ M, ¬ G.Adj x y)
/-- No module of size between `2` and `|V| - 1`. -/
def NoNontrivialModule {V : Type} (G : SimpleGraph V) : Prop :=
∀ M : Set V, IsModule G M → M.ncard ≤ 1 ∨ M = Set.univ
/-- The Kneser graph `KG(7,3)`: vertices are the `3`-subsets of a `7`-set, adjacent when
disjoint. -/
def kneser73 : SimpleGraph {s : Finset (Fin 7) // s.card = 3} where
Adj s t := Disjoint s.1 t.1
symm := ⟨fun _ _ h => Disjoint.symm h⟩
loopless := by
refine ⟨fun s h => ?_⟩
have h0 : s.1 = ∅ := Finset.disjoint_self_iff_empty _ |>.mp h
have := s.2
rw [h0] at this
simp at this
/-! ### Binary charts (Definition 5.1) -/
/-- Binary positions `I = 𝔽₂^d`. -/
abbrev Pos (d : ℕ) := Fin d → ZMod 2
/-- Binary labels `L = 𝔽₂^r`. -/
abbrev Lab (r : ℕ) := Fin r → ZMod 2
/-- Label profiles `f : I → L`. -/
abbrev Profile (d r : ℕ) := Pos d → Lab r
/-- A binary chart identifies the vertex set with `I × L = 𝔽₂^d × 𝔽₂^r`. -/
structure BinaryChart (V : Type) where
d : ℕ
r : ℕ
coord : V ≃ Pos d × Lab r
/-- A permutation is allowed by the chart: in chart coordinates it is
`(x, u) ↦ (x + a, u + f(x))` for a shift `a` and a profile `f`. -/
def InChart {V : Type} (ch : BinaryChart V) (g : Equiv.Perm V) : Prop :=
∃ (a : Pos ch.d) (f : Profile ch.d ch.r), ∀ p : Pos ch.d × Lab ch.r,
ch.coord (g (ch.coord.symm p)) = (p.1 + a, p.2 + f p.1)
/-- The derivative `Δ_a = 1 + T_a`, where `T_a f (x) = f (x + a)`, as an `𝔽₂`-linear map. -/
def delta {d r : ℕ} (a : Pos d) : Profile d r →ₗ[ZMod 2] Profile d r :=
LinearMap.id + LinearMap.funLeft (ZMod 2) (Lab r) (fun x => x + a)
/-- The position kernel `D` of `H` in the chart: the span of the profiles of the pure label
translations `(x, u) ↦ (x, u + f(x))` lying in `H` (these already form a subspace). -/
def positionKernel {V : Type} (ch : BinaryChart V) (H : Subgroup (Equiv.Perm V)) :
Submodule (ZMod 2) (Profile ch.d ch.r) :=
Submodule.span (ZMod 2)
{f | ∃ h ∈ H, ∀ p : Pos ch.d × Lab ch.r, ch.coord (h (ch.coord.symm p)) = (p.1, p.2 + f p.1)}
/-- The profile `f` has Boolean (algebraic) degree at most `k`: every `(k+1)`-fold derivative
`Δ_{a_0} ⋯ Δ_{a_k} f` vanishes. -/
def BoolDegreeLE {d r : ℕ} (f : Profile d r) (k : ℕ) : Prop :=
∀ a : Fin (k + 1) → Pos d, (List.ofFn a).foldr (fun b g => delta b g) f = 0
end RSGPaper
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Background notions used throughout (from the imported core module). is an arbitrary type (no finiteness, decidability or nonemptiness is assumed anywhere in this module) and is a simple graph on (symmetric, irreflexive adjacency ).
- is the subgroup of of permutations with for all . Products are composition: .
- denotes the set of (unordered) edges of , and is the disjoint union of vertices and edges. An automorphism acts on by and .
- An automorphism is a valid witness at an index when , , and
- if is a vertex: and for every neighbour of (neighbours are only required to be moved, not sent anywhere in particular);
- if is an edge: for all with , and (so swaps the two endpoints).
IndexKind. A three-element tag type with values vertex, edge, full (with decidable equality).
edgeImage. For and an edge , the edge .
IdxType. The index set of kind : , , .
toIndex. The inclusion : a vertex goes to itself as a vertex index, an edge to itself as an edge index, and for kind full it is the identity.
actK. The action of on : on vertices, on edges, and the combined action on for kind full. Written below.
IsSystem. For a kind and a family , , the family is a system of kind iff
- for every , is a valid witness at (as above), and
- for all (independently, possibly equal),
For kind vertex only vertex indices (and only vertex witnesses) are involved, for kind edge only edges, for kind full both vertices and edges with ranging over all of . If is empty (e.g. empty, or kind edge for an edgeless graph) the condition holds vacuously with the empty family.
HasSystem. has a system of kind : there exists satisfying IsSystem.
IsVIG. For every vertex there exists an automorphism of that is a valid witness at (an involution fixing and moving every neighbour of ). No compatibility between different vertices is required. Vacuous when is empty; fails when has exactly one element (no nonidentity permutation exists).
IsEIG. For every edge there exists an automorphism of that is a valid witness at (an involution swapping the two endpoints of ). Vacuous for an edgeless graph.
Supports. For a kind , a subgroup (not required to lie inside ) and a family : (i) every , viewed as a permutation of , lies in ; and (ii) for every automorphism of whose underlying permutation lies in and every ,
Elements of that are not automorphisms of are not constrained by (ii). No validity or Loos condition on is included.
witnessGroup. For a family , the subgroup of generated by the underlying permutations .
CentralWitnessCriterion. For a kind and : for every index there exist an automorphism of with and an automorphism of with such that, writing ,
- is a valid witness at , and
- for every automorphism of with and .
All of must be automorphisms of lying in ; elements of that are not automorphisms play no role. Taking is allowed, in which case .
kClosure. For and , the subgroup of consisting of all permutations such that for every -tuple there is with for all . (The module proves closure under identity, products and inverses.) For the condition is empty and . Tuples may have repeated entries.
IsVertexTransitive. For all there is an automorphism of with (vacuous if is empty).
IsModule. A set is a module iff every vertex is either adjacent to every or adjacent to no . The empty set, singletons and itself are always modules.
NoNontrivialModule. Every module satisfies or . Here is the natural-number cardinality, which is defined to be for infinite sets; hence every infinite module automatically satisfies , and on an infinite the condition only constrains finite modules of size .
kneser73. The graph whose vertices are the -element subsets of , with iff .
Pos, Lab, Profile. (functions ), , and is the set of all functions (an -vector space pointwise).
BinaryChart. A binary chart on consists of natural numbers and a bijection . (Its existence forces to have exactly elements.)
InChart. A permutation of is allowed by the chart iff there exist a shift and a profile such that for every ,
delta. For , the -linear map on profiles given by
(Note .)
positionKernel. For a chart and , the -linear span of the set of profiles for which some satisfies for all (i.e. is, in chart coordinates, a pure label translation by ). need not be an automorphism of any graph.
BoolDegreeLE. For a profile and : for every choice of vectors (repetitions and zero vectors allowed),
(the operator is applied first). For this says for all , i.e. is constant.