I have seen proofs of this particular problem in a few articles/papers (which lead to a ZKP 2 nuclear warheads are similar), but I find a problem in the proof with the marbles - surely the proof doesn't work because the experiment cannot be repeated.
Proof outline:
- The prover claims a pair of cups each contain $n$ marbles and for some $N$, $1 \leq n \leq N$.
- The prover prepares a pair of buckets and claims each contain $N-n$ marbles.
- The prover pours each cup of marbles into a different bucket, but the verifier chooses which cup goes into which bucket.
- The verifier confirms each bucket now contains $N$ marbles.
- This can be repeated an arbritrary number of times until the verifier is satisfied.
Is there a way this proof can be rectified? (I'm assuming the marbles aren't necessarily identical so weighing won't work)
http://cvt.engin.umich.edu/wp-content/uploads/sites/173/2014/10/Glaser-Nature-Article.pdf https://www.latimes.com/science/sciencenow/la-sci-sn-verification-nuclear-disarmament-20140625-story.html