A detective composed a curious thought in a library of ancient books.