Equivalent monotone span programs #
Two monotone span programs are equivalent when, for every secret, the linear secret sharing
schemes derived from them give the same distribution of shares
Boneh and Shoup, Definition 22.23, p. 981. Here that is the equation
(linearUniformAccessScheme P').shareDist (uniformOfFintype (LinearKey P')) secret = (linearUniformAccessScheme P).shareDist (uniformOfFintype (LinearKey P)) secret for every
secret, over a finite field, with no separate predicate: the two sides have the same type only
when the programs have the same row dimensions. Their numbers of columns may differ.
Lemma 22.15 of [BS23] says that multiplying every matrix on the right by an invertible
matrix R whose top row is e₁ gives an equivalent program. For a key k, the program
(M_i * R)_i gives the shares that P gives for the key tail (R * (secret, k)), and that map
of keys is a bijection, so a uniform key goes to a uniform key.
For parties Fin N and a field with decidable equality, where elimination runs, this module also
proves the identities of the two parts of Theorem 22.14 of [BS23] (p. 981). They are
steps toward that theorem, not the theorem. Part (a): for an accepted coalition, the vectors of
the algorithm Lin (MonotoneSpanProgram.recombination) recombine the members' shares to the
secret, for every key. Part (b)(i): for a coalition that is not accepted, the program P_L
(MonotoneSpanProgram.normalForm) is equivalent to P, by Lemma 22.15. Theorem 22.14 also says
that Lin is an efficient deterministic algorithm and that P_L is efficiently computable. The
only bounds are those of CslibFrontier.Computability.Circuit.SpanProgram.EliminationSynthesis,
one field-gate circuit for each shape of program; a uniform bound in bit operations is open
(#5293).
Main results #
Cslib.Crypto.Protocols.SecretSharing.shareDist_linearUniformAccessScheme_mulRight: Lemma 22.15.Cslib.Crypto.Protocols.SecretSharing.sum_recombination_dotProduct_linearShare: the recombination identity of Theorem 22.14(a), a step toward that theorem.Cslib.Crypto.Protocols.SecretSharing.shareDist_linearUniformAccessScheme_normalForm: the equivalence of Theorem 22.14(b)(i), a step toward that theorem.Cslib.Crypto.Protocols.SecretSharing.linearShare_eq_of_col_zero: a share whose matrix has first column zero does not depend on the secret.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Definition 22.23, Theorem 22.14 and Lemma 22.15, pp. 981–982.