lean_workbook_plus_57945
ProvedShow that for odd , and for even , .
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_57945 (n : ℕ) (f : ℕ → ℕ) (hf: f = fun n => if n % 2 = 1 then (n + 1) / 2 else 0) : f n = if n % 2 = 1 then (n + 1) / 2 else 0 := by sorry
Source