Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Run the relevant generator after adding content, then verify with its `--check`.
|---|---|---|
| 171 | questions | `org_frontier/questions/q*_*/` |
| 136 | probes | `org_frontier/probes/probe_*.py` |
| 352 | studies | `org_frontier/studies/*/` |
| 353 | studies | `org_frontier/studies/*/` |
| 22 | essays | `org_frontier/essays/*.md` |
| 9 | foundations experiments | `foundations/*/` with a `FINDINGS.md` |
| 10 | literature reviews | `org_frontier/reviews/*/` with a `FINDINGS.md` |
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ Multi-experiment batteries on one theme.
- **[Why a third relay doubles φ](org_frontier/studies/relay_cut_edges/README.md)** — Exact IIT 4.0 Φ (PyPhi pin `b78d0e342`), "or" chain S → B1..Bk → P1–P3 → S, mediator quota 1, r = 0, all-zero state
- **[Relay flips: relayers that flip, gate, or sit on unequal arms](org_frontier/studies/relay_flips/README.md)** — Exact IIT 4.0 Φ (PyPhi pin `b78d0e342`), every reachable subset in every reachable state. Hypotheses
- **[Relay length: how long can the loop through other people be?](org_frontier/studies/relay_length/README.md)** — Exact IIT 4.0 Φ (PyPhi pin `b78d0e342`), every reachable subset in every reachable state. Hypotheses
- **[Why the best one-edge cut jumps by 4 at four relays](org_frontier/studies/relay_one_edge_cuts/README.md)** — Exact cut-matrix sizes for the "or" chain S → B1..Bk → P1–P3 → S (PyPhi pin `b78d0e342`, mediator quota 1, r = 0)
- **[Two relays and the last hop together](org_frontier/studies/relays_and_last_hop/README.md)** — Exact IIT 4.0 Φ (PyPhi pin `b78d0e342`), full group only, every reachable state. Hypotheses pushed in `45726241` before
- **[Residual phase boundary (F28)](org_frontier/studies/residual_phase_boundary/README.md)** — that instability is shared with other classifier-uncertain forms (H3 refuted).** One-bit flips in
- **[Residual phase boundary on unc k=2 misses (F28)](org_frontier/studies/residual_phase_boundary_unc/README.md)** — One-bit truth-table flips flip the exact Φ verdict for **37.1%** of neighbours of the 75 n=4
Expand Down
13 changes: 12 additions & 1 deletion catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"counts": {
"question": 171,
"probe": 464,
"study": 351,
"study": 352,
"foundations": 9,
"open": 15
},
Expand Down Expand Up @@ -12083,6 +12083,17 @@
],
"runtime": "fast"
},
{
"kind": "study",
"id": "relay_one_edge_cuts",
"title": "Why the best one-edge cut jumps by 4 at four relays",
"finding": "Exact cut-matrix sizes for the \"or\" chain S → B1..Bk → P1–P3 → S (PyPhi pin `b78d0e342`, mediator quota 1, r = 0). Hypotheses committed first (`8377261575eb6f7e9f722f92b6764a40d693f92c`)",
"path": "org_frontier/studies/relay_one_edge_cuts",
"reproduce": [
"python org_frontier/studies/relay_one_edge_cuts/run.py --quick"
],
"runtime": "fast"
},
{
"kind": "study",
"id": "relays_and_last_hop",
Expand Down
9 changes: 9 additions & 0 deletions ci/reproduce.json
Original file line number Diff line number Diff line change
Expand Up @@ -9649,6 +9649,15 @@
],
"timeout": 300,
"source": "org_frontier/studies/relay_cut_edges/FINDINGS.md"
},
{
"name": "relay_one_edge_cuts",
"cmd": "python org_frontier/studies/relay_one_edge_cuts/run.py --quick",
"expect": [
"two-part L1 at k = 0..4: [3, 6, 9, 12, 16]"
],
"timeout": 300,
"source": "org_frontier/studies/relay_one_edge_cuts/FINDINGS.md"
}
]
}
6 changes: 6 additions & 0 deletions org_frontier/studies/relay_one_edge_cuts/BACKLOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Backlog

1. **A law for L_2**: 6, 10, 16, 26, 36, 46 at k = 0..5. What cuts reach them (three-part splits)?
2. **Φ at k = 5 and beyond**: with L_1 known, does the two-edge cut keep winning, and when does a three-edge cut win?
3. **Full enumeration at k = 6** (about 32 million partitions): needs a chunked run.
4. **Which two-part splits reach the best size**: list them at k = 5 and check they are all balanced.
30 changes: 30 additions & 0 deletions org_frontier/studies/relay_one_edge_cuts/FINDINGS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# The best one-edge cut is the biggest two-part split with one real edge across it: floor((k + 4)² / 4), so the +3 steps were a coincidence of small k

Exact cut-matrix sizes for the "or" chain S → B1..Bk → P1–P3 → S (PyPhi pin `b78d0e342`, mediator quota 1, r = 0). Hypotheses committed first (`8377261575eb6f7e9f722f92b6764a40d693f92c`).
Control passed: stored `delay_quorum` whole Φ at d = 0, 1, 2 is 3.0, 1.0, 1.0, and the stored `relay_cut_edges` L_1 at k = 0..4 is 3, 6, 9, 12, 16.
Disclosure: before committing I had printed the best one-edge cuts at k = 2, 3, 4, computed the hand-edge-list version of the two-part search for k = 0..10, and ran `--quick` once (k = 0..4). H1 is therefore known. H2–H4 were fresh.

**Scores: H1–H4 all supported.**

- **H1 SUPPORTED (known).** With PyPhi's connectivity matrix, the best two-part split with exactly one real edge from A to B has |A|·|B| = 3, 6, 9, 12, 16 at k = 0..4.
- **H2 SUPPORTED (fresh).** The same search gives 20, 25, 30, 36, 42, 49 at k = 5..10, which is floor((k + 4)² / 4) in every case.
- **H3 SUPPORTED (fresh).** Enumerating all 4,419,572 PyPhi partitions at k = 5 gives L_1 = 20.
- **H4 SUPPORTED (fresh).** The k = 5 full enumeration and the two-part search agree (both 20).

## Why (the reading)

In the best one-edge cuts I printed at k = 2, 3, 4 (the first six of each list), the partition is a two-part split {A, B} whose cut matrix is the whole block A × B, so its size is |A|·|B|, with exactly one real edge from A to B. For n = k + 4 nodes the largest possible product is floor(n² / 4),
and the two-part search found a split with one real edge across it that reaches the balanced product for every k from 1 to 10 (for example cutting the chain at a link between two relays). I have not proved this for all k. At k = 0 the four nodes cannot be split 2 + 2 with one real edge (S sends three edges to the parties), so L_1 = 3, not 4.
floor(n² / 4) goes 6, 9, 12, 16, 20, 25, 30, … at k = 1, 2, …: steps of 3, 3, 4, 4, 5, 5, …. The earlier "3 per relay" pattern was true only up to k = 3.

## Post-hoc (not scored)

- The same full enumeration at k = 5 gives, for cuts that cut 2, 3, 4, 5 real edges, largest cut-matrix sizes 46, 54, 58, 62 (L_2 = 46; the earlier k = 0..4 values were 6, 10, 16, 26, 36). L_2 > 2·L_1 still holds at k = 5 (46 > 40). I have no law for L_2.

## Limits

L_1 only; the full enumeration was run at k = 5, the two-part search is a restricted search for k = 6..10 (not all cuts). No claim about L_2 or about φ itself beyond what `relay_cut_edges` showed. Only the all-zero state's cut structure.

## Reproduce

`python org_frontier/studies/relay_one_edge_cuts/run.py --quick`, then `run.py --write` (about 25 minutes; progress is saved under /workspace/partials and a rerun resumes).
14 changes: 14 additions & 0 deletions org_frontier/studies/relay_one_edge_cuts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Why the best one-edge cut jumps by 4 at four relays

`relay_cut_edges` backlog item 1. For the "or" chain S → B1..Bk → P1–P3 → S (quota 1, r = 0), the largest cut-matrix size among cuts that cut exactly one real edge (L_1) is 3, 6, 9, 12, 16 at k = 0..4. This study tests that it is the largest |A|·|B| of a two-part split with exactly one real edge from A to B, which is floor((k + 4)² / 4) for k >= 1.

```
python org_frontier/studies/relay_one_edge_cuts/run.py --quick # CI: two-part search at k = 0..4, ~3 s
python org_frontier/studies/relay_one_edge_cuts/run.py --write # full run, ~25 min (k = 5 full enumeration saves progress and resumes)
```

The CI quick check is narrower than the full run: it runs the controls and the two-part search at k = 0..4 only. It does not run k = 5..10 or the k = 5 full enumeration.

**Result: all four predictions held.** The two-part search gives 20, 25, 30, 36, 42, 49 at k = 5..10, and a full enumeration of all 4,419,572 PyPhi partitions at k = 5 gives L_1 = 20.

Files: [hypotheses.md](hypotheses.md), [FINDINGS.md](FINDINGS.md), [results/results.json](results/results.json), [BACKLOG.md](BACKLOG.md).
Empty file.
32 changes: 32 additions & 0 deletions org_frontier/studies/relay_one_edge_cuts/hypotheses.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Why the best one-edge cut jumps by 4 at four relays

Fixed before this study's computation (Nov 28, 2026).

## Gap

`relay_cut_edges` found the largest cut-matrix size among cuts that cut exactly one real edge (L_1) is 3, 6, 9, 12 at k = 0..3 relays and **16** at k = 4 (I had predicted 15, H5 there was refuted).
Its backlog asks why. Chain: S → B1..Bk → P1–P3 → S ("or", quota 1, r = 0), n = k + 4 nodes.

## What I did before writing this (disclosure, not blind)

For k = 2, 3 and 4 I printed the cuts that cut exactly one real edge with the largest cut-matrix size (k = 2: 9, k = 3: 12, k = 4: 16). Every one of them is a two-part split
{A, B} whose cut matrix is the full block A × B (|A|·|B| entries), with exactly one real edge going from A to B. With a hand-written edge list (not PyPhi's connectivity matrix) I also
computed, for k = 0..10, the largest |A|·|B| over splits with exactly one real edge from A to B: 3, 6, 9, 12, 16, 20, 25, 30, 36, 42, 49. That equals floor((k + 4)² / 4) for k >= 1
(the largest product of two numbers adding to n = k + 4) and 3 instead of 4 at k = 0. So the "+3 each relay" pattern was a coincidence of small k: the increments of floor(n²/4) are 3, 3, 4, 4, 5, 5, 6, ….
I also ran `run.py --quick` once (the two-part search with PyPhi's connectivity matrix at k = 0..4: 3, 6, 9, 12, 16, so H1 is known). No PyPhi connectivity matrix has been used for k >= 5, and no full enumeration of cuts has been run at k = 5.

## Model

`three_relays.run.net_for("OR3", 1, 0.0, (0,)*k)` (the `delay_quorum` chain), PyPhi's connectivity matrix for the real edges, PyPhi's partition enumerator for full enumeration.

Controls (a gate; the run stops as written otherwise): stored `delay_quorum` whole Φ at d = 0, 1, 2 for OR3 r = 0 is 3.0, 1.0, 1.0 (1e-6), and the stored `relay_cut_edges` L_1 at k = 0..4 is 3, 6, 9, 12, 16.

## Outcomes (exact integer equality)

- H1 (known, not blind): using PyPhi's connectivity matrix, the best one-edge two-part split has |A|·|B| = 3, 6, 9, 12, 16 at k = 0..4 (the stored L_1).
- H2 (fresh): the same two-part search using PyPhi's connectivity matrix gives floor((k + 4)² / 4) for k = 5..10: 20, 25, 30, 36, 42, 49.
- H3 (fresh): a full enumeration of every PyPhi partition at k = 5 (nine nodes) gives L_1 = 20.
- H4 (fresh): the k = 5 full enumeration and the k = 5 two-part search agree: both give L_1 = 20.

H2 and H3 are limited: H2 is a two-part search only (not all cuts), H3 is one k. The k = 5 table for two or more cut edges is recorded but no prediction is made for it. Only the all-zero state's cut structure is examined; PyPhi φ itself is not
re-evaluated here. A refuted outcome is reported as refuted.
41 changes: 41 additions & 0 deletions org_frontier/studies/relay_one_edge_cuts/results/results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"pyphi_version": "1.2.1.dev1470+gb78d0e342",
"hypotheses": {
"H1": "SUPPORTED",
"H2": "SUPPORTED",
"H3": "SUPPORTED",
"H4": "SUPPORTED"
},
"two_part_L1": {
"0": 3,
"1": 6,
"2": 9,
"3": 12,
"4": 16,
"5": 20,
"6": 25,
"7": 30,
"8": 36,
"9": 42,
"10": 49
},
"predicted_k5_to_10": {
"5": 20,
"6": 25,
"7": 30,
"8": 36,
"9": 42,
"10": 49
},
"full_k5": {
"k": 5,
"partitions": 4419572,
"L": {
"1": 20,
"2": 46,
"3": 54,
"4": 58,
"5": 62
}
}
}
115 changes: 115 additions & 0 deletions org_frontier/studies/relay_one_edge_cuts/run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
"""Why the best one-edge cut jumps by 4 at four relays: it is the largest |A|*|B| of a two-part split with exactly one real edge from A to B.

Run from the repo root: python org_frontier/studies/relay_one_edge_cuts/run.py [--quick] [--write]
Chain S -> B1..Bk -> P1..P3 -> S, OR3 (mediator quota 1), r = 0. Hypotheses are in hypotheses.md.
The k = 5 full enumeration saves progress to /workspace/partials/relay_one_edge_k5.json (or $PARTIALS) and resumes from it.
"""
import argparse
import json
import os
import sys
from importlib.metadata import version
from pathlib import Path

ROOT = Path(__file__).resolve().parents[3]
sys.path.insert(0, str(ROOT))
os.environ.setdefault("PYPHI_WELCOME_OFF", "true")

import numpy as np # noqa: E402
import pyphi # noqa: E402
from pyphi import config # noqa: E402
from pyphi.new_big_phi import system_partitions # noqa: E402

from org_frontier.probes.weighted_quorum.probe_weighted_quorum import gate_c1 # noqa: E402
from org_frontier.studies.three_relays.run import net_for # noqa: E402

pyphi.config.PROGRESS_BARS = False
DQ = {(r["form"], r["r"], r["d"]): r["whole_phi"]
for r in json.loads((ROOT / "org_frontier/studies/delay_quorum/results/results.json").read_text())["rows"]}
STORED_L1 = [3, 6, 9, 12, 16]
CHUNK = 100_000


def real_edges(k):
_, net, nn = net_for("OR3", 1, 0.0, (0.0,) * k)
return nn, np.array(net.cm) > 0


def two_part_l1(k):
"""Largest |A|*|B| over splits {A, B} with exactly one real edge from A to B (PyPhi's connectivity matrix)."""
nn, real = real_edges(k)
idx = np.arange(nn)
best = 0
for m in range(1, 2 ** nn - 1):
a = ((m >> idx) & 1).astype(bool)
if int(real[np.ix_(a, ~a)].sum()) == 1:
best = max(best, int(a.sum()) * int((~a).sum()))
return best


def full_table(k, partial_path):
"""Full PyPhi partition enumeration: largest cut-matrix size per number of cut real edges. Saves/resumes progress."""
nn, real = real_edges(k)
sub = pyphi.Subsystem(net_for("OR3", 1, 0.0, (0.0,) * k)[1], (0,) * nn, range(nn))
st = dict(done=0, table={})
if partial_path.exists():
st = json.loads(partial_path.read_text())
table = {int(e): v for e, v in st["table"].items()}
done = st["done"]
i = 0
for part in system_partitions(sub.node_indices, node_labels=sub.node_labels, partition_scheme=config.SYSTEM_PARTITION_TYPE):
i += 1
if i <= done:
continue
cutm = np.array(part.cut_matrix(nn)) > 0
links, pe = int(cutm.sum()), int((cutm & real).sum())
if pe > 0 and links > table.get(pe, 0):
table[pe] = links
if i % CHUNK == 0:
partial_path.parent.mkdir(parents=True, exist_ok=True)
partial_path.write_text(json.dumps(dict(done=i, table=table)))
print(f" k={k}: {i} partitions", flush=True)
return dict(k=k, partitions=i, L={str(e): table[e] for e in sorted(table)[:5]})


def main():
ap = argparse.ArgumentParser(description=__doc__)
ap.add_argument("--quick", action="store_true")
ap.add_argument("--write", action="store_true")
args = ap.parse_args()
if not gate_c1():
raise SystemExit("C1 controls failed")
for k in (0, 1, 2):
if abs(DQ[("OR3", 0.0, k)] - [3.0, 1.0, 1.0][k]) > 1e-6:
raise SystemExit(f"CONTROL failed: delay_quorum d={k} is {DQ[('OR3', 0.0, k)]}")
stored = json.loads((ROOT / "org_frontier/studies/relay_cut_edges/results/results.json").read_text())["minimizer"]
if [stored[str(k)]["L"]["1"] for k in range(5)] != STORED_L1:
raise SystemExit("CONTROL failed: stored relay_cut_edges L_1 is not 3, 6, 9, 12, 16")
if args.quick: # CI: two-part search at k = 0..4 only (narrower than the full run: no k >= 5, no full enumeration)
print("two-part L1 at k = 0..4:", [two_part_l1(k) for k in range(5)], flush=True)
return
two = {k: two_part_l1(k) for k in range(11)}
print("two-part L1:", two, flush=True)
part = Path(os.environ.get("PARTIALS", "/workspace/partials")) / "relay_one_edge_k5.json"
f5 = full_table(5, part)
print(f5, flush=True)
print("CONTROL (delay_quorum d = 0, 1, 2 = 3, 1, 1; stored L_1 = 3, 6, 9, 12, 16): PASS")
pred = {k: (k + 4) ** 2 // 4 for k in range(5, 11)}
h1 = [two[k] for k in range(5)] == STORED_L1
h2 = all(two[k] == pred[k] for k in pred)
h3 = f5["L"]["1"] == 20
h4 = h3 and two[5] == 20
scores = dict(H1=h1, H2=h2, H3=h3, H4=h4)
for h, ok in scores.items():
print(f"{h}: {'SUPPORTED' if ok else 'REFUTED'}")
if args.write:
o = Path(__file__).with_name("results")
o.mkdir(exist_ok=True)
(o / "results.json").write_text(json.dumps(dict(
pyphi_version=version("pyphi"), hypotheses={h: "SUPPORTED" if ok else "REFUTED" for h, ok in scores.items()},
two_part_L1={str(k): v for k, v in two.items()}, predicted_k5_to_10={str(k): v for k, v in pred.items()},
full_k5=f5), indent=1) + "\n")


if __name__ == "__main__":
main()
4 changes: 2 additions & 2 deletions research-atlas/snapshot.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"revision": "2388bdbbe7e5446a4ec5e245a5be3365568dd6d2",
"revision": "3c4435db194ab61d11c0849b5feb91ce8a09a572",
"indexes": {
"catalog.json": "73acc9757350276617c9a39dd8dfb8364f5e2826",
"catalog.json": "b97554c65b8357d45a152b81736bf3892132e526",
"research-atlas/cards.json": "b049d417c6c9a693f4fa44a53237e3bc9bc4c31b"
}
}
32 changes: 32 additions & 0 deletions substack/experiments/2026-11-28-why-the-best-cut-jumps-by-four.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Why the best one-link cut jumps by four

*Last time one number broke a pattern: 3, 6, 9, 12, and then 16 instead of 15. It was never a pattern. Here is the rule behind it.*

## The setup

A mediator S passes its answer through a chain of relays, B1 to Bk, which feed three parties that feed S again. The "or" rule, one vote needed, no reading error. PyPhi scores a way of cutting this chain into parts by how many real links the cut severs, and compares that to the size of the cut (how many links the cut matrix marks, real or not). The best cut that severs just one real link covered 3, 6, 9, 12 entries for zero to three relays, and I predicted 15 for four. It was 16. We measure integrated information Φ (IIT 4.0, computed exactly with PyPhi). It is not a claim that anything is alive or aware.

Our idea, written down first (commit `83772615`): the best one-link cut is a plain two-way split of the nodes into a group A and a group B with exactly one real link from A to B. Its size is the number of nodes in A times the number in B. With n = k + 4 nodes, the biggest such product is n squared divided by four, rounded down.

## What we found

All four predictions held, and the sanity check (the stored scores for 0, 1 and 2 relays and the stored one-link sizes) passed.

- **The rule reproduces the known sizes:** 3, 6, 9, 12, 16 for zero to four relays. (We had seen this before writing the predictions, so that part was not blind.)
- **It predicts the rest:** 20, 25, 30, 36, 42 and 49 for five to ten relays, as written down in advance.
- **A full check at five relays agrees.** We went through all 4,419,572 ways PyPhi can cut nine nodes and the best one-link cut covers 20 entries, as predicted.
- **So the jump of 4 is the rule working.** The best size goes up by 3, 3, 4, 4, 5, 5 and so on. The "3 per relay" pattern was a coincidence of small chains.

After seeing the numbers (not predicted): for cuts of two links, the same five-relay search gives a best size of 46, and a doubling still holds (46 against 40). We don't have a rule for that one.

Limits: only one-link cuts, only the all-off state. For six to ten relays the check searches two-way splits only, not every kind of cut, and we have not proved the rule works for every chain length.

## The code

- Study: [org_frontier/studies/relay_one_edge_cuts/](https://github.com/rogerSuperBuilderAlpha/algorithmacy-lab/tree/main/org_frontier/studies/relay_one_edge_cuts)
- Predictions: [hypotheses.md](https://github.com/rogerSuperBuilderAlpha/algorithmacy-lab/blob/main/org_frontier/studies/relay_one_edge_cuts/hypotheses.md)
- Numbers: [results/results.json](https://github.com/rogerSuperBuilderAlpha/algorithmacy-lab/blob/main/org_frontier/studies/relay_one_edge_cuts/results/results.json)

Run it: `python3 tools/start.py`, then `python org_frontier/studies/relay_one_edge_cuts/run.py --write`.
The analysis harness is an AI assistant working around IIT 4.0 and PyPhi in the open repo; the numbers
are PyPhi's.
Loading