|
| 1 | +/- |
| 2 | +Copyright 2026 The Formal Conjectures Authors. |
| 3 | +
|
| 4 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +you may not use this file except in compliance with the License. |
| 6 | +You may obtain a copy of the License at |
| 7 | +
|
| 8 | + https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +-/ |
| 16 | + |
| 17 | +import FormalConjecturesUtil |
| 18 | + |
| 19 | +/-! |
| 20 | +# Erdős Problem 1020 |
| 21 | +
|
| 22 | +*References:* |
| 23 | +- [erdosproblems.com/1020](https://www.erdosproblems.com/1020) |
| 24 | +- [BDE76] Bollobás, B. and Daykin, D. E. and Erdős, P., *Sets of independent edges of a hypergraph*. |
| 25 | + Quart. J. Math. Oxford Ser. (2) (1976), 25--32. |
| 26 | +- [Er65d] Erdős, P., *A problem on independent {$r$}-tuples*. Ann. Univ. Sci. Budapest. Eötvös Sect. |
| 27 | + Math. (1965), 93--95. |
| 28 | +- [ErGa59] Erdős, P. and Gallai, T., *On maximal paths and circuits of graphs*. Acta Math. Acad. |
| 29 | + Sci. Hungar. (1959), 337-356 (unbound insert). |
| 30 | +- [FLM12] Frankl, Peter and Łuczak, Tomasz and Mieczkowska, Katarzyna, *On matchings in |
| 31 | + hypergraphs*. Electron. J. Combin. (2012), Paper 42, 5. |
| 32 | +- [FRR12] Frankl, Peter and Rödl, Vojtech and Ruciński, Andrzej, *On the maximum number of edges in |
| 33 | + a triple system not containing a disjoint family of a given size*. Combin. Probab. Comput. (2012), |
| 34 | + 141--148. |
| 35 | +- [Fr17] Frankl, Peter, *Proof of the {E}rdős matching conjecture in a new range*. Israel J. Math. |
| 36 | + (2017), 421--430. |
| 37 | +- [Fr87] Frankl, Peter, *The shifting technique in extremal set theory*. (1987), 81--110. |
| 38 | +- [HLS12] Huang, Hao and Loh, Po-Shen and Sudakov, Benny, *The size of a hypergraph and its matching |
| 39 | + number*. Combin. Probab. Comput. (2012), 442--450. |
| 40 | +- [Kl68] Kleitman, Daniel J., *Maximal number of subsets of a finite set no {$k$} of which are |
| 41 | + pairwise disjoint*. J. Combinatorial Theory (1968), 157--163. |
| 42 | +- [KoKu23] Kolupaev, Dmitriy and Kupavskii, Andrey, *Erdős matching conjecture for almost perfect |
| 43 | + matchings*. Discrete Math. (2023), Paper No. 113304, 9. |
| 44 | +- [LuMi14] Łuczak, Tomasz and Mieczkowska, Katarzyna, *On {E}rdős' extremal problem on matchings in |
| 45 | + hypergraphs*. J. Combin. Theory Ser. A (2014), 178--194. |
| 46 | +-/ |
| 47 | + |
| 48 | +namespace Erdos1020 |
| 49 | + |
| 50 | +/-- The maximum number of edges in an `r`-uniform hypergraph on `n` vertices containing no |
| 51 | +matching of size `k` (i.e. no `k` pairwise vertex-disjoint edges). -/ |
| 52 | +noncomputable def f (n r k : ℕ) : ℕ := |
| 53 | + sSup {m : ℕ | ∃ H : Hypergraph (Fin n), |
| 54 | + H.vertexSet = Set.univ ∧ |
| 55 | + (∀ e ∈ H.edgeSet, e.ncard = r) ∧ |
| 56 | + (¬ ∃ M ⊆ H.edgeSet, M.ncard = k ∧ M.PairwiseDisjoint id) ∧ |
| 57 | + H.edgeSet.ncard = m} |
| 58 | + |
| 59 | +/-- |
| 60 | +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. |
| 61 | +
|
| 62 | +For all $r\geq 3$, $$f(n;r,k)=\max\left(\binom{rk-1}{r}, \binom{n}{r}-\binom{n-k+1}{r}\right).$$ |
| 63 | +
|
| 64 | +Note: the source states the formula with no range on `n` or `k`, but some restriction |
| 65 | +is needed: e.g. for `r = 3`, `k = 2`, `n = 4` no two disjoint triples fit in `4` |
| 66 | +vertices, so the left-hand side is `4.choose 3 = 4` while the right-hand side is |
| 67 | +`5.choose 3 = 10`. We require `k ≥ 1` and `n ≥ r*k - 1`: this is the smallest `n` |
| 68 | +accommodating the construction counted by the first term (all `r`-subsets of a fixed |
| 69 | +`(r*k - 1)`-set), and at `n = r*k - 1` the equality holds trivially, since the complete |
| 70 | +`r`-uniform hypergraph has no `k`-matching. The source's commentary likewise calls the |
| 71 | +case `n < k*r` trivial. |
| 72 | +-/ |
| 73 | +@[category research open, AMS 5] |
| 74 | +theorem erdos_1020 (r : ℕ) (hr : 3 ≤ r) (n k : ℕ) (hk : 0 < k) |
| 75 | + (hrk : r * k - 1 ≤ n) : |
| 76 | + f n r k = max ((r * k - 1).choose r) |
| 77 | + (n.choose r - (n - k + 1).choose r) := by |
| 78 | + sorry |
| 79 | + |
| 80 | +end Erdos1020 |
0 commit comments