AFTD Auto-Formalizing Theoretical Domains

subadditive_f_ks

def

For a twice differentiable function s, the associated K_s function is K_s(x) = s(x) + 2(s'(x))^2/(-s''(x)).

Statement

noncomputable def subadditive_f_ks (s : ℝ → ℝ) (x : ℝ) : ℝ
Defined in
arXiv:2610.21231, Corollary 1
Verified
22 Oct 2026
Axioms
none listed
Used by 3

Read back from the Lean

The definition subadditive_f_ks takes a function $s : \mathbb{R} \to \mathbb{R}$ and a real number $x$, and defines their value to be $s(x) + \frac{2 (s'(x))^2}{-s''(x)}$, where $s'(x) = \mathrm{deriv}(s)(x)$ is the derivative of $s$ at $x$ and $s''(x) = \mathrm{deriv}(\mathrm{deriv}(s))(x)$ is the second derivative of $s$ at $x$ (with Lean's convention that division by zero is zero when $s''(x) = 0$).

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The K_s function associated to s, defined as K_s(x) = s(x) + 2 (s'(x))^2 / (-s''(x)). -/
noncomputable def subadditive_f_ks (s : ℝ → ℝ) (x : ℝ) : ℝ := s x + 2 * (deriv s x) ^ 2 / (- deriv (deriv s) x)
See it in the graphDiscuss this resultChallenge it