Shortest Vector Problem (SVP)
Every code listing from this chapter of Applied Post-Quantum Cryptography — 1 in total, 1 runnable here. Edit any cell and press Run.
The book's snippets build on each other down the chapter, but a Sage Cell
kernel runs one cell and keeps no state afterwards, so each cell replays the
earlier listings with apqc_book. That call is the only thing added
to the book's own code.
Listing 1 — Sage experiment
We can build a small lattice and ask Sage for its shortest vector.