Documentation

CslibFrontier.Foundations.Combinatorics.SimpleGraph.CFI

Cai–Fürer–Immerman graphs over complete base graphs #

For a base vertex count m and a twist function f : Fin m → ZMod 2, the Cai–Fürer–Immerman graph SimpleGraph.cfiGraph m f replaces each vertex v : Fin m of the complete graph K_m by the parity gadget of assignments α : {w : Fin m // w ≠ v} → ZMod 2 summing to f v, and replaces each undirected edge e = s(v, w) (v ≠ w) by a pair of edge vertices edge e he 0, edge e he 1 joined to one another and to a dedicated apex e he vertex ([CFI92], Section 6).

Main definitions #

Main results #

References #

Vertices and adjacency of CFI graphs #

inductive SimpleGraph.CFIVertex (m : ℕ) (f : Fin m → ZMod 2) :

Vertices of the uncolored Cai–Fürer–Immerman graph over K_m with twist f : Fin m → ZMod 2:

  • gadget v α hα: an assignment α on directions w ≠ v whose ZMod 2-sum equals f v;
  • edge e he b: one of the two vertices on the undirected edge e of K_m, labeled by b;
  • apex e he: a triangle apex joined to both edge e he 0 and edge e he 1 so that uncolored graph isomorphisms preserve vertex roles.
Instances For
    @[instance_reducible]
    instance SimpleGraph.instDecidableEqCFIVertex {m✝ : ℕ} {f✝ : Fin m✝ → ZMod 2} :
    def SimpleGraph.instDecidableEqCFIVertex.decEq {m✝ : ℕ} {f✝ : Fin m✝ → ZMod 2} (x✝ x✝¹ : CFIVertex m✝ f✝) :
    Decidable (x✝ = x✝¹)
    @[instance_reducible]
    instance SimpleGraph.instFintypeCFIVertex {m : ℕ} {f : Fin m → ZMod 2} :
    @[instance_reducible]
    instance SimpleGraph.instInhabitedCFIVertexHAddNatOfNat {n : ℕ} {f : Fin (n + 2) → ZMod 2} :
    theorem SimpleGraph.CFIVertex.nonempty_of_two_le {m : ℕ} (hm : 2 ≤ m) (f : Fin m → ZMod 2) :

    Whenever 2 ≤ m, CFIVertex m f is nonempty.

    def SimpleGraph.cfiGraph (m : ℕ) (f : Fin m → ZMod 2) :

    The uncolored Cai–Fürer–Immerman simple graph over K_m with twist f : Fin m → ZMod 2.

    @[simp]
    theorem SimpleGraph.cfiGraph_adj_gadget_edge {m : ℕ} {f : Fin m → ZMod 2} (v : Fin m) (α : { w : Fin m // w ≠ v } → ZMod 2) (hα : ∑ w : { w : Fin m // w ≠ v }, α w = f v) (e : Sym2 (Fin m)) (he : ¬e.IsDiag) (b : ZMod 2) :
    (cfiGraph m f).Adj (CFIVertex.gadget v α hα) (CFIVertex.edge e he b) ↔ ∃ (w : { w : Fin m // w ≠ v }), e = s(v, ↑w) ∧ b = α w
    @[simp]
    theorem SimpleGraph.cfiGraph_adj_edge_gadget {m : ℕ} {f : Fin m → ZMod 2} (e : Sym2 (Fin m)) (he : ¬e.IsDiag) (b : ZMod 2) (v : Fin m) (α : { w : Fin m // w ≠ v } → ZMod 2) (hα : ∑ w : { w : Fin m // w ≠ v }, α w = f v) :
    (cfiGraph m f).Adj (CFIVertex.edge e he b) (CFIVertex.gadget v α hα) ↔ ∃ (w : { w : Fin m // w ≠ v }), e = s(v, ↑w) ∧ b = α w
    @[simp]
    theorem SimpleGraph.cfiGraph_adj_edge_edge {m : ℕ} {f : Fin m → ZMod 2} (e₁ : Sym2 (Fin m)) (he₁ : ¬e₁.IsDiag) (b₁ : ZMod 2) (e₂ : Sym2 (Fin m)) (he₂ : ¬e₂.IsDiag) (b₂ : ZMod 2) :
    (cfiGraph m f).Adj (CFIVertex.edge e₁ he₁ b₁) (CFIVertex.edge e₂ he₂ b₂) ↔ e₁ = e₂ ∧ b₁ ≠ b₂
    @[simp]
    theorem SimpleGraph.cfiGraph_adj_edge_apex {m : ℕ} {f : Fin m → ZMod 2} (e₁ : Sym2 (Fin m)) (he₁ : ¬e₁.IsDiag) (b : ZMod 2) (e₂ : Sym2 (Fin m)) (he₂ : ¬e₂.IsDiag) :
    (cfiGraph m f).Adj (CFIVertex.edge e₁ he₁ b) (CFIVertex.apex e₂ he₂) ↔ e₁ = e₂
    @[simp]
    theorem SimpleGraph.cfiGraph_adj_apex_edge {m : ℕ} {f : Fin m → ZMod 2} (e₁ : Sym2 (Fin m)) (he₁ : ¬e₁.IsDiag) (e₂ : Sym2 (Fin m)) (he₂ : ¬e₂.IsDiag) (b : ZMod 2) :
    (cfiGraph m f).Adj (CFIVertex.apex e₁ he₁) (CFIVertex.edge e₂ he₂ b) ↔ e₁ = e₂
    @[simp]
    theorem SimpleGraph.not_cfiGraph_adj_gadget_gadget {m : ℕ} {f : Fin m → ZMod 2} (v₁ : Fin m) (α₁ : { w : Fin m // w ≠ v₁ } → ZMod 2) (hα₁ : ∑ w : { w : Fin m // w ≠ v₁ }, α₁ w = f v₁) (v₂ : Fin m) (α₂ : { w : Fin m // w ≠ v₂ } → ZMod 2) (hα₂ : ∑ w : { w : Fin m // w ≠ v₂ }, α₂ w = f v₂) :
    ¬(cfiGraph m f).Adj (CFIVertex.gadget v₁ α₁ hα₁) (CFIVertex.gadget v₂ α₂ hα₂)
    @[simp]
    theorem SimpleGraph.not_cfiGraph_adj_gadget_apex {m : ℕ} {f : Fin m → ZMod 2} (v : Fin m) (α : { w : Fin m // w ≠ v } → ZMod 2) (hα : ∑ w : { w : Fin m // w ≠ v }, α w = f v) (e : Sym2 (Fin m)) (he : ¬e.IsDiag) :
    @[simp]
    theorem SimpleGraph.not_cfiGraph_adj_apex_gadget {m : ℕ} {f : Fin m → ZMod 2} (e : Sym2 (Fin m)) (he : ¬e.IsDiag) (v : Fin m) (α : { w : Fin m // w ≠ v } → ZMod 2) (hα : ∑ w : { w : Fin m // w ≠ v }, α w = f v) :
    @[simp]
    theorem SimpleGraph.not_cfiGraph_adj_apex_apex {m : ℕ} {f : Fin m → ZMod 2} (e₁ : Sym2 (Fin m)) (he₁ : ¬e₁.IsDiag) (e₂ : Sym2 (Fin m)) (he₂ : ¬e₂.IsDiag) :
    ¬(cfiGraph m f).Adj (CFIVertex.apex e₁ he₁) (CFIVertex.apex e₂ he₂)
    @[instance_reducible]
    @[reducible, inline]
    abbrev SimpleGraph.cfiEven (k : ℕ) :
    SimpleGraph (CFIVertex (2 * k + 4) 0)

    The even Cai–Fürer–Immerman graph at dimension k: cfiGraph (2 * k + 4) 0.

    @[reducible, inline]
    abbrev SimpleGraph.cfiOdd (k : ℕ) :

    The odd Cai–Fürer–Immerman graph at dimension k: cfiGraph (2 * k + 4) (Pi.single 0 1).

    Base-vertex support and twist retyping away from a vertex #

    def SimpleGraph.CFIVertex.support {m : ℕ} {f : Fin m → ZMod 2} :
    CFIVertex m f → Finset (Fin m)

    The set of base vertices in Fin m on which a CFI vertex lives ({v} on gadget v, and the two endpoints e.toFinset on edge e and apex e).

    @[simp]
    theorem SimpleGraph.CFIVertex.support_gadget {m : ℕ} {f : Fin m → ZMod 2} (v : Fin m) (α : { w : Fin m // w ≠ v } → ZMod 2) (hα : ∑ w : { w : Fin m // w ≠ v }, α w = f v) :
    (gadget v α hα).support = {v}
    @[simp]
    theorem SimpleGraph.CFIVertex.support_edge {m : ℕ} {f : Fin m → ZMod 2} (e : Sym2 (Fin m)) (he : ¬e.IsDiag) (b : ZMod 2) :
    (edge e he b).support = e.toFinset
    @[simp]
    theorem SimpleGraph.CFIVertex.support_apex {m : ℕ} {f : Fin m → ZMod 2} (e : Sym2 (Fin m)) (he : ¬e.IsDiag) :
    theorem SimpleGraph.CFIVertex.card_support_le_two {m : ℕ} {f : Fin m → ZMod 2} (x : CFIVertex m f) :

    Every CFI vertex has base-vertex support of size at most 2.

    theorem SimpleGraph.CFIVertex.notMem_support_of_mem_mem_ne {m : ℕ} {f : Fin m → ZMod 2} {u w w' : Fin m} {x : CFIVertex m f} (hu : u ∈ x.support) (hw : w ∈ x.support) (huw : u ≠ w) (huw' : w' ≠ u) (hww' : w' ≠ w) :
    w' ∉ x.support

    If two distinct base vertices u ≠ w both lie in x.support, then no third vertex w' distinct from u and w lies in x.support.

    def SimpleGraph.CFIVertex.castAway {m : ℕ} {f g : Fin m → ZMod 2} (u : Fin m) (hfg : ∀ (v : Fin m), v ≠ u → f v = g v) (x : CFIVertex m f) :
    u ∉ x.support → CFIVertex m g

    Retype a CFI vertex from twist f to twist g when f and g agree outside u and u ∉ x.support.

    theorem SimpleGraph.CFIVertex.castAway_inj {m : ℕ} {f g : Fin m → ZMod 2} {u : Fin m} {hfg : ∀ (v : Fin m), v ≠ u → f v = g v} {x y : CFIVertex m f} (hx : u ∉ x.support) (hy : u ∉ y.support) :
    castAway u hfg x hx = castAway u hfg y hy ↔ x = y

    CFIVertex.castAway is injective on vertices avoiding u.

    theorem SimpleGraph.cfiGraph_adj_castAway_iff {m : ℕ} {f g : Fin m → ZMod 2} {u : Fin m} {hfg : ∀ (v : Fin m), v ≠ u → f v = g v} {x y : CFIVertex m f} (hx : u ∉ x.support) (hy : u ∉ y.support) :
    (cfiGraph m g).Adj (CFIVertex.castAway u hfg x hx) (CFIVertex.castAway u hfg y hy) ↔ (cfiGraph m f).Adj x y

    CFIVertex.castAway preserves and reflects adjacency in cfiGraph.

    Edge-twist isomorphisms and Duplicator's local bijection #

    def SimpleGraph.cfiFlipIso {m : ℕ} {f g : Fin m → ZMod 2} {u w : Fin m} (huw : u ≠ w) (hfg : g = f + Pi.single u 1 + Pi.single w 1) :

    Edge-twist isomorphism ([CFI92], Section 6): twisting f by 1 at both endpoints of an edge u ≠ w of K_m gives an isomorphic CFI graph.

    def SimpleGraph.cfiFlipUpdateIso {m : ℕ} {u w : Fin m} (huw : u ≠ w) (f : Fin m → ZMod 2) :
    cfiGraph m f ≃g cfiGraph m (Function.update (Function.update f u (f u + 1)) w (f w + 1))

    Function.update form of SimpleGraph.cfiFlipIso.

    def SimpleGraph.cfiSingleFlipIso {m : ℕ} {u w : Fin m} (huw : u ≠ w) :

    Shifting a single-vertex twist from w to a distinct vertex u (u ≠ w) via the edge-twist isomorphism along s(u, w).

    Shifting a single-vertex twist between arbitrary vertices u, w : Fin m.

    def SimpleGraph.cfiBaseEquiv {m : ℕ} (u w : Fin m) (hwu : w ≠ u) :

    Duplicator's local coordinate bijection CFIVertex m 0 ≃ CFIVertex m (Pi.single u 1), which flips coordinate w (w ≠ u) on gadget u and acts as the identity everywhere else.

    theorem SimpleGraph.cfiBaseEquiv_eq_castAway {m : ℕ} {u w : Fin m} (hwu : w ≠ u) (hfg : ∀ (v : Fin m), v ≠ u → 0 v = Pi.single u 1 v) (x : CFIVertex m 0) (hu : u ∉ x.support) :
    (cfiBaseEquiv u w hwu) x = CFIVertex.castAway u hfg x hu

    Away from u, cfiBaseEquiv u w hwu agrees with CFIVertex.castAway u.

    theorem SimpleGraph.cfiSingleFlipIso_castAway_of_notMem {m : ℕ} {u w : Fin m} (huw : u ≠ w) (hfw : ∀ (v : Fin m), v ≠ w → 0 v = Pi.single w 1 v) (hfu : ∀ (v : Fin m), v ≠ u → 0 v = Pi.single u 1 v) (x : CFIVertex m 0) (hu : u ∉ x.support) (hw : w ∉ x.support) :

    On vertices whose support avoids both u and w, cfiSingleFlipIso huw commutes with CFIVertex.castAway.

    theorem SimpleGraph.cfiSingleFlipIso_castAway_eq_cfiBaseEquiv {m : ℕ} {u w : Fin m} (huw : u ≠ w) (hfw : ∀ (v : Fin m), v ≠ w → 0 v = Pi.single w 1 v) (x : CFIVertex m 0) (hw : w ∉ x.support) :
    (cfiSingleFlipIso huw) (CFIVertex.castAway w hfw x hw) = (cfiBaseEquiv u w ⋯) x

    On any vertex x with w ∉ x.support, cfiSingleFlipIso huw carries x.castAway w to cfiBaseEquiv u w huw.symm x.

    theorem SimpleGraph.cfiSingleFlipIso_castAway_eq_cfiBaseEquiv_of_mem {m : ℕ} {u w w' : Fin m} (huw : u ≠ w) (huw' : u ≠ w') (hww' : w ≠ w') (hfw' : ∀ (v : Fin m), v ≠ w' → 0 v = Pi.single w' 1 v) (x : CFIVertex m 0) (hu : u ∈ x.support) (hw : w ∈ x.support) (hw' : w' ∉ x.support) :
    (cfiSingleFlipIso huw') (CFIVertex.castAway w' hfw' x hw') = (cfiBaseEquiv u w ⋯) x

    When both u and w (u ≠ w) lie in x.support and w' is distinct from u and w, cfiSingleFlipIso huw' carries x.castAway w' to cfiBaseEquiv u w huw.symm x.

    Exact isomorphism classification by parity sum #

    theorem SimpleGraph.isEmpty_iso_cfiGraph_of_sum_ne {m : ℕ} (hm : 3 ≤ m) {f g : Fin m → ZMod 2} (hsum : ∑ v : Fin m, f v ≠ ∑ v : Fin m, g v) :

    Cai–Fürer–Immerman non-isomorphism ([CFI92], Section 6): when 3 ≤ m and ∑ v, f v ≠ ∑ v, g v, cfiGraph m f and cfiGraph m g have no graph isomorphism.

    theorem SimpleGraph.not_nonempty_iso_cfiGraph_of_sum_ne {m : ℕ} (hm : 3 ≤ m) {f g : Fin m → ZMod 2} (hsum : ∑ v : Fin m, f v ≠ ∑ v : Fin m, g v) :

    ¬ Nonempty form of SimpleGraph.isEmpty_iso_cfiGraph_of_sum_ne.

    theorem SimpleGraph.nonempty_iso_cfiGraph_iff_sum_eq {m : ℕ} (hm : 3 ≤ m) {f g : Fin m → ZMod 2} :
    Nonempty (cfiGraph m f ≃g cfiGraph m g) ↔ ∑ v : Fin m, f v = ∑ v : Fin m, g v

    Cai–Fürer–Immerman isomorphism classification ([CFI92], Section 6): for 3 ≤ m, cfiGraph m f and cfiGraph m g are isomorphic if and only if their twist functions have the same ZMod 2-sum.

    cfiEven k and cfiOdd k have no graph isomorphism for any k : ℕ.