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.Extremal.Zarankiewicz

8 declarations. Mathlib docs · Source

The Zarankiewicz function

This file defines the Zarankiewicz function in terms of bipartite graphs.

def SimpleGraph.zarankiewicz E1 #

ℕ → ℕ → ℕ → ℕ → ℕ

The Zarankiewicz function of natural numbers m, n, s, and t is the maximum number of edges in a completeBipartiteGraph (Fin s) (Fin t)-free bipartite graph with parts of size m and n.

This is the extremal graph theory version of the Zarankiewicz function.

theorem SimpleGraph.zarankiewicz_of_fintypeCard_eq E0 #

∀ {m n s t : ℕ} {V : Type u_1} {W : Type u_2} {α : Type u_3} {β : Type u_4} [inst : Fintype V] [inst_1 : Fintype W]
  [inst_2 : Fintype α] [inst_3 : Fintype β],
  Fintype.card V = m →
    Fintype.card W = n →
      Fintype.card α = s →
        Fintype.card β = t →
          SimpleGraph.zarankiewicz m n s t =
            {G | G ≤ completeBipartiteGraph V W ∧ (completeBipartiteGraph α β).Free G}.sup fun x ↦ x.edgeFinset.card

theorem SimpleGraph.zarankiewicz_le_iff E0 #

∀ {m n s t : ℕ} {V : Type u_1} {W : Type u_2} {α : Type u_3} {β : Type u_4} [inst : Fintype V] [inst_1 : Fintype W]
  [inst_2 : Fintype α] [inst_3 : Fintype β],
  Fintype.card V = m →
    Fintype.card W = n →
      Fintype.card α = s →
        Fintype.card β = t →
          ∀ (x : ℕ),
            SimpleGraph.zarankiewicz m n s t ≤ x ↔
              ∀ ⦃G : SimpleGraph (V ⊕ W)⦄ [inst_4 : DecidableRel G.Adj],
                G ≤ completeBipartiteGraph V W → (completeBipartiteGraph α β).Free G → G.edgeFinset.card ≤ x

zarankiewicz m n s t is at most x if and only if every completeBipartiteGraph α β-free bipartite graph G has at most x edges.

theorem SimpleGraph.lt_zarankiewicz_iff E0 #

∀ {m n s t : ℕ} {V : Type u_1} {W : Type u_2} {α : Type u_3} {β : Type u_4} [inst : Fintype V] [inst_1 : Fintype W]
  [inst_2 : Fintype α] [inst_3 : Fintype β],
  Fintype.card V = m →
    Fintype.card W = n →
      Fintype.card α = s →
        Fintype.card β = t →
          ∀ (x : ℕ),
            x < SimpleGraph.zarankiewicz m n s t ↔
              ∃ G x_1, G ≤ completeBipartiteGraph V W ∧ (completeBipartiteGraph α β).Free G ∧ x < G.edgeFinset.card

zarankiewicz m n s t is greater than x if and only if there exists a completeBipartiteGraph α β-free bipartite graph G with more than x edges.

theorem SimpleGraph.zarankiewicz_le_iff_of_nonneg E1 #

∀ {m n s t : ℕ} {V : Type u_1} {W : Type u_2} {α : Type u_3} {β : Type u_4} [inst : Fintype V] [inst_1 : Fintype W]
  [inst_2 : Fintype α] [inst_3 : Fintype β] {R : Type u_5} [inst_4 : Semiring R] [inst_5 : LinearOrder R]
  [FloorSemiring R],
  Fintype.card V = m →
    Fintype.card W = n →
      Fintype.card α = s →
        Fintype.card β = t →
          ∀ {x : R},
            0 ≤ x →
              (↑(SimpleGraph.zarankiewicz m n s t) ≤ x ↔
                ∀ ⦃G : SimpleGraph (V ⊕ W)⦄ [inst_7 : DecidableRel G.Adj],
                  G ≤ completeBipartiteGraph V W → (completeBipartiteGraph α β).Free G → ↑G.edgeFinset.card ≤ x)

zarankiewicz m n s t is at most x if and only if every completeBipartiteGraph α β-free bipartite graph G has at most x edges.

theorem SimpleGraph.lt_zarankiewicz_iff_of_nonneg E1 #

∀ {m n s t : ℕ} {V : Type u_1} {W : Type u_2} {α : Type u_3} {β : Type u_4} [inst : Fintype V] [inst_1 : Fintype W]
  [inst_2 : Fintype α] [inst_3 : Fintype β] {R : Type u_5} [inst_4 : Semiring R] [inst_5 : LinearOrder R]
  [FloorSemiring R],
  Fintype.card V = m →
    Fintype.card W = n →
      Fintype.card α = s →
        Fintype.card β = t →
          ∀ {x : R},
            0 ≤ x →
              (x < ↑(SimpleGraph.zarankiewicz m n s t) ↔
                ∃ G x_1, G ≤ completeBipartiteGraph V W ∧ (completeBipartiteGraph α β).Free G ∧ x < ↑G.edgeFinset.card)

zarankiewicz m n s t is greater than x if and only if there exists a completeBipartiteGraph α β-free bipartite graph G with more than x edges.

theorem SimpleGraph.zarankiewicz_le_extremalNumber E1 #

∀ {m n s t : ℕ} {α : Type u_3} {β : Type u_4} [inst : Fintype α] [inst_1 : Fintype β],
  Fintype.card α = s →
    Fintype.card β = t →
      SimpleGraph.zarankiewicz m n s t ≤ SimpleGraph.extremalNumber (m + n) (completeBipartiteGraph α β)

The Zarankiewicz function is at most the corresponding extremal number.

theorem SimpleGraph.two_mul_extremalNumber_le_zarankiewicz_symm E1 #

∀ {n s t : ℕ} {α : Type u_3} {β : Type u_4} [inst : Fintype α] [inst_1 : Fintype β] [Nonempty α] [Nonempty β],
  Fintype.card α = s →
    Fintype.card β = t →
      2 * SimpleGraph.extremalNumber n (completeBipartiteGraph α β) ≤ SimpleGraph.zarankiewicz n n s t

The symmetric Zarankiewicz function is at least twice a corresponding extremal number.