First digits equal with probability
ProvedBenfordLaw.leadingDigits_prob_of_uniform_log_mantissaLet be a positive random variable whose log-significand is uniformly distributed on . Let and let be a -digit integer, . Then the probability that starts with the string of digits (leading zeros discarded) is
For example, the probability of starting with the digits is .
import Mathlib import Definitions.Def_BenfordLaw_Defs
namespace BenfordLaw
theorem leadingDigits_prob_of_uniform_log_mantissa {Ω : Type*} [MeasurableSpace Ω]
(P : MeasureTheory.Measure Ω) (X : Ω → ℝ) (hX : HasUniformLogMantissa 10 P X)
(k n : ℕ) (hk : 1 ≤ k) (hn1 : 10 ^ (k - 1) ≤ n) (hn2 : n < 10 ^ k) :
(P {ω | leadingDigits 10 k (X ω) = n}).toReal = Real.logb 10 (1 + 1 / (n : ℝ)) := 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.
Let carry a -algebra and a measure , and let satisfy (measurable, positive a.e., has law Lebesgue on ). For all naturals with , (natural subtraction) and :
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.