A transcendental, machine-readable meditation on the Prajnaparamita Hrdaya — the Heart Sutra. The text is broken down into its five aggregates (skandhas), its mantra, and its numbers; the numbers themselves — the endless digits of π, e, and φ — are treated as the wheel of samsara turning.
View the interactive dashboard: https://bryanpaget.github.io/heart-sutra/
| Constant | Symbol | Digits sampled | Shannon entropy (bits) | Max (uniform) | Uniform? |
|---|---|---|---|---|---|
| π | pi | 200 | 3.2958 | 3.3219 | yes |
| e | e | 200 | 3.2916 | 3.3219 | yes |
| φ | phi | 200 | 3.2861 | 3.3219 | yes |
A uniform digit distribution (entropy ≈ 3.3219 bits) is the machine signature of a random process. None of the three constants is perfectly uniform — the wheel turns, but never repeats.
π, e, and φ are transcendental: their digits never repeat and never end, so every representation is a model, true as far as it goes and never the whole truth. The mind is built the same way. The five skandhas — form, feeling, perception, mental formations, consciousness — are how a finite sensorium samples an infinite, unfixable world. The senses deliver a model, not the thing itself: a color that is only the wavelengths we can see, a self assembled from memories and habits. Mindfulness does not end this; it makes the model more accurate. We compute pi to a million places and still it runs on, and we refine our model of the world and still it is only a model. Remembering that — that every model is empty of self-existence, that what the skandhas assemble is never the reality it points at — is to see form as emptiness.
The wave in the Frequencies tab is a single pair of functions — but a function has no one true form. It can be written as a series, a complex exponential, or a differential equation; representation theory asks what is invariant underneath them all.
A Taylor series, a complex exponential, a differential equation — different projections of the same wave; none of them is the wave. The five skandhas are the same: form, feeling, perception, mental formations, and consciousness are five representations of experience, and emptiness is the invariant behind every representation. Form is emptiness: the wave is empty of any single form, and experience is empty of any fixed self.
Avalokitesvara perceived that all five skandhas are empty. The aggregates are the channels through which experience is assembled — the machine parts of the self:
| Aggregate | Sanskrit | Chinese | Meaning | Occurrences in text |
|---|---|---|---|---|
| Form | rūpa | 色 | The physical body and the material world it touches; the raw substance of experience. | 6 |
| Feeling | vedanā | 受 | The felt tone of experience: pleasant, unpleasant, or neutral sensations. | 2 |
| Perception | saṃjñā | 想 | Recognition and labelling; the act of identifying what a thing is. | 3 |
| Formations | saṃskāra | 行 | Volition, habits, and karmic dispositions; the programs that shape our responses. | 3 |
| Consciousness | vijñāna | 識 | Awareness of the six sense bases; the ongoing process of knowing. | 3 |
觀自在菩薩,行深般若波羅蜜多時,照見五薊皆空,度一切苦厄。
舍利子,色不異空,空不異色,色即是空,空即是色,受想行識,亦如是。
舍利子,是諸法空相,不生不滅,不垢不淨,不增不減。
是故空中無色,無受想行識,無眼耳鼻舌身意,無色聲香味觸法,無眼界,乃至無意識界,無無明,亦無無明盡,乃至無老死,亦無老死盡。
無苦集滅道,無智亦無得。以無所得故,菩提薩垬,依般若波羅蜜多故,心無罠礙,無罠礙故,無有恐怖,遠離颡倒夢想,究竟涅槃。
三世諸佛,依般若波羅蜜多故,得阿蔔多羅三蕉三菩提。
故知般若波羅蜜多,是大神咒,是大明咒,是無上咒,是無等等咒,能除一切苦,真實不虛。
故說般若波羅蜜多咒,即說咒曰:揭诫揭诫,波羅揭诫,波羅僧揭诫,菩提薩婆訶。
The closing line is the signal that passes the gates: gate gate paragate parasamgate bodhi svaha (gone, gone, gone beyond, gone utterly beyond, awakening, hail).
| Gate | Sanskrit | Chinese | Gloss |
|---|---|---|---|
| 1 | gate | 揭诫 | gone |
| 2 | gate | 揭诫 | gone |
| 3 | pāragate | 波羅揭诫 | gone beyond |
| 4 | pārasaṃgate | 波羅僧揭诫 | gone utterly beyond |
| 5 | bodhi | 菩提 | awakening |
| 6 | svāhā | 薩婆訶 | hail |
Avalokitesvara — the “lord who looks down” — is the speaker of the Heart Sutra and the bodhisattva of compassion. His earliest and most influential scripture is the Lotus Sutra, whose 25th chapter, the Universal Gateway, says he hears the cries of the world and appears in thirty-three forms to free beings from suffering. Kumārajīva translated that chapter into Chinese in 406 CE, and devotion spread quickly: the pilgrim Faxian found his worship in Mathura in the early fifth century, and Xuanzang's own travelogue records famous shrines across India.
In Chinese his name took two renderings. The Lotus Sutra gives Guānshìyīn (觀世音, “the one who perceives the world's sounds”), shortened to Guānyīn (觀音); Xuanzang's Heart Sutra calls him Guānzìzài (觀自在, “the one who sees freely”) — the name that opens this very text. In India he is male or beyond gender; Chinese depictions stayed masculine through the Tang and Song before the white-robed Guanyin was popularized from about the twelfth century, the “Goddess of Mercy” of later European accounts. For Chinese Buddhists this is not a contradiction but upāya, “skillful means”: compassion takes whatever shape a being needs.
The Perfection of Wisdom (Prajñāpāramitā) corpus arose in India and was committed to writing from roughly the first century BCE. The Heart Sutra is its shortest member — a condensation so brief that its birthplace is contested. Jan Nattier and John McRae argue it was first composed in Chinese in the late fourth or early fifth century, assembled from passages of Kumārajīva's Great Treatise on the Perfection of Wisdom; Fukui, Harada, and others argue for an Indian origin. Either way, it crossed the mountains with the monks, from India up the Silk Road into the caves of Dunhuang and the monasteries of Chang'an.
| When | What |
|---|---|
| c. 1st c. BCE–CE | The Prajñāpāramitā sūtras are written down in India — among the oldest Mahāyāna canon. |
| c. 222–250 | A translation attributed to Zhi Qian is recorded, but already lost by Xuanzang's time. |
| 406 | Kumārajīva renders the Lotus Sutra (Universal Gateway chapter) into Chinese. |
| 629–645 | Xuanzang journeys to India and returns with 657 texts. |
| 649 | Xuanzang translates the Heart Sutra (T251) — first to use the title 心經 "Heart Sutra" and the first to call it a sūtra. |
| 661 | Earliest extant dated copy: the Yunju Temple stele at Fangshan, carved while Xuanzang still lived. |
| c. 700 | Oldest surviving Sanskrit manuscripts, from Central Asia; the text is titled prajñāpāramitāhṛdaya. |
| 8th c. | Tibetan translation; Dunhuang's Mogao caves hold early copies and Guanyin murals (e.g. Cave 45). |
This page renders Xuanzang's shorter recension, which opens with 觀自在菩薩 and closes with the mantra. The longer recension adds a frame in which the Buddha, Avalokitesvara, and Sariputra converse.
Everything is derived deterministically from the text embedded in R/sutra_data.R and the first 200 digits of π, e, and φ. Word counts split on whitespace; Chinese character counts count CJK ideographs only (punctuation is excluded). Shannon entropy is computed over the digit frequency distribution. Run make update to regenerate the README, the plots, and the dashboard; make test runs the test suite.
- The Heart Sutra on Wikipedia — text, dating, and the composition debate
- The Heart Sutra Explained by Donald S. Lopez, Jr. (1988) — the five skandhas and “form is emptiness”
- Guanyin / Avalokitesvara — the bodhisattva of compassion
- Avalokitesvara at Dunhuang — the Silk Road and the Mogao caves
- 新华社 translation reference: the classic Xuanzang text (訰诫訰诫波羅訰诫)



