Graph products #
This file defines the box product of graphs and other product constructions. The box product of G
and H
is the graph on the product of the vertices such that x
and y
are related iff they agree
on one component and the other one is related via either G
or H
. For example, the box product of
two edges is a square.
Main declarations #
SimpleGraph.boxProd
: The box product.
Notation #
G □ H
: The box product ofG
andH
.
TODO #
Define all other graph products!
Box product of simple graphs. It relates (a₁, b)
and (a₂, b)
if G
relates a₁
and a₂
,
and (a, b₁)
and (a, b₂)
if H
relates b₁
and b₂
.
Equations
Instances For
Box product of simple graphs. It relates (a₁, b)
and (a₂, b)
if G
relates a₁
and a₂
,
and (a, b₁)
and (a, b₂)
if H
relates b₁
and b₂
.
Equations
- SimpleGraph.«term_□_» = Lean.ParserDescr.trailingNode `SimpleGraph.«term_□_» 70 70 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol " □ ") (Lean.ParserDescr.cat `term 71))
Instances For
The box product is commutative up to isomorphism. Equiv.prodComm
as a graph isomorphism.
Equations
- G.boxProdComm H = { toEquiv := Equiv.prodComm α β, map_rel_iff' := ⋯ }
Instances For
The box product is associative up to isomorphism. Equiv.prodAssoc
as a graph isomorphism.
Equations
- G.boxProdAssoc H I = { toEquiv := Equiv.prodAssoc α β γ, map_rel_iff' := ⋯ }
Instances For
The embedding of G
into G □ H
given by b
.
Equations
- G.boxProdLeft H b = { toFun := fun (a : α) => (a, b), inj' := ⋯, map_rel_iff' := ⋯ }
Instances For
The embedding of H
into G □ H
given by a
.
Instances For
Turn a walk on G
into a walk on G □ H
.
Equations
- SimpleGraph.Walk.boxProdLeft H b = SimpleGraph.Walk.map (G.boxProdLeft H b).toHom
Instances For
Turn a walk on H
into a walk on G □ H
.
Equations
- SimpleGraph.Walk.boxProdRight G a = SimpleGraph.Walk.map (G.boxProdRight H a).toHom
Instances For
Project a walk on G □ H
to a walk on G
by discarding the moves in the direction of H
.
Equations
- One or more equations did not get rendered due to their size.
- SimpleGraph.Walk.nil.ofBoxProdLeft = SimpleGraph.Walk.nil
Instances For
Project a walk on G □ H
to a walk on H
by discarding the moves in the direction of G
.
Equations
- One or more equations did not get rendered due to their size.
- SimpleGraph.Walk.nil.ofBoxProdRight = SimpleGraph.Walk.nil
Instances For
Equations
- One or more equations did not get rendered due to their size.