Mantel’s theorem is a special case of Turan theorem.
Theorem The maximum size of a graph of order that is triangle-free (it doesn’t contain ) is
Proof Pick any edge in (it can’t be empty since it has maximum size). Since it is triangle-free, the neighbourhoods of and are disjoint so that
summing over all edges
every therm in the sum appears times, so
we can use Cauchy-Schwarz inequality to lower boud the first term (or use the fact what the variance is always non-negative)
using the Handshake Lemma