2023-04-08 21:09:11 +00:00
|
|
|
\documentclass{article}
|
|
|
|
\usepackage{amsfonts, amsthm}
|
2023-04-09 14:11:27 +00:00
|
|
|
\usepackage{hyperref}
|
2023-04-08 21:09:11 +00:00
|
|
|
|
|
|
|
\newtheorem{theorem}{Theorem}
|
2023-04-09 22:27:34 +00:00
|
|
|
\newtheorem{custominner}{Theorem}
|
|
|
|
\newenvironment{custom}[1]{%
|
|
|
|
\renewcommand\thecustominner{#1}%
|
|
|
|
\custominner
|
|
|
|
}{\endcustominner}
|
2023-04-08 21:09:11 +00:00
|
|
|
|
|
|
|
\begin{document}
|
|
|
|
|
|
|
|
\begin{theorem}[Sum of Arithmetic Series]
|
|
|
|
|
|
|
|
Let $(a_i)_{i \geq 0}$ be an arithmetic sequence with common difference $d$.
|
|
|
|
Then for some $n \in \mathbb{N}$,
|
|
|
|
$$\sum_{i=0}^n a_i = \frac{(n + 1)(a_0 + a_n)}{2}.$$
|
|
|
|
|
|
|
|
\end{theorem}
|
|
|
|
|
|
|
|
\begin{proof}
|
|
|
|
|
2023-04-09 14:11:27 +00:00
|
|
|
\href{Arithmetic.lean}{Common.Sequence.Arithmetic.sum\_recursive\_closed}
|
2023-04-08 21:09:11 +00:00
|
|
|
|
|
|
|
\end{proof}
|
|
|
|
|
|
|
|
\end{document}
|