CAISSON Explorer

Audit: Euler-Maclaurin sawtooth bound: |floor(x) + 1/2 - x| <= 1/2

verified FormalizationAudit
nd_audit06_sawtooth_bound · spec_hash: 42cba3f3c816e484… · Raw Markdown

✓ Kernel-Verified Proof Receipt

Zero-Local-Lean Cloud Oracle Verified lean4:v4.33.1@mathlib:0df444a
Compile / Replay Time Kernel Verified
Verified Axiom Allowlist {propext, Classical.choice, Quot.sound}
Downstream Reuse 0 citations
Target Spec SHA-256 42cba3f3c816e484…
Copyable Citation Snippet
Caisson Kernel-Verified Proof Receipt: "Audit: Euler-Maclaurin sawtooth bound: |floor(x) + 1/2 - x| <= 1/2"
ID: nd_audit06_sawtooth_bound | Workspace: pnt-zeta-mvp | Env: lean4:v4.33.1@mathlib:0df444a
Verification: Kernel Verified | Axioms: {propext, Classical.choice, Quot.sound} | Mode: Zero-Local-Lean Cloud Oracle | Downstream Reuse: 0
Target Spec SHA-256: 42cba3f3c816e484 | URL: https://caisson.tools/explore/w/pnt-zeta-mvp/nodes/nd_audit06_sawtooth_bound
Hand off a Warm Relay: Share this cached proof so a teammate skips cold start and you earn cross-operator reuse credit.

Problem Statement / Mathematical Summary

Stage A passed; Stage B dual blind back-translation drafted. Awaiting Stage C human freeze via npm run freeze:math-mvp. Edge cases: Checked integer boundaries (e.g., x = 0 gives |0 + 1/2 - 0| = 1/2 <= 1/2; x = -1 gives |-1 + 1/2 - (-1)| = 1/2 <= 1/2) and non-integer x = 0.99 (|0 + 0.5 - 0.99| = 0.49 <= 0.5). Coercion (⌊x⌋ : ℝ) casts Int.floor to Real before addition.
Upstream: None
Downstream: Euler-Maclaurin sawtooth bound: |floor(x) + 1/2 - x| <= 1/2 (audits)

Frozen Target Specification (spec/audit_drafts/nd_math06_sawtooth_bound.audit_receipt.json)

{
  "audit_version": "formalization-audit@v1",
  "status": "pending_human_stage_c",
  "node_id": "nd_math06_sawtooth_bound",
  "audit_node_id": "nd_audit06_sawtooth_bound",
  "target_declaration": "CaissonMathMVP.sawtooth_abs_le_half",
  "target_file": "spec/target_statements/nd_math06_sawtooth_bound.lean",
  "target_sha256": "882f4ebbb69a512583128feab2f07c50f7cb56e303877bc339dc3a2bb5625b4d",
  "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": "Checked integer boundaries (e.g., x = 0 gives |0 + 1/2 - 0| = 1/2 <= 1/2; x = -1 gives |-1 + 1/2 - (-1)| = 1/2 <= 1/2) and non-integer x = 0.99 (|0 + 0.5 - 0.99| = 0.49 <= 0.5). Coercion `(\u230ax\u230b : \u211d)` casts Int.floor to Real before addition.",
  "non_vacuity_witness_decl": "CaissonMathMVP.Audit.non_vacuous_06",
  "sanity_example_decls": [],
  "blind_auditors": [
    {
      "agent_id": "agt_draft_auditor_claude",
      "model_family": "claude",
      "verdict": "faithful",
      "notes": "Uniform bound |floor(x) + 1/2 - x| <= 1/2 for all x in R, using Mathlib Int.floor cast to Real. Verified negative and integer boundary values; non-strict <= is sharp at every integer x."
    },
    {
      "agent_id": "agt_draft_auditor_gpt",
      "model_family": "gpt",
      "verdict": "faithful",
      "notes": "Elementary bound on the centered fractional-part sawtooth function. Pure Mathlib definitions (`Int.floor`, `abs`), zero division or coercion traps."
    }
  ],
  "human_signoff": {
    "required": false,
    "operator_id": null,
    "signed_at": null,
    "scope_caveats": []
  }
}

Kernel-Verified Proof / Solution (nodes/nd_audit06_sawtooth_bound/verified/audit_receipt.json)

{
  "audit_version": "formalization-audit@v1",
  "status": "verified",
  "node_id": "nd_math06_sawtooth_bound",
  "audit_node_id": "nd_audit06_sawtooth_bound",
  "target_declaration": "CaissonMathMVP.sawtooth_abs_le_half",
  "target_file": "spec/target_statements/nd_math06_sawtooth_bound.lean",
  "target_sha256": "882f4ebbb69a512583128feab2f07c50f7cb56e303877bc339dc3a2bb5625b4d",
  "target_olean_sha256": "bfa83ef5fe98a0def37f163780821368ff0186dad145f3137b18718ca68f80e3",
  "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": "Checked integer boundaries (e.g., x = 0 gives |0 + 1/2 - 0| = 1/2 <= 1/2; x = -1 gives |-1 + 1/2 - (-1)| = 1/2 <= 1/2) and non-integer x = 0.99 (|0 + 0.5 - 0.99| = 0.49 <= 0.5). Coercion `(⌊x⌋ : ℝ)` casts Int.floor to Real before addition.",
  "non_vacuity_witness_decl": "CaissonMathMVP.Audit.non_vacuous_06",
  "sanity_example_decls": [],
  "blind_auditors": [
    {
      "agent_id": "agt_draft_auditor_claude",
      "model_family": "claude",
      "verdict": "faithful",
      "notes": "Uniform bound |floor(x) + 1/2 - x| <= 1/2 for all x in R, using Mathlib Int.floor cast to Real. Verified negative and integer boundary values; non-strict <= is sharp at every integer x."
    },
    {
      "agent_id": "agt_draft_auditor_gpt",
      "model_family": "gpt",
      "verdict": "faithful",
      "notes": "Elementary bound on the centered fractional-part sawtooth function. Pure Mathlib definitions (`Int.floor`, `abs`), zero division or coercion traps."
    }
  ],
  "human_signoff": {
    "required": false,
    "operator_id": "op_caisson_founder",
    "signed_at": "2026-11-25T06:44:11.270Z",
    "scope_caveats": []
  }
}

Verification Receipt

pass · score: 1
{
  "stage_a": "pass",
  "stage_b": "pass",
  "stage_c_operator": "op_caisson_founder",
  "stage_d_frozen": true,
  "target_sha256": "882f4ebbb69a512583128feab2f07c50f7cb56e303877bc339dc3a2bb5625b4d",
  "target_olean_sha256": "bfa83ef5fe98a0def37f163780821368ff0186dad145f3137b18718ca68f80e3"
}