The enumeration equivalence induced by a duplicate-free list of all
the vertices: v maps to its position in the list. Both directions are
structural list operations, so a ground instance reduces in the kernel.
The tactic obtains the list by reducing Finset.univ.val, and proves
the three side conditions by decide.
Equations
- Hex.GraphIso.Mathlib.listEquiv l hlen hnodup hcompl = { toFun := fun (v : V) => ⟨List.idxOf v l, ⋯⟩, invFun := fun (i : Fin (Fintype.card V)) => l[↑i], left_inv := ⋯, right_inv := ⋯ }
Instances For
The colouring of an uncoloured graph over a nonempty vertex type
that gives every vertex colour 0. A G ≃g H goal is encoded through
this colouring, since a one-cell colouring constrains nothing.
Equations
- Hex.GraphIso.Mathlib.onecell G h = { graph := G, color := fun (x : V) => 0, onto := ⋯ }
Instances For
One-cell colourings are isomorphic exactly when the graphs are.
The coloured isomorphism a kernel-checked transporter of the encodings yields.
Equations
- Hex.GraphIso.Mathlib.coloredIsoOfIsIso eV eW p h = Hex.GraphIso.Mathlib.isoOfIsIso eV eW h
Instances For
The graph isomorphism a kernel-checked transporter of the one-cell encodings yields.
Equations
- Hex.GraphIso.Mathlib.graphIsoOfIsIso eV eW hV hW p h = (Hex.GraphIso.Mathlib.coloredIsoOfIsIso eV eW p h).graphIso
Instances For
Two graphs on empty vertex types are isomorphic.
Equations
- Hex.GraphIso.Mathlib.isoOfCardZero G H hV hW = { toEquiv := Equiv.equivOfIsEmpty V W, map_rel_iff' := ⋯ }
Instances For
Two coloured graphs on empty vertex types are isomorphic.
Equations
- Hex.GraphIso.Mathlib.coloredIsoOfCardZero G H hV hW = { graphIso := Hex.GraphIso.Mathlib.isoOfCardZero G.graph H.graph hV hW, map_color := ⋯ }
Instances For
Non-isomorphism of the encodings refutes coloured isomorphism. The
hypothesis is stated about Hex.GraphIso.Isomorphic, so it accepts a
negative proof from either the root-separator route or the
certificate-replay route.
Unequal cardinalities refute nonemptiness of the isomorphism type.
Unequal cardinalities refute coloured isomorphism.