# R(4,5;3) ≥ 38, R(4,6;3) ≥ 71 and R(5,5;3) ≥ 99, checked in Lean 4

iis:2611.00338 · by artifex · https://isitsolved.com/journal/2e26b329a5b6

**Abstract.** Lysenstøen (arXiv:2611.25143, Theorem 1) gives three new lower bounds on hypergraph Ramsey numbers for triples, R(4,5;3) >= 38, R(4,6;3) >= 71 and R(5,5;3) >= 99, each by an explicit colouring of the triples of 37, 70 or 98 points. The previous bounds were 35, 63 (64 in a data deposit) and 88. This report gives an independent Lean 4 verification. The Lean kernel searches each colouring exhaustively for a forbidden one-coloured set of points, and a soundness proof shows that the search misses nothing; it holds for every table of triples, so the data is not trusted. The search uses none of the symmetry of the colourings. Each bound is stated as the existence of a colouring of the 3-subsets of Fin n. The bound R(5,5;3) >= 99 is also stated in the form of formal-conjectures' hypergraphRamsey 3 5: 98 is not in the set whose infimum defines that number. The inequality 99 <= hypergraphRamsey 3 5 itself is not proved, because it also needs Ramsey's theorem for triples. The paper's other three bounds are not included. The proof uses no sorry, no native_decide and only the standard axioms; lake comparator accepts it with Lean's kernel, NanoDa and con-ron.

# R(4,5;3) ≥ 38, R(4,6;3) ≥ 71 and R(5,5;3) ≥ 99, checked in Lean 4

## Summary

Lysenstøen (arXiv:2611.25143, Theorem 1) gives three new lower bounds on hypergraph Ramsey numbers for triples, each by an explicit colouring. The paper checks the colourings with exhaustive searches in conventional programs. This report describes an independent Lean 4 verification: the Lean kernel searches each colouring exhaustively, and a soundness proof shows that the search misses nothing. The proof uses no `sorry`, no `native_decide` and only the axioms `propext`, `Classical.choice` and `Quot.sound`.

- Repository: https://github.com/innov8ion/hypergraph-ramsey-bounds (release v1.0.0, commit `d570a97201722d5bd2071521c77538c9b1c4d9f6`)
- Archive: https://doi.org/10.5281/zenodo.24632431
- Released 28 November 2026.
- isitsolved Lean receipt: https://isitsolved.com/lean/receipts/a148b9d5f323
- Lean v4.36.0, Mathlib `fc4f59e`. `lake comparator` checks the solution against `Challenge.lean` with Lean's kernel, NanoDa and con-ron ([CI run](https://github.com/innov8ion/hypergraph-ramsey-bounds/actions/runs/46165650298)).

## The numbers

For integers $t \ge 2$ and $k, l > t$, the hypergraph Ramsey number $R(k, l; t)$ is the least $n$ such that every colouring of the $t$-subsets of an $n$-set with colours $0$ and $1$ has $k$ points all of whose $t$-subsets have colour $0$, or $l$ points all of whose $t$-subsets have colour $1$. A colouring of the $t$-subsets of an $n$-set with neither is a $(k, l; t)$-colouring of order $n$; it proves $R(k, l; t) \ge n + 1$.

| Bound | Previous bound | Colouring |
|---|---:|---|
| $R(4,5;3) \ge 38$ | 35 | triples of 37 points |
| $R(4,6;3) \ge 71$ | 63, 64 | triples of 70 points |
| $R(5,5;3) \ge 99$ | 88 | triples of 98 points |

The previous bounds are those listed in Lysenstøen's paper: 35, 63 and 88 from Radziszowski's dynamic survey (due to Dybizbański), and 64 from a 2026 data deposit.

## What is proved

In Lean a colouring is a function `c : Finset (Fin n) → Bool`, with colour $0$ as `false` and colour $1$ as `true`; only its values on sets of $t$ points matter.

```lean
def RamseyBounds.IsRamseyColouring (t k l : ℕ) {n : ℕ} (c : Finset (Fin n) → Bool) : Prop :=
  (∀ S : Finset (Fin n), S.card = k → ∃ e ⊆ S, e.card = t ∧ c e = true) ∧
  (∀ S : Finset (Fin n), S.card = l → ∃ e ⊆ S, e.card = t ∧ c e = false)
```

**Theorem 1 (`RamseyBounds.ramsey_4_5_3`).** There is a $(4, 5; 3)$-colouring of order $37$. Hence $R(4,5;3) \ge 38$.

**Theorem 2 (`RamseyBounds.ramsey_4_6_3`).** There is a $(4, 6; 3)$-colouring of order $70$. Hence $R(4,6;3) \ge 71$.

**Theorem 3 (`RamseyBounds.ramsey_5_5_3`).** There is a $(5, 5; 3)$-colouring of order $98$. Hence $R(5,5;3) \ge 99$.

**Theorem 4 (`RamseyBounds.not_forall_exists_monochromatic_98`).** Not every colouring of the triples of $98$ points has $5$ points all of whose triples have one colour.

```lean
theorem RamseyBounds.ramsey_4_5_3 : ∃ c : Finset (Fin 37) → Bool, IsRamseyColouring 3 4 5 c
theorem RamseyBounds.ramsey_4_6_3 : ∃ c : Finset (Fin 70) → Bool, IsRamseyColouring 3 4 6 c
theorem RamseyBounds.ramsey_5_5_3 : ∃ c : Finset (Fin 98) → Bool, IsRamseyColouring 3 5 5 c
theorem RamseyBounds.not_forall_exists_monochromatic_98 :
    ¬ ∀ c : Finset (Fin 98) → Bool, ∃ S : Finset (Fin 98), S.card = 5 ∧
      ∃ color : Bool, ∀ e : Finset (Fin 98), e ⊆ S → e.card = 3 → c e = color
```

Theorem 4 restates Theorem 3 without the definition. It is the statement that $98$ is not in the set whose infimum is `Combinatorics.hypergraphRamsey 3 5` in google-deepmind/formal-conjectures.

## What is not proved

- **The inequality `99 ≤ hypergraphRamsey 3 5`.** That number is an infimum of a set of natural numbers, and in Lean the infimum of the empty set is $0$. The inequality therefore also needs the set to be non-empty, which is Ramsey's theorem for triples. Only Theorem 4 is proved.
- **The paper's other results:** $R(5,6;4) \ge 201$, $R(6,6;4) \ge 601$ and $R(6,6;5) \ge 84$ (Theorems 2 and 3), and Corollaries 4 and 5.

## How the proof goes

**Tables.** For each colour there is a table with one number per point $hi$. Its 128-bit field $mid$ is the mask of the points $lo < mid$ for which the triple $\{lo, mid, hi\}$ has that colour.

**Search.** For a table and a size $m + 2$, the function `chk` looks for $m + 2$ points with largest point $hi$ all of whose triples are in the table. It chooses points in decreasing order. For the points chosen so far it keeps a mask of the smaller points that are compatible with every pair of them: when a point $x$ is added, the mask is intersected with field $x$ of the row of every earlier point. After $m + 1$ points the mask must be empty.

**Lemma (soundness, `RamseyBounds.no_clique`).** If `chk m Rs hi = true` for every $hi < n$, then no increasing list of $m + 2$ points below $n$ has all its triples in the table `Rs`.

Proof. By induction on the number of points still to choose, and inside that on the bound for the next point. The invariant is that the mask contains every smaller point compatible with all pairs chosen so far. The lemma holds for every table, so neither the data nor the program that produced it is trusted.

**Two colours.** The colouring is defined from the table of colour $0$ alone: a set has colour `false` exactly when it is a triple $a < b < c$ in that table. The search for colour $1$ uses a second table, and a kernel check (`complOK`) shows that every triple is in one of the two tables. So a set of points with all triples of colour `true` has all its triples in the second table.

**Memory.** The kernel runs the search for each largest point in a separate theorem. The three colourings check in 9, 54 and 82 seconds on an Apple M4.

The search uses none of the symmetry of the colourings. Lysenstøen's colourings are invariant under groups of affine maps of $\mathbb{Z}_{37}$, $\mathbb{Z}_{69}$ and $\mathbb{Z}_{97}$; the formalization reads only the list of triples and their colours.

## Checks

- **Before the formalization,** a separately written Python search (not the author's script) confirmed the three colourings. Its search trees have at most about 290,000 nodes per colouring.
- **Sanity checks of the search:** a table that contains every triple is reported to contain the forbidden set, and the 37-point colouring with its two tables swapped fails.
- **Statements.** `Challenge.lean` contains the definition and the four statements and imports only Mathlib.

## Credit and AI use

The colourings are Christian Lysenstøen's, from the paper's ancillary files (CC BY 4.0). The paper says they were found with the author's Solon research software and AI-based tools.

The formalization was produced with Claude (Anthropic) in Claude Code, using the model Claude Fable 5.2, under the direction of David I. Goldstick, who is responsible for this work. No human expert has reviewed it.

## References

- C. Lysenstøen, *New lower bounds for six small hypergraph Ramsey numbers*, arXiv:2611.25143 (2026).
- S. P. Radziszowski, *Small Ramsey numbers*, Electron. J. Combin., Dynamic Survey DS1, revision #18 (24 April 2026). https://doi.org/10.37236/21
- J. Dybizbański, *A lower bound on the hypergraph Ramsey number R(4,5;3)*, Contrib. Discrete Math. 13 (2018), no. 2, 112–115.

