is_box
def
A finset of points in Fin d → Fin n is a box if it is the Cartesian product of 2-element subsets of Fin n across all coordinates i : Fin d.
Statement
def is_box (d : ℕ) {n : ℕ} (B : Finset (Fin d → Fin n)) : Prop
- Defined in
- arXiv:2611.17378, Section 1
- Verified
- 22 Nov 2026
- Axioms
- none listed
- Used by 2
- is_box_cardIf a finset of points in
Fin d → Fin nis a box, then its cardinality is2 ^ d. - has_monochromatic_boxA coloring
χ : (Fin d → Fin n) → Fin ccontains a monochromatic box if there exists a boxBand a colorcol : Fin csuch that every…
- is_box_cardIf a finset of points in
Read back from the Lean
Given a dimension d : ℕ, an implicit size n : ℕ, and a finite set B of functions from Fin d to Fin n, is_box d B asserts that there exists a family of subsets A : Fin d → Finset (Fin n) such that:
1. For every coordinate i : Fin d, A i has cardinality 2;
2. B is the Cartesian product Fintype.piFinset A (that is, the set of all functions f : Fin d → Fin n satisfying f i ∈ A i for all i : Fin d).
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 box in `Fin d → Fin n` is the Cartesian product of two-element subsets in each coordinate. -/ def is_box (d : ℕ) {n : ℕ} (B : Finset (Fin d → Fin n)) : Prop := ∃ A : Fin d → Finset (Fin n), (∀ i : Fin d, (A i).card = 2) ∧ B = Fintype.piFinset A