BoxPattern
abbrev
A coloured rectangle pattern in an $a\times b$ grid: a pair of rows $x_1<x_2$, a pair of columns $y_1<y_2$, and a colour, encoded as the tuple $(x_1,x_2,y_1,y_2,\text{col})$.
Statement
abbrev BoxPattern (a b : ℕ) : Type
- Source
- step towards grid_box_free_max_five_seven
- Verified
- 18 Nov 2026
- Axioms
- none listed
- Used by 14
- 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_five_seven_fifty_two_row_pair_capacity_feasibleThere is a fifty-two-layer binary five-by-seven coloring in which each layer has exactly eight monochromatic rectangles, and, for each row…
- 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…
- layer_monoFor a $2$-colouring $f$ of $[a]\times[b]\times[c]$ and a layer index $z$, $\mathrm{layer\_mono}(f,z)$ is the finite set of coloured…
- grid_five_seven_nine_rectangles_balanced_columnsIn every binary five-by-seven layer with at most nine monochromatic rectangles, each column contains exactly two or three true entries.
- grid57_stack_at_most_fifty_twoEvery box-free binary coloring of a five-by-seven-by-n grid has at most 52 layers.
- ordered_patternsThe finite set of ordered coloured rectangle patterns of an $a\times b$ grid, i.e. the patterns with $x_1<x_2$ and $y_1<y_2$. Its…
- grid57_agreements_le_rectangles_add_twentyThe total column agreements are at most the number of monochromatic rectangles plus twenty.
- ordered_patterns_five_seven_cardThe $5\times 7$ grid has exactly $2\binom52\binom72 = 420$ ordered coloured rectangle slots.
- 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…
- layer_mono_five_seven_ge_eightEvery $2$-colouring of the $5\times 7$ grid contains at least $8$ monochromatic rectangles, counting both colours: $\rho(5,7) \ge 8$.…
- 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…
- grid_five_seven_representatives_eight_rectanglesEach of the six displayed representative layers has exactly eight monochromatic rectangles.
- mem_layer_monoMembership in $\mathrm{layer\_mono}(f,z)$: a pattern $(x_1,x_2,y_1,y_2,\mathrm{col})$ lies in the layer iff $x_1<x_2$, $y_1<y_2$, and all…
Lean source view module on GitHub
/-- Coloured $2\times 2$ rectangle pattern of an $a\times b$ grid: rows $(x_1,x_2)$, columns $(y_1,y_2)$, colour. -/ abbrev BoxPattern (a b : ℕ) : Type := Fin a × Fin a × Fin b × Fin b × Bool