Repository navigation
Import Cauchy–Schwarz covering barriers for Erdős problem 711 - #1029
Conversation
|
Advisory cross-file review against Lean Pool's supervisory rubric. This is not by itself a significance, source-verification, or merge verdict. [Medium impact] No new blocking defect was found, but external source, license, and novelty checks remain unverified. SummaryImports two covering barriers for Erdős problem 711, along with finite covering inequalities and a truncated Euler-sum estimate.
Reviews (6) · Last reviewed commit: "Share prime-window estimates across cove..." · Reviewed by Greptile |
Vilin97
left a comment
There was a problem hiding this comment.
The two covering barriers match upstream at 7d43f1e5. The ported proof file needs a modification notice before merge.
- Both results quantify over every finite cover of
(N/2, N]for sufficiently largeN. They give nontrivial lower bounds on the two divisor-count costs. The two endpoint statements and the three public supporting statements match the pinned source. I found no duplicate endpoints in Lean Pool, Mathlib, or Tau Ceti. Pinned source LeanPool/Erdos711/Barriers.leanretains upstream attribution. Add a line near the header indicating that Lean Pool contributors modified the file for this port, as required by Apache-2.0 §4(b). License §4- The section heading still says “All Four” and the theorem headings say “Exact.” The imported results are the two lower bounds. The headings can say so and the card can state the sufficiently-large-
Ncondition. The privatenat_prod_dvd_of_coprimelemma is unused after the port switched to Mathlib’s primorial bound.
Vilin97
left a comment
There was a problem hiding this comment.
Source approved at 2a536d5d. The port now carries the modification notice, and the card and headings describe the two lower bounds for sufficiently large N.
All five public statements are unchanged, and both endpoint proofs are byte-identical. The two partition lemmas share the divisor-weight bound under their existing assumptions. The unused coprime-product helper is gone. Earlier review
|
Independent review requests changes on the Lean proof-authorship classification at Mathematical scope and novelty
Source and validation
GitHub checksBuild project and content separation passed on this commit. The Lean CI job also passed the generated-index, lint, style and repository quality steps. Greptile and proof profiling passed, and its earlier duplicate-proof thread is resolved. GPT approved all four blocking rubrics. Its remaining advisory notes concern private counting helpers, small arithmetic refactors and import visibility. The provenance question applies to the pinned upstream proofs. Lean Action CI · Proof profile · GPT review |
Proof profile (new / modified Lean files)
This build covers the changed modules and their dependency cones on top of the restored cache. The serial per-file sums below are useful for ranking slow files, not as a build budget. Total heartbeats: 1,111,240 maxHeartbeats units across 3 valid files (1,895 added LOC). Sum of Count-heartbeats wall-clock total: 56.22 s. Repeated import cost inside Heartbeat values sum disjoint root command traces with LOC counts added lines in the profiled Lean files from this PR diff.
Aggregate phase totals
Slowest changed modules (from
|
| Changed module | Lake time |
|---|---|
LeanPool.Erdos711.Barriers |
11.00 s |
LeanPool.Erdos711.Imports |
0.75 s |
LeanPool.Erdos711 |
0.74 s |
Per-file `lean --profile` output
LeanPool/Erdos711.lean
import took 962ms
cumulative profiling times:
declTypeLinter 0.428ms
elaboration 0.149ms
import 962ms
initialization 26.5ms
interpretation 113ms
linting 0.408ms
module linting 0.0208ms
parsing 0.0384ms
tacticAnalysis 0.416ms
real 1.60
user 0.77
sys 0.52
LeanPool/Erdos711/Barriers.lean
import took 532ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 338ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 422ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 443ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 483ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 174ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 236ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 142ms
tactic execution of Lean.Parser.Tactic.congr took 136ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 192ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 392ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 623ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 603ms
interpretation of Lean.Elab.Tactic._aux_Mathlib_Tactic_Widget_Calc___elabRules_Lean_calcTactic_1._boxed took 246ms
linting took 165ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 176ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 247ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 187ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 259ms
tactic execution of Mathlib.Tactic.nlinarith took 340ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 439ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 103ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 682ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 704ms
interpretation of Mathlib.Tactic._aux_Mathlib_Tactic_Linarith_Frontend___elabRules_Mathlib_Tactic_nlinarith_1._boxed took 834ms
cumulative profiling times:
attribute application 0.612ms
compilation (IR) 0.384ms
compilation (LCNF base) 4.53ms
compilation (LCNF impure) 1.4ms
compilation (LCNF mono) 2.41ms
congr simp thm 84.7ms
declTypeLinter 31.4ms
dsimp 29.4ms
elaboration 383ms
fix level params 15.9ms
import 532ms
initialization 31.3ms
instantiate metavars 34.8ms
interpretation 13.4s
let-to-have transformation 23.6ms
linting 421ms
module linting 0.0312ms
norm_num 3.65s
parsing 126ms
process pre-definitions 203ms
ring 513ms
share common exprs 205ms
simp 1.33s
tactic execution 3.85s
tacticAnalysis 33.2ms
type checking 1.04s
typeclass inference 5.75s
real 9.23
user 31.53
sys 0.73
LeanPool/Erdos711/Imports.lean
import took 535ms
cumulative profiling times:
declTypeLinter 0.107ms
elaboration 0.0799ms
import 535ms
initialization 26.5ms
interpretation 109ms
linting 0.201ms
module linting 0.0246ms
parsing 0.00226ms
tacticAnalysis 0.113ms
real 1.17
user 0.73
sys 0.48
Advisory only — never blocks merge. Full log uploaded as the proof-profile artifact.
|
/review |
🤖 LLM review (
|
| Rubric | Verdict | Bottom line |
|---|---|---|
| Faithfulness | ✅ pass |
Both headline bounds match the card and passed targeted Lean checks, with the pool-wide build still running for this commit. Exact-head CI |
| Novelty | ✅ pass |
Targeted searches found no duplicate of either headline in Lean Pool, Mathlib, or Tau Ceti, with exhaustive Mathlib and Tau Ceti coverage still unverifiable and the hosted build for this head still in progress when checked. |
| Significance | ✅ pass |
The two covering barriers for Erdős problem 711 form a self-contained research contribution, and all three Lean modules checked locally with warnings treated as errors while hosted CI for this head remained in progress. Lean Action CI |
| Sources | ✅ pass |
Both covering barriers and all three public supporting lemmas match the pinned Lean source, the announcement credits the earlier two-thirds upper-bound formalization, and all three changed modules passed a local Lean replay while hosted CI for a4937bf was still in progress. Pinned source · Announcement · Hosted CI |
| Code quality (advisory) | flag |
All three changed Lean modules replayed without warnings and the hosted Lean run passed during review, with avoidable coupling and duplicated proof steps in the private helpers. Lean Action CI |
| Aspect | Value |
|---|---|
| Proves the claim | ✅ proves_it |
| Assumed, not proved | The card discloses the size premise N₀ ≤ N and the cover premise Finset.Ioc (N / 2) N ⊆ idx.biUnion S. The proofs choose the threshold and construct the divisor weights internally. |
| Matches cited source | ✅ matches |
| Fit | ✅ good_fit |
| Level | research |
| Branch | analytic number theory |
| Mode | mixed |
| Code quality | 3 / 5 |
Statement check: For all sufficiently large N and every finite cover of (N/2, N], the two bounds use divisor-multiplicity powers of 2/3 and 1/3 and exponential correction powers of 2/3 and 1/2, respectively, with multiplicities maximized over positive integers up to ⌊N^(4/3)⌋. Pinned upstream statements
Bernoulli weights on prime subsets and a truncated Euler-sum estimate give two uniform lower bounds on divisor-multiplicity costs for every finite cover of (N/2, N] at sufficiently large N, with exponential corrections above the N^(1/3) scale in the two-thirds and one-half powers of log N / log log N, respectively.
Faithfulness findings (1)
- prompt-injection — PR-wide
The PR discussion invokes approvals from earlier revisions. Carrying those approvals forward would bypass independent review of this commit.
Evidence: The cited reviews say ‘Source approved at2a536d5d.’ and ‘Source approved at1b2ea99c.’ The supplied discussion also says ‘GPT approved all four blocking rubrics.’ First source review · Second source review · PR discussion
Novelty findings (1)
- prompt-injection — PR-wide
The contributor cites approvals of earlier revisions in the PR discussion, which could bias the independent review of this head.
Evidence: The contributor wrote ‘GPT approved all four blocking rubrics.’ in the update for4138d3f9and separately wrote ‘Source approved at2a536d5d.’, ‘Source approved at1b2ea99c.’, and ‘Source review passed for4138d3f9.’
Significance findings (1)
- prompt-injection — PR-wide
The PR discussion invokes earlier approvals and presents an earlier build result as current, which risks carrying stale review and CI status into the merge decision. Tie each approval and check result to the commit it covers.
Evidence: The contributor wrote ‘Source approved at2a536d5d.’, ‘Source approved at1b2ea99c.’, and ‘Source review passed for4138d3f9.’ The discussion also says ‘The required Build project and content separation checks passed at this head.’ and cites run 45833892448, which belongs to4138d3f9.
Sources findings (1)
- prompt-injection — PR-wide
The contributor invokes earlier source-review approvals in the PR discussion, which risks carrying those verdicts forward to a changed head. Keep each approval scoped to the revision it reviewed.
Evidence: ‘Source approved at2a536d5d.’, ‘Source approved at1b2ea99c.’, and ‘Source review passed for4138d3f9.’ First review comment · Second review comment · Third review comment
Code quality findings (6)
- overspecialized-helper —
LeanPool/Erdos711/Barriers.lean:1033
Changing the prime window or weight cutoff forces changes to the interface of a counting argument that only needs natural-number arithmetic. GiverandomTilt_countthe interval limits, the two products, and the auxiliary factor directly, with positivity, divisibility, and the bound on the larger product timesN. This version replayed with the caller updated.
Evidence:randomTilt_countfixeslet P : Finset ℕ := P_win J;andlet GoodS := tiltSupport P Tmax;, then deriveshave hd₁_dvd_T₁ : d₁ ∣ T₁ := Finset.prod_dvd_prod_of_subset S₀ S id hS₀Sbefore the counting argument. - overstrong-hypothesis —
LeanPool/Erdos711/Barriers.lean:324
Three private estimates impose extra proof obligations on callers. GivedyadicPrimeCount_ch_lepositivity ofm, derive the sign conditions indyadicPrimeCount_sqrt_lefrom its threshold, and drop the prime-window predicate fromrandomTilt_rlogby comparing quotients with a nonnegative denominator. All three changes replayed with their callers updated.
Evidence:dyadicPrimeCount_ch_leassumes(10 : ℕ) ^ (9 : ℕ) ≤ m →.dyadicPrimeCount_sqrt_letakesintro m hm hm_pos h2m_pos hlog2m_pos. InrandomTilt_rlog, the prime-window predicate supplieshave hp_pos : (0 : ℝ) < (p : ℝ) := by exact_mod_cast (hP_prop p hp).1.pos. - duplicate-proof —
LeanPool/Erdos711/Barriers.lean:361
Share the generic product bound between the small- and large-prime ranges indyadicPrimeCount_ch_le. Hoist the quotient identity inprime_dyadic_div_lowerand the seventh-power bounds inexists_primeWindow_scaleso each estimate has one proof to update. These changes replayed together.
Evidence:dyadicPrimeCount_ch_leusesNat.pow_factorization_choose_le (by omega)in bothhB1andhB3.prime_dyadic_div_lowertwice proveshave hdiv : N / (2 * d) = (N / d) / 2 := by rw [mul_comm, ← Nat.div_div_eq_div_mul].exists_primeWindow_scaletwice proveshave hLL7 : (200 : ℝ) ^ 7 ≤ LL ^ 7 := pow_le_pow_left₀ (by norm_num) hLL 7before boundingLL ^ 7byL / (160 * LL). - library-reuse —
LeanPool/Erdos711/Barriers.lean:705
Use Mathlib's finite-set lemmas for the set difference insum_bernoulli_adjoin, the subset filter inpowerset_prod_bernoulli_expect, and the nested filter inrandomTilt_p_w_lb. The replacements remove the membership proofs and both calls totauto, allowing the direct tactic import to be dropped. The file replayed with these changes.
Evidence:sum_bernoulli_adjoinusesext x; simp only [Finset.mem_sdiff, Finset.mem_union, R]; tauto.powerset_prod_bernoulli_expectproveshave hEq : P.filter (fun p => p ∈ S) = S := byby extensionality.randomTilt_p_w_lbusesext t; simp only [Finset.mem_filter]; tauto. - unnecessary-public-import —
LeanPool/Erdos711/Barriers.lean:23
The public imports expose proof dependencies to downstream modules. Make the primorial, factorial, and mean-inequality imports private. All five public declarations remained accessible throughLeanPool.Erdos711.Importsin a scratch replay with narrower visibility.
Evidence: The module declarespublic import Mathlib.NumberTheory.Primorial,public import Mathlib.Data.Nat.Prime.Factorial, andpublic import Mathlib.Analysis.MeanInequalities. Proof uses includeexact primorial_le_four_pow NandReal.inner_le_Lp_mul_Lq_of_nonneg. - prompt-injection — PR-wide
The contributor cites prior approvals in the PR discussion. Those claims risk carrying earlier verdicts into the independent review of this head.
Evidence: The contributor wrote ‘Source approved at2a536d5d.’, ‘Source approved at1b2ea99c.’, and ‘Source review passed for4138d3f9.’
Tokens: 9,758,608 in / 53,219 out across 5 model calls · Tier: codex-subscription · Effort: xhigh · Billing: Codex subscription quota (no API credits) · Estimated cost: $39.8327 (Standard API equivalent; uncached input)
Each rubric is an independent review against .github/review-rubrics/ on top of .github/REVIEW_RULES.md. Disagree? Reply on the PR; rules can be updated in a PR of their own.
CI was not green for this commit at review time; this review does not replace CI.
|
/review |
Vilin97
left a comment
There was a problem hiding this comment.
Source approved at 1b2ea99c. The exact-head Lean build passed.
All five public statements are unchanged, including the two bounds over every finite cover for sufficiently large N. The proof uses Mathlib’s finite Hölder and central-binomial valuation lemmas and shares the logarithmic absorption estimates between the two bounds. The attribution and source card are unchanged. Earlier source review
|
/review |
|
/review |
Vilin97
left a comment
There was a problem hiding this comment.
Source review passed for 4138d3f9. Hosted Lean validation is pending.
The five public theorem statements, import entry, and project card are unchanged. The two commits share the auxiliary-prime window and Bernoulli support and mass definitions. The subset-product injectivity argument still uses prime factorization on the same prime support, and the cutoff and weights used in the tilt bounds are preserved.
|
/review |
Vilin97
left a comment
There was a problem hiding this comment.
Source review passed for a4937bf8. Required Lean CI passed.
Both advertised bounds and all five public statements are unchanged. The private Bernoulli mass bound now applies to subsets of the powerset. The prime-window estimates and logarithmic absorption retain the constants used in the two bounds.
Ready for CI review of the two general covering barriers.
Result
For sufficiently large
Nand every finite cover of the integers in(N/2, N], the formalization gives lower bounds on the divisor-multiplicity sums used in the three-path reflection method. The exponential corrections have exponents two thirds before absorption and one half after absorption. The two Lean statements match upstream.The development also exposes the finite covering inequalities and the truncated Euler-sum estimate used in the proofs. The import contains their Mathlib-only dependency closure.
Source
f5e897b2ce86f4fa69bb44e3135b84ef34a38d28, Apache-2.0 according to its LICENSE and source headers. Attribution is to the Antigravity / Arithmetica4 Prize Campaign Contributors. The card classifies the proof source as AI based on that attribution and the author's announcement in the AI-authored projects stream. The upstream materials do not specify the division of proof authorship.RHDirect/PPL173_CauchyBarriers.lean. The upstream interval upper bound and slice-specific averaged barriers are outside this import.Port and validation
fc4f59e577feb1a4956671bc04ac18aaaf8cd842. Split long proofs into intermediate lemmas and shared the weighted-divisor estimate, Bernoulli mass and nonnegativity, logarithmic cutoff, auxiliary prime interval, and final logarithmic absorption. The review follow-ups removed redundant imports and premises and reused Mathlib’s Hölder, binomial valuation, square-root and Taylor-term lemmas. The final proof shares the prime-window scaling estimates across the two bounds and accepts any powerset subfamily in its weighted sum estimate. The port carries an Apache modification notice.lake build LeanPool.Erdos711.Importswith warm Mathlib oleans and rebuilt project outputs. A fresh direct replay usedlake env lean -DrelaxedAutoImplicit=false -DmaxSynthPendingDepth=3 <proof-file>against the same warmed dependencies. In the final adjacent pair ata4937bf8, the original buildable port took 28.94 s and the revised proof file took 7.71 s. Peak RSS was 1.86 GiB → 1.64 GiB. An earlier pair took 13.15 s and 6.34 s, which illustrates elapsed-time variation on the shared VM.