Documentation

CslibFrontier.Computability.Circuit.Arithmetic.SubstMatrix

Specialization entries and specialization matrices #

A polynomial in MvPolynomial σ K is a projection substitution entry (IsSubstEntry) when it is a variable X i or a constant C c, that is, a single substituted value of Cslib.Circuits.Arithmetic.projection. A matrix over MvPolynomial σ K is a specialization matrix (IsSubstMatrix) when every entry satisfies IsSubstEntry. Specialization matrices are closed under zero and identity matrices, 2 × 2 block matrices, and arbitrary row/column selection (Matrix.submatrix), providing the common entry discipline for projections of generic permanents and generic determinants.

Main definitions #

References #

A polynomial in MvPolynomial σ K is a projection substitution entry if it is a variable X i or a constant C c.

@[simp]

Every constant polynomial C c is a substitution entry.

@[simp]

Every variable X i is a substitution entry.

@[simp]

The zero polynomial is a substitution entry.

@[simp]

The constant polynomial 1 is a substitution entry.

@[simp]

Every numeral n ≥ 2 is a substitution entry.

def Cslib.Circuits.Arithmetic.IsSubstMatrix {K : Type u} [CommSemiring K] {σ : Type u_1} {α : Type u_2} {β : Type u_3} (M : Matrix α β (MvPolynomial σ K)) :

A matrix over MvPolynomial σ K is a specialization matrix if every entry is a variable X i or a constant C c (IsSubstEntry).

@[simp]
theorem Cslib.Circuits.Arithmetic.IsSubstMatrix.zero {K : Type u} [CommSemiring K] {σ : Type u_1} {α : Type u_2} {β : Type u_3} :

The zero matrix is a specialization matrix.

@[simp]

The identity matrix is a specialization matrix.

theorem Cslib.Circuits.Arithmetic.IsSubstMatrix.fromBlocks {K : Type u} [CommSemiring K] {σ : Type u_1} {α₁ : Type u_2} {α₂ : Type u_3} {β₁ : Type u_4} {β₂ : Type u_5} {A : Matrix α₁ β₁ (MvPolynomial σ K)} {B : Matrix α₁ β₂ (MvPolynomial σ K)} {C : Matrix α₂ β₁ (MvPolynomial σ K)} {D : Matrix α₂ β₂ (MvPolynomial σ K)} (hA : IsSubstMatrix A) (hB : IsSubstMatrix B) (hC : IsSubstMatrix C) (hD : IsSubstMatrix D) :

A 2 × 2 block matrix built from specialization matrices is a specialization matrix.

theorem Cslib.Circuits.Arithmetic.IsSubstMatrix.submatrix {K : Type u} [CommSemiring K] {σ : Type u_1} {α : Type u_2} {β : Type u_3} {α' : Type u_4} {β' : Type u_5} {M : Matrix α β (MvPolynomial σ K)} (hM : IsSubstMatrix M) (f : α' → α) (g : β' → β) :

Reindexing or selecting rows and columns preserves IsSubstMatrix.

@[simp]

The constant polynomial -1 over a commutative ring is a substitution entry.

@[simp]

Every integer cast over a commutative ring is a substitution entry.