Documentation
IMOSLLean4
.
Main
.
IMO2007
.
N1
.
N1
Search
return to top
source
Imports
Init
Mathlib.Algebra.Ring.Parity
Mathlib.Data.Nat.ModEq
Mathlib.Algebra.Ring.Int.Defs
Imported by
IMOSL
.
IMO2007N1
.
sq_mod_four_of_odd
IMOSL
.
IMO2007N1
.
two_dvd_seven_pow_sub_three_pow
IMOSL
.
IMO2007N1
.
succ_pow_four_lt_seven_mul_pow_four
IMOSL
.
IMO2007N1
.
succ_sq_lt_three_mul_sq
IMOSL
.
IMO2007N1
.
a_bound₀
IMOSL
.
IMO2007N1
.
b_bound₀
IMOSL
.
IMO2007N1
.
b_bound₁
IMOSL
.
IMO2007N1
.
good
IMOSL
.
IMO2007N1
.
good_zero_zero
IMOSL
.
IMO2007N1
.
good_two_four
IMOSL
.
IMO2007N1
.
good_imp_even
IMOSL
.
IMO2007N1
.
good_two_mul_imp₁
IMOSL
.
IMO2007N1
.
good_two_mul_imp₂
IMOSL
.
IMO2007N1
.
final_solution
IMO 2007 N1
#
Find all pairs $(k, n) ∈ ℕ^2$ such that $7^k - 3^n ∣ k^4 + n^2$.
Extra lemmas
#
source
theorem
IMOSL
.
IMO2007N1
.
sq_mod_four_of_odd
{
m
:
ℕ
}
(
hm
:
m
%
2
=
1
)
:
m
^
2
%
4
=
1
source
theorem
IMOSL
.
IMO2007N1
.
two_dvd_seven_pow_sub_three_pow
(
k
n
:
ℕ
)
:
2
∣
7
^
k
-
3
^
n
source
theorem
IMOSL
.
IMO2007N1
.
succ_pow_four_lt_seven_mul_pow_four
{
a
:
ℕ
}
(
ha
:
2
≤
a
)
:
(
a
+
1
)
^
4
<
7
*
a
^
4
source
theorem
IMOSL
.
IMO2007N1
.
succ_sq_lt_three_mul_sq
{
b
:
ℕ
}
(
hb
:
2
≤
b
)
:
(
b
+
1
)
^
2
<
3
*
b
^
2
source
theorem
IMOSL
.
IMO2007N1
.
a_bound₀
{
n
k
:
ℕ
}
(
hn
:
2
≤
n
)
(
hk
:
8
*
n
^
4
+
k
<
7
^
n
)
(
a
:
ℕ
)
:
a
≥
n
→
8
*
a
^
4
+
k
<
7
^
a
source
theorem
IMOSL
.
IMO2007N1
.
b_bound₀
{
n
k
:
ℕ
}
(
hn
:
2
≤
n
)
(
hk
:
2
*
n
^
2
+
k
<
3
^
n
)
(
b
:
ℕ
)
:
b
≥
n
→
2
*
b
^
2
+
k
<
3
^
b
source
theorem
IMOSL
.
IMO2007N1
.
b_bound₁
(
b
:
ℕ
)
:
2
*
b
^
2
<
3
^
b
Start of the problem
#
source
def
IMOSL
.
IMO2007N1
.
good
(
k
n
:
ℕ
)
:
Prop
Equations
IMOSL.IMO2007N1.good
k
n
=
(
7
^
k
-
3
^
n
∣
↑(
k
^
4
+
n
^
2
)
)
Instances For
source
theorem
IMOSL
.
IMO2007N1
.
good_zero_zero
:
good
0
0
source
theorem
IMOSL
.
IMO2007N1
.
good_two_four
:
good
2
4
source
theorem
IMOSL
.
IMO2007N1
.
good_imp_even
{
k
n
:
ℕ
}
(
h
:
good
k
n
)
:
2
∣
k
∧
2
∣
n
source
theorem
IMOSL
.
IMO2007N1
.
good_two_mul_imp₁
{
a
b
:
ℕ
}
(
h
:
good
(
2
*
a
) (
2
*
b
)
)
:
7
^
a
+
3
^
b
∣
8
*
a
^
4
+
2
*
b
^
2
source
theorem
IMOSL
.
IMO2007N1
.
good_two_mul_imp₂
{
a
b
:
ℕ
}
(
h
:
7
^
a
+
3
^
b
∣
8
*
a
^
4
+
2
*
b
^
2
)
:
a
=
0
∧
b
=
0
∨
a
=
1
∧
b
≤
2
source
theorem
IMOSL
.
IMO2007N1
.
final_solution
{
k
n
:
ℕ
}
:
good
k
n
↔
k
=
0
∧
n
=
0
∨
k
=
2
∧
n
=
4
Final solution