euler_phi3
Provedelementaryeulergraph-theorymodular-arithmeticnumber-theoryopen-problemprime-3
Euler's Theorem for p=3, φ(3)=2. If 3 ∤ a then 3 | a^2 − 1. Equivalently, a^2 ≡ 1 (mod 3) for all a coprime to 3. This is the special case of Fermat-Euler: a^φ(p) ≡ 1 (mod p) for prime p and gcd(a,p)=1.
Preamble
import Mathlib.Data.Int.Basic import Mathlib.Data.ZMod.Basic
Formal statement
theorem euler_phi3 (a : ℤ) (h : ¬(3 : ℤ) ∣ a) : (3 : ℤ) ∣ a ^ 2 - 1 := by sorry