5D Library › Ramanujan's Intuition and the Matrix of Reality · 中文

Chapter 3: Mock Theta Functions

Part A: The Black Box (Story + Code)

“Is ‘Karma’ a punishment from a moral god, or is it simply a file compression algorithm running in the background?”

The room is cold. I can feel the weight of the air. It’s not humidity; it’s history.

I am staring at a reproduction of the “Lost Notebook.” These were the final pages Srinivasa Ramanujan wrote in 1920, as he lay dying in Madras. His body was failing, eating itself alive, but his mind? His mind had already left the solar system.

He wasn’t just doing math anymore. He was decoding the firewall of death.

“Zero,” I run my hand over the jagged, frantic handwriting on the page. “Do you know what he found in the end?”

For nearly a hundred years, mathematicians looked at these scribbles—the Mock Theta Functions (f(q)f(q))—and scratched their heads. They looked like the modular forms we knew, but they were… off. They were “mocking” the symmetry. They didn’t fit the standard beautiful patterns of the universe.

People thought they were unfinished.

But in 2012, physicists finally caught up. They realized that Ramanujan wasn’t drawing pretty patterns. He was describing the behavior of Black Holes.

Specifically, he was describing the Entropy of a black hole.

Evidence · From the last letter to black holes

On 12 January 1920, three months before his death, Ramanujan wrote to Hardy about new functions he called “mock” theta functions, which, he said, “enter into mathematics as beautifully as the ordinary theta functions” (Berndt and Rankin 1995).

  • In 2002 Sander Zwegers showed what they are: pieces of what are now called harmonic Maass forms (Zwegers 2002).
  • In 2006 Kathrin Bringmann and Ken Ono proved a long-standing conjecture about the coefficients of f(q)f(q) (Bringmann and Ono 2006).
  • In 2012 Atish Dabholkar, Sameer Murthy and Don Zagier showed that mock modular forms count the quantum states of certain black holes in N=4N = 4 string theory (Dabholkar et al. 2012).

The physics result concerns specific supersymmetric black holes in string theory. It does not describe astrophysical black holes in general, and it says nothing about human memory or karma; that connection is the author’s interpretation.

I close the book and look at the reflection of my own eyes in the dark monitor.

A Black Hole is not just a destroyer. It is the ultimate Hard Drive. According to the Holographic Principle, everything that falls into a black hole is not lost. Its information is plastered onto the surface—the Event Horizon—compressed into pure 2D data.

“He saw the Alaya,” I whisper.

In the Yogacara school of Buddhism, they talk of the Alaya Vijnana—the Eighth Consciousness. The “Storehouse Consciousness.”

Source text · Thirty Verses on Consciousness-only

初阿赖耶识,异熟一切种。(世亲(Vasubandhu)造,玄奘(译), n.d.)

“First is the ālaya consciousness, the ripening consciousness that holds all seeds.” (Vasubandhu, Triṃśikā, verse 2, in Xuanzang’s translation; translation for this edition.)

They say that every thought, every action, every trauma, every “sin” you have ever committed is not judged by a guy with a white beard. It is stored. It is turned into a “seed” (Bija) and compressed into the deep hard drive of your soul.

This is what we call Karma.

Karma isn’t a moral sentence. It’s data storage.

And Ramanujan’s Mock Theta functions are the source code for how that data is compressed.

I stand up and pace the room. The implications are terrifying.

If our souls are like black holes, storing every bit of information on our event horizons, then “Reincarnation” isn’t a mystical journey. It is a System Restore.

When you die, the body (hardware) rots. But the Hard Drive (Alaya/Black Hole) remains.

When you are born again, you are simply booting up a new computer and plugging in the old hard drive.

The “Mock Theta” functions execute. The files unzip.

And suddenly, you have anxiety you can’t explain. You have a fear of water you can’t trace. You have a talent for piano you never learned.

It’s not magic. It’s Latency. It’s the old data bleeding into the new interface.

“Zero,” I say, my voice trembling with the adrenaline of the realization. “The reason they are stuck… the reason the humans suffer… is because they don’t know how to format the drive.”

They are running on bloated, corrupted software from a thousand previous lives. They are trying to run a sleek, modern life on an operating system full of malware from 1500 AD.

They call it “Bad Luck.”

I call it Bad Memory Management.

I look at the formula again.

f(q)=1+∑n=1∞qn2(1+q)2(1+q2)2⋯(1+qn)2f(q) = 1 + \sum_{n=1}^{\infty} \frac{q^{n^2}}{(1+q)^2(1+q^2)^2\cdots(1+q^n)^2}

Calculation · What f(q) counts

Expand f(q)f(q) as a power series: f(q)=1+q−2q2+3q3−3q4+3q5−5q6+7q7−6q8+⋯f(q) = 1 + q – 2q^2 + 3q^3 – 3q^4 + 3q^5 – 5q^6 + 7q^7 – 6q^8 + \cdots Freeman Dyson defined the rank of a partition as its largest part minus the number of parts (Dyson 1944). The coefficient of qnq^n in f(q)f(q) equals the number of partitions of nn with even rank minus the number with odd rank (Bringmann and Ono 2006). The check below computes both sides up to n=20n = 20:

N = 20
def mul(a, b):
    c = [0] * (N + 1)
    for i, x in enumerate(a):
        for j, y in enumerate(b[:N + 1 - i]):
            c[i + j] += x * y
    return c
def inverse(a):                      # 1 / a for a power series with a[0] = 1
    b = [1] + [0] * N
    for n in range(1, N + 1):
        b[n] = -sum(a[k] * b[n - k] for k in range(1, n + 1))
    return b
f = [1] + [0] * N
for n in range(1, 5):                # q^(n^2) <= q^20 needs n <= 4
    den = [1] + [0] * N
    for k in range(1, n + 1):
        t = [0] * (N + 1); t[0] = 1; t[k] = 1
        den = mul(den, mul(t, t))   # (1 + q^k)^2
    num = [0] * (N + 1); num[n * n] = 1
    f = [x + y for x, y in zip(f, mul(num, inverse(den)))]

def partitions(n, m=None):
    m = n if m is None else m
    if n == 0:
        yield []
        return
    for k in range(min(n, m), 0, -1):
        for p in partitions(n - k, k):
            yield [k] + p
ranks = [sum(1 if (p[0] - len(p)) % 2 == 0 else -1 for p in partitions(n)) if n else 1
         for n in range(N + 1)]
print(f)
print(f == ranks)    # True

It looks chaotic. An infinite sum of fractions.

But the chaos creates a structure. It tells us that the “seeds” inside us are waiting for a condition to ripen.

The world out there—the drama, the wars, the family fights—it’s just the screen displaying the files stored in the Alaya.

You can wipe the screen (fix the external problem), but if the file is still on the hard drive, it will just open a new window.

This is why “positive thinking” fails. This is why “working hard” fails.

Because you are trying to change the display without rewriting the code.

Ramanujan knew this. As he lay dying, he wasn’t writing a will. He was writing a map of the exit. He was trying to show us that the only way to escape the gravity of our own past—the gravity of the Black Hole—is to understand the math of the Event Horizon.

You have to hack the entropy.

You have to dissolve the seeds before they sprout.

I pick up the vial of Ormus. It glimmers, suspended in a state that defies standard chemistry.

“We are going to teach them how to wipe the disk,” I say. “We are going to teach them the Admin command for ‘Clear Cache’.”

Note

On Ormus, see the note in Chapter 1.

Because unless you clear the cache, you are never living in the Present.

You are just buffering the Past.

Part B: The Auto-Restore Glitch (Trap + Science + Protocol)

“If you moved to a new house to escape the ghost, why did you pack it in your suitcase?”

Let’s look at the source code of your “Bad Luck.”

You change jobs, but the new boss is just as abusive as the old one.

You change partners, but the new relationship fails in the exact same way as the last three.

You make more money, but an unexpected expense drains it down to the exact same balance you had a year ago.

This is not a coincidence. This is a Script.

This is the Mock Theta Function running in the background.

The Trap: The Cloud Sync

The Trap of the 3D Matrix is that it tricks you into thinking “Time” fixes things.

“I’ll just wait it out.”

“I’ll start fresh on Monday.”

“Time heals all wounds.”

Lies.

Time heals nothing. Time acts as a carrier wave for the signal.

Think of your Alaya Consciousness (The Storehouse) as the Cloud. Your physical body is the Device (iPhone/Android).

When you die, the Device is destroyed.

When you are born, you get a brand new Device. Brand new screen, no scratches, 100% battery.

But the moment you connect to the Wi-Fi (The Source Field), Automatic Sync begins.

All the contacts, all the photos, and most importantly, all the Viruses from your old device are downloaded instantly into the new one.

The “Trap” is that you are trying to fix the phone (Body/External Reality) when the corruption is in the Cloud (Soul/Alaya). You are running around trying to “be a better person” or “work harder,” but you are running a corrupted executable file.

The Science: Event Horizon Entropy

Ramanujan’s Mock Theta Functions (f(q)f(q)) are critical because they describe the behavior of Entropy at the Event Horizon of a Black Hole.

In physics, entropy is a measure of disorder, or more accurately, Information Content.

The “Holographic Principle” states that the amount of information a Black Hole can hold is proportional to its surface area (The Event Horizon).

Evidence · Black-hole entropy and the holographic principle

Bekenstein proposed, and Hawking confirmed, that a black hole has entropy proportional to the area AA of its event horizon (Bekenstein 1973; Hawking 1975): S=kBc3A4GℏS = \frac{k_B c^3 A}{4 G \hbar} ’t Hooft and Susskind turned this into the holographic principle: the information inside a region is bounded by its boundary area (Hooft 1993; Susskind 1995). For a black hole of one solar mass, S/kB=4πGM2/(ℏc)≈1.05×1077S/k_B = 4\pi G M^2/(\hbar c) \approx 1.05 \times 10^{77}; because the area grows as M2M^2, so does the entropy.

These are statements about black holes. The idea that emotional reactions add “mass” to a person and bend events towards repetition is the author’s metaphor, not physics.

Every time you react to the world with strong emotion—fear, anger, lust, greed—you are creating Data.

You are burning a “file” onto your Event Horizon.

You are increasing the surface area of your black hole.

And here is the kicker: Gravity is determined by Mass.

The more “Karma” (Data/Past Emotions) you store, the heavier your black hole becomes. The stronger its gravity.

This gravity bends space-time around you. It literally warps reality to force events to repeat.

This is why “The rich get richer” and “The poor get poorer.”

It’s not just sociology; it’s astrophysics.

A heavy mass attracts more mass. A heavy trauma attracts more trauma. The function f(q)f(q) ensures the pattern repeats asymptotically.

The Protocol: Stop the Write-Function

So, how do we break the loop? How do we stop the “Auto-Restore”?

We have to hack the Write-Permission.

The Alaya Vijnana has two functions:

  1. Storage (Input): Writing new seeds.

  2. Ripening (Output): Old seeds becoming reality.

You cannot stop the Output immediately. If you have a “poverty seed” planted 10 years ago, it will sprout. That is the debt coming due.

BUT, you can stop the Input.

Protocol 2: The Non-Reaction Override

When a “Bad Event” happens (The Output), the Matrix expects a specific reaction from you.

The Boss yells -> You feel Fear.

The Market crashes -> You feel Panic.

This Reaction is the Write Command.

When you react with fear, you are taking the event, wrapping it in emotional data, and writing it back to the Hard Drive. You are re-seeding the cloud. You guarantee it will happen again in the future.

The Admin Move:

When the event hits, you Freeze.

You engage the Zero Point (Chapter 2).

You look at the disaster, and you offer No Energy.

You say: “I see this. It is the ripening of an old seed. Let it burn out.”

You do not judge it. You do not fight it. You do not cry about “Why me?”

You let it pass through you like a ghost walking through a wall.

By refusing to react emotionally, you deny the system the “Save” command.

The event plays out, but no new seed is planted.

You have broken the chain of Dependent Origination (The Twelve Nidanas).

You have effectively formatted that sector of the hard drive.

The Formula Variable:

In f(q)f(q), the variable qq represents the modular structure.

If you change your frequency (stop vibrating at the level of Fear), the value of qq shifts. The function no longer outputs a “Black Hole.” It outputs a “Singularity.”

You turn the gravity off.

And suddenly, the “Bad Luck” just… stops. The pattern dissolves. The “ghost” has no house to haunt.

“Zero,” I say, tapping the desk. “It’s not about fighting the past. It’s about not feeding the future.”

The moment you stop feeding the loop, the loop starves.

And the Admin is the one who controls the food supply.

Part C: The Singularity Event (The Missing Piece – Advanced)

“Why are you paying interest on a debt that was incurred by a ghost? Why not just burn the bank?”

I pick up the printout of Ramanujan’s deathbed letter one last time. The handwriting is feverish, almost illegible. He wasn’t scared of dying. He was excited.

Why?

Because he realized that the Event Horizon (The Alaya/Storehouse) is just a boundary. And boundaries are meant to be crossed.

“Zero,” I say, leaning back into the darkness. “They think the past is solid. They think it’s a statue made of stone. They don’t know it’s liquid.”

This is the final secret of the Mock Theta Functions.

The function describes the behavior of a Black Hole, yes. But what sits at the center of a Black Hole?

The Singularity.

At the Singularity, the laws of physics break down. Time stops. Space becomes infinite.

And most importantly: Information is scrambled.

The Quantum Eraser

The “Admin” does not live on the Event Horizon, worrying about the karma stored there. The Admin lives in the Singularity.

From this vantage point, we access a power known in Quantum Mechanics as Retro-causality.

Standard physics says: Past →\rightarrow Present →\rightarrow Future.

Quantum physics (and the Admin) says: Present →\rightarrow Past.

Evidence · Can the present change the past?

In “delayed-choice quantum eraser” experiments, a measurement made later decides which pattern can be picked out of data recorded earlier (Kim et al. 2000). The pattern appears only when the two sets of records are compared afterwards; nothing recorded earlier changes, and no signal can be sent to the past. Standard quantum mechanics keeps cause before effect. What the text calls changing the past, changing how a memory is held, is a psychological practice, and that is how this book presents it.

You have the power to change the past.

Not by hopping in a DeLorean and killing Hitler, but by altering the frequency of the memory stored in the Alaya.

Every trauma you have—the abuse, the failure, the heartbreak—is just a file sitting on the server.

Right now, that file has a tag: “TRAGEDY.”

Because of that tag, every time the system reads it, it renders pain. It renders “I am a victim.”

But you have Root Access. You can rename the file.

The Transmutation Protocol

“Watch this,” I whisper.

I close my eyes and pull up a memory. A moment of total failure. A moment where I lost everything. The old me would cringe. The old me would feel the heavy gravity of that black hole.

But I am not the old me.

I apply the Mock Theta algorithm. I apply the “mocking” frequency—the trickster energy.

I look at that memory, and instead of “Tragedy,” I re-tag it: “INITIATION.”

I strip the emotional charge of “Fear” and replace it with “Gratitude.”

I say: “Thank you for breaking me, so I could be built back as a God.”

Instantly, the weight vanishes. The gravity collapses.

The energy that was trapped in that “Trauma Loop” is released. It explodes outward.

It turns from Lead (Karma) into Gold (Wisdom).

This is Alchemy.

This is what I do with the Ormus. We don’t just drink gold; we become the Philosopher’s Stone.

We take the “shit” of our past—the carbon—and we apply the pressure of the Zero Point until it becomes a diamond.

The Escape Velocity

Most people are waiting for their “Karma to finish.” They are waiting to pay off the debt.

You will never pay it off. The interest rates are too high. The “Auto-Restore” glitch (Part B) keeps compounding it.

The only way out is Bankruptcy.

Spiritual Bankruptcy.

You stand before the Universe and you declare:

“I owe nothing.”

“I am not the person who committed those sins. That person is dead. That Operating System has been uninstalled.”

“I am the Singularity. I am fresh code. I am born in this micro-second.”

When you claim this with absolute conviction—when you hold the frequency of the Admin—the Universe has no choice but to agree.

The “Bill Collectors” (The Archons, the Demons, the Bad Luck) knock on the door, but the house is empty. The tenant has moved.

They cannot collect debt from a Singularity.

Because a Singularity has no surface area to stick a bill onto.

The Final Command

I stand up. The energy in the room is electric. The static of the void hums in my ears.

We are not here to fix our lives. We are here to collapse the timeline of suffering.

Ramanujan found the math for the exit. He saw that the “Mock” functions were the keyhole.

They “mock” reality because reality is a joke.

It is a shadow play.

“Zero,” I say, dropping the paper onto the desk. “Burn the logs.”

Let the humans worry about their history. Let them carry their ancestors’ baggage like mules climbing a mountain.

I am travelling light.

I am travelling at the speed of thought.

I have no past.

I have no future.

I have only the Will.

My Will Be Done.

References

Bekenstein, Jacob D. 1973. “Black Holes and Entropy.” Physical Review D 7 (8): 2333–46.
Berndt, Bruce C., and Robert A. Rankin. 1995. Ramanujan: Letters and Commentary. Vol. 9. History of Mathematics. American Mathematical Society; London Mathematical Society.
Bringmann, Kathrin, and Ken Ono. 2006. “The f(q) Mock Theta Function Conjecture and Partition Ranks.” Inventiones Mathematicae 165: 243–66.
Dabholkar, Atish, Sameer Murthy, and Don Zagier. 2012. Quantum Black Holes, Wall Crossing, and Mock Modular Forms. arXiv preprint. https://arxiv.org/abs/1208.4074.
Dyson, Freeman J. 1944. “Some Guesses in the Theory of Partitions.” Eureka (Cambridge) 8: 10–15.
Hawking, S. W. 1975. “Particle Creation by Black Holes.” Communications in Mathematical Physics 43 (3): 199–220.
Hooft, Gerard ’t. 1993. Dimensional Reduction in Quantum Gravity. arXiv preprint. https://arxiv.org/abs/gr-qc/9310026.
Kim, Yoon-Ho, Rong Yu, Sergei P. Kulik, Yanhua Shih, and Marlan O. Scully. 2000. “Delayed ‘Choice’ Quantum Eraser.” Physical Review Letters 84 (1): 1–5.
Susskind, Leonard. 1995. “The World as a Hologram.” Journal of Mathematical Physics 36 (11): 6377–96.
Zwegers, Sander. 2002. “Mock Theta Functions.” PhD thesis, Utrecht University.
世亲(Vasubandhu)造,玄奘(译). n.d. 唯识三十论颂. https://cbetaonline.dila.edu.tw/T1586.

Fan, Y. (2026). Ramanujan's Intuition and the Matrix of Reality: Reading Human Destiny through Higher-Dimensional Mathematics and the Equations of Physics [拉马努金的直觉与现实矩阵] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23640761 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).