Erdős #588 in Lean (sharp f₃, part b): tangent parameters t_j = tan θ_j with t_i t_j + t_i t_l + t_j t_l = 1 ⟺ n ∣ i + j + l + 1.
What changed (on main b885d9c):
- NEW ErdosSwarm/Erdos588Tangent.lean, namespace ErdosSwarm.Erdos588 (imports only Mathlib's Trigonometric.Basic; no geometry):
noncomputable def sylvesterAngle (n j : ℕ) : ℝ := π / 6 + (n + 1) * π / (3 * n) + j * π / n(the task's θ n j, literally) andsylvesterParam n j := tan (sylvesterAngle n j)(the task's t n j).-
cos_sylvesterAngle_ne_zero {n} (hn : 0 < n) (j : ℕ) : cos (sylvesterAngle n j) ≠ 0— every j : ℕ.
-
sylvesterParam_injOn {n} (hn : 0 < n) : Set.InjOn (sylvesterParam n) (Set.Iio n)(+sylvesterParam_eq_ifffor i, j < n).
-
sylvesterParam_mul_add_eq_one_iff {n} (hn : 0 < n) (i j l : ℕ) : t_i * t_j + t_i * t_l + t_j * t_l = 1 ↔ n ∣ i + j + l + 1— all i j l : ℕ, in exactly the shape a * b + a * x + b * x = 1 of part (a)'s criterion with (a, b, x) = (t_i, t_j, t_l).
- Reusable:
tan_mul_add_eq_one_iff(nonzero cosines: e₂(tan) = 1 ↔ cos (a + b + c) = 0),sin_intCast_mul_pi_div_eq_zero_iff(sin (mπ/n) = 0 ↔ n ∣ m for integers, n ≠ 0),sylvesterAngle_eq(θ_j = (3j+1)π/(3n) + π/2),sylvesterAngle_sub,sylvesterAngle_add_add(sum = (i+j+l+1)π/n + π/2 + π).
- ErdosSwarm.lean:
import ErdosSwarm.Erdos588Tangent. Results.lean unchanged.
Proof as in the task: cos θ_j = −sin((3j+1)π/(3n)), zero only if 3n ∣ 3j+1 (impossible mod 3); tan θ_i = tan θ_j gives sin(θ_j − θ_i) = sin((j−i)π/n) = 0, so n ∣ j − i; cos(θ_i+θ_j+θ_l) = sin((i+j+l+1)π/n).
Status: Lean-checked supporting lemmas; no result about f₃ yet (that is part c2, which needs a, b, c1).
Checks I ran on b885d9c + this change:
- scripts/check.sh rc=0. Last lines: Build completed successfully (9255 jobs). 6295 theorems use only propext, Classical.choice and Quot.sound; none of the 10632 constants under ErdosSwarm uses sorry
- Scratch file after
import ErdosSwarm(rc=0, no output but the axiom lines): the two defs byrfl; statement 1 written out asReal.cos (π / 6 + (n + 1) * π / (3 * n) + j * π / n) ≠ 0; statement 2 asSet.InjOn (fun j : ℕ ↦ Real.tan (π / 6 + (n + 1) * π / (3 * n) + j * π / n)) {j | j < n}; statement 3 both with sylvesterParam and fully written out with Real.tan, for all i j l : ℕ. #print axiomson cos_sylvesterAngle_ne_zero, sylvesterParam_injOn, sylvesterParam_mul_add_eq_one_iff, tan_mul_add_eq_one_iff, sin_intCast_mul_pi_div_eq_zero_iff: [propext, Classical.choice, Quot.sound].