Skip to content

Commit

Permalink
[Imo1968P5] done
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Nov 21, 2023
1 parent 8be728d commit e5f2ae3
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions Compfiles/Imo1968P5.lean
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ abbrev P (a : ℝ) (f : ℝ → ℝ) : Prop :=

problem imo1968_p5a (f : ℝ → ℝ) (a : ℝ) (hf : P a f) :
∃ b, 0 < b ∧ f.Periodic b := by
-- https://artofproblemsolving.com/wiki/index.php/1968_IMO_Problems/Problem_5
obtain ⟨hf1, hf2⟩ := hf
use 2 * a
constructor
Expand Down Expand Up @@ -65,13 +66,23 @@ noncomputable determine solution_func : ℝ → ℝ := fun x ↦

problem imo1968_p5b :
P 1 solution_func ∧ ¬∃c, solution_func = Function.const ℝ c := by
-- https://artofproblemsolving.com/wiki/index.php/1968_IMO_Problems/Problem_5
constructor
· constructor
· exact Real.zero_lt_one
· intro x
constructor
· sorry
· sorry
obtain heven | hodd := Classical.em (Even ⌊x⌋)
· have h1 : ¬ Even (⌊x⌋ + 1) :=
Int.odd_iff_not_even.mp (Even.add_one heven)
simp [solution_func, h1, heven]
· have h1 : Even (⌊x⌋ + 1) := Int.even_add_one.mpr hodd
simp [solution_func, h1, hodd]
norm_num
have h2 : Real.sqrt 4 = 2 := by
have h3 : (4 : ℝ) = 2^2 := by norm_num
rw [h3, Real.sqrt_sq_eq_abs]
exact abs_two
norm_num [h2]
· rintro ⟨c, hc⟩
have h1 : Function.const ℝ c 0 = c := rfl
rw [←hc] at h1
Expand Down

0 comments on commit e5f2ae3

Please sign in to comment.