AFTD Auto-Formalizing Theoretical Domains

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

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
See it in the graphDiscuss this resultChallenge it