3 % Setting hypertexnames=false forces hyperref to use a consistent
4 % internal counter for proposition/equation references rather than
5 % being clever, which doesn't work after we reset those counters.
6 \usepackage[hypertexnames=false
]{hyperref
}
13 % We have to load this after hyperref, so that links work, but before
14 % mjotex so that mjotex knows to define its glossary entries.
15 \usepackage[nonumberlist
]{glossaries
}
18 % If you want an index, we can do that too. You'll need to define
19 % the "INDICES" variable in the GNUmakefile, though.
24 \usepackage{mathtools
}
28 \begin{section
}{Algebra
}
29 If $R$ is a
\index{commutative ring
}, then $
\polyring{R
}{X,Y,Z
}$
30 is a multivariate polynomial ring with indeterminates $X$, $Y$,
31 and $Z$, and coefficients in $R$. If $R$ is a moreover an integral
32 domain, then its fraction field is $
\Frac{R
}$. If $x,y,z
\in R$,
33 then $
\ideal{\set{x,y,z
}}$ is the ideal generated by
34 $
\set{x,y,z
}$, which is defined to be the smallest ideal in $R$
35 containing that set. Likewise, if we are in an algebra
36 $
\mathcal{A
}$ and if $x,y,z
\in \mathcal{A
}$, then
37 $
\alg{\set{x,y,z
}}$ is the smallest subalgebra of $
\mathcal{A
}$
38 containing the set $
\set{x,y,z
}$.
41 \begin{section
}{Algorithm
}
42 An example of an algorithm (bogosort) environment.
45 \caption{Sort a list of numbers
}
47 \Require{A list of numbers $L$
}
48 \Ensure{A new, sorted copy $M$ of the list $L$
}
52 \While{$M$ is not sorted
}
53 \State{Rearrange $M$ randomly
}
61 \begin{section
}{Arrow
}
62 The constant function that always returns $a$ is $
\const{a
}$. The
63 identity operator on $V$ is $
\identity{V
}$. The composition of $f$
64 and $g$ is $
\compose{f
}{g
}$. The inverse of $f$ is
65 $
\inverse{f
}$. If $f$ is a function and $A$ is a subset of its
66 domain, then the preimage under $f$ of $A$ is $
\preimage{f
}{A
}$.
69 \begin{section
}{Calculus
}
70 The gradient of $f :
\Rn \rightarrow \Rn[1]$ is $
\gradient{f
} :
74 \begin{section
}{Common
}
75 The function $f$ applied to $x$ is $f
\of{x
}$. We can group terms
76 like $a +
\qty{b - c
}$ or $a +
\qty{b -
\sqty{c - d
}}$. Here's a
77 set $
\set{1,
2,
3} =
\setc{n
\in \Nn[1]}{ n
\le 3 }$. The tuples go
85 Triple: $
\triple{1}{2}{3}$,
88 Quadruple: $
\quadruple{1}{2}{3}{4}$,
91 Qintuple: $
\quintuple{1}{2}{3}{4}{5}$,
94 Sextuple: $
\sextuple{1}{2}{3}{4}{5}{6}$,
97 Septuple: $
\septuple{1}{2}{3}{4}{5}{6}{7}$.
101 The factorial of the number $
10$ is $
\factorial{10}$.
103 The Cartesian product of two sets $A$ and $B$ is
104 $
\cartprod{A
}{B
}$; if we take the product with $C$ as well, then
105 we obtain $
\cartprodthree{A
}{B
}{C
}$. The direct sum of $V$ and $W$
106 is $
\directsum{V
}{W
}$. Or three things,
107 $
\directsumthree{U
}{V
}{W
}$. How about more things? Like
108 $
\directsummany{k=
1}{\infty}{V_
{k
}} \ne
109 \cartprodmany{k=
1}{\infty}{V_
{k
}}$. Those direct sums and
110 cartesian products adapt nicely to display equations:
113 \directsummany{k=
1}{\infty}{V_
{k
}} \ne \cartprodmany{k=
1}{\infty}{V_
{k
}}.
116 Here are a few common tuple spaces that should not have a
117 superscript when that superscript would be one: $
\Nn[1]$,
118 $
\Zn[1]$, $
\Qn[1]$, $
\Rn[1]$, $
\Cn[1]$. However, if the
119 superscript is (say) two, then it appears: $
\Nn[2]$, $
\Zn[2]$,
120 $
\Qn[2]$, $
\Rn[2]$, $
\Cn[2]$.
122 We also have a few basic set operations, for example the union of
123 two or three sets: $
\union{A
}{B
}$, $
\unionthree{A
}{B
}{C
}$. And of
124 course with union comes intersection: $
\intersect{A
}{B
}$,
125 $
\intersectthree{A
}{B
}{C
}$. We can also take an arbitrary
126 (indexed) union and intersections of things, like
127 $
\unionmany{k=
1}{\infty}{A_
{k
}}$ or
128 $
\intersectmany{k=
1}{\infty}{B_
{k
}}$. The best part about those
129 is that they do the right thing in a display equation:
132 \unionmany{k=
1}{\infty}{A_
{k
}} =
\intersectmany{k=
1}{\infty}{B_
{k
}}
135 Finally, we have the four standard types of intervals in $
\Rn[1]$,
138 \intervaloo{a
}{b
} &=
\setc{ x
\in \Rn[1]}{ a < x < b
},\\
139 \intervaloc{a
}{b
} &=
\setc{ x
\in \Rn[1]}{ a < x
\le b
},\\
140 \intervalco{a
}{b
} &=
\setc{ x
\in \Rn[1]}{ a
\le x < b
},
\text{ and
}\\
141 \intervalcc{a
}{b
} &=
\setc{ x
\in \Rn[1]}{ a
\le x
\le b
}.
145 \begin{section
}{Complex
}
146 We sometimes want to conjugate complex numbers like
147 $
\compconj{a+bi
} = a - bi$.
150 \begin{section
}{Cone
}
151 The dual cone of $K$ is $
\dual{K
}$. Some familiar symmetric cones
152 are $
\Rnplus$, $
\Lnplus$, $
\Snplus$, and $
\Hnplus$. If cones
153 $K_
{1}$ and $K_
{2}$ are given, we can define $
\posops{K_
{1}}$,
154 $
\posops[K_
{2}]{K_
{1}}$, $
\Sof{K_
{1}}$, $
\Zof{K_
{1}}$,
155 $
\LL{K_
{1}}$, and $
\lyapunovrank{K_
{1}}$. We can also define $x
156 \gecone_{K
} y$, $x
\gtcone_{K
} y$, $x
\lecone_{K
} y$, and $x
157 \ltcone_{K
} y$ with respect to a cone $K$.
160 \begin{section
}{Convex
}
161 The conic hull of a set $X$ is $
\cone{X
}$; its affine hull is
162 $
\aff{X
}$, and its convex hull is $
\conv{X
}$. If $K$ is a cone,
163 then its lineality space is $
\linspace{K
}$, its lineality is
164 $
\lin{K
}$, and its extreme directions are $
\Ext{K
}$. The fact that
165 $F$ is a face of $K$ is denoted by $F
\faceof K$; if $F$ is a
166 proper face, then we write $F
\properfaceof K$.
169 \begin{section
}{Euclidean Jordan algebras
}
170 The Jordan product of $x$ and $y$ in some Euclidean Jordan algebra
174 \begin{section
}{Font
}
175 We can write things like Carathéodory and Güler and
176 $
\mathbb{R
}$. The PostScript Zapf Chancery font is also available
177 in both upper- and lower-case:
180 \begin{item
}$
\mathpzc{abcdefghijklmnopqrstuvwxyz
}$
\end{item
}
181 \begin{item
}$
\mathpzc{ABCDEFGHIJKLMNOPQRSTUVWXYZ
}$
\end{item
}
185 \begin{section
}{Linear algebra
}
186 The absolute value of $x$ is $
\abs{x
}$, or its norm is
187 $
\norm{x
}$. The inner product of $x$ and $y$ is $
\ip{x
}{y
}$ and
188 their tensor product is $
\tp{x
}{y
}$. The Kronecker product of
189 matrices $A$ and $B$ is $
\kp{A
}{B
}$. The adjoint of the operator
190 $L$ is $
\adjoint{L
}$, or if it's a matrix, then its transpose is
191 $
\transpose{L
}$. Its trace is $
\trace{L
}$. Another matrix-specific
192 concept is the Moore-Penrose pseudoinverse of $L$, denoted by
193 $
\pseudoinverse{L
}$. Finally, the rank of a matrix $L$ is
194 $
\rank{L
}$. As far as matrix spaces go, we have the $n$-by-$n$
195 real-symmetric and complex-Hermitian matrices $
\Sn$ and $
\Hn$
196 respectively; however $
\Sn[1]$ and $
\Hn[1]$ do not automatically
197 simplify because the ``$n$'' does not indicate the arity of a
198 Cartesian product in this case.
200 The span of a set $X$ is $
\spanof{X
}$, and its codimension is
201 $
\codim{X
}$. The projection of $X$ onto $V$ is $
\proj{V
}{X
}$. The
202 automorphism group of $X$ is $
\Aut{X
}$, and its Lie algebra is
203 $
\Lie{X
}$. We can write a column vector $x
\coloneqq
204 \colvec{x_
{1},x_
{2},x_
{3},x_
{4}}$ and turn it into a $
2 \times 2$
205 matrix with $
\matricize{x
}$. To recover the vector, we use
206 $
\vectorize{\matricize{x
}}$.
208 The set of all bounded linear operators from $V$ to $W$ is
209 $
\boundedops[W
]{V
}$. If $W = V$, then we write $
\boundedops{V
}$
212 If you want to solve a system of equations, try Cramer's
213 rule~
\cite{ehrenborg
}.
215 The direct sum of $V$ and $W$ is $
\directsum{V
}{W
}$, of course,
216 but what if $W = V^
{\perp}$? Then we wish to indicate that fact by
217 writing $
\directsumperp{V
}{W
}$. That operator should survive a
218 display equation, too, and the weight of the circle should match
219 that of the usual direct sum operator.
222 Z =
\directsumperp{V
}{W
}\\
223 \oplus \oplusperp \oplus \oplusperp
226 Its form should also survive in different font sizes...
229 Z =
\directsumperp{V
}{W
}\\
230 \oplus \oplusperp \oplus \oplusperp
234 Z =
\directsumperp{V
}{W
}\\
235 \oplus \oplusperp \oplus \oplusperp
240 \begin{section
}{Listing
}
241 Here's an interactive SageMath prompt:
243 \begin{tcblisting
}{listing only,
246 listing options=
{language=sage,style=sage
}}
247 sage: K = Cone(
[ (
1,
0), (
0,
1)
])
248 sage: K.positive_operator_gens()
250 [1 0] [0 1] [0 0] [0 0]
251 [0 0],
[0 0],
[1 0],
[0 1]
255 However, the smart way to display a SageMath listing is to load it
256 from an external file (under the ``listings'' subdirectory):
258 \sagelisting{example
}
260 Keeping the listings in separate files makes it easy for the build
264 \begin{section
}{Proof by cases
}
267 There are two cases in the following proof.
270 The result should be self-evident once we have considered the
273 \begin{case
}[first case
]
274 Nothing happens in the first case.
276 \begin{case
}[second case
]
277 The same thing happens in the second case.
287 \renewcommand{\baselinestretch}{2}
289 Cases should display intelligently even when the
document is
296 \begin{case
}[first case
]
297 Nothing happens in the first case.
299 \begin{case
}[second case
]
300 The same thing happens in the second case.
307 \renewcommand{\baselinestretch}{1}
310 \begin{section
}{Set theory
}
311 The cardinality of the set $X
\coloneqq \set{1,
2,
3}$ is $
\card{X
}
312 =
3$, and its powerset is $
\powerset{X
}$.
315 \begin{section
}{Theorems
}
349 \begin{section
}{Theorems (starred)
}
383 \begin{section
}{Topology
}
384 The interior of a set $X$ is $
\interior{X
}$. Its closure is
385 $
\closure{X
}$ and its boundary is $
\boundary{X
}$.
388 \setlength{\glslistdottedwidth}{.3\linewidth}
389 \setglossarystyle{listdotted
}
391 \printnoidxglossaries
393 \bibliographystyle{mjo
}
394 \bibliography{local-references
}