What does The Arithmetic of Sleep conclude, in numbers, about “The Defensive Qi by Day and by Night: the *Lingshu* and the Sleeping Immortal”?

Answer: Chapter 7 reads the *Lingshu*'s defensive qi beside the models: a circuit of 28.8 minutes has nothing to do with the 92-minute cycle, "by day not alert, by night not sleeping" precisely describes a weakened switch, and the longest single sleep the model allows is 11.2 hours.

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: 11.2, 28.8, 92

1. One ke14.4 min; one circuit of the defensive qi = 28.8 min = 2 ke
25 circuits 'in the yin'12.0 h, whatever the season
2. Against this book's modern quantities
night in the yin (Lingshu)12.0 h vs sleep in p01: 7.68 h
one circuit of the defensive qi28.8 min
vs interval between REM onsets in p0592 min
3. Longest single sleep the two-process model allows11.2 h
(starting at 1645 with S = 1)
A sleep of 'a hundred days and more' is 215 times longer.
Show the full program
# Chapter 7. Arithmetic for the classical texts.
# 1. The water clock divided the day into 100 ke. The Lingshu says the
#    defensive qi makes 50 circuits of the body a day, 25 in the yang by day
#    and 25 in the yin by night.
# 2. Compare those units with the modern quantities this book computed: the
#    length of a night's sleep (p01) and the interval between REM onsets
#    (p05).
# 3. The longest single sleep the two-process model of p01 allows: start
#    asleep with the highest possible pressure (S = 1) at any clock time and
#    sleep until S reaches the lower threshold.
import math

TAU_D = 4.2
L0, AMP, PHASE = 0.17, 0.10, 16.0

def lower(t):
    return L0 + AMP * math.cos(2 * math.pi * (t - PHASE) / 24.0)

if __name__ == "__main__":
    ke = 24 * 60 / 100
    circuit = 24 * 60 / 50
    print(
        "1. One ke = {:.1f} min; one circuit of the defensive qi = {:.1f} min"
        " = {:.0f} ke".format(ke, circuit, circuit / ke)
    )
    print(
        "   25 circuits 'in the yin' = {:.1f} h, whatever the season".format(
            25 * circuit / 60
        )
    )
    print("\n2. Against this book's modern quantities")
    print(
        "   night in the yin (Lingshu)           {:5.1f} h   vs sleep in p01:"
        " 7.68 h".format(25 * circuit / 60)
    )
    print(
        "   one circuit of the defensive qi      {:5.1f} min".format(circuit)
    )
    print("      vs interval between REM onsets in p05: 92 min")
    best = (0.0, 0.0)
    for i in range(24 * 12):
        t0 = i / 12.0
        S, t = 1.0, t0
        while S > lower(t):
            S *= math.exp(-(1 / 60) / TAU_D)
            t += 1 / 60
        if t - t0 > best[1]:
            best = (t0, t - t0)
    print(
        "\n3. Longest single sleep the two-process model allows: {:.1f} h"
        "\n   (starting at {:02d}:{:02d} with S = 1)".format(
            best[1], int(best[0]), int(round((best[0] % 1) * 60)) % 60
        )
    )
    print(
        "   A sleep of 'a hundred days and more' is {:.0f} times longer."
        .format(100 * 24 / best[1])
    )

Single source and citation

Fan, Y. (2026). Two-Process Sleep Architecture, Slow-Wave Glymphatic Clearance and Thermoregulatory Phase Control (Version 1.0.0), Chapter 7: The Defensive Qi by Day and by Night: the *Lingshu* and the Sleeping Immortal. 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