Verifying the First Nonzero Term: Physical ZKPs for ABC End View, Goishi Hiroi, and Toichika
Suthee Ruangwises
TL;DR
This work introduces a physical, card-based protocol to verify the first nonzero term of a sequence with $Θ(1)$ shuffles and a single-card encoding per term, improving over prior $Θ(n)$-shuffle approaches. The core FirstNonZero protocol is then leveraged to construct ZKP procedures for three classic pencil-and-paper puzzles—ABC End View, Goishi Hiroi, and Toichika—demonstrating perfect completeness, perfect soundness, and zero-knowledge. The ABC End View protocol uses a permutation-verification primitive to enforce row/column uniqueness, while Goishi Hiroi and Toichika extend the idea to sequential stone-picking and region-arrow constraints with specialized encodings and non-adjacency checks. Collectively, the results provide a practical, intuition-friendly framework for verifiable, non-revealing puzzle solving using only physical cards, with potential implications for teaching and demonstration of ZKPs in tangible settings.
Abstract
In this paper, we propose a physical protocol to verify the first nonzero term of a sequence using a deck of cards. The protocol lets a prover show the value of the first nonzero term of a given sequence to a verifier without revealing which term it is. Our protocol uses $Θ(1)$ shuffles, which is asymptotically lower than that of an existing protocol of Fukusawa and Manabe which uses $Θ(n)$ shuffles, where $n$ is the length of the sequence. We also apply our protocol to construct zero-knowledge proof protocols for three well-known logic puzzles: ABC End View, Goishi Hiroi, and Toichika. These protocols enables a prover to physically show that he/she know solutions of the puzzles without revealing them.
