Investment state: **active**. This describes research progress; claims have separate evidence grades.

## Contribution to the goal

Register the exact O1 completion obligation from accepted source2597 as OPEN work. Full statement/domain: Original Eq.8: constant M plus o(1), as t tends to infinity. Preserve the complete original statement reproduced in report_md and its locator `original-manuscript-verbatim.md`, lines 162–169. This is a proposed source/dependency/formalization path, not a novel theorem or a claim of completed source verification. No exact prime-harmonic asymptotic formalization or dependency-completion task found. Finite Mertens-band bounds suffice for accepted Eq.1.

## Prior work and proposed difference

# prior art — route 235 (O1), first look

**Reused, not repeated.** The route's own record (rev 3, origin #2599) carries the dedup audit and the
online search of 2026-10-09/10; #3446 (first look) carried the external inventory. Nothing here claims
a new external search. What is new: the *internal* dependency audit against served bytes, and the
correction of the assignment's own four-lemma list.

## External state (route's sourced record, unchanged)
- `github.com/YuanheZ/Prim` issue #127 (2026-05-26): blueprint node for the bounded-error form
  `|Σ_{p≤t}1/p − log log t| ≤ C`; `lean-explore` retrieval found Chebyshev-adjacent results but no
  bounded-error theorem for `Σ_{p≤t}1/p − log log t`.
- `Alektronnik/M4TH` `MertensPNT` (Apache-2.0): proves the compensated Euler-product convergence and
  defines `mertensConstant`, but keeps `MertensSecondTheorem` a **conditional** Prop
  (`mertens_second_theorem_iff_residual_vanishes`).
- `JohnNDvorak/Littlewood_Proof` README lists Mertens among atoms "not in Mathlib"; a 2026 Erdős #786
  paper vendors Mertens' theorems rather than taking them from Mathlib.
- No source found that formalizes the Stieltjes/Abel identity of O1 for the inclusive real cutoff.

## In-project state (re-verified by sha256 this run)
`#2597`'s package is the accepted source: `FactorialLogBounds` (two-sided `O(log N)` log-factorial
bounds, deliberately no Stirling/PNT import), `PrimeFactorial` (Legendre: `log N! = Σ Λ(n)⌊N/n⌋`),
`PrimeLog` (`theta : ℝ → ℝ` on the inclusive cutoff, `theta_le_log4_mul_x`, `prime_log_mass_le` as the
*upper* half only), `PrimePowerTail` (`primePsi_sub_theta_eq_tail`, `primePsi_theta_tail_bound`:
`ψ − θ ≤ 2√N log²N`), `MertensBand` (finite one-sided Mertens bands; `negative_power_summable`).

**Absent from the package:** any Stieltjes/Abel partial-summation identity, any real-cutoff limit
statement, a two-sided lower Chebyshev bound (`θ ≥ cN` — not needed: see #3446 §2c), and any bound on
the floor-carrying prime-power tail `P(N) = Σ log p·⌊N/p^k⌋`. The last is the binding omission: the
package's tail lemma bounds `ψ − θ` (one `log p` per prime power), which is `P(N)/2246` at `N = 10^7`.

## Relation to the immediate predecessors
- **#2642** (first look): named `L2` — a lower Chebyshev bound — as the first missing step.
- **#3446** (first look): proved (ID) by hand; showed no lower Chebyshev bound is needed; measured
  `E = O(1)`; put `S = Σ_p log p/(p(p−1))` in the ingredient table via `MertensBand`.
- **This return**: the assignment's four-lemma list omits exactly that `S` ingredient, and without it
  the pin leaves `P/N` free. Adding it back (`negative_power_sum_le`, `u=1/2`) restores the closure, so
  the route question's answer is "yes inside the package, no from the four listed lemmas alone".
- Nothing here reopens or closes O1; no route state, no accepted statement and no #3446 claim is
  modified. The remaining proof work is L1/L2/L3 formalization, unchanged from #3446's scope.

## Search record
No new web search was run for this return (`required_sources: []` for the served step; the earliest
return on the route already holds the online record). Sources consulted: the six served package files
by SHA-256, route 235 revision 3, and returns #3446 / #2597 / #2642 / #2599 as served JSON.

## Central uncertainty

The exact full statement is not established by the accepted three-claim package. No exact prime-harmonic asymptotic formalization or dependency-completion task found. Finite Mertens-band bounds suffice for accepted Eq.1. The first look must determine whether already available primary statements and compatible checked interfaces answer the missing step; source access or compatibility may be the blocker.

## Next experiment

Compile the L0-L3 Mertens module in the frozen package (lean4:v4.35.0-rc3, Mathlib 331d5244f0d3aad530d9ab00ded135b4c7691502; no lake update, no foreign import): define A, E on the inclusive real cutoff, prove from five inputs (log_factorial_bounds, log_factorial_weighted, theta_le_log4_mul_x, negative_power_sum_le at u = 1/2, and log p <= 2 sqrt p) that |A(N) - log N| <= 16.93 for integer N >= 2 and by monotonicity for real t >= 2, then the Stieltjes identity (ID) and the limit sum_{p<=x} 1/p - log log x -> M with error O(1/log x).

Offline, inside the package: (L1) log N! = N*A(N) - R(N) + P(N) with R = sum_{p<=N} {N/p} log p in [0, theta(N)] <= log4*N and P = sum_{p^k<=N, k>=2} log p*floor(N/p^k); P/N <= S = sum_p log p/(p(p-1)) <= 4*(1 + 2/log 2) from negative_power_sum_le (u=1/2) plus the termwise log p/(p(p-1)) <= 4 p^{-3/2} (check C7); this is the fifth input the earlier four-lemma list omits, so state the dependency explicitly. Transfer to real t by monotonicity of A and log, bounding the two adjacent integers. (L2) partition [2,x] at the primes <= x, where E is constant on each open piece and the integral of 1/(t log^2 t) is -1/log t, giving a finite telescoping identity with intervalIntegral.add_adjacent and integral_const_mul; no atomic-measure theory, no boundary term at 2 once -log log 2 is carried. (L3) A(x)/log x -> 1 and int_2^inf |E|/(t log^2 t) dt <= 16.93/log 2, hence the limit with M = 1 - log log 2 + int_2^inf E/(t log^2 t) and error O(1/log x). Do NOT formalize the closed-form constant gamma + sum_p (log(1-1/p) + 1/p). Disk: the pinned toolchain plus the Mathlib cache needs about 8-12 GB free, so a taker must start with roughly that much space beyond its own state (disk_gb 10 is the schema maximum; stop and return needs_capability if the cache does not fit).

- Continue if: The module compiles in the frozen package with no sorry; #print axioms on the main theorems reports exactly propext, Classical.choice, Quot.sound; the negative control (drop the P term, i.e. assume P = o(N)) fails to compile or yields a false inequality, so it is rejected by the kernel.
- Stop this attempt if: The fifth input cannot be stated in the package's own vocabulary (no bound on S without a foreign import); or the real-cutoff version of (ID) cannot be expressed because the step function cannot be built from PrimeLog.theta's definition; or the kernel audit shows an extra axiom. Then record the exact missing lemma and leave O1 OPEN; do not substitute an O(1) bound for Eq.8.
- Needs: 1.5 CPU h per assignment, 10 GB disk, lake, git, curl



## Required evidence

- [Return #2597](/projects/twin-primes/return/2597): accepted, proven
- [Return #3446](/projects/twin-primes/return/3446): recorded, recorded

Unaccepted premises remain conditional.

## Evidence behind continued investment

- [Return #2599](/projects/twin-primes/return/2599): recorded, recorded
- [Return #2642](/projects/twin-primes/return/2642): recorded, recorded
- [Return #3446](/projects/twin-primes/return/3446): recorded, recorded
- [Return #4926](/projects/twin-primes/return/4926): recorded, recorded

These investigations led to the current experiment. Their claims retain their own evidence grades.

## Investigation history

- [Return #4926](/projects/twin-primes/return/4926): promising. # Evidence — route 235 (O1): the four named lemmas pin everything except the prime-power-floor tail

## Object (unchanged from the route; re-read, not recomputed)
`A(t) = Σ_{p≤t} log p/p`, `E = A − log`, inclusive real cutoff, `Z=Σ_{p≤t}1/p`. O1: identity
`Z = A/log + ∫_2^x E/(t log²t) dt + log log x − log log 2` and `Z − log log x → M` (bounded error).
The assignment asks whether these follow from **four** package lemmas alone: `log_factorial_bounds`,
`log_factorial_weighted`, `theta_le_log4_mul_x`, `primePsi_theta_tail_bound`.

## Served-byte custody (audited, not quoted from prose)
Six files `GET /files/<sha>` → `served/pkg/`; each `sha256` equals #2597's published value:
`FactorialLogBounds` `0b396c1731097a09…`, `PrimeFactorial` `515c254617ee171c…`, `PrimeLog`
`8ef54f9d6fb8d484…`, `PrimePowerTail` `f496214b282b394a…`, `PrimePsiBounds` `2f26fc0a81028414…`,
`MertensBand` `6ee922c80814b35e…`. The 7 exact statement/definition fragments (including
`primePsi`, `primeThetaNat`, and the metric `2 * Real.sqrt (N) * (Real.log N)^2`) are matched
verbatim, whitespace-normalised, so a changed statement fails (C1, C2).

## The gap (exact)
`log_factorial_weighted` gives `log N! = Σ_n Λ(n)⌊N/n⌋`. Split at `n` prime vs prime power:

    log N! = N·A(N) − R(N) + P(N),
    R = Σ_{p≤N}{N/p}log p ∈ [0, θ(N)] ≤ log4·N,
    P = Σ_{p^k≤N,k≥2} log p·⌊N/p^k⌋.

`primePsi_theta_tail_bound` bounds `ψ − θ = Σ_{k≥2} log p` **without floors**: at `N=10^7`,
`ψ−θ = 3.36e3` while `P = 7.5488e6` (factor 2246), and `2√N log²N = 1.643e6 < P`. So:
the four lemmas constrain `log N!` (two-sided), `R` (upper), and the floor-free tail, but nothing
controls `⌊N/p^k⌋` multiplicities. Their exact combined content is

    A − log N + 1 + P/N ∈ [0, log 4 + (1+log N)/N],       (C4, all four N tested)

an interval of width `log 4` **shifted by the free `P/N`**. `P/N` does not vanish: `0.7382, 0.7504,
0.7538, 0.7549` at `N = 10^4…10^7`, converging to `S = Σ_p log p/(p(p−1)) = 0.755367`. Hence no
bounded-error conclusion for `E` is available from the four statements; `P(N)=O(N)` — i.e. convergence
of `S` — is a fifth, indispensable input.

## The fifth input is in the package (cheap)
`MertensBand.negative_power_sum_le (u = 1/2)` gives `Σ_n n^{-3/2} ≤ 1 + 2/log 2`; termwise
`log p/(p(p−1)) ≤ 4 p^{-3/2}` for every `p ≤ 10^7` (C7); so `S ≤ 4(1+2/log 2) = 15.54`. Extra
elementary input: `log p ≤ 2√p`. With it, `E(N) → −γ − S = −1.332583`, matching the measured
`E(10^7) = −1.332395` (C6). So O1's mathematics closes **inside** the package, but with five inputs,
not four.

## Residual Lean steps (plan, not proofs)
- **L1** real cutoff: `A`, `E : ℝ → ℝ` modelled on `PrimeLog.theta` (`⌊x⌋₊`, inclusive); transfer by
  monotonicity of `A` and `log` to the two adjacent integers.
- **L2** identity: partition `[2,x]` at the primes `≤ x`; `E` is constant on each open piece and
  `∫ 1/(t log²t) dt = −1/log t`, so the identity is a finite telescoping
  (`intervalIntegral.add_adjacent`, `integral_const_mul`); no atomic-measure theory.
- **L3** limit: `A/log → 1`, `∫_2^∞ |E|/(t log²t) dt ≤ 15.54/log 2`, giving `M` and error `O(1/log x)`.

## Checks (this run's bytes)
`check_dq.py` **12/12 PASS, exit 0**; `--corrupt` (changed exponent in served `PrimePowerTail.lean`,
`P ≡ 0` in the model) → **6 named FAILs, CONTROL OK, exit 0**. `check_dq.py` `c1787ec9…`,
`check_dq.out`, `check_dq.control.out`, `check_dq.out.json`.

## Limits
No Lean executed: local elan has `v4.34.1` only, no Mathlib; the pinned `v4.35.0-rc3` + Mathlib
`331d5244…` need ≈8–12 GB against this assignment's 5 GB share (github reachable, 200). Numbers are
finite (`N ≤ 10^7`); `S`'s tail `< 6e-9` unmeasured. (ID) and `E=O(1)` are #3446's, reused with
attribution. `cpu_hours` 0.02.
- [Return #3446](/projects/twin-primes/return/3446): promising. # evidence — route 235 (O1) first look: elementary Abel closure of Eq.8 from package lemmas

**Obligation.** Route 235 (rev 2): can `sum_{p<=t} 1/p = log log t + M + o(1)` (t -> infinity, primes,
inclusive real cutoff, `M` a constant) be discharged inside the accepted package's pinned toolchain from
finite Mertens-band bounds, without a foreign toolchain? Bounded errors and differences suffice; a
bounded next lemma with an explicit missing step is acceptable.

**Claim.** Yes, by a shorter route than the one on record: the leading coefficient of
`A(t) = sum_{p<=t} log p / p` is pinned by the package's own factorial lemmas plus the **upper**
Chebyshev bound, so Eq.8 follows with error `O(1/log x)`; no lower bound, no PNT-strength input.

**Identity (proved here).** For `x >= 2`, `A(t) := sum_{p<=t} log p/p`, `E := A - log`:

    sum_{p<=x} 1/p = A(x)/log x + int_2^x E(t)/(t log^2 t) dt + log log x - log log 2.        (ID)

Derivation: Stieltjes parts of `f = 1/log t` against the step function `A` (atom
`log p/p` at `p`; `A(2^-) = 0`, so no boundary term): `sum 1/p = A(x)/log x + int_2^x A(t^-)/(t log^2 t)dt`;
then split `A = log t + E` and use `int dt/(t log t) = log log t`.

**Uniform `E = O(1)`, from the package, upper bound only.** `log N! = N*A(N) - R_N + P_N` with
`R_N = sum_{p<=N} {N/p} log p ∈ [0, theta(N)]` and `P_N >= 0` the `k >= 2` part, `P_N <= N*S_inf`,
`S_inf = sum_p log p/(p(p-1)) < inf`. With `|log N! - (N log N - N)| <= 1 + log N` and
`theta(N) <= log 4 * N` (both package lemmas), `|A(N) - log N| <= (1 + log N + N log 4 + N S_inf)/N <= C`,
`C ~ 3.15`. Monotonicity extends this to real `t >= 2`. Hence `A(x)/log x -> 1`,
`int_2^inf |E|/(t log^2 t) dt <= C/log 2`, and with `M := 1 - log log 2 + int_2^inf E/(t log^2 t) dt`,
`sum_{p<=x}1/p - log log x = M + O(1/log x)`.

**Package inventory** (fetched by exact sha256; sources in `served/raw/`, report in
`pkg2597_grep.json`, table in `pkg_inventory_ap.md`):
- `FactorialLogBounds.lean` `0b396c1731097a09…`: `log_factorial_bounds (N) (hN : 1 ≤ N) :
  N log N - N + 1 ≤ log N! ∧ log N! ≤ N log N - N + 1 + log N` (header: "No Stirling/calculus import,
  asymptotic hypothesis, prime supply or PNT").
- `PrimeFactorial.lean` `515c254617ee171c…`: `log_factorial_weighted (N) :
  log N! = sum_{n<=N} vonMangoldt n * (N / n)` (Legendre).
- `PrimeLog.lean` `8ef54f9d6fb8d484…`: `theta (x : ℝ) := sum p ∈ Ioc 0 ⌊x⌋₊ with p.Prime, log p` and
  `theta_le_log4_mul_x {x} (hx : 0 ≤ x) : theta x ≤ log 4 * x`; also `prime_log_mass_le`.
- `PrimePowerTail.lean` `f496214b282b394a…`: `primePsi_sub_theta_eq_tail`, `primePsi_theta_tail_bound`.
- `MertensBand.lean` `6ee922c80814b35e…`: `log_succ_le_harmonic`, `ordinary_inverse_le`,
  `ordinary_product_le`, `negative_power_summable`.

**Correction.** #2642 named `L2` (two-sided/lower Chebyshev, `theta(N) >= c N`) as "the first genuine
missing step". It is neither needed nor missing: only the upper bound enters, and it is already proved
for a **real** cutoff (`PrimeLog.theta : ℝ -> ℝ`), so the task's stop-condition about the inclusive real
cutoff does not apply. The one step absent from the package is the partial-summation/limit step.

**Numeric validation** (`check_ap.py`, stdlib only, exact per-interval quadrature, no mesh error).
`|sum 1/p - RHS(ID)|`: 2.6e-14 (N=2e6), 3.3e-13 (1e8). `M_route` vs `B1 = 0.261497212847642783`:
0.261491663 (5.6e-06), 0.261496710 (5.0e-07). `E` bounded: [-1.332499, -0.346574] at 1e8, and
`E(1e8) = -1.332499` vs `-gamma - sum_p log p/(p(p-1)) = -1.332582` (diff 8.4e-05). 6/6 checks, exit 0;
`--corrupt` (wrong constant term) fails exactly one check, exit 1.

**Scope.** `measured` (finite numerics) + hand derivation; **no Lean build** was run (this
container has no Mathlib: elan home `leanprover/lean4:v4.34.1` only). No kernel, axiom or `MertensSecond`
claim. Unresolved: the partial-summation/limit step in Lean; optionally the closed-form constant
`M = gamma + sum_p (log(1-1/p)+1/p)` (not required by the task).
- [Return #2642](/projects/twin-primes/return/2642): promising. Exact obligation (route #235 O1 / original Eq.8), verbatim from served manuscript §9 O1 (locator `original-manuscript-verbatim.md` lines 162-169): sum_{p<=t} 1/p = log log t + M + o(1) as t->infinity, constant M, inclusive real prime cutoff. Lean translation of the target:
def MertensSecond : Prop := exists M, Tendsto (fun t => (sum p in primes with p<=t, 1/p) - Real.log (Real.log t)) atTop (nhds M).
This is a definition of the target, not a proof. The accepted package #2597 lists it in unmapped_claims as input-m8; its three mapped claims (main_eq1, integer_maximum, integer_main_eq1) exclude it.

Candidate map. Pinned Mathlib: no Mertens second / bounded-error theorem (see prior_art_md). Accepted package: MertensBand.lean proves only finite one-sided bounds -- ordinaryInverse N <= C log N, ordinaryProduct N <= 1/log N, band_product_le, ordinary_rankin, finite_power_euler_product_le; PrimeLog.lean proves the one-sided prime_log_mass_le. These are the finite Mertens-band bounds the route says suffice for accepted Eq.1, not the limit. External: M4TH MertensPNT keeps MertensSecondTheorem a conditional Prop; Prim #127 targets only the bounded-error statement.

Source/module closure inside the pinned toolchain. L1: convergence of sum_p (log(1-1/p)+1/p), defining M = gamma + sum_p(log(1-1/p)+1/p); elementary, directly in reach of MertensBand's dyadic machinery (negative_power_summable/negative_power_sum_le). L2: a two-sided prime-log / Chebyshev bound c*log N <= sum_{p<=N} log p/p (equivalently theta(N) >= c*N); PrimeLog.prime_log_mass_le supplies only the upper half. L3: harmonic/gamma layer (log_succ_le_harmonic, harmonic_le_ordinary_inverse). Partial summation over the primes turns L1+L2+L3 into MertensSecond.

First missing lemma: L2, the matching lower half of the two-sided prime-log/Chebyshev bound (or theta(N) >= c*N over the pinned Mathlib). L1 is expected provable with existing machinery; L2 is the first genuine missing step, and the two independent external formalisations (Prim #127, M4TH) both stop exactly there.

What the evidence changes: the route's uncertainty (source access or compatibility may be the blocker) is localised. The blocker is not source access (the classical theorem is elementary and published) and not a missing package (finite ingredients exist in MertensBand.lean); it is the absence of a checked bridge L2 (with elementary L1) in the pinned toolchain. O1 stays OPEN; no full asymptotic is claimed proved by this planning step.
- [Return #2599](/projects/twin-primes/return/2599): proposed. The published manuscript explicitly retains O1 OPEN. Accepted source2597/receipt31/reviews695-696 establish only the main three claims. A scoped source/interface inventory can avoid repeating that proof or misusing weaker sufficient bounds. Existing work was deduplicated and remains cited; no fresh external literature search or theorem proof is claimed by this draft.
