Math 2.0

Combinatorics Proof

Proof of Mantel's theorem by double counting

Builds on GraphDegree of a vertexNeighbourhoodCycleHandshaking lemmaCauchy–Schwarz inequalityDouble counting

Proof

We double count the sum of the squares of the degrees and apply the Cauchy–Schwarz inequality.

  1. Let GG be a finite simple graph with vertex set VV, ∣V∣=n\abs{V} = n, and mm edges. Suppose that GG has no cycle of length 33. For v∈Vv \in V, write d(v)d(v) for its degree and N(v)N(v) for its neighbourhood.
  2. If m=0m = 0, then m=0≤⌊n2/4⌋m = 0 \le \floor{n^2/4}. From now on let m≥1m \ge 1, so n≥2n \ge 2.
  3. Let xyxy be an edge. If a vertex zz were adjacent to both xx and yy, then z≠x,yz \ne x, y and x,y,z,xx, y, z, x would be a cycle of length 33. So N(x)∩N(y)=∅N(x) \cap N(y) = \varnothing.
  4. Hence d(x)+d(y)=∣N(x)∣+∣N(y)∣=∣N(x)∪N(y)∣≤nd(x) + d(y) = \abs{N(x)} + \abs{N(y)} = \abs{N(x) \cup N(y)} \le n for every edge xyxy.
  5. We double count the sum ∑xy(d(x)+d(y))\sum_{xy} \big(d(x) + d(y)\big) over all edges xyxy. A vertex vv is an end of exactly d(v)d(v) edges, and each of them contributes d(v)d(v) to the sum.
  6. So ∑v∈Vd(v)2=∑xy(d(x)+d(y))≤mn\sum_{v \in V} d(v)^2 = \sum_{xy} \big(d(x) + d(y)\big) \le m n, by Step 4.
  7. By the handshaking lemma, ∑v∈Vd(v)=2m\sum_{v \in V} d(v) = 2m.
  8. Apply the Cauchy–Schwarz inequality in ℝn\R^n, with the standard inner product, to the vectors (d(v))v∈V(d(v))_{v \in V} and (1)v∈V(1)_{v \in V}. This gives (∑vd(v))2≤n∑vd(v)2\left(\sum_v d(v)\right)^2 \le n \sum_v d(v)^2.
  9. By Steps 6, 7 and 8, 4m2≤n⋅mn=mn24m^2 \le n \cdot m n = m n^2.
  10. Divide by 4m>04m > 0 to get m≤n2/4m \le n^2/4.
  11. Since mm is an integer, m≤⌊n2/4⌋m \le \floor{n^2/4}.

Idea

In a triangle-free graph, the two ends of an edge have no common neighbour, so their degrees add up to at most nn. Summing over edges bounds the sum of squared degrees by mnmn. Cauchy–Schwarz bounds the same sum from below by 4m2/n4m^2/n, and comparing the two gives m≤n2/4m \le n^2/4.

Reading path

To understand this page from the ground up, read these 71 pages in order. The foundations come first. The path takes the proofs Proof of the handshaking lemma by double counting, Proof that a complex number times its conjugate is the square of its modulus, Proof of the Cauchy–Schwarz inequality, Proof of the equality of complex numbers, Proof that the reals form an ordered field, with the Cauchy sequence construction, Proof that the absolute value is multiplicative, Proof of the existence of square roots of nonnegative reals.

  1. Complex numbers object
  2. Complex numbers as pairs of reals concept
  3. Construction of the reals from Cauchy sequences concept
  4. Double counting concept
  5. Element definition
  6. Graph definition
  7. Imaginary unit object
  8. Inner product concept
  9. Inner product space concept
  10. Integers object
  11. Norm induced by an inner product concept
  12. Ordered field definition
  13. Proposition concept
  14. Rational numbers object
  15. Real numbers object
  16. Set bounded above definition
  17. Vector space definition
  18. Real and imaginary parts definition
  19. Set definition
  20. Edge set definition
  21. Neighbourhood definition
  22. Walk definition
  23. Ring of integers statement
  24. Implication definition
  25. Predicate definition
  26. The reals form a field statement
  27. Supremum definition
  28. Inner product definition
  29. Linear combination definition
  30. Norm definition
  31. Complex conjugate definition
  32. Ordered pair definition
  33. Degree of a vertex definition
  34. Trail definition
  35. Universal quantifier definition
  36. The rationals form a field statement
  37. Inner product space definition
  38. Linear independence definition
  39. Completeness axiom statement
  40. Cartesian product definition
  41. Proof of the equality of complex numbers proof
  42. Circuit definition
  43. Proof of the handshaking lemma by double counting proof
  44. Subset definition
  45. The rationals form an ordered field statement
  46. Norm induced by an inner product definition
  47. Equality of complex numbers statement
  48. Binary relation definition
  49. Cycle definition
  50. Handshaking lemma statement
  51. Order on the reals definition
  52. Antisymmetric relation definition
  53. Reflexive relation definition
  54. Transitive relation definition
  55. Preorder definition
  56. Partial order definition
  57. Total order definition
  58. Proof that the reals form an ordered field, with the Cauchy sequence construction proof
  59. The reals form an ordered field statement
  60. Absolute value definition
  61. Proof of the existence of square roots of nonnegative reals proof
  62. Proof that the absolute value is multiplicative proof
  63. Existence of square roots of nonnegative reals statement
  64. Absolute value is multiplicative statement
  65. Square root definition
  66. Modulus of a complex number definition
  67. Proof that a complex number times its conjugate is the square of its modulus proof
  68. A complex number times its conjugate statement
  69. Proof of the Cauchy–Schwarz inequality proof
  70. Cauchy–Schwarz inequality statement
  71. Proof of Mantel's theorem by double counting proof

Where this leads

1 page builds on this one.

Further reading

  1. Web http://www.its.caltech.edu/~dconlon/EGT1.pdf, Theorem 1, first proof
About this page
TagTPQVT6GZAW
URIm2://TPQVT6GZAW
Kindproof
WritingW0 stub
MSC05C35
ProvesMantel's theorem
UsesGraph, Degree of a vertex, Neighbourhood, Cycle, Handshaking lemma, Cauchy–Schwarz inequality, Double counting
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.