grh-compacta Lean artifact read back into mathematics

Structured proof · Unit 143

lemma twoSidedSubst_stackedDetProd

What it saysLet \Phi, a, N and L be finite types, e \colon a \oplus N \simeq L a bijection, \iota a family of finite types indexed by \Phi, M \tau k a complex a\times L matrix for each \tau \in \Phi and k \in \iota \tau, c a family of complex N\times N and g a family of complex L\times L matrices indexed by \Phi. Then twoSidedSubst c g (x_\tau \mapsto c_\tau^{\mathsf{T}} x_\tau g_\tau^{\mathsf{T}}) maps stackedDetProd e (\tau, k \mapsto M \tau k\cdot(g \tau)^{\mathsf{T}}) to (\prod_\tau(\det c_\tau \cdot \det g_\tau)^{|\iota \tau |})\cdot \operatorname{stackedDetProd} e M.
The argument in briefPush the substitution through the products; for each factor, the substituted stacked determinant is the determinant of a product of the stacked matrix [M ; x_\tau] with block matrices built from c_\tau and g_\tau, which multiplicativity of \det turns into \det c_\tau \cdot \det g_\tau times the original.

4 steps, 3 of them leaves · New/Rows/StackedDeterminants.lean, lines 332–337 · in the notes: Lemma 2.17, p. 11 of Auxiliary dual pairs, determinant polynomials and the carrier: the explicit matching of theta kernels

↑ ↓ or j k: step · ← →: fold · Enter: show its lines
  1. 1reductionlines 333–335

    Comparing the two polynomials (funext) and pushing the algebra map through the products and determinants (the substitution of a determinant is the determinant of the substituted matrix; the scalar \prod_\tau(\ldots)^{|\iota \tau |} distributes as one factor \det c_\tau \cdot \det g_\tau per (\tau, k)), it suffices to show for each \tau and k that the substituted determinant of [M_{\tau k}g_\tau^{\mathsf{T}} ; x_\tau] (columns by e) is \det c_\tau \cdot \det g_\tau times the substituted-free stacked determinant of M_{\tau k} after the substitution, factor by factor (congr!).

  2. 2reduction1 step insideline 336

    Rewrite the product of the scalar factor with a determinant as a single determinant, by the identity of step 2.1.

    1. 2.1identityline 336

      For every square matrix M' (indexed by a \oplus N), the product of the scalar factor (the product of the two block determinants) with \det M' equals \det(\operatorname{diag}(1, A^{\mathsf{T}})\cdot(M'\cdot(B^{\mathsf{T}} relabelled by e on both sides))) for the blocks A, B fixed by the goal (c_\tau \text{ and } g_\tau): multiplicativity of \det, the determinant of a block-diagonal matrix with an identity block, and invariance under relabelling (simp with field arithmetic).

      Lean states∀ M, _ * det M = det (fromBlocks 1 0 0 _ᵀ * (M * _ᵀ.submatrix e e))

      UsesMatrix.det_mul, Matrix.det_fromBlocks_one₁₁

  3. 3computationline 337

    The two square matrices agree entrywise, on the rows of the M-block (inl) and on those of the variable block (inr): both are the same sums of products after expanding the matrix products (mul_apply, mul_sum), up to the order of the factors (ac_{nf}).

    Usesstep 2