Documentation
BlueprintExample
.
Basic
Search
return to top
source
Imports
Init
Imported by
sum_until
sum_first_natural_numbers
Example
#
This is a simple property on ℕ
Takes the first natural numbers and sum them
source
def
sum_until
:
Nat
→
Nat
Equations
sum_until
0
=
0
sum_until
n
.
succ
=
n
.
succ
+
sum_until
n
Instances For
source
theorem
sum_first_natural_numbers
(
n
:
Nat
)
:
2
*
sum_until
n
=
n
*
(
n
+
1
)