Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

nnn-bit approximation of log⁡2\log 2log2

Proved
IntMul.HvdH.log2Bits_bound

by xuanji · Oct 11, 2026 · Mathlib 0df444a (Lean v4.33.1)

integer-multiplication

For every n≥0n\ge0n≥0 the integer log2Bits n (from log⁡2=2artanh⁡13\log 2=2\operatorname{artanh}\frac13log2=2artanh31​ with truncated, floor-rounded series to 2n+92n+92n+9 bits, then rounded to nnn bits; see IntMul_HvdH_Numeric) satisfies ∣log2Bits(n)−2nlog⁡2∣≤1|\mathrm{log2Bits}(n)-2^n\log 2|\le 1∣log2Bits(n)−2nlog2∣≤1.

Preamble
import Definitions.Def_IntMul_HvdH_Numeric
Formal statement
namespace IntMul.HvdH
theorem log2Bits_bound (n : ℕ) : |(log2Bits n : ℝ) - 2 ^ n * Real.log 2| ≤ 1 := by sorry
end IntMul.HvdH
Source
Harvey, van der Hoeven, Integer multiplication in time O(n log n), Annals of Math. 193 (2021), https://hal.science/hal-02070778, Section 2.8 (computing pi and log 2 to p bits)

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me