Documentation

AgoGiuga.Reduction

Reduction of the Agoh–Giuga Conjecture #

We reduce the Agoh–Giuga conjecture to the nonexistence of certain numbers.

Main results #

Reduction chain #

  1. prime → giugaSum = -1 (proved: agoh_giuga_forward)
  2. composite + giugaSum = -1 → Carmichael ∧ Giuga (structural_forward)
  3. Carmichael ∧ Giuga → giugaSum = -1 (structural_backward)
  4. Carmichael → odd (IsCarmichaelNumber.odd)

Combining (2) and (3): the conjecture's reverse direction (no composite counterexample) is equivalent to the nonexistence of Carmichael-Giuga numbers. Combining with (4): it suffices to show no odd Giuga number exists.

The Agoh–Giuga conjecture is equivalent to: no number is simultaneously Carmichael and Giuga.

theorem no_odd_giuga_implies_conjecture (h : ∀ (n : ), IsGiugaNumber n¬Odd n) (n : ) :
n 2 → (Nat.Prime n giugaSum n = -1)

If no odd Giuga number exists, the conjecture holds. Every Carmichael number is odd, so a Carmichael-Giuga number would be an odd Giuga number.

The open conjecture: no number is simultaneously Carmichael and Giuga.

theorem agoh_giuga_conjecture (n : ) :
n 2 → (Nat.Prime n giugaSum n = -1)

The Agoh–Giuga conjecture (full, open problem).

n ≥ 2 is prime if and only if ∑_{i=1}^{n-1} i^{n-1} ≡ -1 (mod n).