>Same Library, Two Runtimes

If you have ever placed a water feature in the north corner, you have already imported the I-Ching's library — you just linked it against a different runtime.
>RESOLVE shared_symbols
Feng shui and the I-Ching are not neighbors who happen to use the same words. They link against one library. The eight trigrams (八卦, bagua) printed around the edge of every feng shui compass are the exact eight figures that combine to form the I-Ching's 64 hexagrams. The Five Elements that decide which materials go in which corner are the same Five Elements that animate every cast. The yin-yang polarity that flags a room as too dark or too bright is the same bit that runs through every hexagram line.
Most Western seekers load the feng shui module first and the I-Ching second — or never. That is backwards from the dependency tree. Feng shui is a branch; the I-Ching is the trunk. The trunk is where the symbols are defined. If you already have an intuition for one, you are closer to the other than the marketing suggests.
>DUMP trigram_table
The bagua you see in shops — that octagon ringed with trigram marks — is only one of two classical arrangements of the eight. Both use the identical figures. They differ only in how those figures map to compass directions, the way one symbol table can be loaded at two different base addresses.
The Earlier Heaven map (先天, Xiantian), credited to Fu Xi around 3000 BCE, is the primordial, static layout: the cosmos before change. Heaven sits at the top, Earth at the bottom, every pair of opposites facing across the center — Fire and Water, Thunder and Wind, Mountain and Lake. It is the read-only image, the order the system boots from. The Later Heaven map (後天, Houtian), credited to King Wen of Zhou around 1000 BCE, is the world in motion — seasons turning, energy flowing. That is the map feng shui actually executes, because feng shui works on real rooms in a moving world. The same trigram answers to two addresses: Qian (Heaven, ☰) reports at south under Fu Xi and at northwest under King Wen. Neither pointer is wrong. They describe the ideal and the actual.
>EXEC five_elements
Wood, Fire, Earth, Metal, Water. The generative cycle (生, sheng) is the call chain everyone learns first: Wood feeds Fire, Fire makes Earth (ash), Earth yields Metal, Metal collects Water (condensation), Water nourishes Wood. The controlling cycle (剋, ke) is the interrupt: Water quenches Fire, Fire melts Metal, Metal cuts Wood, Wood breaks Earth, Earth dams Water.
Feng shui runs that cycle on space. Too much Fire in a room? Patch it — dark palette, flowing shape, an actual fountain — or drain the heat into Earth tones through the generative chain. The south corner answers to Fire via the trigram Li (☲); if it already runs hot, you cool it by editing the materials in that physical address.
The I-Ching runs the identical cycle on time. Cast a hexagram and the same elemental relationships fire — but across a moment, not a floor plan. A configuration heavy in Wood and Fire with no Water is a situation full of growth energy and short on cooling reflection. The oracle does not hand you a fountain to install. It reports the elemental character of the present and leaves the editing to you. Same grammar. Different sentences.
>READ yin_yang
Every feng shui assessment opens on a yin-yang check: too yang — too bright, too loud, too exposed — or too yin — too dark, too still, too enclosed. A bedroom should lean yin, an office yang, a living room hold both. The practitioner reads the building and says the entrance is too narrow (yin) for the open courtyard behind it (yang), so energy snags.
The I-Ching runs the same check across time. Each hexagram is one snapshot of the yin-yang distribution in a situation. Hexagram 1, The Creative — six solid lines — is pure active initiative. Hexagram 2, The Receptive — six broken lines — is pure following. Everything else lands between, a specific mix that names the texture of the moment. The reader looks at a cast and says: the lower trigram is all yang, so you have will and energy, but the upper trigram is all yin — the environment is not ready to receive your push. Same instrument, pointed at a different axis.
>TREE wu_shu
Feng shui is one branch, not the tree. The tradition names five arts (五術, wu shu): Mountain (spiritual cultivation), Medicine, Divination, Appearance, and Fate. Feng shui sits under Appearance; the I-Ching sits under Divination — but the trigrams, the elements, and the yin-yang bit thread through all five.
The other callers link against the same root:
- BaZi / Four Pillars — your birth chart is built from Heavenly Stems and Earthly Branches that resolve straight to the Five Elements and yin-yang, governed by the same generative and controlling cycles as a feng shui placement.
- Face reading (Mianxiang) — the twelve palaces of the face map to areas of life, each weighted by elemental quality; the reader scores the balance of the five across your features.
- Date selection (Jianchu) — choosing an auspicious day reads the elemental and yin-yang character of specific dates through a twelve-officer cycle drawn from the same framework.
- Qimen Dunjia — the advanced engine that overlays eight trigrams, nine palaces, Heavenly Stems, and Earthly Branches onto one chart, historically run for military strategy and statecraft.
All of them draw from one pool. The I-Ching is the oldest and most fundamental expression of it. Hold the trunk and every branch decompiles cleaner.
Feng shui patches the rooms you stand in. The I-Ching patches the moments you pass through. One library, two runtimes.