grh-compacta Lean artifact read back into mathematics

Structured proof · Unit 143

lemma FitsRanks.sum_diagramWeight_eq_boxes

What it saysLet n, n' and \Phi be finite types and \kappa \colon \Phi \to \mathbb{N} \to \mathbb{N} a weight with FitsRanks n n' \kappa (h: at every \tau, |n| \le |n'| and \kappa_\tau(h') = 0 for |n| < h' < |n'|). Then \sum_{(\tau, i) \in \Phi \times \operatorname{Fin} |n|} \operatorname{diagramWeight}(|n'|, \kappa)(\tau, i) = boxes \kappa |n'|, where \operatorname{diagramWeight}(N, \kappa)(\tau, i) = \sum_{i<h'\langle N} \kappa_\tau(h') and boxes \kappa N = \sum_\tau \sum_{h'\langle N} h'\cdot \kappa_\tau(h') is the number of boxes in the columns of height below N.
The argument in briefExchange the order of summation and count, for each height h', the indices i below it.

2 steps, 2 of them leaves · New/Rows/MemberKernels.lean, lines 31–35 · in the notes: Lemma 3.16, p. 16 of Glued lattices, product forms and the integral comparison forms

↑ ↓ or j k: step · ← →: fold · Enter: show its lines
  1. 1computationline 34

    Expand the diagram weights as double sums \sum_\tau \sum_{i<|n|} \sum_{i<h'<|n'|} \kappa_\tau(h') and exchange the sums over i and h' (sum_comm'): the claim becomes, for each \tau and h' < |n'|, \#\{i < |n| \colon i < h'\}\cdot \kappa_\tau(h') = h'\cdot \kappa_\tau(h').

  2. 2computationline 35

    For h' \le |n| the count \#\{i < h'\} is h' (Fin.card_filter_val_lt); for |n| < h' < |n'| the factor \kappa_\tau(h') vanishes by FitsRanks (h); the remaining arithmetic is checked by grind.