Proof-Theorem-Lemma Template
Definition
A function is convex if for all and
Lemma
For all real numbers
Proof
Expanding the square
Since a square of a real number is always non-negative,
Lemma
For any real numbers
Proof
Start from the identity
Rewrite the expression
Using the previous lemma
we obtain
Theorem
For any real numbers
Proof
Start from the expansion
Using the inequality
we obtain
Substituting this into the original expression gives
Corollary
For any real numbers