What does The Arithmetic of Sleep conclude, in numbers, about “Sleep Pressure, the Clock, and What Caffeine Actually Does”?

Answer: Chapter 1 writes Borbély's two-process model: lost sleep is repaid mainly in intensity — a full extra day awake lengthens recovery sleep only to 1.11 times usual while the slow-wave proxy reaches 1.47 times — and a morning recovery sleep is shorter than usual (0.66) because the clock ends it. Caffeine, a competitive antagonist, does not remove adenosine (bedtime pressure stays 0.626); it changes the share that is felt, and under a stated working hypothesis a slow metaboliser's morning cup cuts early slow-wave activity (−22.5 %) about as much as a fast metaboliser's cup at 17:00 (−20.3 %).

Scope of the numbers: It is not medical advice, gives no doses and recommends no product; for persistent insomnia the first-line treatment is cognitive behavioural therapy for insomnia. Marked boxes separate published evidence, runnable Python calculations (16 programs), classical sources and the author's hypotheses; apart from cited literature, all data in the book are synthetic.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.66, 1.11, 1.47

A. Entrained day (after 10 simulated days)
   sleep 23:27 -> 07:08   duration 7.68 h
   S at onset 0.633   S at waking 0.102
B. One night of total sleep deprivation, then recovery
   kept awake  0 h past usual bedtime: recovery sleep 23:27 -> 07:08,
      7.68 h (x 1.00 usual), S at onset 0.633, slow-wave proxy x 1.00
   kept awake  8 h past usual bedtime: recovery sleep 07:27 -> 12:29,
      5.03 h (x 0.66 usual), S at onset 0.764, slow-wave proxy x 1.00
   kept awake 16 h past usual bedtime: recovery sleep 15:27 -> 22:37,
      7.17 h (x 0.93 usual), S at onset 0.848, slow-wave proxy x 1.30
   kept awake 24 h past usual bedtime: recovery sleep 23:27 -> 07:58,
      8.52 h (x 1.11 usual), S at onset 0.902, slow-wave proxy x 1.47
Reading: hours of sleep lost are not repaid hour for hour. Recovery sleep
is longer only modestly; most of the repayment is in intensity (higher S at
onset, more slow-wave activity), and the clock (Process C) ends it on time.
Show the full program
# Chapter 1. Borbely's two-process model. Process S (sleep pressure) rises
# toward 1 while awake with time constant TAU_R and decays toward 0 while
# asleep with TAU_D. Process C sets two thresholds that oscillate over 24 h:
# sleep starts when S reaches the upper one, waking happens when S falls to
# the lower one. Parameters are the classical illustrative values (time
# constants 18.2 h and 4.2 h); S is dimensionless. Time step 1 minute; t = 0
# is midnight.
import math

TAU_R, TAU_D = 18.2, 4.2
# thresholds and their peak hour
H0, L0, AMP, PHASE = 0.67, 0.17, 0.10, 16.0
DT = 1.0 / 60

def thr(t, base):
    return base + AMP * math.cos(2 * math.pi * (t - PHASE) / 24.0)

def run(days, no_sleep=None, s0=0.25, t0=7.0):
    """Simulate; returns list of (sleep_on, sleep_off, S_at_onset, area under
    S asleep)."""
    t, S, asleep = t0, s0, False
    bouts, cur = [], None
    while t < t0 + 24 * days:
        if asleep:
            S *= math.exp(-DT / TAU_D)
            cur[3] += S * DT
            if S <= thr(t, L0):
                asleep = False
                cur[1] = t
                bouts.append(tuple(cur))
        else:
            S = 1 - (1 - S) * math.exp(-DT / TAU_R)
            can_sleep = no_sleep is None or not (
                no_sleep[0] <= t < no_sleep[1]
            )
            if S >= thr(t, H0) and can_sleep:
                asleep = True
                cur = [t, None, S, 0.0]
        t += DT
    return bouts

def clock(h):
    h = h % 24
    return "{:02d}:{:02d}".format(int(h), int(round((h - int(h)) * 60)) % 60)

if __name__ == "__main__":
    b = run(10)
    on, off, s_on, area = b[-1]
    print("A. Entrained day (after 10 simulated days)")
    print(
        "   sleep {} -> {}   duration {:.2f} h\n   S at onset {:.3f}   S at"
        " waking {:.3f}".format(
            clock(on), clock(off), off - on, s_on, thr(off, L0)
        )
    )
    base_dur, base_area = off - on, area

    print("\nB. One night of total sleep deprivation, then recovery")
    for extra in (0, 8, 16, 24):
        bb = run(12, no_sleep=(on - 1, on + extra) if extra else None)
        rec = [x for x in bb if x[0] >= on + extra - 0.5][0]
        print(
            "   kept awake {:>2} h past usual bedtime: recovery sleep {} ->"
            " {},\n      {:.2f} h (x {:.2f} usual), S at onset {:.3f},"
            " slow-wave proxy x {:.2f}".format(
                extra,
                clock(rec[0]),
                clock(rec[1]),
                rec[1] - rec[0],
                (rec[1] - rec[0]) / base_dur,
                rec[2],
                rec[3] / base_area,
            )
        )
    print(
        "\nReading: hours of sleep lost are not repaid hour for hour."
        " Recovery sleep"
    )
    print(
        "is longer only modestly; most of the repayment is in intensity"
        " (higher S at"
    )
    print(
        "onset, more slow-wave activity), and the clock (Process C) ends it"
        " on time."
    )

Single source and citation

Fan, Y. (2026). Two-Process Sleep Architecture, Slow-Wave Glymphatic Clearance and Thermoregulatory Phase Control (Version 1.0.0), Chapter 1: Sleep Pressure, the Clock, and What Caffeine Actually Does. 5D Library. https://doi.org/10.5281/zenodo.24090162

DOI: 10.5281/zenodo.24090162 · Read the monograph · 5DL-B-057 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026057,
  author    = {Fan, Yafu},
  title     = {Two-Process Sleep Architecture, Slow-Wave Glymphatic Clearance and Thermoregulatory Phase Control},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.24090162},
  url       = {https://doi.org/10.5281/zenodo.24090162}
}

Other chapter answers in this book