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.
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').For h' \le |n| the count \#\{i < h'\} is h' (
Fin.); for |n| < h' < |n'| the factor \kappa_\tau(h') vanishes bycard_filter_val_lt FitsRanks(h); the remaining arithmetic is checked by grind.