Structured proof · Unit 147
lemma Data.card_neg_gridSigns
What it saysFor P, data D, a grid z and natural numbers i, j: with offset 0, the number of signs -1 at the node (i, j) is \lfloor(m - j + [z])/2\rfloor (m - j truncated at 0): \lfloor(m - j + 1)/2\rfloor in the grid Z and \lfloor(m - j)/2\rfloor in the grid V.
The argument in briefWrite the count as a sum (
Data.card_neg_gridSigns_eq_sum ), pass through (r + [z] + 1 - k - j)/2, and compute by induction on r + [z].By
Data.the count is a sum over the base indices; it equals (r + [z] + 1 - k - j)/2, shown by induction on r + [z].card_neg_gridSigns_eq_sum The cases close by the formula of
Data.(and r + 1 = k + m).entrySign_eq