Preserving squares forces nonnegative values
ProvedWorkbookSource.problem_19290lean-workbooksource-checked
For , . This implies that is nonnegative whenever is nonnegative.
Source: InternLM Lean-Workbook, record lean_workbook_19290 (Apache-2.0). The complete source proposition and explicit variable declarations are preserved.
Preamble
import Mathlib open Real Nat
Formal statement
theorem WorkbookSource.problem_19290 (f : ℝ → ℝ) (h₀ : f 1 = 1) (h₁ : ∀ x, f (x^2) = (f x)^2) : ∀ x ≥ 0, 0 ≤ f x := by sorry
Source