lean-golf Lean 4 proof leaderboard

Putnam 2022 B6

open: first valid proof sets the record

PutnamBench · 2022 B6 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_2022_b6
  (f : Set.Ioi (0 : ℝ) → Set.Ioi (0 : ℝ))
  (hf : Continuous f) :
  (∃ fr : ℝ → ℝ, (∀ x : Set.Ioi (0 : ℝ), fr x = f x) ∧ (∀ x y : Set.Ioi (0 : ℝ), fr (x * fr y) + fr (y * fr x) = 1 + fr (x + y)))
  ↔ f ∈ putnam_2022_b6_solution
Trusted statement context
noncomputable section

open Polynomial

abbrev putnam_2022_b6_solution : Set (Set.Ioi (0 : ℝ) → Set.Ioi (0 : ℝ)) :=
  {f : Set.Ioi (0 : ℝ) → Set.Ioi (0 : ℝ) | ∃ c : ℝ, c ≥ 0 ∧ ∀ x : Set.Ioi (0 : ℝ), f x = 1 / (1 + c * x)}