grh-compacta Lean artifact read back into mathematics

Structured proof · Unit 147

lemma Data.gridParam_interlace

What it saysFor P, data D, an infinite place \tau and an integer x: at the node (m, m), the number of entries of -gridParam(true, 0, m, m, \tau) above x minus the number of entries of gridParam(false, 0, m, m, \tau) above x lies in \{0, 1\}: the negated parameter of the grid Z and the parameter of the grid V interlace.
The argument in briefCount entries above x block by block with closed forms g(n, \cdot) for arithmetic progressions; the difference is the contribution of one base entry, between 0 and 1; induction on m.

9 steps, 7 of them leaves · New/Exchange/GridParameters.lean, lines 128–140 · in the notes: Definition 3.1, p. 6 of The grid of lifts and descents, and the crude rows

↑ ↓ or j k: step · ← →: fold · Enter: show its lines
  1. Let \varphi(y) = [x < y] and g(n, y) = \max(0, \min(n, (y - x)/2)).

  2. For every A and n: \sum_{i<n} \varphi(A - 2i) = g(n, A + 1) and \sum_{i<n} \varphi(-1 -(A - 2i)) = g(n, 2n - A - 2) (C, by induction on n).

    Lean states∑ i ∈ range n, φ (A - 2 * i) = g n (A + 1) ∧ ∑ i ∈ range n, φ (-1 + -(A - 2 * i)) = g n (2 * n - A - 2)

    Usesstep 1

  3. It suffices that the difference lies in [\varphi(s), \varphi(-1 - s)] for s = 2\varsigma(\tau, r) (a set inclusion, by arithmetic).

    Usesstep 1

  4. 4block1 step insideline 134

    Write the two counts as sums of \varphi.

    1. 4.1stepline 134

      The goal is the difference of the two sums of \varphi.

      Lean states∑ _, φ _ - ∑ _, φ _ ∈ _

  5. Expand the sums over the blocks of the index sets (gridParam, the products of index types, the sums over ranges), using C.

    Usesstep 2

  6. 6block1 step insidelines 137–139

    With r = k - 1 + m, induction on m (only the base case is a written branch).

    1. Base case m = 0: unfold rowParameter and conclude by arithmetic.

  7. Inductive step: by arithmetic (grind).