The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V30. Combinatorics

Mathlib.Combinatorics.SimpleGraph.Hall

4 declarations. Mathlib docs · Source

theorem SimpleGraph.exists_isMatching_of_forall_ncard_le E1 #

∀ {V : Type u_1} {G : SimpleGraph V} [G.LocallyFinite] {p₁ p₂ : Set V},
  G.IsBipartiteWith p₁ p₂ → (∀ s ⊆ p₁, s.ncard ≤ (⋃ x ∈ s, G.neighborSet x).ncard) → ∃ M, p₁ ⊆ M.verts ∧ M.IsMatching

This is the version of Hall's marriage theorem for bipartite graphs that finds a matching for a single partition given that the neighborhood-condition only holds for elements of that partition.

theorem SimpleGraph.union_eq_univ_of_forall_ncard_le E1 #

∀ {V : Type u_1} {G : SimpleGraph V} [G.LocallyFinite] {p₁ p₂ : Set V},
  G.IsBipartiteWith p₁ p₂ → (∀ (s : Set V), s.ncard ≤ (⋃ x ∈ s, G.neighborSet x).ncard) → p₁ ∪ p₂ = Set.univ

theorem SimpleGraph.exists_bijective_of_forall_ncard_le E1 #

∀ {V : Type u_1} {G : SimpleGraph V} [G.LocallyFinite] {p₁ p₂ : Set V},
  G.IsBipartiteWith p₁ p₂ →
    (∀ (s : Set V), s.ncard ≤ (⋃ x ∈ s, G.neighborSet x).ncard) →
      ∃ h, Function.Bijective h ∧ ∀ (a : ↑p₁), G.Adj ↑a ↑(h a)

theorem SimpleGraph.exists_isPerfectMatching_of_forall_ncard_le E3 #

∀ {V : Type u_1} {G : SimpleGraph V} [G.LocallyFinite] {p₁ p₂ : Set V},
  G.IsBipartiteWith p₁ p₂ → (∀ (s : Set V), s.ncard ≤ (⋃ x ∈ s, G.neighborSet x).ncard) → ∃ M, M.IsPerfectMatching

This is the version of Hall's marriage theorem for bipartite graphs that finds a perfect matching given that the neighborhood-condition holds globally.