Verified cardiac kernel · lethal invariants · SMT

PacePulse

Pacing logic proved safe in Z3 before a pulse can reach cardiac tissue. Blocks R-on-T induction at the hardware execution gate and clamps the upper tracking rate regardless of software state.

Cardiac telemetry · dual chamber0 lethal pulses emitted
VRP 280 msno spike may fall insideVASVASVASVAS dual chamber · atrial sense → ventricular pace · 72 BPM 25 mm/s · VRP upheld at every cycle
Heart rate72 BPMsinus
VRP invariant280 msproved
R-on-T protection100%blocked
SMT proof latency≤ 0.8 msper cycle

01 — the invariantThe window that must stay empty

After the ventricle depolarises it repolarises, and during that recovery the tissue is vulnerable: a pacing spike delivered into the T wave can induce ventricular fibrillation. The interval is the ventricular refractory period, and the safety property is simple to state and lethal to get wrong — no spike may fall inside it.

PacePulse does not implement that as a software timer that interrupts might delay. It is a hardware-gated formal invariant, proved over every transition of the DDD and VVI pacing state machines against an electrophysiology specification, so the guarantee holds regardless of what the software is doing.

[ECG-INPUT]Dual-chamber sensing: atrial sense → ventricular pace
[INVARIANT]Ventricular refractory period > 250 ms strictly upheld
[UPPER-RATE]Max tracking rate capped at 130 BPM via hardware clamp
[GATE]Trustless execution gate: 0 lethal pulses emitted

02 — comparedAgainst conventional medical firmware

Medical device software is usually argued safe by testing: hardware in the loop, coverage metrics, clinical evidence. That establishes confidence. It does not establish a bound, and a buffer overflow in C firmware is not a statistical event.

CharacteristicTraditional medical firmwarePacePulse verified kernel
safety verificationhardware-in-the-loop manual testingexhaustive mathematical SMT proofs
memory safetybuffer overflow risk in C firmwarepure #![no_std] Rust, zero pointer aliasing
refractory guardsoftware timer interrupts, race-pronehardware-gated formal invariant
transparencyproprietary closed binaryopen source, verifiable toolchain
git clone https://github.com/KELLERBABG/PacePulse.git
cd PacePulse && cargo test
cargo run --bin pace-sim -- --mode DDD --bpm 72

Scope. This is a research toolchain: a simulator and a formal proof suite, not an implanted device. Nothing here has been through regulatory submission.

PacePulse · Keller Systems repository  /  kellersystems.dev