lean-golf Lean 4 proof leaderboard

Putnam 1977 A3

7 characters · @rpinho ·

PutnamBench · 1977 A3 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1977_a3
    (f g h : ℝ → ℝ)
    (hf : ∀ x, f x = (h (x + 1) + h (x - 1)) / 2)
    (hg : ∀ x, g x = (h (x + 4) + h (x - 4)) / 2) :
    h = putnam_1977_a3_solution f g
Trusted statement context
noncomputable section

abbrev putnam_1977_a3_solution : (ℝ → ℝ) → (ℝ → ℝ) → (ℝ → ℝ) :=
  fun f g x ↦ g x - f (x - 3) + f (x - 1) + f (x + 1) - f (x + 3)

Record proof

import Mathlib

theorem LeanGolf.putnambench.putnam_1977_a3
    (f g h : ℝ → ℝ)
    (hf : ∀ x, f x = (h (x + 1) + h (x - 1)) / 2)
    (hg : ∀ x, g x = (h (x + 4) + h (x - 4)) / 2) :
    h = putnam_1977_a3_solution f g := by grind

Record card (SVG)

Record history

HolderCharactersDate
@rpinho7