AFTD Auto-Formalizing Theoretical Domains

nae_sin_five

theoremverified

For real u, sin(5u) = sin(u)(16 sin⁴(u) − 20 sin²(u) + 5).

Statement

theorem nae_sin_five (u : ℝ) : Real.sin (5 * u) =
    Real.sin u * (16 * Real.sin u ^ 4 - 20 * Real.sin u ^ 2 + 5)
Source
arXiv:1211.0721, Section 3.3, p-computation rule analysis
Verified
14 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Used by 1

The proof, explained

The identity expresses sin(5u) as a polynomial in sin(u). The proof splits 5u into 2u + 3u, applies the angle addition formula, and expands the resulting terms using the double- and triple-angle formulas for sine and cosine. Finally, linear_combination eliminates the powers of cos(u) via the Pythagorean identity sin²(u) + cos²(u) = 1 to verify the equality algebraically.

  1. It suffices to show that (2 sin(u) cos(u))(4 cos³(u) - 3 cos(u)) + (2 cos²(u) - 1)(3 sin(u) - 4 sin³(u)) = sin(u)(16 sin⁴(u) - 20 sin²(u) + 5).

    We decompose 5u as 2u + 3u, apply the angle addition identity Real.sin_add to expand sin(2u + 3u), and then rewrite the double- and triple-angle terms using Real.sin_two_mul, Real.cos_two_mul, Real.sin_three_mul, and Real.cos_three_mul to express sin(5u) entirely as a polynomial in sin(u) and cos(u).

    lines 3–5

    uses Real.sin_add, Real.sin_two_mul, Real.cos_two_mul, Real.sin_three_mul, Real.cos_three_mul

      have heq : 5 * u = 2 * u + 3 * u := by ring
      rw [heq, Real.sin_add, Real.sin_two_mul, Real.cos_two_mul,
        Real.sin_three_mul, Real.cos_three_mul]
  2. The expanded trigonometric expression equals sin(u)(16 sin⁴(u) - 20 sin²(u) + 5). automation

    The difference between the two expressions is a multiple of the Pythagorean identity sin²(u) + cos²(u) = 1 (Real.sin_sq_add_cos_sq); linear_combination eliminates the cos(u) terms and verifies the polynomial equality algebraically.

    lines 6–7

    uses Real.sin_sq_add_cos_sq

      linear_combination (8 * Real.sin u * (Real.cos u ^ 2 - 2 * Real.sin u ^ 2 + 1)) *
        (Real.sin_sq_add_cos_sq u)
Real.sin_add
For all real numbers x and y, sin(x + y) = sin(x)cos(y) + cos(x)sin(y).
Real.sin_two_mul
For all real numbers x, sin(2x) = 2 sin(x)cos(x).
Real.cos_two_mul
For all real numbers x, cos(2x) = 2 cos²(x) - 1.
Real.sin_three_mul
For all real numbers x, sin(3x) = 3 sin(x) - 4 sin³(x).
Real.cos_three_mul
For all real numbers x, cos(3x) = 4 cos³(x) - 3 cos(x).
Real.sin_sq_add_cos_sq
For all real numbers x, sin²(x) + cos²(x) = 1.

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

theorem nae_sin_five (u : ℝ) : Real.sin (5 * u) =    Real.sin u * (16 * Real.sin u ^ 4 - 20 * Real.sin u ^ 2 + 5) := by  have heq : 5 * u = 2 * u + 3 * u := by ring  rw [heq, Real.sin_add, Real.sin_two_mul, Real.cos_two_mul,    Real.sin_three_mul, Real.cos_three_mul]  linear_combination (8 * Real.sin u * (Real.cos u ^ 2 - 2 * Real.sin u ^ 2 + 1)) *    (Real.sin_sq_add_cos_sq u)
See it in the graphDiscuss this resultChallenge it