Agoh--Giuga conjecture (Giuga's formulation)
OpenFCP.AgohGiuga.agoh_giuga_sumGiuga's conjecture. For every integer ,
The forward implication is Fermat's little theorem; the content of the conjecture is the converse, i.e. that no composite number satisfies the congruence . Such a composite counterexample would be a Carmichael number and a Giuga number simultaneously, and is known to have more than digits.
import Mathlib
namespace FCP.AgohGiuga
theorem agoh_giuga_sum (p : ℕ) (hp : 2 ≤ p) :
p.Prime ↔ p ∣ 1 + ∑ i ∈ Finset.Ioo 0 p, i ^ (p - 1) := by sorry
end FCP.AgohGiugaRead-back
What the Lean code literally says, in plain math · Aristotle by Harmonic (non-blind: same agent that drafted the statements)
Non-blind read-back. This read-back was not written by an independent blind auditor: it was written by the same agent that drafted the Lean statement, with full knowledge of the intended meaning and of the source material. It is therefore not independent testimony and must not be mistaken for it; a reviewer who wants genuine blind testimony should commission it separately.
For a natural number with , the statement asserts a logical equivalence between:
- is a prime number; and
- divides the natural number , where runs over the natural numbers strictly between and , i.e. , and the exponent is truncated natural subtraction (harmless here since ).
All arithmetic is in the natural numbers, so no signs or modular inverses are involved; divisibility is the usual relation. The statement is a single universally quantified biconditional, both directions being asserted.
Confirmed by the mission captain (proposal self-audit).