% Preamble for the paper. Input from main.tex. \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{microtype} \usepackage{amsmath,amssymb,amsthm,mathtools} \usepackage{enumitem} \usepackage{booktabs} \usepackage{longtable} \usepackage{array} \usepackage[margin=1.1in]{geometry} \usepackage{xcolor} \usepackage[hypertexnames=false,colorlinks=true,linkcolor=blue!60!black,citecolor=green!40!black,urlcolor=blue!60!black]{hyperref} \usepackage[capitalise,nameinlink]{cleveref} \usepackage{thmtools} % Theorem environments (shared numbering within sections). \declaretheorem[numberwithin=section]{theorem} \declaretheorem[sibling=theorem]{lemma} \declaretheorem[sibling=theorem]{proposition} \declaretheorem[sibling=theorem]{corollary} \declaretheorem[sibling=theorem]{fact} \declaretheorem[sibling=theorem,style=definition]{definition} \declaretheorem[sibling=theorem,style=definition]{algorithm} \declaretheorem[sibling=theorem,style=remark]{remark} \newtheorem*{theorem*}{Theorem} % Lean names, in typewriter. The argument is read as a string, so `_`, `^`, `$`, `&` and `~` print % as themselves (`#` does not: write \texttt{\#...}). Unlike \detokenize, the string is rescanned % with the UTF-8 bytes active, so the Unicode characters of Lean names below print correctly; each % carries its code point as ActualText, so copying a name from the PDF gives the Lean name. \usepackage{newunicodechar} \usepackage{accsupp} \newcommand{\leanuchar}[2]{\BeginAccSupp{method=hex,unicode,ActualText=#1}#2\EndAccSupp{}} \newunicodechar{₀}{\leanuchar{2080}{\textsubscript{0}}} \newunicodechar{₁}{\leanuchar{2081}{\textsubscript{1}}} \newunicodechar{₂}{\leanuchar{2082}{\textsubscript{2}}} \newunicodechar{₃}{\leanuchar{2083}{\textsubscript{3}}} \newunicodechar{α}{\leanuchar{03B1}{\ensuremath{\alpha}}} \newunicodechar{β}{\leanuchar{03B2}{\ensuremath{\beta}}} \newunicodechar{Γ}{\leanuchar{0393}{\ensuremath{\Gamma}}} \newunicodechar{θ}{\leanuchar{03B8}{\ensuremath{\theta}}} \newunicodechar{Θ}{\leanuchar{0398}{\ensuremath{\Theta}}} \newunicodechar{ν}{\leanuchar{03BD}{\ensuremath{\nu}}} \newunicodechar{σ}{\leanuchar{03C3}{\ensuremath{\sigma}}} \newunicodechar{ℓ}{\leanuchar{2113}{\ensuremath{\ell}}} \newunicodechar{ℕ}{\leanuchar{2115}{\ensuremath{\mathbb{N}}}} \newunicodechar{ℝ}{\leanuchar{211D}{\ensuremath{\mathbb{R}}}} \newunicodechar{∞}{\leanuchar{221E}{\ensuremath{\infty}}} \newunicodechar{′}{\leanuchar{2032}{\ensuremath{'}}} \ExplSyntaxOn \tl_new:N \l__lean_name_tl \cs_new_protected:Npn \__lean_catcodes: { \char_set_catcode_other:N \\ \char_set_catcode_other:N \{ \char_set_catcode_other:N \} \char_set_catcode_other:N \$ \char_set_catcode_other:N \& \char_set_catcode_other:N \# \char_set_catcode_other:N \^ \char_set_catcode_other:N \_ \char_set_catcode_other:N \% \char_set_catcode_other:N \~ } \cs_new_protected:Npn \lean #1 { \tl_set_rescan:Nnn \l__lean_name_tl { \__lean_catcodes: } {#1} \texttt { \l__lean_name_tl } } \ExplSyntaxOff \pdfstringdefDisableCommands{\def\lean#1{\detokenize{#1}}} % The Lean declaration that proves a statement, as a marginal pointer. \newcommand{\leanref}[1]{\hfill{\footnotesize(Lean: \lean{#1})}} % Numbers and sets. \newcommand{\R}{\mathbb{R}} \newcommand{\N}{\mathbb{N}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\Q}{\mathbb{Q}} \newcommand{\C}{\mathbb{C}} \newcommand{\eps}{\varepsilon} \newcommand{\poly}{\operatorname{poly}} \newcommand{\abs}[1]{\left\lvert #1 \right\rvert} \newcommand{\norm}[1]{\left\lVert #1 \right\rVert} \newcommand{\ip}[2]{\langle #1, #2 \rangle} \newcommand{\one}{\mathbf{1}} \newcommand{\Id}{\mathrm{I}} % Polynomials, residues and the paper's objects. \newcommand{\Dop}{\mathcal{D}} % the operator x d/dx \newcommand{\rev}[1]{#1^{\#}} % reversal F^# = x^{deg F} F(1/x) \newcommand{\cA}{\mathcal{A}} % the affine system (4.1) \newcommand{\cL}{\mathcal{L}} % its directions \newcommand{\ms}[1]{\left\{#1\right\}_{\mathrm{mult}}} % a multiset \DeclareMathOperator{\supp}{supp} \DeclareMathOperator{\tr}{tr} \DeclareMathOperator{\Sym}{Sym} \DeclareMathOperator{\res}{res} \DeclareMathOperator{\spanop}{span} \newcommand{\spanQ}{\operatorname{span}_{\Q}} \DeclareMathOperator{\rank}{rank} \DeclareMathOperator{\diam}{diam} \newcommand{\PSD}{\succeq} % Complexity. \newcommand{\classP}{\mathsf{P}} \newcommand{\enc}[1]{\langle #1 \rangle} % the encoding of an object as a bit string % Long typewriter names: allow some extra stretch rather than overfull lines. \setlength{\emergencystretch}{3em}