layer_mono
def
For 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 rectangle patterns $\{x_1,x_2\}\times\{y_1,y_2\}$ that are monochromatic with colour $\mathrm{col}$ inside layer $z$.
Statement
def layer_mono {a b c : ℕ} (f : Fin a → Fin b → Fin c → Bool) (z : Fin c) : Finset (BoxPattern a b)- Source
- step towards grid_box_free_max_five_seven
- Verified
- 18 Nov 2026
- Axioms
- none listed
- Built on 1
- BoxPatternA 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…
- Used by 11
- 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…
- 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.
- grid57_agreements_le_rectangles_add_twentyThe total column agreements are at most the number of monochromatic rectangles plus twenty.
- 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
/-- The set of monochromatic coloured rectangles occurring in a single layer of a 3-D colouring. -/ def layer_mono {a b c : ℕ} (f : Fin a → Fin b → Fin c → Bool) (z : Fin c) : Finset (BoxPattern a b) := Finset.univ.filter (fun p => p.1 < p.2.1 ∧ p.2.2.1 < p.2.2.2.1 ∧ f p.1 p.2.2.1 z = p.2.2.2.2 ∧ f p.1 p.2.2.2.1 z = p.2.2.2.2 ∧ f p.2.1 p.2.2.1 z = p.2.2.2.2 ∧ f p.2.1 p.2.2.2.1 z = p.2.2.2.2)