The areas / V30. Combinatorics
Mathlib.Combinatorics.SimpleGraph.Clique
194 declarations and 2 deprecated aliases. Mathlib docs · Source
Graph cliques
This file defines cliques in simple graphs. A clique is a set of vertices that are pairwise adjacent.
Main declarations
SimpleGraph.IsClique: Predicate for a set of vertices to be a clique.SimpleGraph.IsNClique: Predicate for a set of vertices to be ann-clique.SimpleGraph.cliqueFinset: Finset ofn-cliques of a graph.SimpleGraph.CliqueFree: Predicate for a graph to have non-cliques.
Cliques
n-cliques
Graphs without cliques
Set of cliques
Clique number
Finset of cliques
Independent Sets
N-Independent sets
Graphs without independent sets
Set of independent sets
Independence Number
Finset of independent sets
theorem SimpleGraph.IsMaximumClique.congr_simp E1 #
∀ {α : Type u_3} [inst : Finite α] (G G_1 : SimpleGraph α),
G = G_1 → ∀ (s s_1 : Finset α), s = s_1 → G.IsMaximumClique s = G_1.IsMaximumClique s_1
theorem SimpleGraph.cliqueFinset.congr_simp E1 #
∀ {α : Type u_1} (G G_1 : SimpleGraph α),
G = G_1 →
∀ [inst : Fintype α] [inst_1 : DecidableEq α] {inst_2 : DecidableRel G.Adj} [inst_3 : DecidableRel G_1.Adj]
(n n_1 : ℕ), n = n_1 → G.cliqueFinset n = G_1.cliqueFinset n_1
theorem SimpleGraph.IsMaximumIndepSet.congr_simp E1 #
∀ {α : Type u_3} [inst : Finite α] (G G_1 : SimpleGraph α),
G = G_1 → ∀ (s s_1 : Finset α), s = s_1 → G.IsMaximumIndepSet s = G_1.IsMaximumIndepSet s_1
abbrev SimpleGraph.IsClique E3 #
{α : Type u_1} → SimpleGraph α → Set α → Prop
A clique in a graph is a set of vertices that are pairwise adjacent.
theorem SimpleGraph.isClique_iff E0 #
∀ {α : Type u_1} (G : SimpleGraph α) {s : Set α}, G.IsClique s ↔ s.Pairwise G.Adj
theorem SimpleGraph.not_isClique_iff E0 #
∀ {α : Type u_1} (G : SimpleGraph α) {s : Set α}, ¬G.IsClique s ↔ ∃ v w, v ≠ w ∧ ¬G.Adj ↑v ↑w
theorem SimpleGraph.induce_eq_top E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {s : Set α}, SimpleGraph.induce s G = ⊤ ↔ G.IsClique s
theorem SimpleGraph.IsClique.top_isIndContained E1 #
∀ {α : Type u_1} (G : SimpleGraph α) {s : Set α}, G.IsClique s → (SimpleGraph.completeGraph ↑s).IsIndContained G
theorem SimpleGraph.isClique_iff_isChain_adj E1 #
∀ {α : Type u_1} (G : SimpleGraph α) {s : Set α}, G.IsClique s ↔ IsChain G.Adj s
instance SimpleGraph.instDecidableIsCliqueCoeFinsetOfDecidableEqOfDecidableRelAdj E0 #
{α : Type u_1} →
(G : SimpleGraph α) → [DecidableEq α] → [DecidableRel G.Adj] → {s : Finset α} → Decidable (G.IsClique ↑s)
theorem SimpleGraph.isClique_empty E1 #
∀ {α : Type u_1} {G : SimpleGraph α}, G.IsClique ∅
theorem SimpleGraph.isClique_singleton E1 #
∀ {α : Type u_1} {G : SimpleGraph α} (a : α), G.IsClique {a}
theorem SimpleGraph.IsClique.of_subsingleton E1 #
∀ {α : Type u_1} {s : Set α} {G : SimpleGraph α}, s.Subsingleton → G.IsClique s
theorem SimpleGraph.isClique_pair E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {a b : α}, G.IsClique {a, b} ↔ a ≠ b → G.Adj a b
theorem SimpleGraph.isClique_insert E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {s : Set α} {a : α},
G.IsClique (insert a s) ↔ G.IsClique s ∧ ∀ b ∈ s, a ≠ b → G.Adj a b
theorem SimpleGraph.isClique_insert_of_notMem E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {s : Set α} {a : α},
a ∉ s → (G.IsClique (insert a s) ↔ G.IsClique s ∧ ∀ b ∈ s, G.Adj a b)
theorem SimpleGraph.IsClique.insert E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {s : Set α} {a : α},
G.IsClique s → (∀ b ∈ s, a ≠ b → G.Adj a b) → G.IsClique (insert a s)
theorem SimpleGraph.IsClique.mono E1 #
∀ {α : Type u_1} {G H : SimpleGraph α} {s : Set α}, G ≤ H → G.IsClique s → H.IsClique s
theorem SimpleGraph.IsClique.subset E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {s t : Set α}, t ⊆ s → G.IsClique s → G.IsClique t
theorem SimpleGraph.IsClique.top E0 #
∀ {α : Type u_1} (s : Set α), ⊤.IsClique s
theorem SimpleGraph.isClique_bot_iff E0 #
∀ {α : Type u_1} {s : Set α}, ⊥.IsClique s ↔ s.Subsingleton
theorem SimpleGraph.IsClique.subsingleton E1 #
∀ {α : Type u_1} {s : Set α}, ⊥.IsClique s → s.Subsingleton
Alias of the forward direction of SimpleGraph.isClique_bot_iff.
theorem SimpleGraph.isClique_univ E0 #
∀ {α : Type u_1} {G : SimpleGraph α}, G.IsClique Set.univ ↔ G = ⊤
theorem SimpleGraph.IsClique.map E1 #
∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {s : Set α},
G.IsClique s → ∀ {f : α ↪ β}, (SimpleGraph.map (⇑f) G).IsClique (⇑f '' s)
theorem SimpleGraph.IsClique.inter_left E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {s : Set α}, G.IsClique s → ∀ (t : Set α), G.IsClique (s ∩ t)
theorem SimpleGraph.IsClique.inter_right E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {s : Set α}, G.IsClique s → ∀ (t : Set α), G.IsClique (t ∩ s)
theorem SimpleGraph.isClique_sUnion E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {S : Set (Set α)},
DirectedOn (fun x1 x2 ↦ x1 ⊆ x2) S → (G.IsClique (⋃₀ S) ↔ ∀ s ∈ S, G.IsClique s)
theorem SimpleGraph.isClique_iUnion E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {ι : Type u_3} {s : ι → Set α},
Directed (fun x1 x2 ↦ x1 ⊆ x2) s → (G.IsClique (⋃ i, s i) ↔ ∀ (i : ι), G.IsClique (s i))
theorem SimpleGraph.isClique_map_iff_of_nontrivial E1 #
∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {f : α ↪ β} {t : Set β},
t.Nontrivial → ((SimpleGraph.map (⇑f) G).IsClique t ↔ ∃ s, G.IsClique s ∧ ⇑f '' s = t)
theorem SimpleGraph.isClique_map_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {f : α ↪ β} {t : Set β},
(SimpleGraph.map (⇑f) G).IsClique t ↔ t.Subsingleton ∨ ∃ s, G.IsClique s ∧ ⇑f '' s = t
theorem SimpleGraph.isClique_map_image_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {s : Set α} {f : α ↪ β},
(SimpleGraph.map (⇑f) G).IsClique (⇑f '' s) ↔ G.IsClique s
theorem SimpleGraph.isClique_induce_iff E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {s : Set α} {t : Set ↑s},
(SimpleGraph.induce s G).IsClique t ↔ G.IsClique (Subtype.val '' t)
theorem SimpleGraph.isClique_map_finset_iff_of_nontrivial E1 #
∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {f : α ↪ β} {t : Finset β},
t.Nontrivial → ((SimpleGraph.map (⇑f) G).IsClique ↑t ↔ ∃ s, G.IsClique ↑s ∧ Finset.map f s = t)
theorem SimpleGraph.isClique_map_finset_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {f : α ↪ β} {t : Finset β},
(SimpleGraph.map (⇑f) G).IsClique ↑t ↔ t.card ≤ 1 ∨ ∃ s, G.IsClique ↑s ∧ Finset.map f s = t
theorem SimpleGraph.IsClique.finsetMap E1 #
∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {f : α ↪ β} {s : Finset α},
G.IsClique ↑s → (SimpleGraph.map (⇑f) G).IsClique ↑(Finset.map f s)
theorem SimpleGraph.IsClique.of_induce E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {S : G.Subgraph} {F : Set α} {A : Set ↑F},
(S.induce F).coe.IsClique A → G.IsClique (Subtype.val '' A)
If a set of vertices A is a clique in subgraph of G induced by a superset of A,
its embedding is a clique in G.
theorem SimpleGraph.IsClique.sdiff_of_sup_edge E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {v w : α} {s : Set α}, (G ⊔ SimpleGraph.edge v w).IsClique s → G.IsClique (s \ {v})
theorem SimpleGraph.isClique_sup_edge_of_ne_sdiff E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {v w : α} {s : Set α},
v ≠ w → G.IsClique (s \ {v}) → G.IsClique (s \ {w}) → (G ⊔ SimpleGraph.edge v w).IsClique s
theorem SimpleGraph.isClique_sup_edge_of_ne_iff E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {v w : α} {s : Set α},
v ≠ w → ((G ⊔ SimpleGraph.edge v w).IsClique s ↔ G.IsClique (s \ {v}) ∧ G.IsClique (s \ {w}))
theorem SimpleGraph.isClique_range_copy_top E1 #
∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} (f : ⊤.Copy G), G.IsClique (Set.range ⇑f)
The vertices in a copy of ⊤ are a clique.
structure SimpleGraph.IsNClique E3 #
{α : Type u_1} → SimpleGraph α → ℕ → Finset α → Prop
An n-clique in a graph is a set of n vertices which are pairwise connected.
ctor SimpleGraph.IsNClique.mk E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} {s : Finset α}, G.IsClique ↑s → s.card = n → G.IsNClique n s
theorem SimpleGraph.IsNClique.isClique E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} {s : Finset α}, G.IsNClique n s → G.IsClique ↑s
theorem SimpleGraph.IsNClique.card_eq E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} {s : Finset α}, G.IsNClique n s → s.card = n
theorem SimpleGraph.isNClique_iff E0 #
∀ {α : Type u_1} (G : SimpleGraph α) {n : ℕ} {s : Finset α}, G.IsNClique n s ↔ G.IsClique ↑s ∧ s.card = n
instance SimpleGraph.instDecidableIsNCliqueOfDecidableEqOfDecidableRelAdj E0 #
{α : Type u_1} →
(G : SimpleGraph α) → [DecidableEq α] → [DecidableRel G.Adj] → {n : ℕ} → {s : Finset α} → Decidable (G.IsNClique n s)
theorem SimpleGraph.isNClique_empty E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ}, G.IsNClique n ∅ ↔ n = 0
theorem SimpleGraph.isNClique_singleton E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} {a : α}, G.IsNClique n {a} ↔ n = 1
theorem SimpleGraph.IsNClique.mono E1 #
∀ {α : Type u_1} {G H : SimpleGraph α} {n : ℕ} {s : Finset α}, G ≤ H → G.IsNClique n s → H.IsNClique n s
theorem SimpleGraph.IsNClique.map E1 #
∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {n : ℕ} {s : Finset α},
G.IsNClique n s → ∀ {f : α ↪ β}, (SimpleGraph.map (⇑f) G).IsNClique n (Finset.map f s)
theorem SimpleGraph.isNClique_map_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {n : ℕ},
1 < n →
∀ {t : Finset β} {f : α ↪ β}, (SimpleGraph.map (⇑f) G).IsNClique n t ↔ ∃ s, G.IsNClique n s ∧ Finset.map f s = t
theorem SimpleGraph.isNClique_bot_iff E0 #
∀ {α : Type u_1} {n : ℕ} {s : Finset α}, ⊥.IsNClique n s ↔ n ≤ 1 ∧ s.card = n
theorem SimpleGraph.isNClique_zero E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {s : Finset α}, G.IsNClique 0 s ↔ s = ∅
theorem SimpleGraph.isNClique_one E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {s : Finset α}, G.IsNClique 1 s ↔ ∃ a, s = {a}
theorem SimpleGraph.IsNClique.insert E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} {s : Finset α} {a : α} [inst : DecidableEq α],
G.IsNClique n s → (∀ b ∈ s, G.Adj a b) → G.IsNClique (n + 1) (insert a s)
theorem SimpleGraph.IsNClique.erase_of_mem E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} {s : Finset α} {a : α} [inst : DecidableEq α],
G.IsNClique n s → a ∈ s → G.IsNClique (n - 1) (s.erase a)
theorem SimpleGraph.IsNClique.insert_erase E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} {s : Finset α} {a b : α} [inst : DecidableEq α],
G.IsNClique n s → (∀ w ∈ s \ {b}, G.Adj a w) → b ∈ s → G.IsNClique n (insert a (s.erase b))
theorem SimpleGraph.is3Clique_triple_iff E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {a b c : α} [inst : DecidableEq α],
G.IsNClique 3 {a, b, c} ↔ G.Adj a b ∧ G.Adj a c ∧ G.Adj b c
theorem SimpleGraph.is3Clique_iff E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {s : Finset α} [inst : DecidableEq α],
G.IsNClique 3 s ↔ ∃ a b c, G.Adj a b ∧ G.Adj a c ∧ G.Adj b c ∧ s = {a, b, c}
theorem SimpleGraph.is3Clique_iff_exists_cycle_length_three E1 #
∀ {α : Type u_1} {G : SimpleGraph α}, (∃ s, G.IsNClique 3 s) ↔ ∃ u w, w.IsCycle ∧ w.length = 3
theorem SimpleGraph.IsNClique.of_induce E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {S : G.Subgraph} {F : Set α} {s : Finset { x // x ∈ F }} {n : ℕ},
(S.induce F).coe.IsNClique n s → G.IsNClique n (Finset.map { toFun := Subtype.val, inj' := ⋯ } s)
If a set of vertices A is an n-clique in subgraph of G induced by a superset of A,
its embedding is an n-clique in G.
theorem SimpleGraph.IsNClique.erase_of_sup_edge_of_mem E1 #
∀ {α : Type u_1} {G : SimpleGraph α} [inst : DecidableEq α] {v w : α} {s : Finset α} {n : ℕ},
(G ⊔ SimpleGraph.edge v w).IsNClique n s → v ∈ s → G.IsNClique (n - 1) (s.erase v)
theorem SimpleGraph.isNClique_map_copy_top E1 #
∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} [inst : Fintype β] (f : ⊤.Copy G),
G.IsNClique (Fintype.card β) (Finset.map f.toEmbedding Finset.univ)
The vertices in a copy of ⊤ : SimpleGraph β are a card β-clique.
theorem SimpleGraph.isNClique_induce_iff E0 #
∀ {α : Type u_1} {G : SimpleGraph α} (s : Set α) (t : Finset ↑s) (n : ℕ),
(SimpleGraph.induce s G).IsNClique n t ↔ G.IsNClique n (Finset.map (Function.Embedding.subtype fun x ↦ x ∈ s) t)
def SimpleGraph.CliqueFree E3 #
{α : Type u_1} → SimpleGraph α → ℕ → Prop
G.CliqueFree n means that G has no n-cliques.
theorem SimpleGraph.IsNClique.not_cliqueFree E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} {s : Finset α}, G.IsNClique n s → ¬G.CliqueFree n
theorem SimpleGraph.IsContained.not_cliqueFree E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ}, (SimpleGraph.completeGraph (Fin n)).IsContained G → ¬G.CliqueFree n
def SimpleGraph.topEmbeddingOfNotCliqueFree E1 #
{α : Type u_1} → {G : SimpleGraph α} → {n : ℕ} → ¬G.CliqueFree n → SimpleGraph.completeGraph (Fin n) ↪g G
An embedding of a complete graph that witnesses the fact that the graph is not clique-free.
theorem SimpleGraph.not_cliqueFree_iff_top_isContained E1 #
∀ {α : Type u_1} {G : SimpleGraph α} (n : ℕ), ¬G.CliqueFree n ↔ (SimpleGraph.completeGraph (Fin n)).IsContained G
theorem SimpleGraph.cliqueFree_iff_free_top_fin E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ}, G.CliqueFree n ↔ (SimpleGraph.completeGraph (Fin n)).Free G
theorem SimpleGraph.CliqueFree.free_top_fin E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ}, G.CliqueFree n → (SimpleGraph.completeGraph (Fin n)).Free G
Alias of the forward direction of SimpleGraph.cliqueFree_iff_free_top_fin.
theorem SimpleGraph.cliqueFree_iff_isEmpty_copy_top_fin E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ}, G.CliqueFree n ↔ IsEmpty ((SimpleGraph.completeGraph (Fin n)).Copy G)
theorem SimpleGraph.cliqueFree_card_iff_free_top E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {β : Type u_3} [inst : Fintype β], G.CliqueFree (Fintype.card β) ↔ ⊤.Free G
A simple graph has no card β-cliques iff it does not contain ⊤ : SimpleGraph β.
theorem SimpleGraph.IsContained.not_cliqueFree_card E1 #
∀ {α : Type u_1} {G : SimpleGraph α} [inst : Fintype α],
(SimpleGraph.completeGraph α).IsContained G → ¬G.CliqueFree (Fintype.card α)
theorem SimpleGraph.not_cliqueFree_zero E0 #
∀ {α : Type u_1} {G : SimpleGraph α}, ¬G.CliqueFree 0
theorem SimpleGraph.cliqueFree_bot E0 #
∀ {α : Type u_1} {n : ℕ}, 2 ≤ n → ⊥.CliqueFree n
theorem SimpleGraph.CliqueFree.mono E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {m n : ℕ}, m ≤ n → G.CliqueFree m → G.CliqueFree n
theorem SimpleGraph.CliqueFree.anti_isContained E1 #
∀ {α : Type u_1} {G H : SimpleGraph α} {n : ℕ}, G.IsContained H → H.CliqueFree n → G.CliqueFree n
theorem SimpleGraph.CliqueFree.anti E1 #
∀ {α : Type u_1} {G H : SimpleGraph α} {n : ℕ}, G ≤ H → H.CliqueFree n → G.CliqueFree n
theorem SimpleGraph.Free.cliqueFree_natCard E1 #
∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} [Finite β] {H : SimpleGraph β}, H.Free G → G.CliqueFree (Nat.card β)
theorem SimpleGraph.Free.cliqueFree E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} {H : SimpleGraph (Fin n)}, H.Free G → G.CliqueFree n
theorem SimpleGraph.CliqueFree.comap E1 #
∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {n : ℕ} {H : SimpleGraph β},
H.IsContained G → G.CliqueFree n → H.CliqueFree n
If a graph is cliquefree, any graph that is contained in it is also cliquefree.
theorem SimpleGraph.cliqueFree_map_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {n : ℕ} {f : α ↪ β} [Nonempty α],
(SimpleGraph.map (⇑f) G).CliqueFree n ↔ G.CliqueFree n
theorem SimpleGraph.cliqueFree_of_card_lt E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} [inst : Fintype α], Fintype.card α < n → G.CliqueFree n
See SimpleGraph.cliqueFree_of_chromaticNumber_lt for a tighter bound.
theorem SimpleGraph.cliqueFree_completeMultipartiteGraph E1 #
∀ {n : ℕ} {ι : Type u_3} [inst : Fintype ι] (V : ι → Type u_4),
Fintype.card ι < n → (SimpleGraph.completeMultipartiteGraph V).CliqueFree n
A complete r-partite graph has no n-cliques for r < n.
def SimpleGraph.completeMultipartiteGraph.topEmbedding E1 #
{ι : Type u_3} → (V : ι → Type u_4) → ((i : ι) → V i) → ⊤ ↪g SimpleGraph.completeMultipartiteGraph V
Embedding of the complete graph on ι into completeMultipartiteGraph on ι nonempty parts
theorem SimpleGraph.completeMultipartiteGraph.topEmbedding_apply_fst E0 #
∀ {ι : Type u_3} (V : ι → Type u_4) (f : (i : ι) → V i) (i : ι),
((SimpleGraph.completeMultipartiteGraph.topEmbedding V f) i).fst = i
theorem SimpleGraph.completeMultipartiteGraph.topEmbedding_apply_snd E0 #
∀ {ι : Type u_3} (V : ι → Type u_4) (f : (i : ι) → V i) (i : ι),
((SimpleGraph.completeMultipartiteGraph.topEmbedding V f) i).snd = f i
theorem SimpleGraph.completeMultipartiteGraph.not_cliqueFree_of_le_card E1 #
∀ {n : ℕ} {ι : Type u_3} (V : ι → Type u_4) [inst : Fintype ι] (f : (i : ι) → V i),
n ≤ Fintype.card ι → ¬(SimpleGraph.completeMultipartiteGraph V).CliqueFree n
theorem SimpleGraph.completeMultipartiteGraph.not_cliqueFree_of_infinite E1 #
∀ {n : ℕ} {ι : Type u_3} (V : ι → Type u_4) [Infinite ι] (f : (i : ι) → V i),
¬(SimpleGraph.completeMultipartiteGraph V).CliqueFree n
theorem SimpleGraph.completeMultipartiteGraph.not_cliqueFree_of_le_enatCard E1 #
∀ {n : ℕ} {ι : Type u_3} (V : ι → Type u_4) (f : (i : ι) → V i),
↑n ≤ ENat.card ι → ¬(SimpleGraph.completeMultipartiteGraph V).CliqueFree n
theorem SimpleGraph.CliqueFree.replaceVertex E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} [inst : DecidableEq α],
G.CliqueFree n → ∀ (s t : α), (G.replaceVertex s t).CliqueFree n
Clique-freeness is preserved by replaceVertex.
theorem SimpleGraph.cliqueFree_one E0 #
∀ {α : Type u_1} {G : SimpleGraph α}, G.CliqueFree 1 ↔ IsEmpty α
theorem SimpleGraph.cliqueFree_two E0 #
∀ {α : Type u_1} {G : SimpleGraph α}, G.CliqueFree 2 ↔ G = ⊥
theorem SimpleGraph.CliqueFree.mem_of_sup_edge_isNClique E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {x y : α} {t : Finset α} {n : ℕ},
G.CliqueFree n → (G ⊔ SimpleGraph.edge x y).IsNClique n t → x ∈ t
theorem SimpleGraph.CliqueFree.sup_edge E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ},
G.CliqueFree n → ∀ (v w : α), (G ⊔ SimpleGraph.edge v w).CliqueFree (n + 1)
Adding an edge increases the clique number by at most one.
theorem SimpleGraph.IsNClique.exists_not_adj_of_cliqueFree_succ E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} {s : Finset α},
G.IsNClique n s → G.CliqueFree (n + 1) → ∀ (x : α), ∃ y ∈ s, ¬G.Adj x y
theorem SimpleGraph.exists_of_maximal_cliqueFree_not_adj E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} [inst : DecidableEq α],
Maximal (fun H ↦ H.CliqueFree (n + 1)) G →
∀ {x y : α}, x ≠ y → ¬G.Adj x y → ∃ s, x ∉ s ∧ y ∉ s ∧ G.IsNClique n (insert x s) ∧ G.IsNClique n (insert y s)
def SimpleGraph.CliqueFreeOn E1 #
{α : Type u_1} → SimpleGraph α → Set α → ℕ → Prop
G.CliqueFreeOn s n means that G has no n-cliques contained in s.
theorem SimpleGraph.CliqueFreeOn.subset E1 #
∀ {α : Type u_1} (G : SimpleGraph α) {s₁ s₂ : Set α} {n : ℕ}, s₁ ⊆ s₂ → G.CliqueFreeOn s₂ n → G.CliqueFreeOn s₁ n
theorem SimpleGraph.CliqueFreeOn.mono E1 #
∀ {α : Type u_1} (G : SimpleGraph α) {s : Set α} {m n : ℕ}, m ≤ n → G.CliqueFreeOn s m → G.CliqueFreeOn s n
theorem SimpleGraph.CliqueFreeOn.anti E1 #
∀ {α : Type u_1} (G H : SimpleGraph α) {s : Set α} {n : ℕ}, G ≤ H → H.CliqueFreeOn s n → G.CliqueFreeOn s n
theorem SimpleGraph.cliqueFreeOn_empty E0 #
∀ {α : Type u_1} (G : SimpleGraph α) {n : ℕ}, G.CliqueFreeOn ∅ n ↔ n ≠ 0
theorem SimpleGraph.cliqueFreeOn_singleton E0 #
∀ {α : Type u_1} (G : SimpleGraph α) {a : α} {n : ℕ}, G.CliqueFreeOn {a} n ↔ 1 < n
theorem SimpleGraph.cliqueFreeOn_univ E0 #
∀ {α : Type u_1} (G : SimpleGraph α) {n : ℕ}, G.CliqueFreeOn Set.univ n ↔ G.CliqueFree n
theorem SimpleGraph.CliqueFree.cliqueFreeOn E1 #
∀ {α : Type u_1} (G : SimpleGraph α) {s : Set α} {n : ℕ}, G.CliqueFree n → G.CliqueFreeOn s n
theorem SimpleGraph.cliqueFreeOn_of_card_lt E1 #
∀ {α : Type u_1} (G : SimpleGraph α) {n : ℕ} {s : Finset α}, s.card < n → G.CliqueFreeOn (↑s) n
theorem SimpleGraph.cliqueFreeOn_two E0 #
∀ {α : Type u_1} (G : SimpleGraph α) {s : Set α}, G.CliqueFreeOn s 2 ↔ s.Pairwise G.Adjᶜ
theorem SimpleGraph.CliqueFreeOn.of_succ E1 #
∀ {α : Type u_1} (G : SimpleGraph α) {s : Set α} {a : α} {n : ℕ},
G.CliqueFreeOn s (n + 1) → a ∈ s → G.CliqueFreeOn (s ∩ G.neighborSet a) n
theorem SimpleGraph.cliqueFree_induce_iff E0 #
∀ {α : Type u_1} (G : SimpleGraph α) (s : Set α) (n : ℕ), (SimpleGraph.induce s G).CliqueFree n ↔ G.CliqueFreeOn s n
def SimpleGraph.cliqueSet E1 #
{α : Type u_1} → SimpleGraph α → ℕ → Set (Finset α)
The n-cliques in a graph as a set.
theorem SimpleGraph.mem_cliqueSet_iff E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} {s : Finset α}, s ∈ G.cliqueSet n ↔ G.IsNClique n s
theorem SimpleGraph.cliqueSet_eq_empty_iff E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ}, G.cliqueSet n = ∅ ↔ G.CliqueFree n
theorem SimpleGraph.CliqueFree.cliqueSet E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ}, G.CliqueFree n → G.cliqueSet n = ∅
Alias of the reverse direction of SimpleGraph.cliqueSet_eq_empty_iff.
theorem SimpleGraph.cliqueSet_mono E1 #
∀ {α : Type u_1} {G H : SimpleGraph α} {n : ℕ}, G ≤ H → G.cliqueSet n ⊆ H.cliqueSet n
theorem SimpleGraph.cliqueSet_mono' E1 #
∀ {α : Type u_1} {G H : SimpleGraph α}, G ≤ H → G.cliqueSet ≤ H.cliqueSet
theorem SimpleGraph.cliqueSet_zero E0 #
∀ {α : Type u_1} (G : SimpleGraph α), G.cliqueSet 0 = {∅}
theorem SimpleGraph.cliqueSet_one E0 #
∀ {α : Type u_1} (G : SimpleGraph α), G.cliqueSet 1 = Set.range singleton
theorem SimpleGraph.cliqueSet_bot E0 #
∀ {α : Type u_1} {n : ℕ}, 1 < n → ⊥.cliqueSet n = ∅
theorem SimpleGraph.cliqueSet_map E0 #
∀ {α : Type u_1} {β : Type u_2} {n : ℕ},
n ≠ 1 → ∀ (G : SimpleGraph α) (f : α ↪ β), (SimpleGraph.map (⇑f) G).cliqueSet n = Finset.map f '' G.cliqueSet n
theorem SimpleGraph.cliqueSet_map_of_equiv E0 #
∀ {α : Type u_1} {β : Type u_2} (G : SimpleGraph α) (e : α ≃ β) (n : ℕ),
(SimpleGraph.map (⇑e) G).cliqueSet n = Finset.map e.toEmbedding '' G.cliqueSet n
def SimpleGraph.cliqueNum E1 #
{α : Type u_3} → SimpleGraph α → ℕ
The maximum number of vertices in a clique of a graph G.
theorem SimpleGraph.IsClique.card_le_cliqueNum E1 #
∀ {α : Type u_3} {G : SimpleGraph α} [Finite α] {t : Finset α}, G.IsClique ↑t → t.card ≤ G.cliqueNum
theorem SimpleGraph.cliqueNum_ne_zero_of_finite E1 #
∀ {α : Type u_3} (G : SimpleGraph α) [Nonempty α] [Finite α], G.cliqueNum ≠ 0
theorem SimpleGraph.exists_isNClique_cliqueNum E1 #
∀ {α : Type u_3} {G : SimpleGraph α}, ∃ s, G.IsNClique G.cliqueNum s
theorem SimpleGraph.cliqueNum_of_isEmpty E0 #
∀ {α : Type u_3} (G : SimpleGraph α) [IsEmpty α], G.cliqueNum = 0
theorem SimpleGraph.cliqueNum_le_natCard E1 #
∀ {α : Type u_3} (G : SimpleGraph α) [Finite α], G.cliqueNum ≤ Nat.card α
theorem SimpleGraph.cliqueNum_le_enatCard E1 #
∀ {α : Type u_3} (G : SimpleGraph α), ↑G.cliqueNum ≤ ENat.card α
theorem SimpleGraph.cliqueNum_top E0 #
∀ (α : Type u_3), ⊤.cliqueNum = Nat.card α
theorem SimpleGraph.cliqueNum_bot E0 #
∀ (α : Type u_3) [Nonempty α] [Finite α], ⊥.cliqueNum = 1
theorem SimpleGraph.cliqueNum_eq_natCard E0 #
∀ {α : Type u_3} {G : SimpleGraph α} [Finite α], G.cliqueNum = Nat.card α ↔ G = ⊤
theorem SimpleGraph.cliqueNum_induce_le E1 #
∀ {α : Type u_3} {G : SimpleGraph α} [Finite α] (s : Set α), (SimpleGraph.induce s G).cliqueNum ≤ G.cliqueNum
structure SimpleGraph.IsMaximumClique E1 #
{α : Type u_3} → [Finite α] → SimpleGraph α → Finset α → Prop
A maximum clique in a graph G is a clique with the largest possible size.
ctor SimpleGraph.IsMaximumClique.mk E0 #
∀ {α : Type u_3} [inst : Finite α] {G : SimpleGraph α} {s : Finset α},
G.IsClique ↑s → (∀ (t : Finset α), G.IsClique ↑t → t.card ≤ s.card) → G.IsMaximumClique s
theorem SimpleGraph.IsMaximumClique.isClique E1 #
∀ {α : Type u_3} [inst : Finite α] {G : SimpleGraph α} {s : Finset α}, G.IsMaximumClique s → G.IsClique ↑s
theorem SimpleGraph.IsMaximumClique.maximum E1 #
∀ {α : Type u_3} [inst : Finite α] {G : SimpleGraph α} {s : Finset α},
G.IsMaximumClique s → ∀ (t : Finset α), G.IsClique ↑t → t.card ≤ s.card
theorem SimpleGraph.isMaximumClique_iff E0 #
∀ {α : Type u_3} {G : SimpleGraph α} [inst : Finite α] {s : Finset α},
G.IsMaximumClique s ↔ G.IsClique ↑s ∧ ∀ (t : Finset α), G.IsClique ↑t → t.card ≤ s.card
theorem SimpleGraph.isMaximalClique_iff E0 #
∀ {α : Type u_3} {G : SimpleGraph α} {s : Set α},
Maximal G.IsClique s ↔ G.IsClique s ∧ ∀ (t : Set α), G.IsClique t → s ⊆ t → t ⊆ s
A maximal clique in a graph G is a clique that cannot be extended by adding more vertices.
theorem SimpleGraph.IsMaximumClique.isMaximalClique E1 #
∀ {α : Type u_3} {G : SimpleGraph α} [inst : Finite α] (s : Finset α), G.IsMaximumClique s → Maximal G.IsClique ↑s
theorem SimpleGraph.maximumClique_card_eq_cliqueNum E1 #
∀ {α : Type u_3} {G : SimpleGraph α} [inst : Finite α] (s : Finset α), G.IsMaximumClique s → s.card = G.cliqueNum
theorem SimpleGraph.maximumClique_exists E1 #
∀ {α : Type u_3} {G : SimpleGraph α} [inst : Finite α], ∃ s, G.IsMaximumClique s
def SimpleGraph.cliqueFinset E3 #
{α : Type u_1} → (G : SimpleGraph α) → [Fintype α] → [DecidableEq α] → [DecidableRel G.Adj] → ℕ → Finset (Finset α)
The n-cliques in a graph as a finset.
theorem SimpleGraph.mem_cliqueFinset_iff E0 #
∀ {α : Type u_1} {G : SimpleGraph α} [inst : Fintype α] [inst_1 : DecidableEq α] [inst_2 : DecidableRel G.Adj] {n : ℕ}
{s : Finset α}, s ∈ G.cliqueFinset n ↔ G.IsNClique n s
theorem SimpleGraph.coe_cliqueFinset E0 #
∀ {α : Type u_1} (G : SimpleGraph α) [inst : Fintype α] [inst_1 : DecidableEq α] [inst_2 : DecidableRel G.Adj] (n : ℕ),
↑(G.cliqueFinset n) = G.cliqueSet n
theorem SimpleGraph.cliqueFinset_eq_empty_iff E0 #
∀ {α : Type u_1} {G : SimpleGraph α} [inst : Fintype α] [inst_1 : DecidableEq α] [inst_2 : DecidableRel G.Adj] {n : ℕ},
G.cliqueFinset n = ∅ ↔ G.CliqueFree n
theorem SimpleGraph.CliqueFree.cliqueFinset E1 #
∀ {α : Type u_1} {G : SimpleGraph α} [inst : Fintype α] [inst_1 : DecidableEq α] [inst_2 : DecidableRel G.Adj] {n : ℕ},
G.CliqueFree n → G.cliqueFinset n = ∅
Alias of the reverse direction of SimpleGraph.cliqueFinset_eq_empty_iff.
theorem SimpleGraph.card_cliqueFinset_le E1 #
∀ {α : Type u_1} {G : SimpleGraph α} [inst : Fintype α] [inst_1 : DecidableEq α] [inst_2 : DecidableRel G.Adj] {n : ℕ},
(G.cliqueFinset n).card ≤ (Fintype.card α).choose n
theorem SimpleGraph.cliqueFinset_mono E1 #
∀ {α : Type u_1} {G : SimpleGraph α} (H : SimpleGraph α) [inst : Fintype α] [inst_1 : DecidableEq α]
[inst_2 : DecidableRel G.Adj] {n : ℕ} [inst_3 : DecidableRel H.Adj], G ≤ H → G.cliqueFinset n ⊆ H.cliqueFinset n
theorem SimpleGraph.cliqueFinset_map E0 #
∀ {α : Type u_1} {β : Type u_2} (G : SimpleGraph α) [inst : Fintype α] [inst_1 : DecidableEq α]
[inst_2 : DecidableRel G.Adj] {n : ℕ} [inst_3 : Fintype β] [inst_4 : DecidableEq β] (f : α ↪ β),
n ≠ 1 → (SimpleGraph.map (⇑f) G).cliqueFinset n = Finset.map { toFun := Finset.map f, inj' := ⋯ } (G.cliqueFinset n)
theorem SimpleGraph.cliqueFinset_map_of_equiv E0 #
∀ {α : Type u_1} {β : Type u_2} (G : SimpleGraph α) [inst : Fintype α] [inst_1 : DecidableEq α]
[inst_2 : DecidableRel G.Adj] [inst_3 : Fintype β] [inst_4 : DecidableEq β] (e : α ≃ β) (n : ℕ),
(SimpleGraph.map (⇑e) G).cliqueFinset n =
Finset.map { toFun := Finset.map e.toEmbedding, inj' := ⋯ } (G.cliqueFinset n)
abbrev SimpleGraph.IsIndepSet E1 #
{α : Type u_1} → SimpleGraph α → Set α → Prop
An independent set in a graph is a set of vertices that are pairwise not adjacent.
theorem SimpleGraph.isIndepSet_iff E0 #
∀ {α : Type u_1} (G : SimpleGraph α) {s : Set α}, G.IsIndepSet s ↔ s.Pairwise fun v w ↦ ¬G.Adj v w
theorem SimpleGraph.isIndepSet_iff_isAntichain_adj E1 #
∀ {α : Type u_1} (G : SimpleGraph α) {s : Set α}, G.IsIndepSet s ↔ IsAntichain G.Adj s
theorem SimpleGraph.isClique_compl E0 #
∀ {α : Type u_1} (G : SimpleGraph α) {s : Set α}, Gᶜ.IsClique s ↔ G.IsIndepSet s
An independent set is a clique in the complement graph and vice versa.
theorem SimpleGraph.isIndepSet_compl E0 #
∀ {α : Type u_1} (G : SimpleGraph α) {s : Set α}, Gᶜ.IsIndepSet s ↔ G.IsClique s
An independent set in the complement graph is a clique and vice versa.
instance SimpleGraph.instDecidableIsIndepSetCoeFinsetOfDecidableEqOfDecidableRelAdj E0 #
{α : Type u_1} →
(G : SimpleGraph α) → [DecidableEq α] → [DecidableRel G.Adj] → {s : Finset α} → Decidable (G.IsIndepSet ↑s)
theorem SimpleGraph.IsIndepSet.nonempty_mem_compl_mem_edge E1 #
∀ {α : Type u_1} (G : SimpleGraph α) {s : Set α},
G.IsIndepSet s → ∀ {e : Sym2 α}, e ∈ G.edgeSet → {b | b ∈ sᶜ ∧ b ∈ e}.Nonempty
If s is an independent set, its complement meets every edge of G.
theorem SimpleGraph.isIndepSet_neighborSet_of_triangleFree E1 #
∀ {α : Type u_1} (G : SimpleGraph α), G.CliqueFree 3 → ∀ (v : α), G.IsIndepSet (G.neighborSet v)
The neighbors of a vertex v form an independent set in a triangle free graph G.
theorem SimpleGraph.isIndepSet_induce E1 #
∀ {α : Type u_1} (G : SimpleGraph α) {F : Set α} {s : Set ↑F},
(⊤.induce F).coe.IsIndepSet s ↔ G.IsIndepSet (Subtype.val '' s)
The embedding of an independent set of an induced subgraph of the subgraph G is an independent
set in G and vice versa.
structure SimpleGraph.IsNIndepSet E1 #
{α : Type u_1} → SimpleGraph α → ℕ → Finset α → Prop
An n-independent set in a graph is a set of n vertices which are pairwise nonadjacent.
theorem SimpleGraph.isNIndepSet_iff E0 #
∀ {α : Type u_1} (G : SimpleGraph α) (n : ℕ) (s : Finset α), G.IsNIndepSet n s ↔ G.IsIndepSet ↑s ∧ s.card = n
ctor SimpleGraph.IsNIndepSet.mk E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} {s : Finset α}, G.IsIndepSet ↑s → s.card = n → G.IsNIndepSet n s
theorem SimpleGraph.IsNIndepSet.isIndepSet E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} {s : Finset α}, G.IsNIndepSet n s → G.IsIndepSet ↑s
theorem SimpleGraph.IsNIndepSet.card_eq E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} {s : Finset α}, G.IsNIndepSet n s → s.card = n
theorem SimpleGraph.isNClique_compl E0 #
∀ {α : Type u_1} (G : SimpleGraph α) {n : ℕ} {s : Finset α}, Gᶜ.IsNClique n s ↔ G.IsNIndepSet n s
An n-independent set is an n-clique in the complement graph and vice versa.
theorem SimpleGraph.isNIndepSet_compl E0 #
∀ {α : Type u_1} (G : SimpleGraph α) {n : ℕ} {s : Finset α}, Gᶜ.IsNIndepSet n s ↔ G.IsNClique n s
An n-independent set in the complement graph is an n-clique and vice versa.
instance SimpleGraph.instDecidableIsNIndepSetOfDecidableEqOfDecidableRelAdj E0 #
{α : Type u_1} →
(G : SimpleGraph α) →
[DecidableEq α] → [DecidableRel G.Adj] → {n : ℕ} → {s : Finset α} → Decidable (G.IsNIndepSet n s)
theorem SimpleGraph.isNIndepSet_induce E1 #
∀ {α : Type u_1} (G : SimpleGraph α) {F : Set α} {s : Finset { x // x ∈ F }} {n : ℕ},
(⊤.induce F).coe.IsNIndepSet n s ↔ G.IsNIndepSet n (Finset.map { toFun := Subtype.val, inj' := ⋯ } s)
The embedding of an n-independent set of an induced subgraph of the subgraph G is an
n-independent set in G and vice versa.
def SimpleGraph.IndepSetFree E1 #
{α : Type u_1} → SimpleGraph α → ℕ → Prop
G.IndepSetFree n means that G has no n-independent sets.
theorem SimpleGraph.cliqueFree_compl E0 #
∀ {α : Type u_1} (G : SimpleGraph α) {n : ℕ}, Gᶜ.CliqueFree n ↔ G.IndepSetFree n
A graph is n-independent set free iff its complement is n-clique free.
theorem SimpleGraph.indepSetFree_compl E0 #
∀ {α : Type u_1} (G : SimpleGraph α) {n : ℕ}, Gᶜ.IndepSetFree n ↔ G.CliqueFree n
A graph's complement is n-independent set free iff it is n-clique free.
def SimpleGraph.IndepSetFreeOn E1 #
{α : Type u_1} → SimpleGraph α → Set α → ℕ → Prop
G.IndepSetFreeOn s n means that G has no n-independent sets contained in s.
def SimpleGraph.indepSetSet E1 #
{α : Type u_1} → SimpleGraph α → ℕ → Set (Finset α)
The n-independent sets in a graph as a set.
theorem SimpleGraph.mem_indepSetSet_iff E0 #
∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ} {s : Finset α}, s ∈ G.indepSetSet n ↔ G.IsNIndepSet n s
def SimpleGraph.indepNum E1 #
{α : Type u_3} → SimpleGraph α → ℕ
The maximal number of vertices of an independent set in a graph G.
theorem SimpleGraph.cliqueNum_compl E0 #
∀ {α : Type u_3} {G : SimpleGraph α}, Gᶜ.cliqueNum = G.indepNum
theorem SimpleGraph.indepNum_compl E0 #
∀ {α : Type u_3} {G : SimpleGraph α}, Gᶜ.indepNum = G.cliqueNum
theorem SimpleGraph.IsIndepSet.card_le_indepNum E1 #
∀ {α : Type u_3} {G : SimpleGraph α} [Finite α] {t : Finset α}, G.IsIndepSet ↑t → t.card ≤ G.indepNum
theorem SimpleGraph.exists_isNIndepSet_indepNum E1 #
∀ {α : Type u_3} {G : SimpleGraph α}, ∃ s, G.IsNIndepSet G.indepNum s
structure SimpleGraph.IsMaximumIndepSet E1 #
{α : Type u_3} → [Finite α] → SimpleGraph α → Finset α → Prop
An independent set in a graph G such that there is no independent set with more vertices.
theorem SimpleGraph.isMaximumIndepSet_iff E0 #
∀ {α : Type u_3} [inst : Finite α] (G : SimpleGraph α) (s : Finset α),
G.IsMaximumIndepSet s ↔ G.IsIndepSet ↑s ∧ ∀ (t : Finset α), G.IsIndepSet ↑t → t.card ≤ s.card
ctor SimpleGraph.IsMaximumIndepSet.mk E0 #
∀ {α : Type u_3} [inst : Finite α] {G : SimpleGraph α} {s : Finset α},
G.IsIndepSet ↑s → (∀ (t : Finset α), G.IsIndepSet ↑t → t.card ≤ s.card) → G.IsMaximumIndepSet s
theorem SimpleGraph.IsMaximumIndepSet.isIndepSet E1 #
∀ {α : Type u_3} [inst : Finite α] {G : SimpleGraph α} {s : Finset α}, G.IsMaximumIndepSet s → G.IsIndepSet ↑s
theorem SimpleGraph.IsMaximumIndepSet.maximum E1 #
∀ {α : Type u_3} [inst : Finite α] {G : SimpleGraph α} {s : Finset α},
G.IsMaximumIndepSet s → ∀ (t : Finset α), G.IsIndepSet ↑t → t.card ≤ s.card
theorem SimpleGraph.isMaximumClique_compl E0 #
∀ {α : Type u_3} {G : SimpleGraph α} [inst : Finite α] (s : Finset α), Gᶜ.IsMaximumClique s ↔ G.IsMaximumIndepSet s
theorem SimpleGraph.isMaximumIndepSet_compl E0 #
∀ {α : Type u_3} {G : SimpleGraph α} [inst : Finite α] (s : Finset α), Gᶜ.IsMaximumIndepSet s ↔ G.IsMaximumClique s
theorem SimpleGraph.isMaximalIndepSet_iff E0 #
∀ {α : Type u_3} {G : SimpleGraph α} {s : Set α},
Maximal G.IsIndepSet s ↔ G.IsIndepSet s ∧ ∀ (t : Set α), G.IsIndepSet t → s ⊆ t → t ⊆ s
An independent set in a graph G that cannot be extended by adding more vertices.
theorem SimpleGraph.isMaximalClique_compl E0 #
∀ {α : Type u_3} {G : SimpleGraph α} (s : Finset α), Maximal Gᶜ.IsClique ↑s ↔ Maximal G.IsIndepSet ↑s
theorem SimpleGraph.isMaximalIndepSet_compl E0 #
∀ {α : Type u_3} {G : SimpleGraph α} (s : Finset α), Maximal Gᶜ.IsIndepSet ↑s ↔ Maximal G.IsClique ↑s
theorem SimpleGraph.IsMaximumIndepSet.isMaximalIndepSet E1 #
∀ {α : Type u_3} {G : SimpleGraph α} [inst : Finite α] (s : Finset α), G.IsMaximumIndepSet s → Maximal G.IsIndepSet ↑s
theorem SimpleGraph.maximumIndepSet_card_eq_indepNum E1 #
∀ {α : Type u_3} {G : SimpleGraph α} [inst : Finite α] (t : Finset α), G.IsMaximumIndepSet t → t.card = G.indepNum
theorem SimpleGraph.maximumIndepSet_exists E1 #
∀ {α : Type u_3} {G : SimpleGraph α} [inst : Finite α], ∃ s, G.IsMaximumIndepSet s
def SimpleGraph.indepSetFinset E1 #
{α : Type u_1} → (G : SimpleGraph α) → [Fintype α] → [DecidableEq α] → [DecidableRel G.Adj] → ℕ → Finset (Finset α)
The n-independent sets in a graph as a finset.
theorem SimpleGraph.mem_indepSetFinset_iff E0 #
∀ {α : Type u_1} {G : SimpleGraph α} [inst : Fintype α] [inst_1 : DecidableEq α] [inst_2 : DecidableRel G.Adj] {n : ℕ}
{s : Finset α}, s ∈ G.indepSetFinset n ↔ G.IsNIndepSet n s
Deprecated aliases
| Name | New name | Since |
|---|---|---|
SimpleGraph.cliqueFree_iff | SimpleGraph.cliqueFree_iff_isEmpty_copy_top_fin | 2026-07-04 |
SimpleGraph.cliqueFree_iff_top_free | SimpleGraph.cliqueFree_card_iff_free_top | 2026-07-04 |