grh-compacta Lean artifact read back into mathematics

Structured proof · Unit 144

lemma volume_inter_slab_eq_signed_sum

What it saysLet k, m \in \mathbb{N}, P > 1 real (hP), v : Fin (m+1) \to Bool (letters in Fin (m+1) with its cyclic addition), D : Fin (m+1) \to \mathbb{R}, and \Omega \subseteq \mathbb{R}^{Fin k \times Fin(m+1)} with permStep v P 1 \nu \in \Omega iff \nu \in pieriCone v P, for every \nu (h\Omega). For \tau \in S_k let \Delta(\tau) = |\det(1 - q^{-1}\cdot \tau \ast)|, where q = P^{m+1} and \tau \ast = funLeft \mathbb{R} \mathbb{R} \tau is the linear map f \mapsto f\circ \tau of \mathbb{R}^{Fin k}. Then \operatorname{vol}(\Omega \cap slab k D) = \Delta(id)/k!\cdot(\sum_{\tau \in S_k} \operatorname{sgn}(\tau)/\Delta(\tau))\cdot \operatorname{vol}(slab k D), volumes being real numbers (Lebesgue measure). The arguments, in Lean's order: \{k\} \{m\} (P) \{v\} (hP) (D) \{\Omega \} (h\Omega) — the implicit section variable k : \mathbb{N} comes first (the statement mentions k only after let Δ τ := …, where the census's text reading of the signature stops); the use @volume_inter_slab_eq_signed_sum k 0 P ⊤ q 1 (pieriCone ⊤ P) … in prod_mul_volume_inter_slab (line 130) passes all eight in this order.
The argument in briefSorting each column \nu(\cdot, j) of a point turns the cyclic interlacing conditions into a product over the letters of interlacing-indicator determinants, which expand (Leibniz) into a signed sum over tuples \sigma of permutations of indicators of the sets S(\sigma, 1, univ). Integrating this pointwise identity, each set is the image of a part of the slab under an invertible linear map, whose determinant is a constant times \det(1 - q^{-1}\cdot(\Pi \sigma)^{*}); regrouping the tuples by their product \tau gives the formula.

30 steps, 24 of them leaves · New/TwistedHecke/InterlacingCone.lean, lines 47–106 · in the notes: Proposition 5.2, p. 16 of Elementary divisors of a Frobenius-twisted Hecke operator

↑ ↓ or j k: step · ← →: fold · Enter: show its lines
  1. 0setup1 step insidelines 48–106

    The value as the line census delimits it: the census cuts the statement at the := of let Δ τ := … (line 48), so the rest of the statement (to line 50, the whole statement being lines 47–50: a second-reader message) belongs to the value here; the proof proper starts on line 51.

    1. 0.1case18 steps insidelines 48–106

      Not proof in its head: lines 48–50 of the head are the rest of the statement (\Delta(\tau) = |\det(1 - q^{-1}\cdot \tau \ast)| and the identity \operatorname{vol}(\Omega \cap slab k D) = \Delta(id)/k!\cdot(\sum_{\tau} \operatorname{sgn}(\tau)/\Delta(\tau))\cdot \operatorname{vol}(slab k D)); its children are the proof. This is one branch only because the checker reads the absolute-value bar | that opens the value as the first arm of a definition by equations; nothing is split here.

      1. For a tuple \sigma of permutations (one per letter), a tuple \tau and a set Y, let S(\sigma, \tau, Y) be the set of \nu whose column sums of permStep v P 1 \nu lie in [D(j) - 1, D(j)] and for which \beta = permStep v P \sigma (\nu with rows permuted by \tau letterwise) has all coordinates > 0 and lies in Y.

      2. Claim z: \det(permStep v P \sigma) \ne 0 for every \sigma: if permStep v P \sigma \nu = 0 then P\cdot \nu equals \nu composed with a bijection of the coordinates, so P\cdot \lVert \nu \rVert \le \lVert \nu \rVert (sup norm), and P > 1 forces \nu = 0.

        Lean states(@permStep k _ _ _ v P σ).det ≠ 0

        UsespermStep unit 144, LinearMap.bot_lt_ker_of_det_eq_zero, pi_norm_comp_le

      3. 3fact4 steps insidelines 58–65

        Claim V: \operatorname{vol}(S(\sigma, \tau, Y)) = |\det(permStep v P \sigma \circ (rows permuted by \tau))|^{-1}\cdot \operatorname{vol}(Y \cap slab k D).

        Lean statesvolume (S σ τ Y) = .ofReal |(permStep v P σ * (Perm.permMatrix ℝ (prodCongrLeft τ)).toLin').det⁻¹| * volume (Y ∩ slab k D)

        1. 3.1reductionlines 60–61

          Remove the walls \{\beta(x) = 0\} (each a null set, so imposing \beta(x) \ne 0 almost everywhere changes nothing) and change variables by the invertible linear map (z): the measure of a preimage under a linear map is the measure divided by |\det |.

          Usesstep 2, MeasureTheory.measure_inter_conull, MeasureTheory.Measure.addHaar_preimage_linearMap, MeasureTheory.Measure.ae_eval_ne

        2. 3.2reductionline 62

          It remains to identify the two sets pointwise.

        3. 3.3computationlines 63–64

          Unfold S and slab: the column sums of \beta and of permStep v P 1 \nu agree, as the permutations only reorder the rows.

          Usesstep 1, slab unit 144, permStep unit 144, Equiv.sum_comp, Matrix.permMatrix_mulVec

        4. 3.4computationline 65

          The remaining propositional identity.

      4. 4setupline 66

        Let B : \mathbb{R}^{Fin k} \to \mathbb{R}^{Fin k \times Fin(m+1)}, f \mapsto((b, j) \mapsto P^{-(j+1)}\cdot f(b)).

      5. 5fact4 steps insidelines 67–77

        There is a constant c with \det(permStep v P \sigma) = c\cdot \det(1 - q^{-1}\cdot(\sigma_{0}\sigma_{1}\cdots \sigma_{m})^{*}) for every \sigma (q = P^{m+1}).

        Lean states∃ c, ∀ σ, (@permStep k _ _ _ v P σ).det = c * (1 - (P ^ (m + 1))⁻¹ • funLeft ℝ ℝ (List.ofFn σ).prod).det

        1. 5.1setupline 69

          Let G be the permutation of coordinates by the partial products \sigma_{0}\cdots \sigma_{j-1} at the letter j.

        2. 5.2setupline 70

          Let A : \mathbb{R}^{Fin k \times Fin(m+1)} \to \mathbb{R}^{Fin k}, f \mapsto(b \mapsto f(\Pi \sigma \cdot b, m)) (the last letter, permuted by the full product).

        3. 5.3reduction1 step insideline 71

          q^{-1}\cdot(\Pi \sigma)^{*} = A\circ B.

          1. 5.3.1factline 71

            q^{-1}\cdot(\Pi \sigma)^{*} = A\circ B, checked on coordinates.

            Lean states_ • _ = A ∘ₗ B

            Usesstep 4, step 5.2

        4. 5.4deduction1 step insidelines 72–77

          Factor permStep v P \sigma \cdot G = (permStep v 1 1 - permStep v 0 1)\cdot G\cdot(P\cdot 1 - shift)\cdot(1 - B\circ A); taking determinants and \det(1 - B\circ A) = \det(1 - A\circ B) (Sylvester) gives the claim, c collecting the factors independent of \sigma.

          UsesMatrix.det_one_sub_mul_comm, LinearMap.det_toMatrix'

          1. 5.4.1factlines 73–77

            The factorisation identity, checked on coordinates (x, (b, j)) by cases on whether j is the last letter.

            Lean statespermStep v P σ * G = (permStep v 1 1 - permStep v 0 1) * G * (P • 1 - .pi fun x ↦ x.2.cases 0 (proj ⟨x.1, ·.castSucc⟩)) * (1 - B ∘ₗ A)

            Usesstep 4, step 5.1, step 5.2, permStep unit 144, Fin.lastCases, Fin.partialProd_succ

      6. Claim e (proved below): for every \nu, \sum_{\tau} 1_{S(1, \tau, \Omega)}(\nu) = \sum_{\sigma} \operatorname{sgn}(\sigma_{0}\cdots \sigma_{m})\cdot 1_{S(\sigma, 1, \mathbb{R}^{\ldots})}(\nu).

        Lean states∑ τ, (S 1 τ Ω).indicator (fun _ ↦ 1) ν = ∑ σ, (S σ 1 univ).indicator (fun _ ↦ ((List.ofFn σ).prod.sign : ℝ)) ν

        Usesstep 1

      7. 7deductionlines 80–87

        Integrate e over \nu. The left side gives \sum_{\tau} \operatorname{vol}(S(1, \tau, \Omega)) = (number of \tau)\cdot |\det permStep v P 1|^{-1}\cdot \operatorname{vol}(\Omega \cap slab) (V; the sets are measurable and of finite measure, the slab being bounded); the right side gives \sum_{\sigma} \operatorname{sgn}(\Pi \sigma)\cdot |c\cdot \det(1 - q^{-1}(\Pi \sigma)^{*})|^{-1}\cdot \operatorname{vol}(slab) (V and \mathit{hc}). Regrouping the tuples \sigma by their product \tau (each \tau has (k!)^{m} preimages) and dividing by the left coefficient, with \det permStep v P 1 = c\cdot \Delta(id) (\mathit{hc} at \sigma = 1, z), gives the formula.

        Usesstep 2, step 3, step 5, step 6, isBounded_inter_slab unit 144, pieriCone unit 144, MeasureTheory.integral_finsetSum, MeasureTheory.integral_indicator, Fintype.card_perm, Equiv.sum_comp

      8. 8setupline 89

        Proof of e, at a fixed \nu: let \tau_{j} be the permutation sorting the column -\nu(\cdot, j) increasingly.

      9. 9factline 90

        Then \nu(\tau_{j}(\cdot), j) is weakly decreasing (anti).

        Usesstep 8, Tuple.monotone_sort

      10. 10computationlines 91–92

        Unfold the indicators, S, h\Omega and pieriCone, and pull the common condition on the column sums out of the sums.

        Usesstep 1, pieriCone unit 144

      11. 11reductionlines 93–95

        On the left only \tau =(\tau_{j})_{j} contributes: if the cone conditions hold for \nu with rows permuted by \tau, the permuted columns are strictly decreasing, so \tau_{j} is the sorting permutation (eq_sort_iff').

        Usesstep 8, Finset.sum_eq_single, Tuple.eq_sort_iff'

      12. 12reductionline 96

        Compare the remaining terms.

      13. 13reductionlines 97–98

        Pass through \Pi_{j} \det of the k\times k matrices with (b', b) entry [0 < permStep v P (swap b b') \nu (b, j)], reindexed by the sorting permutations of the letters j and j + 1.

      14. 14computationlines 99–101

        That product of determinants, expanded by the Leibniz formula, is the signed sum over \sigma of the right side (signs of the reindexings and of the products cancel over the cycle of letters).

        UsesMatrix.det_reindex, Matrix.det_apply', Finset.prod_univ_sum, Fintype.prod_ite_zero

      15. 15reductionline 102

        Compare letter by letter: each determinant is a 0/1 indicator (Fintype.prod_boole).

        UsesFintype.prod_boole

      16. 16factline 103

        P\cdot \nu(\tau_{j+1}(\cdot), j+1) is weakly decreasing too (P \ge 0).

        Usesstep 9

      17. 17deductionlines 104–105

        By det_interlacing_indicator for the sorted columns \nu(\cdot, j) and P\cdot \nu(\cdot, j+1) (transposed when v(j) is false), each determinant is the indicator of the interlacing condition, which is the cone condition at the letter j.

        Usesstep 9, step 16, det_interlacing_indicator unit 144, Matrix.det_transpose

      18. 18computationline 106

        A remaining instance argument is found by instance search.