odd_squarefree_indicator
def
The integer-valued odd square-free indicator $\mu^*(d) \in \mathbb{Z}$, for a natural number $d$, is defined to be $1$ if for every prime natural number $p$ with $p \neq 2$, $p^2$ does not divide $d$, and $0$ otherwise.
Statement
open Classical in noncomputable def odd_squarefree_indicator (d : ℕ) : ℤ
- Defined in
- arXiv:2611.05898, An Asymptotic for E. P. Stein Numbers, Definition 2.1
- Verified
- 09 Nov 2026
- Axioms
- none listed
- Used by 4
- odd_squarefree_indicator_prime_sqFor any prime natural number $p$ with $p \neq 2$, the odd square-free indicator of $p^2$ is equal to $0$.
- moebius_odd_squarefree_identity_odd_prime_powFor any prime natural number $p$ with $p \neq 2$ and any natural number $a$, the sum of the Möbius function $\mu(k)$ over all divisors $k$…
- odd_squarefree_indicator_mul_of_coprimeFor any positive integers $m$ and $n$ that are coprime, the odd square-free indicator satisfies $\mu^*(m n) = \mu^*(m) \mu^*(n)$.
- odd_squarefree_indicator_oneThe odd square-free indicator of $1$ is equal to $1$.
Read back from the Lean
odd_squarefree_indicator is a function taking a natural number d and returning an integer, defined as: if for every natural number p, if p is prime and p ≠ 2, then p^2 does not divide d, then 1, else 0.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
open Classical in /-- The integer-valued odd square-free indicator μ*(d) ∈ ℤ, equal to 1 if p^2 ∤ d for all primes p ≠ 2, and 0 otherwise. -/ noncomputable def odd_squarefree_indicator (d : ℕ) : ℤ := if ∀ p : ℕ, Nat.Prime p → p ≠ 2 → ¬ (p ^ 2 ∣ d) then 1 else 0