Documentation

CslibFrontier.Foundations.Data.Fintype.Grid

Cardinality of integer counter grids #

The number of configurations of an ι × κ grid of integer counters bounded in [-m, m].

Main results #

theorem Fintype.card_piFinset_Icc {ι : Type u_1} {κ : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (m : ℕ) :
(piFinset fun (x : ι) => piFinset fun (x : κ) => Finset.Icc (-↑m) ↑m).card = (2 * m + 1) ^ (card ι * card κ)

The number of values of an ι × κ grid of integer counters in [-m, m].