IMO1984 P3
open: first valid proof sets the record
Compfiles · Imo · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: Kimi K3
Statement
import Mathlib.Tactic
import Mathlib.Analysis.SpecialFunctions.Complex.Arg
import Mathlib.Analysis.Complex.Trigonometric
import Mathlib.Analysis.Real.Pi.Bounds
import Mathlib.Data.Fintype.Pigeonhole
theorem _root_.LeanGolf.compfiles.imo1984_p3 {ι : Type*} [Fintype ι] (O A : ℂ) (hOA : O ≠ A) (color : ℂ → ι) :
∃ Y : ℂ, Y ≠ O ∧ 0 < aang O A Y ∧
∃ Z : ℂ, ‖Z - O‖ = ‖Y - O‖ + aang O A Y / ‖Y - O‖ ∧ color Z = color YTrusted statement context
noncomputable section
namespace Imo1984P3
noncomputable def aang (O A X : ℂ) : ℝ :=
if 0 ≤ Complex.arg ((X - O) / (A - O)) then Complex.arg ((X - O) / (A - O))
else Complex.arg ((X - O) / (A - O)) + 2 * Real.pi