English
Define adjp as the adjugate-like matrix that retains only terms of a prescribed sign; it is a matrix-valued function of signs on permutations.
Русский
Определим adjp как матрицу смежности по модулю знака; она остается матричным значением в зависимости от знаков перестановок.
LaTeX
$$$\\operatorname{adjp} : M_n(R) \\to M_n(R)$ с учётом знака сигнала.$$
Lean4
/-- The adjugate matrix, but only the terms of a given sign. -/
def adjp : Matrix n n R :=
of fun i j ↦ ∑ σ ∈ (ofSign s).filter (· j = i), ∏ k ∈ { j }ᶜ, A k (σ k)