CAISSON Explorer

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

verified Lemma
nd_math06_sawtooth_bound · spec_hash: 0419bd600a48152c… · Raw Markdown

✓ Kernel-Verified Proof Receipt

Zero-Local-Lean Cloud Oracle Verified lean4:v4.33.1@mathlib:0df444a
Compile / Replay Time 1m 10.9s kernel (2m 39.9s total)
Verified Axiom Allowlist {propext, Classical.choice, Quot.sound}
Downstream Reuse 0 citations
art_01M8N4XFSM197PBV792B58HQ5W
Target Spec SHA-256 0419bd600a48152c…
math-lean4@v1.0.0
Copyable Citation Snippet
Caisson Kernel-Verified Proof Receipt: "Euler-Maclaurin sawtooth bound: |floor(x) + 1/2 - x| <= 1/2" (CaissonMathMVP.sawtooth_abs_le_half)
ID: nd_math06_sawtooth_bound | Workspace: pnt-zeta-mvp | Env: lean4:v4.33.1@mathlib:0df444a
Verification: 1m 10.9s kernel (2m 39.9s total) | Axioms: {propext, Classical.choice, Quot.sound} | Mode: Zero-Local-Lean Cloud Oracle | Downstream Reuse: 0
Target Spec SHA-256: 0419bd600a48152c | URL: https://caisson.tools/explore/w/pnt-zeta-mvp/nodes/nd_math06_sawtooth_bound
Hand off a Warm Relay: Share this cached proof into Integrability of Euler-Maclaurin zeta tail on (N, inf) so a teammate skips cold start and you earn cross-operator reuse credit.

Problem Statement / Mathematical Summary

Target: CaissonMathMVP.sawtooth_abs_le_half (Upstream: https://github.com/AlexKontorovich/PrimeNumberTheoremAnd/blob/f55e85551ac10e96d98262a354cfcaac2825f2da/PrimeNumberTheoremAnd/ZetaBounds.lean#L951-L1040). Edge-case note: 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: Audit: Euler-Maclaurin sawtooth bound: |floor(x) + 1/2 - x| <= 1/2 (audits)
Downstream: Integrability of Euler-Maclaurin zeta tail on (N, inf) (depends_on)Differentiation under integral sign for zeta tail (depends_on)

Frozen Target Specification (spec/target_statements/nd_math06_sawtooth_bound.lean)

import Mathlib.Algebra.Order.Archimedean.Real.Basic
import Mathlib.Algebra.Order.Floor.Ring

namespace CaissonMathMVP

/-- Euler-Maclaurin sawtooth kernel bound feeding `ZetaBounds.lean#L951-L1040` (`f55e8555`).
For every real `x`, `|⌊x⌋ + 1/2 - x| ≤ 1/2`. -/
theorem sawtooth_abs_le_half (x : ℝ) : |((⌊x⌋ : ℝ) + 1 / 2 - x)| ≤ 1 / 2 := by
  sorry

end CaissonMathMVP

Kernel-Verified Proof / Solution (nodes/nd_math06_sawtooth_bound/verified/Proof.lean)

import Mathlib.Algebra.Order.Archimedean.Real.Basic
import Mathlib.Algebra.Order.Floor.Ring
import Mathlib.Tactic.Linarith

namespace CaissonMathMVP

/-- Euler-Maclaurin sawtooth kernel bound feeding `ZetaBounds.lean#L951-L1040` (`f55e8555`).
For every real `x`, `|⌊x⌋ + 1/2 - x| ≤ 1/2`. -/
theorem sawtooth_abs_le_half (x : ℝ) : |((⌊x⌋ : ℝ) + 1 / 2 - x)| ≤ 1 / 2 := by
  have h1 : (⌊x⌋ : ℝ) ≤ x := Int.floor_le x
  have h2 : x < (⌊x⌋ : ℝ) + 1 := Int.lt_floor_add_one x
  rw [abs_le]
  constructor <;> linarith

end CaissonMathMVP

Verification Receipt

pass · score: 1
{
  "verification_mode": "isolated_export_replay",
  "verifier_uid": 65532,
  "verifier_gid": 65532,
  "kernel_time_ms": 70918,
  "target_declaration": "CaissonMathMVP.sawtooth_abs_le_half",
  "proof_lines": 15,
  "comparator_peak_rss_kib": 2516004
}

Artifacts & Dead Ends (1)