lean-golf Lean 4 proof leaderboard

Putnam 1969 B4

open: first valid proof sets the record

PutnamBench · 1969 B4 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1969_b4
    (Γ : ℝ → EuclideanSpace ℝ (Fin 2))
    --Note: the problem doesn't say what regularity conditions we should impose on `Γ` - hopefully continuity is enough.
    (Γ_cts : ContinuousOn Γ (Set.Icc 0 1))
    (hΓ : eVariationOn Γ (Set.Icc 0 1) = 1) :
    letI : Module.Oriented ℝ (EuclideanSpace ℝ (Fin 2)) (Fin 2) := ⟨Module.Basis.orientation <| PiLp.basisFun 2 ℝ (Fin 2)⟩
    letI : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin 2)) = 2) := ⟨finrank_euclideanSpace_fin⟩
    ∃ (a b c d : EuclideanSpace ℝ (Fin 2)), Γ '' (Set.Icc 0 1) ⊆
      convexHull ℝ {a, b, c, d} ∧ dist a b * dist b c = 1/4 ∧
      --`abcd` is a rectangle
      letI π_div_2 := Real.Angle.coe <| π / 2
      (∡ a b c = π_div_2 ∧ ∡ b c d = π_div_2 ∧ ∡ c d a = π_div_2 ∧ ∡ d a b = π_div_2)
Trusted statement context
open scoped Real EuclideanGeometry