The circle count at an odd prime power: `C(p^k) = p^{k-1}(p - χ_p(-1))`.
ProvedHalfPlane.circleCount_prime_powaether-catalogmachinelearning
The circle count at an odd prime power: C(p^k) = p^{k-1}(p - χ_p(-1)).
theorem HalfPlane.circleCount_prime_pow(p : ℕ) [Fact (Nat.Prime p)] (hp2 : p ≠ 2) :
∀ k : ℕ, 1 ≤ k → circleCount (p ^ k) = p ^ (k - 1) * circleCount p := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source MachineLearning/HalfPlanePrimePower.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from MachineLearning/HalfPlanePrimePower.lean
import Mathlib
import Definitions.Def_MachineLearning_HalfPlaneCircleBasic
import Definitions.Def_MachineLearning_HalfPlaneClosedForm
/-!
# Cycle 5: Hensel lifting for the modular circle
The conic `x² + y² = 1` is smooth over `F_p` for odd `p` (its gradient `(2x, 2y)`
never vanishes on the curve), so every solution modulo `M` lifts to exactly `p`
solutions modulo `pM` whenever `p ∣ M`. Formally:
* `card_lift_solutions` : a non-degenerate linear congruence in two unknowns over
`F_p` has exactly `p` solutions;
* `circleCount_mul_of_prime_dvd` : `C(pM) = p·C(M)` for `p` an odd prime dividing `M`;
* `circleCount_prime_pow` : `C(p^k) = p^{k-1}(p - χ_p(-1))`;
* `circleCount_odd` : the completely explicit formula
`C(N) = ∏_{p ∣ N} p^{v_p(N)-1}(p - χ_p(-1))` for every odd `N ≥ 1`.
This closes the separable baseline: `C` is a closed-form function of the
factorisation of `N`, in stark contrast with the half-plane count `H`, which is not
multiplicative at all.
-/
open HalfPlane
open Finset
/-! ### Counting the lifts -/
/-! ### The lifting criterion -/
/-! ### The lifting bijection -/
/-! ### The prime-power formula -/Formal statement
theorem HalfPlane.circleCount_prime_pow(p : ℕ) [Fact (Nat.Prime p)] (hp2 : p ≠ 2) :
∀ k : ℕ, 1 ≤ k → circleCount (p ^ k) = p ^ (k - 1) * circleCount p := by sorrySource