Documentation

HexGraphIsoMathlib.Basic

structure Hex.GraphIso.Mathlib.Colored (V : Type u) (k : ) [Fintype V] :

A finite simple graph with an ordered vertex colouring by Fin k in which every colour is used. This is the Mathlib-side counterpart of Hex.GraphIso.Colored: the colouring need not be proper, and an isomorphism has to preserve each colour index.

Instances For
    structure Hex.GraphIso.Mathlib.Colored.Iso {V : Type u} {W : Type v} {k : } [Fintype V] [Fintype W] (G : Colored V k) (H : Colored W k) :
    Type (max u v)

    A colour-preserving isomorphism of coloured graphs: a graph isomorphism carrying each vertex to a vertex of the same ordered colour.

    Instances For
      def Hex.GraphIso.Mathlib.Colored.Isomorphic {V : Type u} {W : Type v} {k : } [Fintype V] [Fintype W] (G : Colored V k) (H : Colored W k) :

      Two coloured graphs are isomorphic when a colour-preserving graph isomorphism exists.

      Equations
      Instances For
        theorem Hex.GraphIso.Mathlib.Colored.Isomorphic.intro {V : Type u} {W : Type v} {k : } [Fintype V] [Fintype W] {G : Colored V k} {H : Colored W k} (h : G.Iso H) :
        theorem Hex.GraphIso.Mathlib.Colored.Isomorphic.elim {V : Type u} {W : Type v} {k : } [Fintype V] [Fintype W] {G : Colored V k} {H : Colored W k} (h : G.Isomorphic H) :
        def Hex.GraphIso.Mathlib.Colored.ofColor? {V : Type u} {k : } [Fintype V] [DecidableEq (Fin k)] (graph : SimpleGraph V) (color : VFin k) [DecidableEq V] :

        Checked construction from a possibly non-onto colour map: none exactly when some colour below k is unused.

        Equations
        Instances For
          theorem Hex.GraphIso.Mathlib.Colored.ofColor?_eq_none_iff {V : Type u} {k : } [Fintype V] [DecidableEq (Fin k)] [DecidableEq V] {graph : SimpleGraph V} {color : VFin k} :
          ofColor? graph color = none ∃ (c : Fin k), ∀ (v : V), color v c

          Colored.ofColor? returns none exactly when some colour of Fin k is taken by no vertex.