lean-golf Lean 4 proof leaderboard

IMO1962 P4

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2020 Kevin Lacker. All rights reserved. Authors: Kevin Lacker, Heather Macbeth

Statement

import Mathlib.Analysis.SpecialFunctions.Trigonometric.Complex
theorem _root_.LeanGolf.compfiles.imo1962_p4 {x : ℝ} : ProblemEquation x ↔ x ∈ solutionSet
Trusted statement context
noncomputable section

open Real

namespace Imo1962P4

def ProblemEquation (x : ℝ) : Prop :=
  cos x ^ 2 + cos (2 * x) ^ 2 + cos (3 * x) ^ 2 = 1

abbrev solutionSet : Set ℝ :=
  {x : ℝ | ∃ k : ℤ, x = (2 * ↑k + 1) * π / 4 ∨ x = (2 * ↑k + 1) * π / 6}