grid57_column_agreements
def
The number of agreeing unordered row pairs in a column of a binary five-by-seven layer.
Statement
def grid57_column_agreements (f : Fin 5 → Fin 7 → Bool) (y : Fin 7) : ℕ- Source
- OP-1867: row-pair incidence count, related to arXiv:2611.19635 section 6.
- Verified
- 28 Nov 2026
- Axioms
- none listed
- Used by 4
- grid57_unbalanced_column_thirty_agreementsA five-by-seven binary layer with an unbalanced column has at least thirty row-pair agreements across all columns.
- 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_agreements_le_rectangles_add_twentyThe total column agreements are at most the number of monochromatic rectangles plus twenty.
- 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$.…
Lean source view module on GitHub
def grid57_column_agreements (f : Fin 5 → Fin 7 → Bool) (y : Fin 7) : ℕ := ((Finset.univ : Finset (Fin 5 × Fin 5)).filter (fun p => p.1 < p.2 ∧ f p.1 y = f p.2 y)).card