What it saysLet R and S be commutative rings, r and N finite types, a and c types, \chi \colon R \to \mathbb{C} a multiplicative character, \varphi \colon R \to S a ring homomorphism, w a c\times N matrix over S and e \colon r \hookrightarrow N an embedding. Let F be a complex function on the N\times a matrices over R that is invariant under left multiplication by H =rowStabilizer\varphi w e (hF: F(A\cdot y) = F(y) for every A \in H and every y). Then for every N\times a matrix y over R and every N\times N matrix z over R: columnDatum\chi \varphi w e (z_e) \cdot (F(y) if FixesColsOffe z, else 0) = \chi(\det z)\cdot F(z^{-1}\cdot y) if z is the matrix of an element of H, and 0 otherwise. Here z_e is the N\times r matrix of the columns e(r) of z and z^{-1} the inverse matrix.
The argument in briefWhen the columns of z off e are those of 1, the column datum of z is \chi(\det z) or 0 according as w\cdot \varphi(z) = w; then a split on the invertibility of z, with the invariance of F under z^{-1}, gives both sides.
If FixesColsOffe z holds, then columnDatum\chi \varphi w e (z_e) = \chi(\det z) when w\cdot \varphi(z) = w, and 0 otherwise. Indeed z = 1 + (z - 1)\cdot I_e\cdot I_e^{\mathsf{T}} (the columns off e are those of 1; checked by grind), so the rows e of the columns e of z form I_e^{\mathsf{T}}\cdot z\cdot I_e, whose determinant is \det(1 + I_e^{\mathsf{T}}(z - 1)I_e) = \det(1 + (z - 1)I_e I_e^{\mathsf{T}}) = \det z (\det(1 + AB) = \det(1 + BA)); and w\cdot \varphi(z)\cdot I_e = w\cdot I_e is equivalent to w\cdot \varphi(z) = w, because right multiplication by I_e^{\mathsf{T}} is injective (I_e^{\mathsf{T}}\cdot I_e = 1).
Lean statescolumnDatum χ φ w e (z.submatrix id e) = ite (w * z.map φ =
w) (χ z.det) 0
Split on whether z is invertible. If z is the matrix of a unit Z, then Z \in H exactly when FixesColsOffe z and w\cdot \varphi(z) = w; in that case both sides equal \chi(\det z)\cdot F(y), since F(z^{-1}y) = F(y) by hF applied to Z^{-1} \in H; otherwise both sides are 0 by step 1. If z is not invertible, \det z is not a unit, so \chi(\det z) = 0 (a multiplicative character vanishes on non-units) and no element of H has matrix z: both sides are 0.