Main derivation
S01 · equivalent
Before
f\ \text{convex on}\ IAfter
I\ \text{convex}\ \land\ \forall x,y\in I\ \forall\lambda\in[0,1]:\ f(\lambda x+(1-\lambda)y)\le\lambda f(x)+(1-\lambda)f(y)Conditions: none
Rule: mko_cvxf · Uses: G1, mko_cvxf
Leaf basis: mko_cvxf + def_unfold
Unfold the MKO's definition. It has two parts: the domain must be convex (otherwise λx+(1−λ)y may leave the domain, where f has no value), and the Jensen inequality must hold for all x, y, λ. Both parts must be proved.
S02 · implies
Before
x,y\in[-1,4],\ \lambda\in[0,1]
After
z=\lambda x+(1-\lambda)y\in[-1,4];\ I\ \text{convex}Conditions: \lambda\in[0,1]
Rule: L_interval · Uses: G1, L_interval, mko_cvxset
Leaf basis: L_interval + forall_intro
Apply Lemma L_interval (α=−1, β=4, s=x, t=y): z stays in [−1,4]. Since x, y, λ are arbitrary, I satisfies the definition of a convex set; therefore f(z) is defined and the Jensen inequality makes sense. The lemma is proved in S02.1 and S02.2.
S03 · equivalent
Before
f(z)\le\lambda f(x)+(1-\lambda)f(y)
After
G_f(x,y,\lambda)=\lambda f(x)+(1-\lambda)f(y)-f(z)\ge 0
Conditions: none
Rule: order_basics · Uses: S01, S02
Leaf basis: order_basics + def_intro
Define the Jensen gap G_f=λf(x)+(1−λ)f(y)−f(z). Subtracting f(z) from both sides keeps the direction, so the Jensen inequality is equivalent to G_f≥0. From now on only the sign of G_f matters.
S04 · equivalent
Before
G_q(x,y,\lambda)\ \text{for } q(x)=ax^2+bx+cAfter
G_q(x,y,\lambda)=a\lambda(1-\lambda)(x-y)^2
Conditions: none
Rule: L_gap · Uses: L_gap
Leaf basis: distributive + power_laws + add_inverse
Lemma L_gap: the Jensen gap of any univariate quadratic (including the affine case a=0) equals aλ(1−λ)(x−y)², for all reals x, y, λ. The proof has three sub-steps: the constant and linear parts cancel (S04.1), the square is expanded (S04.2), and the quadratic part becomes a perfect square (S04.3). N1 checks the whole identity as a polynomial identity.
S05 · equivalent
Before
G_f(x,y,\lambda)
After
G_f(x,y,\lambda)=2\lambda(1-\lambda)(x-y)^2
Conditions: none
Rule: forall_elim · Uses: S04, G1
Leaf basis: forall_elim + eq_replace
Apply L_gap to f with a=2, b=−3, c=1 (instantiating a universal statement). b and c do not appear in the result; only a=2 determines the gap.
S06 · implies
Before
0\le\lambda\le 1
After
\lambda(1-\lambda)\ge 0
Conditions: \lambda\ge 0; 1-\lambda\ge 0
Rule: mono_nonneg · Uses: S02.1, mono_nonneg, mul_zero
Leaf basis: mono_nonneg + mul_zero
Multiply 0≤1−λ by λ≥0: λ·0≤λ(1−λ), and λ·0=0. So λ(1−λ)≥0.
S07 · implies
Before
2>0,\ \lambda(1-\lambda)\ge 0,\ (x-y)^2\ge 0
After
G_f(x,y,\lambda)=2\lambda(1-\lambda)(x-y)^2\ge 0
Conditions: none
Rule: mono_nonneg · Uses: S05, S06, square_nonneg, mono_nonneg
Leaf basis: square_nonneg + mono_nonneg + mul_zero
Squares are nonnegative: (x−y)²≥0. Multiplying 0≤(x−y)² by λ(1−λ)≥0 gives 0≤λ(1−λ)(x−y)²; multiplying by 2>0 gives 0≤2λ(1−λ)(x−y)². By S05, G_f≥0.
S08 · implies
Before
G_f(x,y,\lambda)\ge 0\ \text{for arbitrary } x,y\in I,\ \lambda\in[0,1]After
f\ \text{convex on}\ IConditions: none
Rule: forall_intro · Uses: S01, S02, S03, S07, forall_intro
Leaf basis: forall_intro + and_intro_elim
x, y, λ were arbitrary and S03 to S07 put no extra assumption on them, so by ∀-introduction the Jensen inequality holds for all x,y∈I and λ∈[0,1]; together with the convexity of I from S02 and by S01, f is convex on I. This is a positive certificate covering every case (MKO assumption a2).
S09 · implies
Before
x=-1,\ y=4,\ \lambda=\tfrac15
After
z=3,\ f(3)=10\le 18=\tfrac15 f(-1)+\tfrac45 f(4),\ G_f=8=2\cdot\tfrac15\cdot\tfrac45\cdot 25
Conditions: none
Rule: numeric_evaluation · Uses: S05, G1
Leaf basis: numeric_evaluation
One concrete instance as an illustration: z=(1/5)(−1)+(4/5)·4=3; f(3)=18−9+1=10; f(−1)=6 and f(4)=21, so (1/5)·6+(4/5)·21=18. The gap 18−10=8 agrees with the formula of S05, 2·(1/5)·(4/5)·(−5)²=8. This is an illustration only, not a proof; the proof is S02 to S08.
S10 · implies
Before
G_\ell(x,y,\lambda)\ \text{for}\ \ell(x)=3x-5After
G_\ell=0\cdot\lambda(1-\lambda)(x-y)^2=0;\ \ell\ \text{convex on}\ I\ \text{with equality}Conditions: none
Rule: forall_elim · Uses: S04, S02, G2, forall_intro
Leaf basis: forall_elim + mul_zero + forall_intro
ℓ is the case a=0, so by L_gap G_ℓ=0 for all x, y, λ, that is ℓ(z)=λℓ(x)+(1−λ)ℓ(y): Jensen holds with equality (MKO para0). The domain I was shown convex in S02, so ℓ is convex on I (and the reverse inequality holds too).
S11 · equivalent
Before
\neg(g\ \text{convex on}\ J)After
\exists x,y\in J\ \exists\lambda\in[0,1]:\ g(\lambda x+(1-\lambda)y)>\lambda g(x)+(1-\lambda)g(y)
Conditions: none
Rule: quantifier_negation · Uses: G3, mko_cvxf, L_interval, quantifier_negation
Leaf basis: quantifier_negation + order_basics + L_interval
J=[0,2] is convex by L_interval, so the first part of the definition holds; g is not convex exactly when the Jensen part fails. ¬∀ is equivalent to ∃¬, and ¬(u≤v) is equivalent to u>v. So one choice of x, y, λ with g(z) strictly greater than the right side is enough.
S12 · implies
Before
x=0,\ y=2,\ \lambda=\tfrac12
After
z=1\in J,\ g(1)=0,\ \tfrac12 g(0)+\tfrac12 g(2)=\tfrac12\cdot 0+\tfrac12\cdot(-2)=-1
Conditions: none
Rule: numeric_evaluation · Uses: G3
Leaf basis: numeric_evaluation
Take the endpoints x=0, y=2 of J and λ=1/2∈[0,1]: z=1∈J. Exact evaluation: g(1)=−1+1=0, g(0)=0, g(2)=−4+2=−2, and the right side is (1/2)·0+(1/2)·(−2)=−1.
S13 · implies
Before
g(1)=0,\ \tfrac12 g(0)+\tfrac12 g(2)=-1
After
0>-1;\ g\ \text{is not convex on}\ JConditions: none
Rule: exists_intro · Uses: S11, S12, exists_intro
Leaf basis: exists_intro + order_basics
0>−1, so this choice of x, y, λ violates the Jensen inequality. By ∃-introduction the existential statement of S11 holds, and g is not convex on J. One exact violation suffices (MKO assumption a2).
S14 · implies
Before
G_g(x,y,\lambda)
After
G_g=-\lambda(1-\lambda)(x-y)^2;\ G_g(0,2,\tfrac12)=-1
Conditions: none
Rule: forall_elim · Uses: S04, S06, S12, square_nonneg
Leaf basis: forall_elim + square_nonneg + order_basics
Cross-check: g has a=−1, so by L_gap G_g=−λ(1−λ)(x−y)². At (0,2,1/2): −(1/2)(1/2)·4=−1, exactly the right side of S12 minus g(z): −1−0=−1. More generally, whenever x≠y and 0<λ<1, G_g<0: every nontrivial Jensen instance fails.
S15 · implies
Before
\lambda\in\{0,1\}\ \text{or}\ x=yAfter
G_g=0\ \text{(samples pass)},\ \text{yet } g\ \text{not convex}Conditions: none
Rule: mul_zero · Uses: S13, S14
Leaf basis: mul_zero + square_nonneg
When λ=0, λ=1 or x=y, λ(1−λ)(x−y)²=0, so g passes Jensen with equality on these samples. Yet S13 proved g is not convex. Hence 'some Jensen samples pass' does not imply convexity; a positive conclusion must cover every x, y, λ, as S02 to S08 do.
Substeps and lemmas
S02.1 · implies
Before
\alpha\le s,\ \alpha\le t,\ \lambda\ge 0,\ 1-\lambda\ge 0
After
\alpha=\lambda\alpha+(1-\lambda)\alpha\le\lambda s+(1-\lambda)t
Conditions: 0\le\lambda\le 1
Rule: mono_nonneg · Uses: mono_nonneg, ineq_add, distributive
Leaf basis: mono_nonneg + ineq_add + distributive + order_basics
From 0≤λ≤1 we get λ≥0 and 1−λ≥0. Multiplying α≤s by λ gives λα≤λs, and α≤t by 1−λ gives (1−λ)α≤(1−λ)t; adding gives λα+(1−λ)α≤λs+(1−λ)t, and by distributivity the left side is (λ+1−λ)α=α.
S02.2 · implies
Before
s\le\beta,\ t\le\beta
After
\lambda s+(1-\lambda)t\le\lambda\beta+(1-\lambda)\beta=\beta
Conditions: 0\le\lambda\le 1
Rule: mono_nonneg · Uses: S02.1, mono_nonneg, ineq_add, distributive
Leaf basis: mono_nonneg + ineq_add + distributive
The upper bound follows similarly: multiply s≤β by λ and t≤β by 1−λ, add, and simplify the right side to β by distributivity. S02.1 and S02.2 together prove Lemma L_interval.
S04.1 · equivalent
Before
\lambda(bx+c)+(1-\lambda)(by+c)-\big(b(\lambda x+(1-\lambda)y)+c\big)
After
0
Conditions: none
Rule: distributive · Uses: distributive
Leaf basis: distributive + add_inverse + mul_one
Linear part: λbx+(1−λ)by−b(λx+(1−λ)y)=0 by distributivity. Constant part: λc+(1−λ)c−c=(λ+1−λ)c−c=0. So only the quadratic part of the gap remains.
S04.2 · equivalent
Before
(\lambda x+(1-\lambda)y)^2
After
\lambda^2x^2+2\lambda(1-\lambda)xy+(1-\lambda)^2y^2
Conditions: none
Rule: distributive · Uses: distributive, power_laws
Leaf basis: distributive + power_laws + mul_comm
Use (p+q)²=p²+2pq+q² (expansion by distributivity) with p=λx and q=(1−λ)y.
S04.3 · equivalent
Before
a\big(\lambda x^2+(1-\lambda)y^2-(\lambda x+(1-\lambda)y)^2\big)
After
a\lambda(1-\lambda)(x-y)^2
Conditions: none
Rule: distributive · Uses: S04.1, S04.2, distributive
Leaf basis: distributive + power_laws + mul_comm + add_comm
Substitute S04.2: the coefficient of x² is λ−λ²=λ(1−λ); that of y² is (1−λ)−(1−λ)²=(1−λ)(1−(1−λ))=λ(1−λ); that of xy is −2λ(1−λ). Factor out λ(1−λ): λ(1−λ)(x²−2xy+y²)=λ(1−λ)(x−y)². Multiply by a and add the 0 of S04.1 to get G_q=aλ(1−λ)(x−y)². S04.1 to S04.3 prove Lemma L_gap.