Mean and variance of the Benford first digit
ProvedBenfordLaw.benford_mean_varianceLet be a digit-valued random variable with the Benford distribution , . Then, to three decimal places,
Precisely: and .
import Mathlib import Definitions.Def_BenfordLaw_Defs
namespace BenfordLaw
theorem benford_mean_variance :
|(∑ d ∈ Finset.Icc (1 : ℕ) 9, (d : ℝ) * benfordProb 10 d) - 3.440| < 0.0005 ∧
|((∑ d ∈ Finset.Icc (1 : ℕ) 9, (d : ℝ) ^ 2 * benfordProb 10 d) -
(∑ d ∈ Finset.Icc (1 : ℕ) 9, (d : ℝ) * benfordProb 10 d) ^ 2) - 6.057| < 0.0005 := by sorry
end BenfordLawRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) - non-blind, same agent as the drafter
Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement, with full knowledge of the source article and of the intended meaning. It is not a blind audit by an independent reader, and no reviewer should treat it as one. Please compare it against the Lean code yourself.
With and sums over naturals cast to reals, both of the following hold:
The numbers , , are exact real decimals.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.