Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
| Download
Try doing some basic maths questions in the Lean Theorem Prover. Functions, real numbers, equivalence relations and groups. Click on README.md and then on "Open in CoCalc with one click".
Project: Xena
Views: 23839License: APACHE
import data.finset algebra.big_operators tactic.ring namespace maths_challenges -- the n'th odd number (we start counting at zero) def odd (n : ℕ) := 2 * n + 1 -- finset.range n is the finite set {0,1,2,...,n-1} theorem challenge05 (n : ℕ) : (finset.range n).sum (odd) = n ^ 2 := begin induction n with d hd, refl, rw finset.sum_range_succ, rw hd, change (2 * d + 1) + d ^ 2 = (d + 1) ^ 2, ring, end end maths_challenges