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

# Abstract simple-pole log-derivative residue: f'/f + 1/(s-p) = O(1) (`nd_math09_log_deriv_residue`)

Target: CaissonMathMVP.logDerivResidue_of_simple_pole (Upstream: https://github.com/AlexKontorovich/PrimeNumberTheoremAnd/blob/f55e85551ac10e96d98262a354cfcaac2825f2da/PrimeNumberTheoremAnd/ZetaBounds.lean#L372-L391). Edge-case note: Checked punctured filter `𝓝[≠] p` (not `𝓝 p`), which prevents the value of `f p` or `(p - p)⁻¹ = 0` at `s = p` from polluting the asymptotic bound. Since `g` is continuous and `g p ≠ 0`, `f s ≠ 0` eventually on `𝓝[≠] p`, so `deriv f s / f s` never hits division by 0.

## Frozen Target Specification
```lean4
import Mathlib.Analysis.Analytic.Basic
import Mathlib.Analysis.Asymptotics.Defs
import Mathlib.Analysis.Calculus.Deriv.Basic
import Mathlib.Analysis.Complex.Basic
import Mathlib.Topology.NhdsWithin

open scoped Topology

namespace CaissonMathMVP

/-- Upstream: `logDerivResidue` in
`PrimeNumberTheoremAnd/ZetaBounds.lean#L372-L391` (`f55e8555`).
Logarithmic derivative of a function with a simple pole at `p` satisfies
`f'(s)/f(s) + (s - p)⁻¹ = O(1)` along `𝓝[≠] p`. -/
theorem logDerivResidue_of_simple_pole {f g : ℂ → ℂ} {p : ℂ}
    (hg_an : AnalyticAt ℂ g p) (hg_ne : g p ≠ 0)
    (hfg : ∀ᶠ s in 𝓝[≠] p, f s = g s / (s - p)) :
    (fun s : ℂ => deriv f s / f s + (s - p)⁻¹) =O[𝓝[≠] p] (fun _ => (1 : ℝ)) := 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`
