Files
papers/lux-ntt-simd-implementation/lux-ntt-simd-implementation.tex
zeekay dd93cb41f7 papers: cover-consistency + build pass on Lux Tier-2/3 catalogue
Sweep across the non-Tier-1 paper catalogue (Tier-1 owned by parallel
agent and excluded). All 113 processed papers already had luxcover
wired up; this commit fixes 14 build breakers and produces fresh
PDFs across the catalogue.

Fixes:
- lux-blockchain-scaling-laws: em-dash inside lstlisting -> --
- lux-corona-pq: stale \input pointing at 03-the-corona-scheme renamed
  to 03-the-corona-scheme (file already renamed on disk)
- lux-lattice-cryptography-primer: same Corona->Corona rename
- lux-formal-verification-lean4: Lean source uses unicode (×, ∀, ∃, ∈,
  ∧, ∨, ∩, ≠, ⟨, ⟩, ·, ¬) inside lstlistings. Added a literate map
  so listings render the math glyphs without UTF-8 fault.
- lux-id-did-specification: ✓/✗ in tabular replaced with \ding{51}
  / \ding{55} (pifont). Added pifont package.
- lux-ntt-simd-implementation: middle-dot in Go assembly listings;
  added literate {·}{\textperiodcentered}.
- lux-ntt-transform: μ, ×, –, — in regular text (no T1 fontenc).
  Replaced with $\mu$/$\times$/--/--- via unicode->latex sweep.
- lux-perpetuals-derivatives, lux-quantum-consensus,
  lux-quasar-consensus, lux-tee-computing-mesh: same unicode->latex
  sweep across body text. Also fixed broken math segment
  `$L_{avg} = 10$\times$$` -> `$L_{avg} = 10\times$`.
- lux-zchain: emoji glyphs in roadmap table replaced with
  parenthetical text.
- lux-triple-proof-consensus: dropped duplicate \usepackage{geometry}
  that clashed with luxcover (geometry option clash).
- pq: defined missing \Rq macro.

PDFs rebuilt for the full Tier-2/3 set.

Excluded (Tier-1, parallel agent): lp-073-pulsar, lp-stricte2epq,
dag-evm-formal, lp-010-quasar-stm-{3,4}, lp-020-quasar-consensus,
lux-institutional-custody, lux-nist-mptc-submission, pqsafe-il5,
pq-rns, plus shared/ and lps/.
2026-05-13 01:27:59 -07:00

96 lines
2.9 KiB
TeX

\documentclass[11pt,a4paper]{article}
\usepackage{../shared/luxcover}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amssymb,amsfonts,amsthm}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{booktabs}
\usepackage{listings}
\input{../shared/lstlang}
\usepackage{xcolor}
\usepackage{enumitem}
\usepackage{float}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,positioning}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{definition}{Definition}
\newtheorem{remark}{Remark}
\lstdefinelanguage{asm}{
morekeywords={vpmullw,vpmulhw,vpaddw,vpsubw,vpsraw,vpand,vmovdqu,
vpbroadcastw,vpshufb,vperm2i128,ret,mov,lea,add,sub,cmp,jne,jmp,
TEXT,GLOBL,NOSPLIT},
morecomment=[l]{//},
morecomment=[l]{\#},
sensitive=false,
}
\lstset{
basicstyle=\small\ttfamily,
keywordstyle=\color{blue}\bfseries,
commentstyle=\color{gray},
stringstyle=\color{red},
breaklines=true,
frame=single,
numbers=left,
numberstyle=\tiny\color{gray},
extendedchars=true,
literate=%
{·}{{\textperiodcentered}}1
}
\hypersetup{
colorlinks=true,
linkcolor=blue,
citecolor=blue,
urlcolor=blue
}
\title{Number Theoretic Transform with SIMD Acceleration}
\author{
Zach Kelling \\
Lux Industries, Inc.\thanks{Corresponding author: [email protected]}\\
\texttt{[email protected]}
}
\date{2025}
\begin{document}
\luxcoverpage
\begin{abstract}
The Number Theoretic Transform (NTT) is the computational bottleneck of lattice-based
cryptography and fully homomorphic encryption. This paper teaches NTT implementation from
mathematical foundations to production SIMD code. We cover: the mathematical definition
and why it works, the Cooley-Tukey butterfly decomposition, twiddle factor precomputation,
Montgomery multiplication for modular arithmetic, and SIMD vectorization with AVX2 (16
coefficients per instruction). We present our Go implementation with hand-written assembly
for the inner loop, achieving 0.9\,$\mu$s per NTT-256 on AMD Zen~4---within 5\% of the
reference C implementation compiled with \texttt{-O3}. We benchmark against naive polynomial
multiplication, showing a 28x speedup for degree-256 polynomials. This is the bridge between
the mathematics of lattice cryptography and the metal it runs on.
\end{abstract}
\tableofcontents
\newpage
%% ============================================================
\input{sections/01-why-ntt-matters}
\input{sections/02-mathematical-foundations}
\input{sections/03-the-butterfly-operation}
\input{sections/04-twiddle-factors}
\input{sections/05-montgomery-multiplication}
\input{sections/06-the-complete-ntt}
\input{sections/07-simd-vectorization-with-avx2}
\input{sections/08-benchmarks}
\input{sections/09-correctness-verification}
\input{sections/10-fhe-applications}
\input{sections/11-memory-layout-and-cache-effects}
\input{sections/99-conclusion}
\end{document}