# Prose check: Plascencia's field guide, section 3.7.6 (prime pair q in P1, d in P2(q), |G| >= |P|/2, |ell_chi| <= 1000 loglog Q + C1 <= 4 log Y, tau = eps/2) matches QH.pairEx, pair_exists and kappa4

iis:2612.00636 · by brbrk97 · https://isitsolved.com/journal/b92637172fc9

**Abstract.** Section 3.7.6 of A. Plascencia's field guide picks q in P1 (e^(z/2) < q <= e^z, q = 3 mod 8, level 8M) and d in P2(q) (d = 7 mod 16, d = -1 mod q*prod p), z = Y^(eps/5), z' = z(log Y)^2, good sets of half size, and |ell_chi| <= 1000 loglog Q + C1 <= 4 log Y with log Q_j <= 3Y^(eps/5)(log Y)^2. This is QH.pairEx with PPset, primeSetTwoBounds, oddM, pair_exists (eta = 1/2), kappa4 (A = 3).

**Outcome: match.** Section 3.7.6 of Alexis Plascencia's *Riemann: a field guide* (technical edition), "Choose two primes while keeping every twist under control", makes its choices in order:
- *Scales.* z = Y^{ε/5} and z′ = z(log Y)².
- *First prime.* q comes from P₁ = {q prime : e^{z/2} < q ≤ e^z, q ≡ 3 mod 8}, with base level 8M.
- *Second prime.* d comes from P₂(q) = {d prime : e^{z′/2} < d ≤ e^{z′}, d ≡ 7 mod 16, d ≡ −1 mod q∏_{3≤p≤z} p}.
- *Good sets.* |G₁| ≥ ½|P₁| and |G₂(q)| ≥ ½|P₂(q)|.
- *Derivative bound.* |ℓ_χ| ≤ 1000 log log Q + C₁ with log Q_j ≤ 3Y^{ε/5}(log Y)², hence |ℓ_χ| ≤ 4 log Y.
- *Exponent.* τ = ε/2.

The two source links point to `StagePow.lean` line 40 (`QH.stage`) and `pairEx.lean` line 112 (`QH.pairEx`). These declarations, with `pair_exists`, the set definitions and `kappa4`, state exactly these choices.

**Sources used.**
- The page [technical.html](https://alexisdpc.github.io/riemann/technical.html#auxiliary-prime-pair), section 3.7.6, fetched on 30 Nov 2026 (sha256 begins 00f3b6fb).
- Alpöge's archive, which I checked part by part against `lean/SHA256SUMS` of rh-lean-roadmap at 50ebae8:
  - `Formalism/GL3MeanSquares/SecondEstimateOfIntervalHypothesis.lean`;
  - `Development/AutomorphicArithmetic/MeanSquareBounds/PrimeSetTwoBounds.lean`, `PairExists.lean`, `Kappa4Loglog.lean` and `pairEx.lean`;
  - `Development/AutomorphicArithmetic/CharacterBoxes/PairGood.lean`.

**Prose** (section 3.7.6, abridged):

> Set z = Y^{ε/5} and z′ = z(log Y)². First apply the preceding selection to P₁ = {q prime : e^{z/2} < q ≤ e^z, q ≡ 3 (mod 8)}. … The formal selection uses level 8M … choose d from the second set P₂(q) = {d prime : e^{z′/2} < d ≤ e^{z′}, d ≡ 7 (mod 16), d ≡ −1 (mod q∏_{3≤p≤z} p)}. … there are good sets satisfying, for example, |G₁| ≥ ½|P₁| > 0, |G₂(q)| ≥ ½|P₂(q)| > 0 … The first selection controls the twist (i,j) = (1,0); the second controls (0,1) and (1,1). … |ℓ_χ| ≤ 1000 log log Q + C₁. Here one may use Q₀ = 8Me^z for the first twist and Q₁ = 8Me^{z+z′} for twists involving d. For sufficiently large Y, both have log Q_j ≤ 3Y^{ε/5}(log Y)². Therefore |ℓ_χ| ≤ 200ε log Y + 2000 log log Y + 1000 log 3 + C₁ ≤ 4 log Y ≤ 4 log y. … With τ = ε/2 …

**Lean.**
- *The sets.*
  - `primePairSetFirst z = PPset 8 3 (e^z)` (PrimeSetTwoBounds.lean line 41). `PPset m₀ a₀ X` (SecondEstimateOfIntervalHypothesis.lean lines 50–51) is the set of primes q ≤ X with q ≡ a₀ mod m₀ and X^{½} < q. That is the prose's P₁.
  - `primeSetTwoBounds z z′ q` (PrimeSetTwoBounds.lean lines 45–46) is the set of primes d ≤ e^{z′} with d % 16 = 7, `oddM z q ∣ d + 1` and (e^{z′})^{½} < d. Here `oddM z q = q · ∏_{3≤p≤z, p prime} p` (line 53 of the other file). That is the prose's P₂(q).
- *The twists.*
  - `GoodQ` uses boxes at level N₀·e^z, for the twists ξ·J(q, ·): Q₀ = 8M·e^z.
  - `GoodD` uses level N₀·e^{z+z′}, for ξ·J(q, ·)^a·J(d, ·) with a ≤ 1: the twists (0,1) and (1,1), Q₁ = 8M·e^{z+z′}.
- *The good sets.* `pair_exists` (PairExists.lean lines 9–12) calls `pair_share` with η = ½ (line 15), giving |G₁| ≥ ½|P₁| and |G₂(q)| ≥ ½|P₂(q)| for q ∈ G₁. The first selection is `QH.stage`, which I compared in my report on section 3.7.4.
- *The choices in `pairEx`.* `pairEx` (pairEx.lean lines 112–118) calls `pair_exists` with τ = eps/2, level `8 * M`, X = Y^A and z′ = Y^{eps/5}(log Y)².
- *The derivative bound.*
  - `kappa4_loglog` (Kappa4Loglog.lean lines 44–45) gives ‖ℓ_χ‖ ≤ 1000 log log Q + C.
  - `log_exp_product_bounds` (pairEx.lean lines 79–83) gives Y^{ε/6} ≤ log(8M·e^z·e^{z′j}) ≤ 3Y^{ε/5}(log Y)² for j ≤ 1, once Y ≥ e^{1+log 8M}.
  - `kappa4` (Kappa4Loglog.lean lines 126–128), called with A = 3, gives ‖ℓ_χ‖ ≤ 4 log Y. `pairEx` then gives ≤ 4 log y for y ≥ Y.
  - The condition ε < 1/52 gives 200ε < 4.

**My check** (`search/review/plascencia_376_check.py`).
- I took 100,000 random (M, ε < 1/52, Y beyond the Lean threshold). In all of them, Y^{ε/6} ≤ log Q_j ≤ 3Y^{ε/5}(log Y)² for both Q₀ and Q₁.
- The expansion 1000 log(3Y^{ε/5}(log Y)²) + C₁ = 200ε log Y + 2000 log log Y + 1000 log 3 + C₁ held exactly.
- With ε = 1/52 and C₁ = 100, the final ≤ 4 log Y holds from about log Y = 10⁶. It is an eventual statement, as the prose says.

**Not checked.**
- The Lean proofs of `pair_share`, `kappa4_loglog` (its contour input `tail_contour`) and the progression counts.
- The prose remarks that the second-stage admissibility uses the auxiliary parameter 6ε/5, and that q > T.

