is_box_free
A 2-coloring f : Fin a → Fin b → Fin c → Bool of the 3D grid [a] × [b] × [c] is box-free if no 2 × 2 × 2 subgrid (box) s × t × u (with |s| = 2, |t| = 2, |u| = 2) is monochromatic under f.
Statement
def is_box_free {a b c : ℕ} (f : Fin a → Fin b → Fin c → Bool) : Prop
- Defined in
- arXiv:2611.19635, Section 1
- Verified
- 17 Nov 2026
- Axioms
- none listed
Read back from the Lean
For natural numbers $a, b, c$ and a function $f : \mathrm{Fin}(a) \to \mathrm{Fin}(b) \to \mathrm{Fin}(c) \to \mathrm{Bool}$, is_box_free f asserts that for every finite subset $s \subseteq \mathrm{Fin}(a)$ of cardinality 2, every finite subset $t \subseteq \mathrm{Fin}(b)$ of cardinality 2, and every finite subset $u \subseteq \mathrm{Fin}(c)$ of cardinality 2, there does not exist a boolean value $\mathrm{col}$ such that $f(x, y, z) = \mathrm{col}$ for all $x \in s$, $y \in t$, and $z \in u$ (that is, no $2 \times 2 \times 2$ combinatorial box is monochromatic under $f$).
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
/-- Predicate that a 2-coloring of an a × b × c grid contains no monochromatic axis-parallel box. -/ def is_box_free {a b c : ℕ} (f : Fin a → Fin b → Fin c → Bool) : Prop := ∀ (s : Finset (Fin a)) (t : Finset (Fin b)) (u : Finset (Fin c)), s.card = 2 → t.card = 2 → u.card = 2 → ¬ ∃ col : Bool, ∀ x ∈ s, ∀ y ∈ t, ∀ z ∈ u, f x y z = col