Structured proof · Unit 144
lemma volume_inter_slab_eq_signed_sum
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 value as the line census delimits it: the census cuts the statement at the
:=oflet Δ τ := …(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.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.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
permStepv P 1 \nu lie in [D(j) - 1, D(j)] and for which \beta =permStepv P \sigma (\nu with rows permuted by \tau letterwise) has all coordinates > 0 and lies in Y.Claim z: \det(
permStepv P \sigma) \ne 0 for every \sigma: ifpermStepv 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 ≠ 0Uses
permStepunit 144,LinearMap.,bot_lt_ker_of_det_eq_zero pi_norm_comp_leClaim V: \operatorname{vol}(S(\sigma, \tau, Y)) = |\det(
permStepv P \sigma \circ (rows permuted by \tau))|^{-1}\cdot \operatorname{vol}(Y \cap slab k D).Lean states
volume (S σ τ Y) = .ofReal |(permStep v P σ * (Perm.permMatrix ℝ (prodCongrLeft τ)).toLin').det⁻¹| * volume (Y ∩ slab k D)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 It remains to identify the two sets pointwise.
The remaining propositional identity.
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)).
There is a constant c with \det(
permStepv 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).detLet G be the permutation of coordinates by the partial products \sigma_{0}\cdots \sigma_{j-1} at the letter j.
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).
q^{-1}\cdot(\Pi \sigma)^{*} = A\circ B.
Factor
permStepv P \sigma \cdot G = (permStepv 1 1 -permStepv 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.Uses
Matrix.,det_one_sub_mul_comm LinearMap.det_toMatrix' The factorisation identity, checked on coordinates (x, (b, j)) by cases on whether j is the last letter.
Lean states
permStep 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,
permStepunit 144,Fin.,lastCases Fin.partialProd_succ
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
Integrate e over \nu. The left side gives \sum_{\tau} \operatorname{vol}(S(1, \tau, \Omega)) = (number of \tau)\cdot |\det
permStepv 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 \detpermStepv 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_slabunit 144,pieriConeunit 144,MeasureTheory.,integral_finsetSum MeasureTheory.,integral_indicator Fintype.,card_perm Equiv.sum_comp Proof of e, at a fixed \nu: let \tau_{j} be the permutation sorting the column -\nu(\cdot, j) increasingly.
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' Compare the remaining terms.
Pass through \Pi_{j} \det of the k\times k matrices with (b', b) entry [0 <
permStepv P (swap b b') \nu (b, j)], reindexed by the sorting permutations of the letters j and j + 1.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).
Uses
Matrix.,det_reindex Matrix.,det_apply' Finset.,prod_univ_sum Fintype.prod_ite_zero Compare letter by letter: each determinant is a 0/1 indicator (
Fintype.).prod_boole Uses
Fintype.prod_boole By
det_interlacing_indicatorfor 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_indicatorunit 144,Matrix.det_transpose A remaining instance argument is found by instance search.