Skip to content

Commit

Permalink
[Imo2010P3] easy direction
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Nov 23, 2023
1 parent aedd816 commit a9dc1f8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Compfiles/Imo2010P3.lean
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@ abbrev PosInt : Type := { x : ℤ // 0 < x }

notation "ℤ>0" => PosInt

determine solution_set : Set (ℤ>0 → ℤ>0) := sorry
determine solution_set : Set (ℤ>0 → ℤ>0) := { f | f = id ∨ ∃ c, ∀ x, f x = x + c }


problem imo2010_p3 (g : ℤ>0 → ℤ>0) :
g ∈ solution_set ↔ ∀ m n, IsSquare ((g m + n) * (g n + m)) := by
sorry
constructor
· rintro (rfl | ⟨c, hc⟩) m n
· use m + n; rw [id, id]; ac_rfl
· use m + n + c; rw [hc m, hc n]; ac_rfl
· sorry

0 comments on commit a9dc1f8

Please sign in to comment.