grid_box_free
def
A 2-coloring $f : [a] \times [b] \times [c] \to \{0, 1\}$ is box-free if for all $x_1 < x_2 \le a$, $y_1 < y_2 \le b$, and $z_1 < z_2 \le c$, the eight vertices $\{x_1, x_2\} \times \{y_1, y_2\} \times \{z_1, z_2\}$ are not all monochromatic under $f$.
Statement
def grid_box_free {a b c : ℕ} (f : Fin a → Fin b → Fin c → Bool) : Prop
- Defined in
- arXiv:2611.19635 (Constructive and computational methods for extremal and near-extremal box colorings), Sec. 1
- Verified
- 17 Nov 2026
- Axioms
- none listed
- Used by 10
- grid_box_free_maxThe parameter $N(a, b)$ is the maximum integer $c$ such that the grid $[a] \times [b] \times [c]$ admits an axis-parallel box-free…
- grid_five_seven_fifty_one_at_most_six_unbalanced_layersA box-free five-by-seven-by-fifty-one binary coloring has at most six layers containing an unbalanced column.
- grid_box_free_max_five_seven_eq_fifty_twoThe maximum number of binary five-by-seven layers that can be stacked without a monochromatic axis-parallel box is exactly fifty-two.
- grid_five_seven_fifty_one_many_minimum_layersEvery box-free binary coloring of a five-by-seven-by-fifty-one grid has at least thirty-nine layers with exactly eight monochromatic…
- grid57_stack_at_most_fifty_twoEvery box-free binary coloring of a five-by-seven-by-n grid has at most 52 layers.
- grid_box_free_of_leIf $c' \le c$ and $f$ is a box-free $2$-coloring of $[a] \times [b] \times [c]$, then the restriction of $f$ to…
- grid_box_free_iff_layers_disjointA colouring $f$ of $[a]\times[b]\times[c]$ is box-free if and only if any two distinct layers have disjoint sets of monochromatic coloured…
- grid_box_free_max_eq_fifty_of_not_exists_fifty_oneIf the grid $[5] \times [7] \times [50]$ admits a box-free $2$-coloring and $[5] \times [7] \times [51]$ admits no box-free $2$-coloring,…
- grid_five_seven_fifty_two_witness_box_freeThe explicit binary coloring with the specified 35 masks contains no monochromatic axis-parallel box anywhere in the…
- layer_mono_card_sum_leLayer bound (Lemma 4.1 core): for a box-free colouring of $[a]\times[b]\times[c]$, the total number of monochromatic rectangles summed…
Read back from the Lean
Given natural numbers a, b, and c, and a function f : Fin a → Fin b → Fin c → Bool, grid_box_free f asserts that for all x₁, x₂ : Fin a, y₁, y₂ : Fin b, and z₁, z₂ : Fin c, if x₁ < x₂, y₁ < y₂, and z₁ < z₂, then the eight values of f on the vertices of the box {x₁, x₂} × {y₁, y₂} × {z₁, z₂} are not all equal to each other (specifically, not all equal to f x₁ y₁ z₁).
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
/-- A 2-coloring of [a] × [b] × [c] is box-free if no axis-parallel box is monochromatic. -/ def grid_box_free {a b c : ℕ} (f : Fin a → Fin b → Fin c → Bool) : Prop := ∀ (x₁ x₂ : Fin a) (y₁ y₂ : Fin b) (z₁ z₂ : Fin c), x₁ < x₂ → y₁ < y₂ → z₁ < z₂ → ¬ (f x₁ y₁ z₁ = f x₁ y₂ z₁ ∧ f x₁ y₁ z₁ = f x₂ y₁ z₁ ∧ f x₁ y₁ z₁ = f x₂ y₂ z₁ ∧ f x₁ y₁ z₁ = f x₁ y₁ z₂ ∧ f x₁ y₁ z₁ = f x₁ y₂ z₂ ∧ f x₁ y₁ z₁ = f x₂ y₁ z₂ ∧ f x₁ y₁ z₁ = f x₂ y₂ z₂)