Documentation
AllMath
.
Scratchboard
Search
return to top
source
Imports
Init
Mathlib.Data.Int.Star
Mathlib.NumberTheory.Harmonic.Bounds
Mathlib.NumberTheory.Harmonic.Defs
Mathlib.NumberTheory.Harmonic.EulerMascheroni
Mathlib.NumberTheory.LSeries.RiemannZeta
Mathlib.NumberTheory.Real.Irrational
Mathlib.Tactic.NormNum.NatFactorial
Mathlib.Algebra.Order.Ring.Star
Mathlib.Analysis.SpecialFunctions.Pow.Real
Imported by
th
th2
plus_comm
alg
alg'
ev10
two_div_even
two_div_ten
PrimeNum
notprime_1
notprime_9
prime_5
irrat_pow_irrat_rat
infinites_prime
example_3
example_4
TriangleNumber
.
triangular_number
TriangleNumber
.
closed_form_triangular
TriangleNumber
.
odd_squared_minus_one_dvd_eight
TrigButEulerFunny
.
cos_x_from_exp_ix
TrigButEulerFunny
.
sin_x_from_exp_ix
TrigButEulerFunny
.
sin_sq_add_cos_sq
TrigButEulerFunny
.
sin_two_x
source
theorem
th
(
h
:
2
=
2
)
:
2
=
2
source
theorem
th2
:
2
=
2
source
theorem
plus_comm
(
a
b
:
ℕ
)
:
a
+
b
=
b
+
a
source
theorem
alg
(
a
b
c
:
ℕ
)
:
a
*
(
b
+
c
)
=
a
*
(
c
+
b
)
source
theorem
alg'
(
a
b
c
d
:
ℕ
)
:
(
c
+
d
)
^
2
+
c
*
(
a
+
b
)
^
2
=
c
^
2
+
d
^
2
+
2
*
c
*
d
+
c
*
a
^
2
+
c
*
(
b
^
2
+
2
*
a
*
b
)
source
theorem
ev10
:
Even
10
source
theorem
two_div_even
(
n
:
ℕ
)
:
Even
n
→
2
∣
n
source
theorem
two_div_ten
:
2
∣
10
source
def
PrimeNum
(
n
:
ℕ
)
:
Prop
Equations
PrimeNum
n
=
(
n
≥
2
∧
∀ (
m
:
ℕ
),
m
∣
n
→
m
=
1
∨
m
=
n
)
Instances For
source
theorem
notprime_1
:
¬
PrimeNum
1
source
theorem
notprime_9
:
¬
PrimeNum
9
source
theorem
prime_5
:
PrimeNum
5
source
theorem
irrat_pow_irrat_rat
:
∃ (
x
:
ℝ
) (
y
:
ℝ
),
Irrational
x
∧
Irrational
y
∧
¬
Irrational
(
x
^
y
)
source
theorem
infinites_prime
(
n
:
ℕ
)
:
∃ (
p
:
ℕ
),
Nat.Prime
p
∧
p
>
n
source
theorem
example_3
(
n
:
ℕ
)
(
hn
:
n
≥
4
)
:
n
^
3
<
3
^
n
source
theorem
example_4
(
n
:
ℕ
)
(
hn
:
n
≥
4
)
:
n
.
factorial
>
2
^
n
source
def
TriangleNumber
.
triangular_number
(
n
:
ℕ
)
:
ℕ
Equations
TriangleNumber.triangular_number
n
=
∑
k
∈
Finset.range
(
n
+
1
)
,
k
Instances For
source
theorem
TriangleNumber
.
closed_form_triangular
(
n
:
ℕ
)
:
triangular_number
n
=
n
*
(
n
+
1
)
/
2
source
theorem
TriangleNumber
.
odd_squared_minus_one_dvd_eight
(
n
:
ℕ
)
(
h_odd
:
Odd
n
)
:
8
∣
n
^
2
-
1
source
theorem
TrigButEulerFunny
.
cos_x_from_exp_ix
(
x
:
ℂ
)
:
Complex.cos
x
=
(
Complex.exp
(
x
*
Complex.I
)
+
Complex.exp
(
-
x
*
Complex.I
)
)
/
2
source
theorem
TrigButEulerFunny
.
sin_x_from_exp_ix
(
x
:
ℂ
)
:
Complex.sin
x
=
(
Complex.exp
(
x
*
Complex.I
)
-
Complex.exp
(
-
x
*
Complex.I
)
)
/
(
2
*
Complex.I
)
source
theorem
TrigButEulerFunny
.
sin_sq_add_cos_sq
(
x
:
ℂ
)
:
Complex.sin
x
^
2
+
Complex.cos
x
^
2
=
1
source
theorem
TrigButEulerFunny
.
sin_two_x
(
x
:
ℂ
)
:
Complex.sin
(
2
*
x
)
=
2
*
Complex.sin
x
*
Complex.cos
x