AFTD Auto-Formalizing Theoretical Domains

grid_ramsey_prop

def

The grid Ramsey property grid_ramsey_prop d c n holds if every coloring χ : (Fin d → Fin n) → Fin c contains a monochromatic box.

Statement

def grid_ramsey_prop (d c n : ℕ) : Prop
Defined in
arXiv:2611.17378, Section 4
Verified
22 Nov 2026
Axioms
none listed
Built on 1
  • has_monochromatic_boxA coloring χ : (Fin d → Fin n) → Fin c contains a monochromatic box if there exists a box B and a color col : Fin c such that every…
Used by 1
  • grid_ramsey_numberThe d-dimensional grid Ramsey number grid_ramsey_number d c is the infimum in ℕ of the set of natural numbers n such that…

Read back from the Lean

The predicate grid_ramsey_prop d c n asserts that for every coloring χ of the d-dimensional grid Fin d → Fin n with c colors (Fin c), there exists a monochromatic d-dimensional box B of size 2 in each dimension; that is, there exists a finset B of grid points that is a box, and there exists a color col : Fin c such that every point x ∈ B has color χ x = col.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The property that every `c`-coloring of `Fin d → Fin n` contains a monochromatic box. -/
def grid_ramsey_prop (d c n : ℕ) : Prop := ∀ χ : (Fin d → Fin n) → Fin c, has_monochromatic_box d c n χ
See it in the graphDiscuss this resultChallenge it