Structured proof · Unit 136
lemma Lift.sum_twoWindows_le
What it saysFor n, p, d, m, H \in \mathbb{N} and c \in \mathbb{Z} with n \le p\cdot m (e) and |c| + n \le H (
hH): \sum_{y\in\mathrm{twoWindows}(n, c)} (v_p(y) + d) \le (4m + 2)\cdot\lfloor \log_p H\rfloor + (4n + 2)\cdot d, where v_p(0) = 0.The argument in briefEach nonzero valuation is at most \lfloor \log_p H\rfloor and comes from a multiple of p, of which there are at most 4m + 2; the windows have at most 4n + 2 elements.
Write the sum as \sum_y v_p(y) + |
twoWindows(n, c)|\cdot d; in the first sum only the y with v_p(y) \ne 0 count, each at most \lfloor \log_p H\rfloor (v_p(y) \le \log_p|y| and |y| \le |c| + n \le H); these y are multiples p\cdot k with k \intwoWindows(m, c div p) (shown next), so there are at most 4m + 2 of them; and |twoWindows(n, c)| \le 2(2n + 1).Uses
padicValNat_le_nat_log,Finset.,card_le_card_of_surjOn Finset.,card_union_le Int.card_Icc A multiple y = p\cdot k in [-n, n] \cup [c - n, c + n] has k \in [-m, m] \cup [c div p - m, c div p + m], since n \le pm and c = p\cdot(c div p) + (c mod p) with 0 \le c mod p < p.