The areas / V30. Combinatorics
Mathlib.Combinatorics.SimpleGraph.Sum
68 declarations. Mathlib docs · Source
theorem SimpleGraph.edgeSetSumEquiv.match_1.congr_eq_4 E1 #
∀ {V : Type u_1} {W : Type u_2} {G : SimpleGraph V} {H : SimpleGraph W}
(motive : (x x_1 : V ⊕ W) → (G ⊕g H).Adj x x_1 → Sort u_3) (x x_1 : V ⊕ W) (x_2 : (G ⊕g H).Adj x x_1)
(h_1 : (u v : V) → (h : (G ⊕g H).Adj (Sum.inl u) (Sum.inl v)) → motive (Sum.inl u) (Sum.inl v) h)
(h_2 : (u v : W) → (h : (G ⊕g H).Adj (Sum.inr u) (Sum.inr v)) → motive (Sum.inr u) (Sum.inr v) h)
(h_3 : (u : V) → (v : W) → (h : (G ⊕g H).Adj (Sum.inl u) (Sum.inr v)) → motive (Sum.inl u) (Sum.inr v) h)
(h_4 : (u : W) → (v : V) → (h : (G ⊕g H).Adj (Sum.inr u) (Sum.inl v)) → motive (Sum.inr u) (Sum.inl v) h) (u : W)
(v : V) (h : (G ⊕g H).Adj (Sum.inr u) (Sum.inl v)),
x = Sum.inr u →
x_1 = Sum.inl v →
x_2 ≍ h →
(match x, x_1, x_2 with
| Sum.inl u, Sum.inl v, h => h_1 u v h
| Sum.inr u, Sum.inr v, h => h_2 u v h
| Sum.inl u, Sum.inr v, h => h_3 u v h
| Sum.inr u, Sum.inl v, h => h_4 u v h) ≍
h_4 u v h
theorem SimpleGraph.edgeSetSumEquiv.match_1.congr_eq_2 E1 #
∀ {V : Type u_1} {W : Type u_2} {G : SimpleGraph V} {H : SimpleGraph W}
(motive : (x x_1 : V ⊕ W) → (G ⊕g H).Adj x x_1 → Sort u_3) (x x_1 : V ⊕ W) (x_2 : (G ⊕g H).Adj x x_1)
(h_1 : (u v : V) → (h : (G ⊕g H).Adj (Sum.inl u) (Sum.inl v)) → motive (Sum.inl u) (Sum.inl v) h)
(h_2 : (u v : W) → (h : (G ⊕g H).Adj (Sum.inr u) (Sum.inr v)) → motive (Sum.inr u) (Sum.inr v) h)
(h_3 : (u : V) → (v : W) → (h : (G ⊕g H).Adj (Sum.inl u) (Sum.inr v)) → motive (Sum.inl u) (Sum.inr v) h)
(h_4 : (u : W) → (v : V) → (h : (G ⊕g H).Adj (Sum.inr u) (Sum.inl v)) → motive (Sum.inr u) (Sum.inl v) h) (u v : W)
(h : (G ⊕g H).Adj (Sum.inr u) (Sum.inr v)),
x = Sum.inr u →
x_1 = Sum.inr v →
x_2 ≍ h →
(match x, x_1, x_2 with
| Sum.inl u, Sum.inl v, h => h_1 u v h
| Sum.inr u, Sum.inr v, h => h_2 u v h
| Sum.inl u, Sum.inr v, h => h_3 u v h
| Sum.inr u, Sum.inl v, h => h_4 u v h) ≍
h_2 u v h
theorem SimpleGraph.sum.match_1.congr_eq_2 E1 #
∀ {V : Type u_1} {W : Type u_2} (motive : V ⊕ W → V ⊕ W → Sort u_3) (x x_1 : V ⊕ W)
(h_1 : (u v : V) → motive (Sum.inl u) (Sum.inl v)) (h_2 : (u v : W) → motive (Sum.inr u) (Sum.inr v))
(h_3 : (x x_2 : V ⊕ W) → motive x x_2) (u v : W),
x = Sum.inr u →
x_1 = Sum.inr v →
(match x, x_1 with
| Sum.inl u, Sum.inl v => h_1 u v
| Sum.inr u, Sum.inr v => h_2 u v
| x, x_2 => h_3 x x_2) ≍
h_2 u v
theorem SimpleGraph.edgeSetSumEquiv.match_1.congr_eq_3 E1 #
∀ {V : Type u_1} {W : Type u_2} {G : SimpleGraph V} {H : SimpleGraph W}
(motive : (x x_1 : V ⊕ W) → (G ⊕g H).Adj x x_1 → Sort u_3) (x x_1 : V ⊕ W) (x_2 : (G ⊕g H).Adj x x_1)
(h_1 : (u v : V) → (h : (G ⊕g H).Adj (Sum.inl u) (Sum.inl v)) → motive (Sum.inl u) (Sum.inl v) h)
(h_2 : (u v : W) → (h : (G ⊕g H).Adj (Sum.inr u) (Sum.inr v)) → motive (Sum.inr u) (Sum.inr v) h)
(h_3 : (u : V) → (v : W) → (h : (G ⊕g H).Adj (Sum.inl u) (Sum.inr v)) → motive (Sum.inl u) (Sum.inr v) h)
(h_4 : (u : W) → (v : V) → (h : (G ⊕g H).Adj (Sum.inr u) (Sum.inl v)) → motive (Sum.inr u) (Sum.inl v) h) (u : V)
(v : W) (h : (G ⊕g H).Adj (Sum.inl u) (Sum.inr v)),
x = Sum.inl u →
x_1 = Sum.inr v →
x_2 ≍ h →
(match x, x_1, x_2 with
| Sum.inl u, Sum.inl v, h => h_1 u v h
| Sum.inr u, Sum.inr v, h => h_2 u v h
| Sum.inl u, Sum.inr v, h => h_3 u v h
| Sum.inr u, Sum.inl v, h => h_4 u v h) ≍
h_3 u v h
theorem SimpleGraph.sum.match_1.congr_eq_3 E1 #
∀ {V : Type u_1} {W : Type u_2} (motive : V ⊕ W → V ⊕ W → Sort u_3) (x x_1 : V ⊕ W)
(h_1 : (u v : V) → motive (Sum.inl u) (Sum.inl v)) (h_2 : (u v : W) → motive (Sum.inr u) (Sum.inr v))
(h_3 : (x x_2 : V ⊕ W) → motive x x_2) (x_2 x_3 : V ⊕ W),
x = x_2 →
x_1 = x_3 →
(∀ (u v : V), x_2 = Sum.inl u → x_3 = Sum.inl v → False) →
(∀ (u v : W), x_2 = Sum.inr u → x_3 = Sum.inr v → False) →
(match x, x_1 with
| Sum.inl u, Sum.inl v => h_1 u v
| Sum.inr u, Sum.inr v => h_2 u v
| x, x_6 => h_3 x x_6) ≍
h_3 x_2 x_3
theorem SimpleGraph.edgeSetSumEquiv.match_1.congr_eq_1 E1 #
∀ {V : Type u_1} {W : Type u_2} {G : SimpleGraph V} {H : SimpleGraph W}
(motive : (x x_1 : V ⊕ W) → (G ⊕g H).Adj x x_1 → Sort u_3) (x x_1 : V ⊕ W) (x_2 : (G ⊕g H).Adj x x_1)
(h_1 : (u v : V) → (h : (G ⊕g H).Adj (Sum.inl u) (Sum.inl v)) → motive (Sum.inl u) (Sum.inl v) h)
(h_2 : (u v : W) → (h : (G ⊕g H).Adj (Sum.inr u) (Sum.inr v)) → motive (Sum.inr u) (Sum.inr v) h)
(h_3 : (u : V) → (v : W) → (h : (G ⊕g H).Adj (Sum.inl u) (Sum.inr v)) → motive (Sum.inl u) (Sum.inr v) h)
(h_4 : (u : W) → (v : V) → (h : (G ⊕g H).Adj (Sum.inr u) (Sum.inl v)) → motive (Sum.inr u) (Sum.inl v) h) (u v : V)
(h : (G ⊕g H).Adj (Sum.inl u) (Sum.inl v)),
x = Sum.inl u →
x_1 = Sum.inl v →
x_2 ≍ h →
(match x, x_1, x_2 with
| Sum.inl u, Sum.inl v, h => h_1 u v h
| Sum.inr u, Sum.inr v, h => h_2 u v h
| Sum.inl u, Sum.inr v, h => h_3 u v h
| Sum.inr u, Sum.inl v, h => h_4 u v h) ≍
h_1 u v h
theorem SimpleGraph.sum.match_1.congr_eq_1 E1 #
∀ {V : Type u_1} {W : Type u_2} (motive : V ⊕ W → V ⊕ W → Sort u_3) (x x_1 : V ⊕ W)
(h_1 : (u v : V) → motive (Sum.inl u) (Sum.inl v)) (h_2 : (u v : W) → motive (Sum.inr u) (Sum.inr v))
(h_3 : (x x_2 : V ⊕ W) → motive x x_2) (u v : V),
x = Sum.inl u →
x_1 = Sum.inl v →
(match x, x_1 with
| Sum.inl u, Sum.inl v => h_1 u v
| Sum.inr u, Sum.inr v => h_2 u v
| x, x_2 => h_3 x x_2) ≍
h_1 u v
def SimpleGraph.sum E1 #
{V : Type u_3} → {W : Type u_5} → SimpleGraph V → SimpleGraph W → SimpleGraph (V ⊕ W)
Disjoint sum of G and H.
theorem SimpleGraph.sum_adj E0 #
∀ {V : Type u_3} {W : Type u_5} (G : SimpleGraph V) (H : SimpleGraph W) (x x_1 : V ⊕ W),
(G ⊕g H).Adj x x_1 =
match x, x_1 with
| Sum.inl u, Sum.inl v => G.Adj u v
| Sum.inr u, Sum.inr v => H.Adj u v
| x, x_2 => False
def SimpleGraph.«term_⊕g_» E1 #
Lean.TrailingParserDescr
Disjoint sum of G and H.
theorem SimpleGraph.sum_adj_inl E1 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} {v v' : V},
(G ⊕g H).Adj (Sum.inl v) (Sum.inl v') ↔ G.Adj v v'
theorem SimpleGraph.sum_adj_inr E1 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} {w w' : W},
(G ⊕g H).Adj (Sum.inr w) (Sum.inr w') ↔ H.Adj w w'
theorem SimpleGraph.map_inl_sup_map_inr E0 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W},
SimpleGraph.map Sum.inl G ⊔ SimpleGraph.map Sum.inr H = G ⊕g H
theorem SimpleGraph.map_inl E0 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V}, SimpleGraph.map Sum.inl G = G ⊕g ⊥
theorem SimpleGraph.map_inr E0 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V}, SimpleGraph.map Sum.inr G = ⊥ ⊕g G
def SimpleGraph.Iso.sumComm E1 #
{V : Type u_3} → {W : Type u_5} → {G : SimpleGraph V} → {H : SimpleGraph W} → G ⊕g H ≃g H ⊕g G
The disjoint sum is commutative up to isomorphism. Iso.sumComm as a graph isomorphism.
theorem SimpleGraph.Iso.sumComm_apply E0 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} (a : V ⊕ W), SimpleGraph.Iso.sumComm a = a.swap
theorem SimpleGraph.Iso.sumComm_symm_apply E0 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} (a : W ⊕ V),
(RelIso.symm SimpleGraph.Iso.sumComm) a = a.swap
def SimpleGraph.Iso.sumAssoc E1 #
{U : Type u_1} →
{V : Type u_3} →
{W : Type u_5} → {G : SimpleGraph V} → {H : SimpleGraph W} → {I : SimpleGraph U} → G ⊕g H ⊕g I ≃g G ⊕g (H ⊕g I)
The disjoint sum is associative up to isomorphism. Iso.sumAssoc as a graph isomorphism.
theorem SimpleGraph.Iso.sumAssoc_apply E0 #
∀ {U : Type u_1} {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} {I : SimpleGraph U}
(a : (V ⊕ W) ⊕ U), SimpleGraph.Iso.sumAssoc a = Sum.elim (Sum.elim Sum.inl (Sum.inr ∘ Sum.inl)) (Sum.inr ∘ Sum.inr) a
theorem SimpleGraph.Iso.sumAssoc_symm_apply E0 #
∀ {U : Type u_1} {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} {I : SimpleGraph U}
(a : V ⊕ W ⊕ U),
(RelIso.symm SimpleGraph.Iso.sumAssoc) a = Sum.elim (Sum.inl ∘ Sum.inl) (Sum.elim (Sum.inl ∘ Sum.inr) Sum.inr) a
def SimpleGraph.Embedding.sumInl E1 #
{V : Type u_3} → {W : Type u_5} → {G : SimpleGraph V} → {H : SimpleGraph W} → G ↪g G ⊕g H
The embedding of G into G ⊕g H.
theorem SimpleGraph.Embedding.sumInl_apply E0 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} (u : V),
SimpleGraph.Embedding.sumInl u = Sum.inl u
def SimpleGraph.Embedding.sumInr E1 #
{V : Type u_3} → {W : Type u_5} → {G : SimpleGraph V} → {H : SimpleGraph W} → H ↪g G ⊕g H
The embedding of H into G ⊕g H.
theorem SimpleGraph.Embedding.sumInr_apply E0 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} (u : W),
SimpleGraph.Embedding.sumInr u = Sum.inr u
def SimpleGraph.Hom.sum E1 #
{V : Type u_3} →
{V' : Type u_4} →
{W : Type u_5} →
{W' : Type u_6} →
{G : SimpleGraph V} →
{H : SimpleGraph W} → {G' : SimpleGraph V'} → {H' : SimpleGraph W'} → G →g G' → H →g H' → G ⊕g H →g G' ⊕g H'
Given homomorphisms f : G →g G' and g : H →g H', returns a homomorphism from G ⊕g H to
G' ⊕g H' that applies f to the left component and g to the right component.
theorem SimpleGraph.Hom.sum_apply E0 #
∀ {V : Type u_3} {V' : Type u_4} {W : Type u_5} {W' : Type u_6} {G : SimpleGraph V} {H : SimpleGraph W}
{G' : SimpleGraph V'} {H' : SimpleGraph W'} (f : G →g G') (g : H →g H') (a : V ⊕ W), (f.sum g) a = Sum.map (⇑f) (⇑g) a
theorem SimpleGraph.Hom.sum_comp_sumComm E1 #
∀ {V : Type u_3} {V' : Type u_4} {W : Type u_5} {W' : Type u_6} {G : SimpleGraph V} {H : SimpleGraph W}
{G' : SimpleGraph V'} {H' : SimpleGraph W'} (f : G →g G') (g : H →g H'),
(f.sum g).comp SimpleGraph.Iso.sumComm.toHom = SimpleGraph.Iso.sumComm.toHom.comp (g.sum f)
theorem SimpleGraph.Hom.sum_sum_comp_sumAssoc E1 #
∀ {U : Type u_1} {U' : Type u_2} {V : Type u_3} {V' : Type u_4} {W : Type u_5} {W' : Type u_6} {G : SimpleGraph V}
{H : SimpleGraph W} {I : SimpleGraph U} {G' : SimpleGraph V'} {H' : SimpleGraph W'} {I' : SimpleGraph U'}
(f : G →g G') (g : H →g H') (h : I →g I'),
(f.sum (g.sum h)).comp SimpleGraph.Iso.sumAssoc.toHom = SimpleGraph.Iso.sumAssoc.toHom.comp ((f.sum g).sum h)
def SimpleGraph.Embedding.sum E1 #
{V : Type u_3} →
{V' : Type u_4} →
{W : Type u_5} →
{W' : Type u_6} →
{G : SimpleGraph V} →
{H : SimpleGraph W} → {G' : SimpleGraph V'} → {H' : SimpleGraph W'} → G ↪g G' → H ↪g H' → G ⊕g H ↪g G' ⊕g H'
Given embeddings f : G ↪g G' and g : H ↪g H', returns an embedding from G ⊕g H to
G' ⊕g H' that applies f to the left component and g to the right component.
theorem SimpleGraph.Embedding.sum_apply E0 #
∀ {V : Type u_3} {V' : Type u_4} {W : Type u_5} {W' : Type u_6} {G : SimpleGraph V} {H : SimpleGraph W}
{G' : SimpleGraph V'} {H' : SimpleGraph W'} (f : G ↪g G') (g : H ↪g H') (a : V ⊕ W), (f.sum g) a = Sum.map (⇑f) (⇑g) a
theorem SimpleGraph.Embedding.toHom_sum E1 #
∀ {V : Type u_3} {V' : Type u_4} {W : Type u_5} {W' : Type u_6} {G : SimpleGraph V} {H : SimpleGraph W}
{G' : SimpleGraph V'} {H' : SimpleGraph W'} (f : G ↪g G') (g : H ↪g H'), (f.sum g).toHom = f.toHom.sum g.toHom
theorem SimpleGraph.Embedding.sum_comp_sumComm E1 #
∀ {V : Type u_3} {V' : Type u_4} {W : Type u_5} {W' : Type u_6} {G : SimpleGraph V} {H : SimpleGraph W}
{G' : SimpleGraph V'} {H' : SimpleGraph W'} (f : G ↪g G') (g : H ↪g H'),
(g.sum f).comp SimpleGraph.Iso.sumComm.toEmbedding = SimpleGraph.Iso.sumComm.toEmbedding.comp (f.sum g)
theorem SimpleGraph.Embedding.sum_sum_comp_sumAssoc E1 #
∀ {U : Type u_1} {U' : Type u_2} {V : Type u_3} {V' : Type u_4} {W : Type u_5} {W' : Type u_6} {G : SimpleGraph V}
{H : SimpleGraph W} {I : SimpleGraph U} {G' : SimpleGraph V'} {H' : SimpleGraph W'} {I' : SimpleGraph U'}
(f : G ↪g G') (g : H ↪g H') (h : I ↪g I'),
(f.sum (g.sum h)).comp SimpleGraph.Iso.sumAssoc.toEmbedding =
SimpleGraph.Iso.sumAssoc.toEmbedding.comp ((f.sum g).sum h)
def SimpleGraph.Iso.sumCongr E1 #
{V : Type u_3} →
{V' : Type u_4} →
{W : Type u_5} →
{W' : Type u_6} →
{G : SimpleGraph V} →
{H : SimpleGraph W} → {G' : SimpleGraph V'} → {H' : SimpleGraph W'} → G ≃g G' → H ≃g H' → G ⊕g H ≃g G' ⊕g H'
Given isomorphisms f : G ≃g G' and g : H ≃g H', returns an isomorphism from G ⊕g H to
G' ⊕g H' that applies f to the left component and g to the right component.
theorem SimpleGraph.Iso.sumCongr_apply E0 #
∀ {V : Type u_3} {V' : Type u_4} {W : Type u_5} {W' : Type u_6} {G : SimpleGraph V} {H : SimpleGraph W}
{G' : SimpleGraph V'} {H' : SimpleGraph W'} (f : G ≃g G') (g : H ≃g H') (a : V ⊕ W),
(f.sumCongr g) a = Sum.map (⇑f) (⇑g) a
theorem SimpleGraph.Iso.sumCongr_symm_apply E0 #
∀ {V : Type u_3} {V' : Type u_4} {W : Type u_5} {W' : Type u_6} {G : SimpleGraph V} {H : SimpleGraph W}
{G' : SimpleGraph V'} {H' : SimpleGraph W'} (f : G ≃g G') (g : H ≃g H') (a : V' ⊕ W'),
(RelIso.symm (f.sumCongr g)) a = Sum.map (⇑f.symm) (⇑g.symm) a
theorem SimpleGraph.Iso.sumCongr_toEquiv E0 #
∀ {V : Type u_3} {V' : Type u_4} {W : Type u_5} {W' : Type u_6} {G : SimpleGraph V} {H : SimpleGraph W}
{G' : SimpleGraph V'} {H' : SimpleGraph W'} (f : G ≃g G') (g : H ≃g H'), (f.sumCongr g).toEquiv = f.sumCongr g.toEquiv
theorem SimpleGraph.Iso.toHom_sumCongr E1 #
∀ {V : Type u_3} {V' : Type u_4} {W : Type u_5} {W' : Type u_6} {G : SimpleGraph V} {H : SimpleGraph W}
{G' : SimpleGraph V'} {H' : SimpleGraph W'} (f : G ≃g G') (g : H ≃g H'), (f.sumCongr g).toHom = f.toHom.sum g.toHom
theorem SimpleGraph.Iso.toEmbedding_sumCongr E1 #
∀ {V : Type u_3} {V' : Type u_4} {W : Type u_5} {W' : Type u_6} {G : SimpleGraph V} {H : SimpleGraph W}
{G' : SimpleGraph V'} {H' : SimpleGraph W'} (f : G ≃g G') (g : H ≃g H'),
(f.sumCongr g).toEmbedding = f.toEmbedding.sum g.toEmbedding
theorem SimpleGraph.Iso.sumComm_comp_sumCongr E1 #
∀ {V : Type u_3} {V' : Type u_4} {W : Type u_5} {W' : Type u_6} {G : SimpleGraph V} {H : SimpleGraph W}
{G' : SimpleGraph V'} {H' : SimpleGraph W'} (f : G ≃g G') (g : H ≃g H'),
SimpleGraph.Iso.sumComm.comp (f.sumCongr g) = (g.sumCongr f).comp SimpleGraph.Iso.sumComm
theorem SimpleGraph.Iso.sumAssoc_comp_sumCongr E1 #
∀ {U : Type u_1} {U' : Type u_2} {V : Type u_3} {V' : Type u_4} {W : Type u_5} {W' : Type u_6} {G : SimpleGraph V}
{H : SimpleGraph W} {I : SimpleGraph U} {G' : SimpleGraph V'} {H' : SimpleGraph W'} {I' : SimpleGraph U'}
(f : G ≃g G') (g : H ≃g H') (h : I ≃g I'),
SimpleGraph.Iso.sumAssoc.comp ((f.sumCongr g).sumCongr h) = (f.sumCongr (g.sumCongr h)).comp SimpleGraph.Iso.sumAssoc
def SimpleGraph.edgeSetSumEquiv E1 #
{V : Type u_3} →
{W : Type u_5} → {G : SimpleGraph V} → {H : SimpleGraph W} → ↑(G ⊕g H).edgeSet ≃ ↑G.edgeSet ⊕ ↑H.edgeSet
The edges of the disjoint sum of G and H are in bijection with
the disjoint sum of the edges of G and the edges of H
theorem SimpleGraph.not_adj_sum_inl_inr E1 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} (v : V) (w : W),
¬(G ⊕g H).Adj (Sum.inl v) (Sum.inr w)
theorem SimpleGraph.not_reachable_sum_inl_inr E1 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} (v : V) (w : W),
¬(G ⊕g H).Reachable (Sum.inl v) (Sum.inr w)
theorem SimpleGraph.not_preconnected_sum E1 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} [Nonempty V] [Nonempty W],
¬(G ⊕g H).Preconnected
theorem SimpleGraph.not_connected_sum E1 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} [Nonempty V] [Nonempty W], ¬(G ⊕g H).Connected
theorem SimpleGraph.Reachable.sum_sup_edge E1 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} {v v' : V} {w w' : W},
G.Reachable v v' →
H.Reachable w w' → ((G ⊕g H) ⊔ SimpleGraph.edge (Sum.inl v) (Sum.inr w)).Reachable (Sum.inl v') (Sum.inr w')
theorem SimpleGraph.Preconnected.sum_sup_edge E1 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} {v : V} {w : W},
G.Preconnected → H.Preconnected → ((G ⊕g H) ⊔ SimpleGraph.edge (Sum.inl v) (Sum.inr w)).Preconnected
theorem SimpleGraph.Connected.sum_sup_edge E1 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} {v : V} {w : W},
G.Connected → H.Connected → ((G ⊕g H) ⊔ SimpleGraph.edge (Sum.inl v) (Sum.inr w)).Connected
def SimpleGraph.Coloring.sum E1 #
{V : Type u_3} →
{W : Type u_5} →
{γ : Type u_7} → {G : SimpleGraph V} → {H : SimpleGraph W} → G.Coloring γ → H.Coloring γ → (G ⊕g H).Coloring γ
Color G ⊕g H with colorings of G and H
def SimpleGraph.Coloring.sumLeft E1 #
{V : Type u_3} →
{W : Type u_5} → {γ : Type u_7} → {G : SimpleGraph V} → {H : SimpleGraph W} → (G ⊕g H).Coloring γ → G.Coloring γ
Get coloring of G from coloring of G ⊕g H
def SimpleGraph.Coloring.sumRight E1 #
{V : Type u_3} →
{W : Type u_5} → {γ : Type u_7} → {G : SimpleGraph V} → {H : SimpleGraph W} → (G ⊕g H).Coloring γ → H.Coloring γ
Get coloring of H from coloring of G ⊕g H
theorem SimpleGraph.Coloring.sumLeft_sum E0 #
∀ {V : Type u_3} {W : Type u_5} {γ : Type u_7} {G : SimpleGraph V} {H : SimpleGraph W} (cG : G.Coloring γ)
(cH : H.Coloring γ), (cG.sum cH).sumLeft = cG
theorem SimpleGraph.Coloring.sumRight_sum E0 #
∀ {V : Type u_3} {W : Type u_5} {γ : Type u_7} {G : SimpleGraph V} {H : SimpleGraph W} (cG : G.Coloring γ)
(cH : H.Coloring γ), (cG.sum cH).sumRight = cH
theorem SimpleGraph.Coloring.sum_sumLeft_sumRight E0 #
∀ {V : Type u_3} {W : Type u_5} {γ : Type u_7} {G : SimpleGraph V} {H : SimpleGraph W} (c : (G ⊕g H).Coloring γ),
c.sumLeft.sum c.sumRight = c
def SimpleGraph.Coloring.sumEquiv E1 #
{V : Type u_3} →
{W : Type u_5} →
{γ : Type u_7} → {G : SimpleGraph V} → {H : SimpleGraph W} → (G ⊕g H).Coloring γ ≃ G.Coloring γ × H.Coloring γ
Bijection between (G ⊕g H).Coloring γ and G.Coloring γ × H.Coloring γ
def SimpleGraph.Coloring.sumFin E1 #
{V : Type u_3} →
{W : Type u_5} →
{G : SimpleGraph V} →
{H : SimpleGraph W} → {n m : ℕ} → G.Coloring (Fin n) → H.Coloring (Fin m) → (G ⊕g H).Coloring (Fin (max n m))
Color G ⊕g H with Fin (n + m) given a coloring of G with Fin n and a coloring of H
with Fin m
theorem SimpleGraph.Colorable.sum_max E1 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} {n m : ℕ},
G.Colorable n → H.Colorable m → (G ⊕g H).Colorable (max n m)
theorem SimpleGraph.Colorable.of_sum_left E1 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} {n : ℕ}, (G ⊕g H).Colorable n → G.Colorable n
theorem SimpleGraph.Colorable.of_sum_right E1 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} {n : ℕ}, (G ⊕g H).Colorable n → H.Colorable n
theorem SimpleGraph.colorable_sum E0 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} {n : ℕ},
(G ⊕g H).Colorable n ↔ G.Colorable n ∧ H.Colorable n
theorem SimpleGraph.chromaticNumber_le_sum_left E1 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W}, G.chromaticNumber ≤ (G ⊕g H).chromaticNumber
theorem SimpleGraph.chromaticNumber_le_sum_right E1 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W}, H.chromaticNumber ≤ (G ⊕g H).chromaticNumber
theorem SimpleGraph.chromaticNumber_sum E0 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W},
(G ⊕g H).chromaticNumber = max G.chromaticNumber H.chromaticNumber
theorem SimpleGraph.neighborSet_sum_inl E1 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} (v : V),
(G ⊕g H).neighborSet (Sum.inl v) = Sum.inl '' G.neighborSet v
theorem SimpleGraph.neighborSet_sum_inr E1 #
∀ {V : Type u_3} {W : Type u_5} {G : SimpleGraph V} {H : SimpleGraph W} (w : W),
(G ⊕g H).neighborSet (Sum.inr w) = Sum.inr '' H.neighborSet w
instance SimpleGraph.instLocallyFiniteSumSumOfDecidableEq E0 #
{V : Type u_3} →
{W : Type u_5} →
{G : SimpleGraph V} →
{H : SimpleGraph W} →
[DecidableEq V] → [DecidableEq W] → [G.LocallyFinite] → [H.LocallyFinite] → (G ⊕g H).LocallyFinite