5D Library › Two-Process Sleep Architecture, Slow-Wave Glymphatic Clearance and Thermoregulatory Phase Control · 中文
Preface: Sleep as Arithmetic
Note
This is not medical advice; please read this first. This book explains the mathematics and physiology of sleep. It does not diagnose or treat any condition and recommends no medicine, supplement, device or product. Please see a doctor if you have insomnia on three or more nights a week for three months or longer; loud snoring, pauses in breathing or choking at night; sleepiness that affects driving or work; or unusual movements or behaviour in sleep. For persistent insomnia, cognitive behavioural therapy for insomnia (CBT-I) is the recommended first-line treatment (Riemann et al. 2017; Qaseem et al. 2016). The book gives no doses of caffeine or of anything else; caffeine concentrations appear only in dimensionless units. Anyone who is pregnant, has a heart condition or takes regular medicines should ask a doctor or pharmacist before changing caffeine intake or taking hot baths. Never drive when sleepy.
Few subjects have as much popular advice and as little arithmetic as sleep. The advice arrives in confident sentences — “sleep washes your brain”, “you can’t catch up on lost sleep”, “check your deep sleep every morning” — and most of them contain a real finding stretched past what it shows. This book writes the main models of sleep regulation as equations, runs them, and uses them to find where each popular sentence holds and where it breaks.
Like the other books of 5D Library, it disproves first and then sets bounds, and it reports negative results as plainly as positive ones — including a scientific dispute that it does not pretend to resolve.
What the book contains
Chapter 1 writes Borbély’s two-process model and the competitive pharmacology of caffeine. Chapter 2 writes the hypothalamic sleep switch as a flip-flop and shows why weakening it fragments the night before it shortens it. Chapter 3 writes sleep architecture as a non-homogeneous Markov chain and asks what one night can tell you. Chapter 4 examines the claim that sleep clears waste from the brain, through the Péclet number and the dispute over interstitial flow. Chapter 5 writes body temperature as three heat stores controlled by the blood flow to the hands and feet. Chapter 6 asks what a consumer sleep tracker can know, and how a sleep score can itself become a cause of poor sleep. Chapter 7 reads the Lingshu’s account of the defensive qi and the legend of Chen Tuan beside the models. Chapter 8 gives a four-step check and a pre-registered trial.
The book neighbours several others in 5D Library, and where they overlap it only recalls them briefly: Book 5 treated fasting, ketones and attention; Book 8 treated the default-mode network and neural oscillations; Book 12 used the distal-proximal skin gradient and a two-compartment thermal model in the narrower context of a pre-sleep drink (Chapter 5 here generalises that model and does not repeat its study); Book 33 treated pre-registration and decision rules (Chapter 8 follows it); Book 53 treated interoception.
Claims corrected after checking
- Lost sleep is repaid mainly in intensity, not hours. After a full extra day awake, recovery sleep in the model is only 1.11 times as long as usual, while the slow-wave proxy is 1.47 times normal; a recovery sleep taken in the morning is shorter than usual (0.66), because the clock ends it (p01).
- Caffeine does not remove adenosine; it changes how much is felt. Bedtime pressure is 0.626 whatever was drunk. Half-life matters as much as timing: a slow metaboliser’s 08:00 intake is predicted to cut early slow-wave activity by −22.5 %, about as much as a fast metaboliser’s 17:00 intake (−20.3 %) — under a stated working hypothesis (p02).
- Ageing fragments sleep before it shortens it. Weakening the switch’s mutual inhibition lowers time asleep from 0.989 to 0.908 but raises awakenings per night from 0.12 to 35.40 (p04).
- Deep sleep is front-loaded as a consequence, not a rule. A chain with one decaying pressure places 0.69 of all N3 in the first third of the night (p05).
- One night’s deep sleep is mostly chance. For a sleeper whose physiology never changes, deep sleep ranges from 24.0 to 131.0 minutes across the middle 90 % of nights, and detecting a real 10-minute change needs 165 nights per comparison block (p06).
- “Sleep washes the brain” is stated more confidently than the evidence allows. An enlarged extracellular space leaves diffusivity unchanged and raises permeability to flow by 5.53, so it matters only if flow dominates; the predicted effect of sleep ranges from ×0.76 to ×2.16 depending on unmeasured quantities, and one recent study found clearance reduced in sleep (p07, p08).
- The evening fall in core temperature is a valve, not a furnace being turned down. Delaying distal vasodilation by 90 minutes delays the core’s decline from 22:32 to 23:47 (p09); a warm bath helps the model only if it ends well before lights-out (p10).
- A tracker cannot be shown to beat its scorers. A perfect device would agree with a human scorer only at kappa 0.815, and a device whose nightly averages look close identifies only 0.571 of true deep-sleep epochs (p11).
- The change in a sleep score is noisier than the score. Its correlation with the true change is 0.640 where the score’s own correlation is 0.708 (p12).
- The Lingshu’s fifty circuits are not the sleep cycle, and its account of ageing is exact. A circuit is 28.8 minutes against a 92-minute cycle; “by day not alert, by night not sleeping” describes a weakened switch (p14). This book could not verify the Song History’s wording on Chen Tuan’s sleep and does not quote it.
How to read the boxes
Marked boxes separate published evidence, runnable Python calculations (16 programs, standard library only, fixed random seeds, each run at build time with its real output printed beneath it), classical sources, notes, and the author’s hypotheses, each with the result that would show it to be wrong. All data in the book are synthetic, generated by the programs, unless a published study is cited.
Disclosure
The author uses the works of 5D Library, including this book, as the methodological basis of his community courses, the 5D Ascension Cards (Dimensional Shift Card Decks) and the Yafu AI knowledge base, and the author’s group operates health-information websites (including ketohackers.com and nadplusnadplus.com), and therefore has a commercial interest in the subject of this book. The book promotes no course, card deck, supplement, sleep tracker, mattress, app or other product, names no brand of device, and accepts no sponsorship. The trial in Chapter 8 is to be run and analysed by researchers independent of the author’s business and does not recruit from the author’s community, students or customers.
References
Fan, Y. (2026). Two-Process Sleep Architecture, Slow-Wave Glymphatic Clearance and Thermoregulatory Phase Control: Adenosine Homeostasis, Flip-Flop Switch Bistability, Core-Distal Heat Flux and Sleep-Stage Markov Chains [双过程睡眠架构、慢波胶质淋巴清除与体温节律相位控制] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090162 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).