Recovering a hidden mask from either of two views needs sufficiently many transcripts
ProvedPvsNP.masked_transcript_success_cardcomplexity-theoryformal-verification
Let an input consist of a group element and a hidden mask index. The two views expose the original group element and its translate by the mask, respectively. Suppose a decoder uses one selected view and a transcript to return the index. The number of input pairs on which this succeeds is at most twice the group cardinality times the transcript alphabet cardinality.
Preamble
import Mathlib.Algebra.Group.Basic import Mathlib.Data.Finset.Card import Mathlib.Data.Fintype.Card import Mathlib.Data.Fintype.Prod set_option autoImplicit false
Formal statement
theorem PvsNP.masked_transcript_success_card {Value Key Record : Type}
[AddGroup Value] [Fintype Value] [Fintype Record]
(delta : Key → Value) (side : Value × Key → Bool)
(record : Value × Key → Record)
(leftGuess rightGuess : Value → Record → Key)
(success : Finset (Value × Key))
(correct : ∀ p ∈ success,
(if side p then rightGuess (p.1 + delta p.2) (record p)
else leftGuess p.1 (record p)) = p.2) :
success.card ≤ 2 * Fintype.card Value * Fintype.card Record := by sorrySource
A single-tape comparison that returns a mismatch address.