Primality testing using Chebyshev polynomials
Statement
Can you provide a proof or a counterexample for the claim given below?
Inspired by an alternative definition of the Frobenius primality test which is given in this paper I have formulated the following claim:
Let be an odd natural number that is not a perfect square and let be the smallest odd prime number such that , where denotes a Jacobi symbol . Let be the mth Chebyshev polynomial of the first kind , then is prime iff .
The test runs in polynomial time , you can try it here. I have verified this claim for up to .
The Android app that implements this test can be found on Google Play.
Posed by Pedja · nt.number-theory, prime-numbers, counterexamples, elementary-proofs
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-370280.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-370280.lean
import Mathlib /-! # Primality testing using Chebyshev polynomials Source: https://mathoverflow.net/questions/370280 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_370280 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_370280