Built with Alectryon, running Coq+SerAPI. Bubbles () indicate interactive fragments: hover for details, tap to reveal contents. Use Ctrl+↑ Ctrl+↓ to navigate, Ctrl+🖱️ to focus. On Mac, use instead of Ctrl.

n : nat, 2 * nsum n (λ x : nat, x) = n * (n + 1)

2 * 0 = 0 * (0 + 1)
n:nat
IHn:2 * nsum n (λ x : nat, x) = n * (n + 1)
2 * (S n + nsum n (λ x : nat, x)) = S n * (S n + 1)

2 * 0 = 0 * (0 + 1)
reflexivity.
n:nat
IHn:2 * nsum n (λ x : nat, x) = n * (n + 1)

2 * (S n + nsum n (λ x : nat, x)) = S n * (S n + 1)

2 * S n + 2 * nsum n (λ x : nat, x) = S n * (S n + 1)

2 * S n + n * (n + 1) = S n * (S n + 1)
ring. Qed.