Documentation

CslibFrontier.Computability.Circuit.SpanProgram.ChangeOfBasis

Change of basis of a monotone span program #

Multiplying every matrix M_i of a monotone span program on the right by one square matrix R gives the program (M_i * R)_i of Boneh and Shoup, Lemma 22.15, p. 982. When R is invertible and its top row is e₁, the two programs accept the same coalitions: R fixes the target vector e₁, and an invertible R maps a combination of rows to e₁ exactly when the combination itself is e₁. That the two programs also generate the same distribution of shares is Lemma 22.15 itself, in CslibFrontier.Crypto.Protocols.SecretSharing.AccessStructure.LinearEquivalence.

Main definitions #

Main results #

References #

def Cslib.Circuits.MonotoneSpanProgram.mulRight {F : Type u_1} {Party : Type u_2} [Field F] (P : MonotoneSpanProgram F Party) (R : Matrix (Fin (P.tailDim + 1)) (Fin (P.tailDim + 1)) F) :

The span program whose matrices are M_i * R ([BS23], Lemma 22.15, p. 982). It has the same row dimensions and number of columns as P.

@[simp]
theorem Cslib.Circuits.MonotoneSpanProgram.mulRight_matrix {F : Type u_1} {Party : Type u_2} [Field F] (P : MonotoneSpanProgram F Party) (R : Matrix (Fin (P.tailDim + 1)) (Fin (P.tailDim + 1)) F) (i : Party) :
(P.mulRight R).matrix i = P.matrix i * R
theorem Cslib.Circuits.MonotoneSpanProgram.accepts_mulRight {F : Type u_1} {Party : Type u_2} [Field F] (P : MonotoneSpanProgram F Party) {R : Matrix (Fin (P.tailDim + 1)) (Fin (P.tailDim + 1)) F} (hR : IsUnit R.det) (htop : R 0 = Pi.single 0 1) (s : Finset Party) :

Multiplying on the right by an invertible matrix whose top row is e₁ does not change the accepted coalitions.