Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Factorial Hypergraph: card roots Mod eq two iff

Proved
FactorialHypergraph.card_rootsMod_eq_two_iff

by marwahaha · Nov 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

factorial-hypergraph-auxiliary-erdos

ρ(p) = 2 exactly for the primes p ≡ ±1 (mod 5); for the remaining primes p ≠ 2, 5 one has ρ(p) = 0, so ρ(p) ∈ {0, 2}.

Source: https://github.com/GrgAakash/factorial-hypergraph-auxiliary-erdos/blob/67b4088fc84422c84f7e5e205552757c3c0c9a71/FactorialHypergraph/QuadraticRoots.lean#L224-L251

Preamble
import Definitions.Def_FactorialHypergraph_Definitions
import Definitions.Def_FactorialHypergraph_QuadraticRoots
set_option autoImplicit true
open FactorialHypergraph
open Finset
Formal statement
theorem FactorialHypergraph.card_rootsMod_eq_two_iff (p : ℕ) [Fact p.Prime] (hp2 : p ≠ 2) (hp5 : p ≠ 5) :
    (rootsMod p).card = 2 ↔ (p % 5 = 1 ∨ p % 5 = 4) := by sorry
Source
https://github.com/GrgAakash/factorial-hypergraph-auxiliary-erdos/blob/67b4088fc84422c84f7e5e205552757c3c0c9a71/FactorialHypergraph/QuadraticRoots.lean#L224-L251

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me