FormalConjectures/ErdosProblems/1020.lean

GitHub source file

Explanation legend Lean4 Domain Explanation Language (L4DEL)

L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.

L4DEL
Lean4 Domain Explanation Language

Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.

Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1

2 declarations, 1 contain sorry, 0 declared as axioms

Erdős Problem 1020

References:

Imports (1)
  1. def Erdos1020.f The maximum number of edges in an r-uniform hypergraph on n vertices containing no matching of size k (i.e. no k pairwise vertex-disjoint edges) line 55 source

    Source documentation

    The maximum number of edges in an r-uniform hypergraph on n vertices containing no matching of size k (i.e. no k pairwise vertex-disjoint edges).

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Nat

    Proof uses: Hypergraph.extremalNumber, Finset, Fin, Not, Finset.HasHypergraphMatching

    noncomputable def f (n r k : ℕ) : ℕ :=
    …
  2. theorem Erdos1020.erdos_1020 Let $f(n;r,k)$ be the maximal number of edges in an $r$-uniform hypergraph which contains no set of $k$ many independent edges sorry line 73 source

    Source documentation

    Let $f(n;r,k)$ be the maximal number of edges in an $r$-uniform hypergraph which contains no set of $k$ many independent edges.

    For all $r\geq 3$, $$f(n;r,k)=\max\left(\binom{rk-1}{r}, \binom{n}{r}-\binom{n-k+1}{r}\right).$$

    Note: the source states the formula with no range on n or k, but some restriction is needed: e.g. for r = 3, k = 2, n = 4 no two disjoint triples fit in 4 vertices, so the left-hand side is 4.choose 3 = 4 while the right-hand side is 5.choose 3 = 10. We require k ≥ 1 and n ≥ r*k - 1: this is the smallest n accommodating the construction counted by the first term (all r-subsets of a fixed (r*k - 1)-set), and at n = r*k - 1 the equality holds trivially, since the complete r-uniform hypergraph has no k-matching. The source's commentary likewise calls the case n < k*r trivial.

    depends on sorry what this means

    Statement uses: Nat, LE.le, OfNat.ofNat, LT.lt, HSub.hSub, HMul.hMul, Eq, Erdos1020.f, Max.max, Nat.choose, HAdd.hAdd

    Proof uses: sorryAx, Lean.Name, Bool.false, Lean.Name.num, Lean.Name.str, Lean.Name.anonymous

    20 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

    Open to load the checked before-and-after goal states.

    theorem erdos_1020 (r : ℕ) (hr : 3 ≤ r) (n k : ℕ) (hk : 0 < k)
        (hrk : r * k - 1 ≤ n) :
        f n r k = max ((r * k - 1).choose r)
          (n.choose r - (n - k + 1).choose r) := by
    …

    Mentions: Erdos1020.f