Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Prime-valuation error from prime-power column discrepancy

Proved
Erdos390.prime_power_column_valuation_error_le

by doctosil · Sep 16, 2026 · Mathlib c5ea003 (Lean v4.30.0)

erdos390prime-valuationsrounding

Let AAA be finite, M>0M>0M>0, and ai∈{1,…,M}a_i\in\{1,\ldots,M\}ai​∈{1,…,M}. Let Xi,xi∈RX_i,x_i\in\mathbb RXi​,xi​∈R. Suppose every prime-power divisibility column has discrepancy at most 4d4d4d. Then for every prime ppp,

∣∑i∈A(Xi−xi)vp(ai)∣≤4d⌊log⁡pM⌋.\left|\sum_{i\in A}(X_i-x_i)v_p(a_i)\right|\le4d\lfloor\log_p M\rfloor.​i∈A∑​(Xi​−xi​)vp​(ai​)​≤4d⌊logp​M⌋.

This converts the finite incidence discrepancy estimate into the valuation-error budget used by the correction bank. The conclusion holds for arbitrary real vectors satisfying the column bound.

Preamble
import Definitions.Def_erdos390_prime_power_rounding
open scoped BigOperators
open Erdos390.WholePaper
Formal statement
theorem Erdos390.prime_power_column_valuation_error_le
    {A : Type*} [Fintype A]
    (value : A → ℕ) (M d : ℕ) (X x : A → ℝ)
    (hM : 0 < M)
    (hvaluePos : ∀ a, 0 < value a)
    (hvalueLe : ∀ a, value a ≤ M)
    (hcolumn : ∀ q : ↥(primePowerColumns M),
      |∑ a, (X a - x a) *
        zeroOneColumn
          (fun q' a' ↦ primePowerInc M q' (value a')) q a| ≤
        (4 * d : ℝ))
    {p : ℕ} (hp : p.Prime) :
    |roundingValuationError value X x p| ≤
      (4 * d * Nat.log p M : ℝ) := by sorry
Source
Shouqiao Wang, A Proposed Solution to Erdos Problem 390, Section 10, equations rounding-prime-power-column, rounding-column-degree, rounding-error-box, and rounding-no-rough-error. https://github.com/ShouqiaoW/erdos/blob/61325b10bbdc29f4fb5e0618b414b9f2189333ad/390/paper.tex; corresponding Lean files PrimePowerColumns.lean, ValuationError.lean and GuardedExactificationAlgebra.lean.

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