Structured proof · Unit 144
lemma TwistingData.sum_deepIndicator
What it saysLet N be a natural number, W a commutative local ring, K a field and T twisting data over them (T :
TwistingData N W K, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to K for s \in \mathbb{Z}/N, parity isEven and w \in K), N \ne 0, k \in \mathbb{N}, r \in \mathbb{N} and an index b \in Fin k: \sum_{s\in \mathbb{Z}/N} deepIndicator T r (b, s) = N/2 (natural division): the variable (b, s) is deep for exactly half of the letters, as the parity alternates.The argument in brief
deepIndicator(b, s) + deepIndicator(b, s - 1) = 1 since parities alternate; summing over s gives 2\cdot \sum = N.It suffices to show 2\cdot \sum_{s}
deepIndicatorT r (b, s) = N (then the sum is N/2; 2 \ne 0).Uses
Nat.eq_div_of_mul_eq_right 2\cdot \sum_{s} f(s) = \sum_{s} f(s) + \sum_{s} f(s - 1) (translation invariance of the sum over \mathbb{Z}/N) = \sum_{s}(f(s) + f(s - 1)), and f(s) + f(s - 1) = 1 for every s, as
isEven(s) = notisEven(s - 1) (isEven_succ); \sum_{s} 1 = N.Uses
TwistingData.unit 144,deepIndicator TwistingDataunit 144,Finset.,sum_translate Finset.,sum_add_distrib Finset.sum_const_nat