8 \begin{section
}{Algorithm
}
9 An example of an algorithm (bogosort) environment.
12 \caption{Sort a list of numbers
}
14 \Require{A list of numbers $L$
}
15 \Ensure{A new, sorted copy $M$ of the list $L$
}
19 \While{$M$ is not sorted
}
20 \State{Rearrange $M$ randomly
}
28 \begin{section
}{Arrow
}
29 The identity operator on $V$ is $
\identity{V
}$. The composition of
30 $f$ and $g$ is $
\compose{f
}{g
}$. The inverse of $f$ is
34 \begin{section
}{Common
}
35 The function $f$ applied to $x$ is $f
\of{x
}$. We can group terms
36 like $a +
\qty{b - c
}$ or $a +
\qty{b -
\sqty{c - d
}}$. Here's a
37 set $
\set{1,
2,
3} =
\setc{n
\in \Nn[1]}{ n
\le 3 }$. Here's a pair
38 of things $
\pair{1}{2}$ or a triple of them
39 $
\triple{1}{2}{3}$. The Cartesian product of two sets $A$ and $B$
40 is $
\cartprod{A
}{B
}$; if we take the product with $C$ as well,
41 then we obtain $
\cartprodthree{A
}{B
}{C
}$. The direct sum of $V$
42 and $W$ is $
\directsum{V
}{W
}$ and the factorial of the number $
10$
45 Here are a few common tuple spaces that should not have a
46 superscript when that superscript would be one: $
\Nn[1]$,
47 $
\Zn[1]$, $
\Qn[1]$, $
\Rn[1]$, $
\Cn[1]$. However, if the
48 superscript is (say) two, then it appears: $
\Nn[2]$, $
\Zn[2]$,
49 $
\Qn[2]$, $
\Rn[2]$, $
\Cn[2]$.
51 We also have a few basic set operations, for example the union of
52 two or three sets: $
\union{A
}{B
}$, $
\unionthree{A
}{B
}{C
}$. And of
53 course with union comes intersection: $
\intersect{A
}{B
}$,
54 $
\intersectthree{A
}{B
}{C
}$. We can also take an arbitrary
55 (indexed) union and intersections of things, like
56 $
\unionmany{k=
1}{\infty}{A_
{k
}}$ or
57 $
\intersectmany{k=
1}{\infty}{B_
{k
}}$. The best part about those
58 are that they do the right thing in a display equation:
61 \unionmany{k=
1}{\infty}{A_
{k
}} =
\intersectmany{k=
1}{\infty}{B_
{k
}}
67 The dual cone of $K$ is $
\dual{K
}$. Some familiar symmetric cones
68 are $
\Rnplus$, $
\Lnplus$, $
\Snplus$, and $
\Hnplus$. If cones
69 $K_
{1}$ and $K_
{2}$ are given, we can define $
\posops{K_
{1}}$,
70 $
\posops[K_
{2}]{K_
{1}}$, $
\Sof{K_
{1}}$, $
\Zof{K_
{1}}$,
71 $
\LL{K_
{1}}$, and $
\lyapunovrank{K_
{1}}$. We can also define $x
72 \gecone_{K
} y$, $x
\gtcone_{K
} y$, $x
\lecone_{K
} y$, and $x
73 \ltcone_{K
} y$ with respect to a cone $K$.
76 \begin{section
}{Convex
}
77 The conic hull of a set $X$ is $
\cone{X
}$; its affine hull is
78 $
\aff{X
}$, and its convex hull is $
\conv{X
}$. If $K$ is a cone,
79 then its lineality space is $
\linspace{K
}$, its lineality is
80 $
\lin{K
}$, and its extreme directions are $
\Ext{K
}$.
84 We can write things like Carathéodory and Güler and $
\mathbb{R
}$.
87 \begin{section
}{Linear algebra
}
88 The absolute value of $x$ is $
\abs{x
}$, or its norm is
89 $
\norm{x
}$. The inner product of $x$ and $y$ is $
\ip{x
}{y
}$ and
90 their tensor product is $
\tp{x
}{y
}$. The Kronecker product of
91 matrices $A$ and $B$ is $
\kp{A
}{B
}$. The adjoint of the operator
92 $L$ is $
\adjoint{L
}$, or if it's a matrix, then its transpose is
93 $
\transpose{L
}$. Its trace is $
\trace{L
}$.
95 The span of a set $X$ is $
\spanof{X
}$, and its codimension is
96 $
\codim{X
}$. The projection of $X$ onto $V$ is $
\proj{V
}{X
}$. The
97 automorphism group of $X$ is $
\Aut{X
}$, and its Lie algebra is
98 $
\Lie{X
}$. We can write a column vector $x
\coloneqq
99 \colvec{x_
{1},x_
{2},x_
{3},x_
{4}}$ and turn it into a $
2 \times 2$
100 matrix with $
\matricize{x
}$. To recover the vector, we use
101 $
\vectorize{\matricize{x
}}$.
103 The set of all bounded linear operators from $V$ to $W$ is
104 $
\boundedops[W
]{V
}$. If $W = V$, then we write $
\boundedops{V
}$
108 \begin{section
}{Listing
}
109 Here's an interactive sage prompt:
111 \begin{tcblisting
}{listing only,
114 listing options=
{language=sage,style=sage
}}
115 sage: K = Cone(
[ (
1,
0), (
0,
1)
])
116 sage: K.positive_operator_gens()
118 [1 0] [0 1] [0 0] [0 0]
119 [0 0],
[0 0],
[1 0],
[0 1]
124 \begin{section
}{Miscellaneous
}
125 The cardinality of the set $X
\coloneqq \set{1,
2,
3}$ is $
\card{X
}
129 \begin{section
}{Proof by cases
}
132 There are two cases in the following proof.
135 The result should be self-evident once we have considered the
138 \begin{case
}[first case
]
139 Nothing happens in the first case.
141 \begin{case
}[second case
]
142 The same thing happens in the second case.
152 \renewcommand{\baselinestretch}{2}
154 Cases should display intelligently even when the
document is
161 \begin{case
}[first case
]
162 Nothing happens in the first case.
164 \begin{case
}[second case
]
165 The same thing happens in the second case.
172 \renewcommand{\baselinestretch}{1}
175 \begin{section
}{Theorems
}
205 \begin{section
}{Theorems (starred)
}
235 \begin{section
}{Topology
}
236 The interior of a set $X$ is $
\interior{X
}$. Its closure is
237 $
\closure{X
}$ and its boundary is $
\boundary{X
}$.