What does Dream Motifs, Hashed Decks and Coincidence Rates conclude, in numbers, about “Auditing a Card App and a Pre-Registered Trial”?
Answer: Chapter 8 gives an audit method and a pre-registered trial. Marked boxes separate published evidence, runnable Python calculations (16 programs), classical sources and the author's hypotheses.
Scope of the numbers: It does not claim that dreams or cards foretell anything; the motif graph, event rates, memory rates and behavioural parameters are illustrative or synthetic; all data are generated by its programs; the book is not medical or psychological advice. In Chapter 6 an illustrative model shows that a card helps with action paralysis (the chance of starting work rises from 0.584 to 0.740) exactly as much as a coin, and less than an if-then plan.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python only
redraws allowed 0: positive share 0.500 redraws allowed 1: positive share 0.750 redraws allowed 2: positive share 0.875 redraws allowed 3: positive share 0.938 commitment published at midnight: 29e32d586fb225d412fe1adb... salt matches commitment: True; doctored 25, caught 25 positive share in the log 0.533 (fair 0.500)
Show the full program
# Chapter 8. p15: Auditing a card app. (1) Redraws: if 27 of 54 cards
# read as "positive" and a user may redraw a negative card up to r
# times, the share of positive readings is 1 - 0.5**(r + 1). (2) A
# commit-reveal log: the app publishes SHA-256 of each day's salt in
# advance; afterwards anyone can recompute every top card from user,
# date, salt and question. An operator who quietly redrew a negative
# card for 5% of 1,000 users (seed 89) is caught by recomputation.
import hashlib
import random
DECK = ["{}{:02d}".format(s, r) for s in "FWAE" for r in range(1, 14)]
DECK += ["JK1", "JK2"]
POSITIVE = set(DECK[0::2])
def top_card(user, date, salt, question):
q = hashlib.sha256(question.encode("utf-8")).hexdigest()
seed = hashlib.sha256("{}|{}|{}|{}".format(user, date, salt, q)
.encode("utf-8")).digest()
w = int.from_bytes(hashlib.sha256(seed).digest()[:4], "big")
limit = (2 ** 32 // 54) * 54
k = 0
while w >= limit:
k += 1
w = int.from_bytes(hashlib.sha256(seed + bytes([k])).digest()[:4],
"big")
return DECK[w % 54]
if __name__ == "__main__":
for r in range(4):
print(" redraws allowed {}: positive share {:.3f}".format(
r, 1 - 0.5 ** (r + 1)))
salt = "s-2026-11-09"
commit = hashlib.sha256(salt.encode()).hexdigest()
print(" commitment published at midnight: {}...".format(commit[:24]))
rng = random.Random(89)
log, doctored = [], 0
for u in range(1000):
user, q = "u{:04d}".format(u), "What should I start today?"
card = top_card(user, "2026-11-09", salt, q)
if card not in POSITIVE and rng.random() < 0.05:
card = rng.choice(sorted(POSITIVE))
doctored += 1
log.append((user, q, card))
ok = hashlib.sha256(salt.encode()).hexdigest() == commit
bad = sum(1 for user, q, card in log
if top_card(user, "2026-11-09", salt, q) != card)
print(" salt matches commitment: {}; doctored {}, caught {}".format(
ok, doctored, bad))
pos = sum(1 for _, _, c in log if c in POSITIVE) / 1000
print(" positive share in the log {:.3f} (fair 0.500)".format(pos))Single source and citation
Fan, Y. (2026). Dream Motif Bipartite Graphs, Deterministic Oracle Decks and Subconscious Prior Activation (Version 1.0.0), Chapter 8: Auditing a Card App and a Pre-Registered Trial. 5D Library. https://doi.org/10.5281/zenodo.24090233
DOI: 10.5281/zenodo.24090233 · Read the monograph · 5DL-B-089 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026089,
author = {Fan, Yafu},
title = {Dream Motif Bipartite Graphs, Deterministic Oracle Decks and Subconscious Prior Activation},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.24090233},
url = {https://doi.org/10.5281/zenodo.24090233}
}Other chapter answers in this book
- Chapter 1 · Dream Motifs as a Bipartite Graph, and Spreading Activation in REM Sleep
- Chapter 2 · Reverse Dreams, Direct Dreams and Day Residue
- Chapter 3 · A Deterministic 54-Card Deck: SHA-256 and the Fisher-Yates Shuffle
- Chapter 4 · Avalanche, Collisions and How Unique a Reading Is
- Chapter 5 · Littlewood's Law and Selective Memory
- Chapter 6 · The Card as an Action Anchor
- Chapter 7 · The Six Dreams of the Rites of Zhou, Wang Fu's Ten Kinds of Dream, the Dunhuang Dream Book and Jung's Synchronicity