,
Erik D. Demaine
,
Yota Irino,
Della Hendrickson
,
Tonan Kamata
,
Ryuhei Uehara
Creative Commons Attribution 4.0 International license
In arithmetic puzzles, a partially specified arithmetic expression must be completed to make the computation valid. Arithmetical restoration puzzles require filling in missing digits, while cryptarithms involve assigning digits to letters. The Japanese term mushikui-zan ("bookwormed arithmetic") commonly refers to arithmetical restorations, where we imagine the missing digits have been eaten by a bookworm. Puzzle creator Yousuke Ikeda proposed a new type of puzzle in which a previously designed bookwormed arithmetic with multiplication - known to have a unique solution - has itself been "bookwormed", that is, partially erased. The goal is to restore the specified blanks so that the resulting bookwormed puzzle again has a unique solution. We further generalize this framework: for each k ≥ 2, we define level-k puzzles as those in which type-k blanks must be filled to make the resulting level-(k{-}1) puzzle uniquely solvable. We study the level-k versions of the Boolean satisfiability problem, and show that they form a hierarchy of Σ^P_k-complete decision problems, tightly matching the levels of the polynomial hierarchy. As applications, we show that the level-k arithmetical restoration problem with multiplication is Σ^P_k-complete, as is the level-k cryptarithm problem. On the positive side, we show that level-2 arithmetical restoration puzzles with addition are solvable in polynomial time.
@InProceedings{chapman_et_al:LIPIcs.FUN.2026.12,
author = {Chapman, Brynmor and Chung, Lily and Demaine, Erik D. and Irino, Yota and Hendrickson, Della and Kamata, Tonan and Uehara, Ryuhei},
title = {{A Bookworm Climbs up the Polynomial Hierarchy: Meta-Restoration Complexity in Arithmetic Puzzles}},
booktitle = {13th International Conference on Fun with Algorithms (FUN 2026)},
pages = {12:1--12:15},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-417-8},
ISSN = {1868-8969},
year = {2026},
volume = {366},
editor = {Iacono, John},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.FUN.2026.12},
URN = {urn:nbn:de:0030-drops-257311},
doi = {10.4230/LIPIcs.FUN.2026.12},
annote = {Keywords: arithmetical restoration, cryptarithms, polynomial hierarchy, uniqueness quantifier, puzzle complexity}
}