AFTD Auto-Formalizing Theoretical Domains

subadditive_ks_identity

theoremverified

For real numbers α and x and functions s, g : ℝ → ℝ, if g x = α * x + s x, deriv g x - α = deriv s x, and deriv (deriv g) x = deriv (deriv s) x, then g x + 2 * (deriv g x - α)^2 / (- deriv (deriv g) x) = α * x + subadditive_f_ks s x.

Statement

theorem subadditive_ks_identity (α x : ℝ) (s g : ℝ → ℝ)
    (hg : g x = α * x + s x)
    (hg' : deriv g x - α = deriv s x)
    (hg'' : deriv (deriv g) x = deriv (deriv s) x) :
    g x + 2 * (deriv g x - α) ^ 2 / (- deriv (deriv g) x) =
      α * x + subadditive_f_ks s x
Source
arXiv:2610.21231, Appendix C
Verified
22 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • subadditive_f_ksFor a twice differentiable function s, the associated K_s function is K_s(x) = s(x) + 2(s'(x))^2/(-s''(x)).
Used by 1

Read back from the Lean

For all real numbers $α$ and $x$, and all functions $s, g : ℝ → ℝ$, if: 1. $g(x) = α x + s(x)$, 2. $g'(x) - α = s'(x)$, and 3. $g''(x) = s''(x)$ (where $g'$ and $s'$ denote deriv g and deriv s, and $g''$ and $s''$ denote the second derivatives deriv (deriv g) and deriv (deriv s)), then: $$g(x) + \frac{2(g'(x) - α)^2}{-g''(x)} = α x + \text{subadditive\_f\_ks}(s, x)$$

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

The proof, explained

The proof establishes the identity by expanding the definition of `subadditive_f_ks` and substituting $g(x)$, $g'(x) - \alpha$, and $g''(x)$ with their expressions in terms of $s$ using the hypotheses. The resulting equality has identical terms on both sides differing only by the associativity of addition, which is verified automatically by polynomial ring arithmetic.

  1. $\alpha x + s(x) + \frac{2 (s'(x))^2}{-s''(x)} = \alpha x + \left(s(x) + \frac{2 (s'(x))^2}{-s''(x)}\right)$

    Unfolding the definition of `subadditive_f_ks` rewrites $\text{subadditive\_f\_ks}(s, x)$ on the right-hand side as $s(x) + \frac{2 (s'(x))^2}{-s''(x)}$. Then, rewriting with the given hypotheses substitutes $g(x) = \alpha x + s(x)$ (from `hg`), $g'(x) - \alpha = s'(x)$ (from `hg'`), and $g''(x) = s''(x)$ (from `hg''`) into the left-hand side, putting both sides in terms of $s$ and its derivatives.

    lines 8–9

      unfold subadditive_f_ks
      rw [hg, hg', hg'']
  2. The identity holds. automation

    The two sides of the equation are algebraically equivalent, differing only in the grouping of the addition (associativity); the `ring` tactic simplifies and closes the equality using standard ring arithmetic over the real numbers.

    line 10

      ring

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

/-- Pointwise algebraic identity connecting g and K_s: g(x) + 2(g'(x) - α)^2 / (-g''(x)) = α x + K_s(x). -/theorem subadditive_ks_identity (α x : ℝ) (s g : ℝ → ℝ)    (hg : g x = α * x + s x)    (hg' : deriv g x - α = deriv s x)    (hg'' : deriv (deriv g) x = deriv (deriv s) x) :    g x + 2 * (deriv g x - α) ^ 2 / (- deriv (deriv g) x) =      α * x + subadditive_f_ks s x := by  unfold subadditive_f_ks  rw [hg, hg', hg'']  ring
See it in the graphDiscuss this resultChallenge it