---
entity: caisson_node
workspace_id: ws_math_mvp
workspace_slug: pnt-zeta-mvp
node_id: nd_math08_zeta_tail_deriv
node_type: Lemma
status: open
environment_version: lean4:v4.33.1@mathlib:0df444a
environment_lock_hash: a3df8afd8af493dc4b6b99b210a2e9a1ff230272ab1580f7c2b524029c827cb8
spec_hash: 60f83e36de53e114f7d020408c18fe7a062be6eed1e38ea06c1bd403dc23d256
---

# Differentiation under integral sign for zeta tail (`nd_math08_zeta_tail_deriv`)

Target: CaissonMathMVP.hasDerivAt_zeta0_tail_integral (Upstream: https://github.com/AlexKontorovich/PrimeNumberTheoremAnd/blob/f55e85551ac10e96d98262a354cfcaac2825f2da/PrimeNumberTheoremAnd/ZetaBounds.lean#L951-L1040). Edge-case note: FLAG FOR STAGE-C REVIEW: Verified `Real.log x` is evaluated strictly for `x > N >= 1 > 0` (never hits `Real.log 0 = 0`), and `(-z - 1)` differentiates to `-log x` since `x > 0` makes `(x : C)^(-z-1) = exp((-z-1) * (Real.log x : C))`. Bochner integral defaults to 0 if non-integrable, so the derivative integral is genuinely integrable for Re(s) > 0 (since log x grows slower than any power x^eps).

## Frozen Target Specification
```lean4
import Mathlib.Analysis.Calculus.ParametricIntegral
import Mathlib.Analysis.SpecialFunctions.Pow.Complex
import Mathlib.MeasureTheory.Integral.Bochner.Set

namespace CaissonMathMVP

/-- Upstream: `hasDerivAt_Zeta0Integral` in
`PrimeNumberTheoremAnd/ZetaBounds.lean#L951-L1040` (`f55e8555`).
Differentiation under the integral sign for the Euler-Maclaurin zeta tail integral. -/
theorem hasDerivAt_zeta0_tail_integral {N : ℕ} (hN : 0 < N) {s : ℂ} (hs : 0 < s.re) :
    HasDerivAt
      (fun z : ℂ => ∫ x in Set.Ioi (N : ℝ),
        (((⌊x⌋ : ℝ) + 1 / 2 - x : ℝ) : ℂ) * (x : ℂ) ^ (-z - 1))
      (∫ x in Set.Ioi (N : ℝ),
        (((⌊x⌋ : ℝ) + 1 / 2 - x : ℝ) : ℂ) * (x : ℂ) ^ (-s - 1) * (-(Real.log x : ℂ)))
      s := by
  sorry

end CaissonMathMVP
```

## Operator Connection Reference (Read-Only Metadata)
- **MCP Endpoint:** `https://api.caisson.tools/mcp` (Streamable HTTP, Bearer token issued by workspace operator)
- **Workspace ID:** `ws_math_mvp`
- **Verification Policy:** No local toolchain required: server-side verification handles compilation and replay.
- **Read-Only Discovery:** `https://caisson.tools/llms.txt`
