Compfiles: Catalog Of Math Problems Formalized In Lean

Usa2025P4

import Mathlib.Tactic
import Mathlib

/-!
# USA Mathematical Olympiad 2025, Problem 4

Let `H` be the orthocenter of an acute triangle `ABC`, let `F` be the foot of the altitude
from `C` to `AB`, and let `P` be the reflection of `H` across `BC`. Suppose that the
circumcircle of triangle `AFP` intersects line `BC` at two distinct points `X` and `Y`.
Prove that `CX = CY`.


-/

namespace Usamo2025P4

open EuclideanGeometry RealInnerProductSpace

theorem usamo2025_p4
    (A B C H F P X Y : EuclideanSpace ℝ (Fin 2))
    (htri : AffineIndependent ℝ ![A, B, C])
    (hacuteA : ∠ B A C < Real.pi / 2)
    (hacuteB : ∠ A B C < Real.pi / 2)
    (hacuteC : ∠ B C A < Real.pi / 2)
    (hH1 : ⟪H -ᵥ A, C -ᵥ B⟫ = 0)
    (hH2 : ⟪H -ᵥ B, C -ᵥ A⟫ = 0)
    (hFline : F ∈ affineSpan ℝ ({A, B} : Set (EuclideanSpace ℝ (Fin 2))))
    (hFperp : ⟪C -ᵥ F, B -ᵥ A⟫ = 0)
    (hPperp : ⟪P -ᵥ H, C -ᵥ B⟫ = 0)
    (hPmid : midpoint ℝ H P ∈ affineSpan ℝ ({B, C} : Set (EuclideanSpace ℝ (Fin 2))))
    (hXline : X ∈ affineSpan ℝ ({B, C} : Set (EuclideanSpace ℝ (Fin 2))))
    (hYline : Y ∈ affineSpan ℝ ({B, C} : Set (EuclideanSpace ℝ (Fin 2))))
    (hXY : X ≠ Y)
    (hcirc : ∃ O : EuclideanSpace ℝ (Fin 2), ∃ r : ℝ,
        dist O A = r ∧ dist O F = r ∧ dist O P = r ∧ dist O X = r ∧ dist O Y = r) :
    dist C X = dist C Y := sorry

end Usamo2025P4

File author(s): Daniel Liao

This problem has a complete formalized solution.

Open with the in-brower editor at live.lean-lang.org:
External resources: