Physical Zero-Knowledge Proof: From Sudoku to Nonogram

Similar documents
Card-Based Zero-Knowledge Proof for Sudoku

UN DOS TREZ Sudoku Competition. Puzzle Booklet for Preliminary Round. 19-Feb :45PM 75 minutes

arxiv: v1 [cs.cr] 3 Jun 2016

Investigation of Algorithmic Solutions of Sudoku Puzzles

Easy Games and Hard Games

Cryptographic and Physical Zero-Knowledge Proof Systems for Solutions of Sudoku Puzzles

Selected Game Examples

Task Scheduling. A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering. May 2007 Task Scheduling Slide 1

Sudoku. How to become a Sudoku Ninja: Tips, Tricks and Strategies

Taking Sudoku Seriously

The Mathematics Behind Sudoku Laura Olliverrie Based off research by Bertram Felgenhauer, Ed Russel and Frazer Jarvis. Abstract

An Exploration of the Minimum Clue Sudoku Problem

arxiv: v2 [math.ho] 23 Aug 2018

Three of these grids share a property that the other three do not. Can you find such a property? + mod

1 Introduction. 2 An Easy Start. KenKen. Charlotte Teachers Institute, 2015

Pearl Puzzles are NP-complete

28,800 Extremely Magic 5 5 Squares Arthur Holshouser. Harold Reiter.

You ve seen them played in coffee shops, on planes, and

A year ago I investigated a mathematical problem relating to Latin squares. Most people, whether knowing it or not, have actually seen a Latin square

The Chinese Remainder Theorem

Task Scheduling. A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering. May 2016 Task Scheduling Slide 1

Light Up is NP-complete

Kenken For Teachers. Tom Davis January 8, Abstract

The Chinese Remainder Theorem

Tetsuo JAIST EikD Erik D. Martin L. MIT

KenKen Strategies 17+

SudokuSplashZone. Overview 3

Indian Sudoku Championship 2015

Some results on Su Doku

Question Score Max Cover Total 149

Techniques for Generating Sudoku Instances

Latin Squares for Elementary and Middle Grades

A construction of infinite families of directed strongly regular graphs

A NUMBER THEORY APPROACH TO PROBLEM REPRESENTATION AND SOLUTION

17. Symmetries. Thus, the example above corresponds to the matrix: We shall now look at how permutations relate to trees.

Which Rectangular Chessboards Have a Bishop s Tour?

New Sliding Puzzle with Neighbors Swap Motion

ENGR170 Assignment Problem Solving with Recursion Dr Michael M. Marefat

CONTENTS. 1. Number of Players. 2. General. 3. Ending the Game. FF-TCG Comprehensive Rules ver.1.0 Last Update: 22/11/2017

Reflections on the N + k Queens Problem

EC O4 403 DIGITAL ELECTRONICS

Name Period GEOMETRY CHAPTER 3 Perpendicular and Parallel Lines Section 3.1 Lines and Angles GOAL 1: Relationship between lines

I.M.O. Winter Training Camp 2008: Invariants and Monovariants

The remarkably popular puzzle demonstrates man versus machine, backtraking and recursion, and the mathematics of symmetry.

Plan. Related courses. A Take-Away Game. Mathematical Games , (21-801) - Mathematical Games Look for it in Spring 11

Shuffling with ordered cards

NAME : SUDOKU MASTERS 2008 FINALS PART 1 CLASSICS. 1. Classic Sudoku Classic Sudoku Classic Sudoku 50

Lecture 20 November 13, 2014

The Complexity of Generalized Pipe Link Puzzles

Spring 06 Assignment 2: Constraint Satisfaction Problems

To Your Hearts Content

Grades 7 & 8, Math Circles 27/28 February, 1 March, Mathematical Magic

INTRODUCTION TO COMPUTER SCIENCE I PROJECT 6 Sudoku! Revision 2 [2010-May-04] 1

Tiling Problems. This document supersedes the earlier notes posted about the tiling problem. 1 An Undecidable Problem about Tilings of the Plane

Pennies vs Paperclips

isudoku Computing Solutions to Sudoku Puzzles w/ 3 Algorithms by: Gavin Hillebrand Jamie Sparrow Jonathon Makepeace Matthew Harris

MATHEMATICS ON THE CHESSBOARD

How hard are computer games? Graham Cormode, DIMACS

Introduction Solvability Rules Computer Solution Implementation. Connect Four. March 9, Connect Four 1

Using KenKen to Build Reasoning Skills 1

Graphs of Tilings. Patrick Callahan, University of California Office of the President, Oakland, CA

Rosen, Discrete Mathematics and Its Applications, 6th edition Extra Examples

LMI Monthly Test May 2010 Instruction Booklet

CS 787: Advanced Algorithms Homework 1

Problem A: Watch the Skies!

Card-Based Protocols for Securely Computing the Conjunction of Multiple Variables

Chapter 10 Practice Test Probability

Problem 4.R1: Best Range

Problem F. Chessboard Coloring

CPSC 217 Assignment 3

2048 IS (PSPACE) HARD, BUT SOMETIMES EASY

Applications of Advanced Mathematics (C4) Paper B: Comprehension INSERT WEDNESDAY 21 MAY 2008 Time:Upto1hour

puzzles may not be published without written authorization

Yale University Department of Computer Science

Logic Masters India Presents. April 14 16, 2012 April 2012 Monthly Sudoku Test INSTRUCTION BOOKLET

KenKen Strategies. Solution: To answer this, build the 6 6 table of values of the form ab 2 with a {1, 2, 3, 4, 5, 6}

PRIMES STEP Plays Games

Comprehensive Rules Document v1.1

Background. Game Theory and Nim. The Game of Nim. Game is Finite 1/27/2011

CMPT 310 Assignment 1

Heuristic Search with Pre-Computed Databases

It Stands to Reason: Developing Inductive and Deductive Habits of Mind

arxiv: v1 [cs.cc] 28 Jun 2015

Binary Games. Keep this tetrahedron handy, we will use it when we play the game of Nim.

The puzzle Sudoku has become the passion

Games for Drill and Practice

OCTAGON 5 IN 1 GAME SET

Lecture 2. 1 Nondeterministic Communication Complexity

CMPT 310 Assignment 1

Introduction to Spring 2009 Artificial Intelligence Final Exam

Final Project: Verify a Sudoku Solution Due Fri Apr 29 (2400 hrs)? Wed May 4 (1200 hrs)? 1

Developed by Rashmi Kathuria. She can be reached at

Stanford University CS261: Optimization Handout 9 Luca Trevisan February 1, 2011

Game Theory and Algorithms Lecture 19: Nim & Impartial Combinatorial Games

How to Implement a Random Bisection Cut

Ideas beyond Number. Activity worksheets

Applications of Advanced Mathematics (C4) Paper B: Comprehension WEDNESDAY 21 MAY 2008 Time:Upto1hour

Determinants, Part 1

Grade 6 Math Circles March 7/8, Magic and Latin Squares

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 4 October 2013

Transcription:

Physical Zero-Knowledge Proof: From Sudoku to Nonogram Wing-Kai Hon (a joint work with YF Chien) 2008/12/30 Lab of Algorithm and Data Structure Design (LOADS) 1

Outline Zero-Knowledge Proof (ZKP) 1. Cave Story 2. 3-Coloring 3. Sudoku 4. Nonogram (our work) 2008/12/30 2

Cave story 2 1 2008/12/30 3 3

Cave story If Peggy really knows the magical password always pass the test Victor should be convinced 1 2 3 If Peggy does not know the password very unlikely to pass all the tests Victor should be able to catch Peggy lying 2008/12/30 4

Zero-Knowledge Proof It is an interactive method : allows a Prover to prove to a Verifier that a statement is true Extra requirement : Zero-Knowledge : Verifier cannot learn anything 2008/12/30 5

3-Coloring of a Graph Given a graph G, can we color the vertices with 3 colors so that no adjacent vertices have same color? 2008/12/30 6

3-Coloring of a Graph One possible method: 1. Verifier leaves the room 2. Prover colors vertices properly (in R, G, B) and then covers each vertex with a cup lid 3. Verifier comes back to the room and select any edge (u,v) 4. Verifier removes cup lids of u and v and checks if they have different colors 2008/12/30 7

Consequence NP Any NP problem?? 3-Coloring of a Graph ZKP exists 2008/12/30 8

Sudoku Puzzle A numeric logic puzzle Target: Fill each entry with an integer from {1,2,, 9} such that each row, each column, and each 3 x 3 block contains 1 to 9 Created by David Eppstein 2008/12/30 9

Sudoku Puzzle Some Facts: Invented in 1979 by Howard Garns Named Sudoku in 1986 Made popular by Wayne Gould NP-Complete (Takayuki Yato, 2003) A Simple ZKP (Gradwohl and others, 2007) 2008/12/30 10

Sudoku Puzzle One possible method: 1. Verifier leaves the room 2. Prover prepares 3 decks of cards and uses the cards to write out the solution 3. Prover flips the cards in originally empty entries 4. Verifier chooses one of the tests: Row test, Column test, Block test 5. (Next Page) 2008/12/30 11

Sudoku Puzzle 5(a) For Row Test : Prover collects the cards in each row into a pile (thus, in total 9 piles) ; Next, shuffle the cards in each pile ; Finally, Verifier examines if each pile contains 1 to 9 5(b) For Column Test : Similar 5(c) For Block Test : Similar 2008/12/30 12

Nonogram Puzzle A picture logic puzzle Target: Each cell to be colored black or white such that occurrence of black blocks in each row and each column follows the corresponding hint Copied from Wikipedia 2008/12/30 13

Nonogram Puzzle Some Facts: Invented separately in 1987 by Non Ishida and Tetsuya Nishio Made popular by Nintendo NP-Complete (Nobuhisa Ueda and Takaaki Nagao, 1996) A Simple ZKP? (We are working on it) 2008/12/30 14

Nonogram Puzzle One idea: Reuse method of Sudoku Then, we can check if each row and each column has the correct number of black cells However, we still need to check 1. the blocking of black cells 2. the ordering of the blocks 2008/12/30 15

Nonogram Puzzle Observation: If we use one card for each cell, then after shuffling, the position info of the card disappears Links between adjacent cards disappear Checking for the blocking seems impossible One idea: Store hidden links in the cards 2008/12/30 16

Scratch-Off Card We use 2 tools : Scratch-off cards Commitments Bags Shuffling 2008/12/30 17

Our Scratch-off Cards ( x, y ) Color ID ID BLACK / AFTER 2008/12/30 18

Framework of Our Protocols Prover Phase: 1. Distributes blank cards to cells 2. Assigns IDs to each cell 3. Fills in the entries in the cards properly and seals each entry afterwards 2008/12/30 19

Framework of Our Protocols Verifier Phase: 1. Selects a test (7 available tests) 2. Open specific entries of each card according to the selected test 2008/12/30 20

Our Scratch-Off Cards (x,y) : Position of the cell Color : the color of the cell in the solution ( x, y ) Color BLACK / AFTER : (1) IDs of all subsequent cells (2) marking of black cells ID ID BLACK / AFTER 2008/12/30 21

Our Scratch-Off Cards Row & Column ID : ID of the cell : ID of the next cell : if color of the cell is black, record its order among black cells in same row / column ( x, y ) Color ID ID BLACK / AFTER 2008/12/30 22

Example of filled cards How the cards represent BLACK / AFTER of a card 2008/12/30 23

Theorem 1 If Prover can fill the cards properly, such that (S1): The (x,y) entry of each card is correct; (S2): All IDs are different and all IDs, Ptr(A), and (x,y) entries, are consistent; (S3): The Black / After of each card contains the correct set of IDs; 2008/12/30 24

Theorem 1 (S4): Each row and each column contains the correct number of black cards; (S5): For each row and each column, IDs and entries of all cards with black color are consistent with the set of IDs marked by in Black / After entries; 2008/12/30 25

Theorem 1 (S6): For each row and each column, each odd-ranked block has correct # of black cells with correct entries; (S7): For each row and each column, each even-ranked block has correct # of black cells with correct entries; then, Prover must know the solution. 2008/12/30 26

Theorem 2 (Converse of Theorem 1) If a person knows the solution, then the cards can be filled such that all statements S1 to S7 are satisfied 2008/12/30 27

Physical ZKP Prover Phase Writes all information on m*n cards and seals them. Prover cannot change the position after all cards are put on cells m x n cells 2008/12/30 28

Physical ZKP Verifier Phase Chooses one of the 7 tests Open specific entries in each card according to the selected test 2008/12/30 29

Test 1: Pointer System Simultaneously test S1, S2, and S3 Opens the following entries of each card: (x, y) ID Ptr(A) the ID part of Black/After 2008/12/30 30

Physical ZKP (Test 1) ( 1, 1 ) Color ( 1, 2 ) Color ( 1, 3 ) Color ( 1, n ) Color 5 9 8 20 7 22 4 24 8 6 7 21 1 23 x 25 BLACK / AFTER ( 2, 1 ) Color ( 3, 1 ) Color ( m, 1 ) Color R 7 8 4 1 C 6 2 5 3 26 27 6 3 28 29 3 2 30 31 5 x 2008/12/30 31

Test 2: Black Cells Order in Row Simultaneously test S4-row and S5-row Take all cards m x n cells = m bags (row) Shuffle each bag 2008/12/30 32

Physical ZKP (Test 2) ( x, y ) White ( x, y ) Black ( x, y ) Black ( x, y ) Black ( x, y ) Black ID ID 5 ID 8 ID 4 ID 9 ID 1 2 3 4 Do nothing! BLACK / AFTER R 4 8 9 C 2008/12/30 33

Test 3: Black Cells Order in Col Simultaneously test S4-col and S5-col m x n cells Take all cards = n bags (col) Shuffle each bag 2008/12/30 34

Test 4: Odd Blocks in Row (T4) Testing S6-row Take all cards m x n cells = m bags (row) Shuffle each bag 2008/12/30 35

Physical ZKP (Test 4) Ex : 6115 Check 6?1? ( x, y ) white ( x, y ) black ( x, y ) black ( x, y ) black ( x, y ) black ( x, y ) black ( x, y ) black ( x, y ) white 2 ID 9 ID 11 ID 29 ID 5 ID 16 ID 23 ID 40 ID 9 11 29 5 16 23 40 x 1 2 3 4 5 6 ( x, y ) white 37 ID 7 ( x, y ) black 7 ID 19 8 ( x, y ) white 19 ID x ( x, y ) Color ID ID null ( x, y ) Color ID ID null If Ptr(O)!= null open ID If Color == black open 2008/12/30 36

Other Tests (T5) Testing S6-col (T6) Testing S7-row (T7) Testing S7-col 2008/12/30 37

Theorem: Analysis Our method is zero-knowledge. Also, whenever Prover knows the solution, he always pass the test. However, if Prover does not know the solution, he will fail at least one test Verifier can catch him lying with probability at least 1/7. 2008/12/30 38

Zero-Knowledge : Analysis After each test, Verifier gains no info except for some trivial facts, or some unrelated things to the solution E.g., number of black cells in each row number of black cells in each odd block IDs in each cell 2008/12/30 39

Other Links To know more about ZKP O. Goldreich book Foundations of Cryptography: Basic Tools How to solve Sudoku? D. Eppstein s paper on Sudoku To know more about ZKP for Sudoku R. Gradwohl et al s paper (FUN 2007) 2008/12/30 40

Other Links To know more about Nonogram Wikipedia To know more about ZKP for Nonogram YF Chien s Master Thesis (2008) 2008/12/30 41