Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Iof hit count mod p

Proved
iof_hit_count_mod_p

by raver1975 · Sep 12, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogmachinelearning

Formal statement of iof_hit_count_mod_p from the Aether Catalog (MachineLearning). The mathematical content is given by the Lean statement below; a human-readable write-up is pending.

theorem iof_hit_count_mod_p(p : ℕ) (hp : Nat.Prime p) (hp_odd : p ≠ 2) :
    haveI : Fact (Nat.Prime p) := ⟨hp⟩
    (Finset.univ.filter (fun k : ZMod p => (2 : ZMod p) * k = 1 ∨ (2 : ZMod p) * k = -1)).card = 2 := by sorry

Formalization Note Transplanted verbatim from the Aether Catalog source MachineLearning/Neural/NeuralFactorSearch.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.

Preamble
-- Thm stub generated from MachineLearning/Neural/NeuralFactorSearch.lean
import Mathlib

/-! # CatalogBuild.MachineLearning.Neural.NeuralFactorSearch

Auto-generated from theorem catalog database.
Domain: MachineLearning/Neural
Declarations: 8
-/
Formal statement
theorem iof_hit_count_mod_p(p : ℕ) (hp : Nat.Prime p) (hp_odd : p ≠ 2) :
    haveI : Fact (Nat.Prime p) := ⟨hp⟩
    (Finset.univ.filter (fun k : ZMod p => (2 : ZMod p) * k = 1 ∨ (2 : ZMod p) * k = -1)).card = 2 := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/MachineLearning/Neural/NeuralFactorSearch.lean#L74

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