This is a first example

j-mayoral

Definition 1 Sum until
#

For every natural number \(n \in \mathbb {N}\), we define

\[ \mathrm{sum\_ until}(n) = \sum _{k = 0}^{n} k. \]
Theorem 2 Sum of the first \(n\) natural numbers
✓
#

For every \(n \in \mathbb {N}\),

\[ \mathrm{sum\_ until}(n) = \frac{n(n+1)}{2}. \]
Proof ▶

This follows from a straightforward induction on \(n\).