Iof hit count mod p
Provediof_hit_count_mod_paether-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 sorrySource