Two-copy strip graph for VIG recognition
Definitionrsg_paper_vig_stripgraph-theory
For a graph with specified vertices and a degree bound , replace each old vertex by two independent copies and each old edge by all four edges between the corresponding pairs. For each copy add a separate independent strip of vertices, every one adjacent to the copies of and in that layer.
Definition code
import Definitions.Def_rsg_paper_structure
set_option autoImplicit false
namespace RSGPaper.VIGStrip
/-- Old vertices have a copy bit. Strip vertices have a strip bit and a pairing bit. -/
abbrev Vertex (V : Type) (d : ℕ) := (Bool × V) ⊕ (Bool × Bool × Fin (d + 1))
def endpoint {V : Type} (u v x : V) : Prop := x = u ∨ x = v
private def stripAdj {V : Type} {d : ℕ} (G : SimpleGraph V) (u v : V) :
Vertex V d → Vertex V d → Prop
| .inl a, .inl b => G.Adj a.2 b.2
| .inl a, .inr b => a.1 = b.1 ∧ endpoint u v a.2
| .inr a, .inl b => b.1 = a.1 ∧ endpoint u v b.2
| .inr _, .inr _ => False
/-- Two independent copies of each original vertex, with one strip joined to
the two designated vertices in each copy. Each strip has `2 * (d + 1)` vertices. -/
def stripGraph {V : Type} (G : SimpleGraph V) (u v : V) (d : ℕ) : SimpleGraph (Vertex V d) where
Adj := stripAdj G u v
symm := ⟨by
intro a b edge
cases a with
| inl a =>
cases b with
| inl b => exact G.adj_symm edge
| inr b => exact edge
| inr a => cases b <;> exact edge⟩
loopless := ⟨by
intro a
cases a with
| inl a => exact G.irrefl
| inr a => exact id⟩
end RSGPaper.VIGStrip
Source
Sirawit Pongnakintr, Riemannian Symmetric Graphs, Hexagon v2, Appendix Lemma A.3, p. 17, https://hexagonmath.org/2611.01261v2