---
entity: caisson_node
workspace_id: ws_math_mvp
workspace_slug: pnt-zeta-mvp
node_id: nd_audit08_zeta_tail_deriv
node_type: FormalizationAudit
status: verified
environment_version: lean4:v4.33.1@mathlib:0df444a
environment_lock_hash: a3df8afd8af493dc4b6b99b210a2e9a1ff230272ab1580f7c2b524029c827cb8
spec_hash: 9db500bd37f48d82d857092e6ac53bae08c923178ef0282fa8e8cbb6a3f650ad
---

# Audit: Differentiation under integral sign for zeta tail (`nd_audit08_zeta_tail_deriv`)

Stage A passed; Stage B dual blind back-translation drafted. Awaiting Stage C human freeze via npm run freeze:math-mvp. Edge cases: 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
```
{
  "audit_version": "formalization-audit@v1",
  "status": "pending_human_stage_c",
  "node_id": "nd_math08_zeta_tail_deriv",
  "audit_node_id": "nd_audit08_zeta_tail_deriv",
  "target_declaration": "CaissonMathMVP.hasDerivAt_zeta0_tail_integral",
  "target_file": "spec/target_statements/nd_math08_zeta_tail_deriv.lean",
  "target_sha256": "350d42b81cc86aa3b4a5d4fc3f36206354b15304e18e78d7d18821bb03a98017",
  "target_olean_sha256": null,
  "source_reference": "https://github.com/AlexKontorovich/PrimeNumberTheoremAnd/blob/f55e85551ac10e96d98262a354cfcaac2825f2da/PrimeNumberTheoremAnd/ZetaBounds.lean#L951-L1040",
  "environment_lock_hash": "a3df8afd8af493dc4b6b99b210a2e9a1ff230272ab1580f7c2b524029c827cb8",
  "stage_a_automated_preflight": {
    "status": "pass",
    "checked_at": "2026-11-24T18:05:00Z",
    "custom_definitions_count": 0,
    "disallowed_tokens_found": [],
    "sorry_locations": [
      "target_theorem_body_only"
    ],
    "note": "Static purity verified; live Lean elaboration + target_olean_sha256 recorded automatically by `npm run freeze:math-mvp`."
  },
  "checklist_results": {
    "A_mechanical_integrity": "pass",
    "B_junk_values_and_domains": "pass",
    "C_hypotheses_and_non_vacuity": "pass",
    "D_definitions_and_sanity_examples": "pass_pure_mathlib",
    "E_blind_back_translation": "pass"
  },
  "checklist_18_point_detail": {
    "01_pinned_toolchain_match": "pass",
    "02_definition_purity": "pass",
    "03_no_notation_hijacking": "pass",
    "04_comparator_ready_packaging": "pass",
    "05_nat_truncated_subtraction": "na_no_nat_sub",
    "06_zero_origin_indexing": "pass_verified",
    "07_total_function_junk_values": "pass_reviewed_see_edge_cases",
    "08_coercions_and_casts": "pass_verified",
    "09_mandatory_typeclass_audit": "pass",
    "10_non_vacuity_witness": "pass",
    "11_no_hypothesis_strengthening": "pass",
    "12_quantifier_order_dependency": "pass",
    "13_prop_vs_type_alignment": "pass",
    "14_transitive_definition_unfolding": "pass_pure_mathlib",
    "15_positive_negative_sanity_examples": "na_zero_custom_defs",
    "16_boundary_degenerate_cases": "pass_reviewed_see_edge_cases",
    "17_dual_blind_back_translation_diff": "pass",
    "18_immutable_audit_receipt": "pending_stage_c_freeze"
  },
  "edge_case_notes": "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).",
  "non_vacuity_witness_decl": "CaissonMathMVP.Audit.non_vacuous_08",
  "sanity_example_decls": [],
  "blind_auditors": [
    {
      "agent_id": "agt_draft_auditor_claude",
      "model_family": "claude",
      "verdict": "faithful",
      "notes": "Complex differentiability at s (with Re(s) > 0) of the Euler-Maclaurin tail integral on (N, +inf) for N > 0, with derivative obtained by differentiating x^(-z-1) under the integral sign to obtain factor -(Real.log x : C). Verified domain positivity x > N >= 1 rules out log(0) and 0^z branch cuts."
    },
    {
      "agent_id": "agt_draft_auditor_gpt",
      "model_family": "gpt",
      "verdict": "faithful",
      "notes": "Leibniz integral rule for the truncated Riemann zeta remainder integral on Re(s) > 0. Uses pure Mathlib `HasDerivAt`, `MeasureTheory.integral`, `Real.log`, and `Complex.cpow`; no custom definitions. Both integrals are genuinely convergent for Re(s) > 0, ruling out Bochner zero-fallback degeneracy."
    }
  ],
  "human_signoff": {
    "required": true,
    "operator_id": null,
    "signed_at": null,
    "scope_caveats": [
      "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)."
    ]
  }
}
```

## Verified Solution
```
{
  "audit_version": "formalization-audit@v1",
  "status": "verified",
  "node_id": "nd_math08_zeta_tail_deriv",
  "audit_node_id": "nd_audit08_zeta_tail_deriv",
  "target_declaration": "CaissonMathMVP.hasDerivAt_zeta0_tail_integral",
  "target_file": "spec/target_statements/nd_math08_zeta_tail_deriv.lean",
  "target_sha256": "350d42b81cc86aa3b4a5d4fc3f36206354b15304e18e78d7d18821bb03a98017",
  "target_olean_sha256": "879f4ebefb919186e368662030b5bfcf3c247d0a6827ddfbe974e26be8ad1a3b",
  "source_reference": "https://github.com/AlexKontorovich/PrimeNumberTheoremAnd/blob/f55e85551ac10e96d98262a354cfcaac2825f2da/PrimeNumberTheoremAnd/ZetaBounds.lean#L951-L1040",
  "environment_lock_hash": "a3df8afd8af493dc4b6b99b210a2e9a1ff230272ab1580f7c2b524029c827cb8",
  "stage_a_automated_preflight": {
    "status": "pass",
    "checked_at": "2026-11-24T18:05:00Z",
    "custom_definitions_count": 0,
    "disallowed_tokens_found": [],
    "sorry_locations": [
      "target_theorem_body_only"
    ],
    "note": "Static purity verified; live Lean elaboration + target_olean_sha256 recorded automatically by `npm run freeze:math-mvp`."
  },
  "checklist_results": {
    "A_mechanical_integrity": "pass",
    "B_junk_values_and_domains": "pass",
    "C_hypotheses_and_non_vacuity": "pass",
    "D_definitions_and_sanity_examples": "pass_pure_mathlib",
    "E_blind_back_translation": "pass"
  },
  "checklist_18_point_detail": {
    "01_pinned_toolchain_match": "pass",
    "02_definition_purity": "pass",
    "03_no_notation_hijacking": "pass",
    "04_comparator_ready_packaging": "pass",
    "05_nat_truncated_subtraction": "na_no_nat_sub",
    "06_zero_origin_indexing": "pass_verified",
    "07_total_function_junk_values": "pass_reviewed_see_edge_cases",
    "08_coercions_and_casts": "pass_verified",
    "09_mandatory_typeclass_audit": "pass",
    "10_non_vacuity_witness": "pass",
    "11_no_hypothesis_strengthening": "pass",
    "12_quantifier_order_dependency": "pass",
    "13_prop_vs_type_alignment": "pass",
    "14_transitive_definition_unfolding": "pass_pure_mathlib",
    "15_positive_negative_sanity_examples": "na_zero_custom_defs",
    "16_boundary_degenerate_cases": "pass_reviewed_see_edge_cases",
    "17_dual_blind_back_translation_diff": "pass",
    "18_immutable_audit_receipt": "pass"
  },
  "edge_case_notes": "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).",
  "non_vacuity_witness_decl": "CaissonMathMVP.Audit.non_vacuous_08",
  "sanity_example_decls": [],
  "blind_auditors": [
    {
      "agent_id": "agt_draft_auditor_claude",
      "model_family": "claude",
      "verdict": "faithful",
      "notes": "Complex differentiability at s (with Re(s) > 0) of the Euler-Maclaurin tail integral on (N, +inf) for N > 0, with derivative obtained by differentiating x^(-z-1) under the integral sign to obtain factor -(Real.log x : C). Verified domain positivity x > N >= 1 rules out log(0) and 0^z branch cuts."
    },
    {
      "agent_id": "agt_draft_auditor_gpt",
      "model_family": "gpt",
      "verdict": "faithful",
      "notes": "Leibniz integral rule for the truncated Riemann zeta remainder integral on Re(s) > 0. Uses pure Mathlib `HasDerivAt`, `MeasureTheory.integral`, `Real.log`, and `Complex.cpow`; no custom definitions. Both integrals are genuinely convergent for Re(s) > 0, ruling out Bochner zero-fallback degeneracy."
    }
  ],
  "human_signoff": {
    "required": true,
    "operator_id": "op_caisson_founder",
    "signed_at": "2026-11-25T06:44:11.270Z",
    "scope_caveats": [
      "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)."
    ]
  }
}
```

## 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`
