IIT 4.0
iitx.measures.iit4
IIT 4.0: system-level integrated information (Albantakis et al. 2023).
The system level of the 4.0 pipeline: condition the candidate system on its background
(effect side: background clamped at the current state; cause side: causal
marginalization conditional on the current state, Eq. 4), find the maximal
cause-effect state the system specifies (max intrinsic information, Eqs. 5-13), then
find the minimum partition over the directional system partitions (Eqs. 14-23):
phi_s is the intrinsic information about the maximal states lost under that
partition, minimized across the cause and effect sides.
Everything here is pure tensor algebra plus min/max reductions — no linear programs —
so system_phi composes with jit, vmap (batching over systems and states),
and grad (differentiable almost everywhere, with exact subgradients at ties).
Conventions inherited from the oracle rather than the paper are recorded in
docs/notes/oracle-findings.md; the load-bearing ones here: the reported φ is clamped
by the paper's |·|₊ while selection runs on signed values (signed_phi is kept,
not least for gradients); the partition normalization is 1 / (number of distinct
severed connections); a partition with φ ≤ 0 short-circuits the search; and ties of the
specified state resolve by maximal φ_s, then the oracle's state-iteration order.
PRECISION = 1e-13
module-attribute
Quantization applied to values before any comparison (PyPhi's 4.0 PRECISION).
CauseEffectState
dataclass
The maximal cause-effect state a system specifies (Eqs. 12-13).
Attributes:
| Name | Type | Description |
|---|---|---|
cause_state |
Array
|
The past state the system specifies most, shape |
effect_state |
Array
|
The future state the system specifies most, shape |
phi_cause |
Array
|
Intrinsic cause information |
phi_effect |
Array
|
Intrinsic effect information |
Source code in src/iitx/measures/iit4.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |
SystemPhi
dataclass
System integrated information and its minimum partition (Eqs. 19-23).
Attributes:
| Name | Type | Description |
|---|---|---|
phi |
Array
|
System integrated information |
signed_phi |
Array
|
The unclamped value — negative when a partition increases the specified probabilities. Selection uses signed values; keep this for gradients, which the clamp would zero out in the reducible region. |
normalized_phi |
Array
|
Clamped |
phi_cause |
Array
|
Cause-side φ at the minimum partition (signed). |
phi_effect |
Array
|
Effect-side φ at the minimum partition (signed). |
cut_index |
Array
|
Index of the minimum partition in the canonical cut table
(:func: |
cause_effect_state |
CauseEffectState
|
The maximal cause-effect state the φ values refer to. |
Source code in src/iitx/measures/iit4.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | |
PartitionPhis
dataclass
Per-partition signed φ values at the resolved specified states.
The raw material behind the minimum-partition selection, exposed for relaxations
and landscape analysis (:mod:iitx.relax).
Attributes:
| Name | Type | Description |
|---|---|---|
phi |
Array
|
Signed |
phi_cause |
Array
|
Cause-side signed φ per partition, shape |
phi_effect |
Array
|
Effect-side signed φ per partition, shape |
severed |
Array
|
Connections severed by each partition (the normalization), shape
|
cause_effect_state |
CauseEffectState
|
The resolved maximal cause-effect state. |
Source code in src/iitx/measures/iit4.py
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 | |
Distinctions
dataclass
The causal distinctions of a candidate system (Eqs. 27-48), as stacked arrays.
Row k describes the mechanism whose mask is row k of
iitx.enumeration.subsets(n, nonempty=True) restricted to the candidate; rows for
mechanisms not contained in the candidate, and mechanisms that specify no congruent
irreducible cause-effect, have exists false and zeros elsewhere.
Attributes:
| Name | Type | Description |
|---|---|---|
exists |
Array
|
Which mechanisms are distinctions (φ_d > 0 and congruent), shape |
phi |
Array
|
Distinction integrated information |
mechanism |
Array
|
Mechanism masks, shape |
cause_purview |
Array
|
Maximally irreducible cause purview masks, shape |
effect_purview |
Array
|
Maximally irreducible effect purview masks, shape |
cause_state |
Array
|
Specified cause states (values outside the purview are conventions,
not specifications), shape |
effect_state |
Array
|
Specified effect states, shape |
phi_cause |
Array
|
Cause-side φ maxima, shape |
phi_effect |
Array
|
Effect-side φ maxima, shape |
Source code in src/iitx/measures/iit4.py
731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 | |
Relations
dataclass
The causal relations of a distinction set, in aggregate (Eqs. 49-56).
Relations are never enumerated — their number is doubly exponential — but their total φ and count have closed forms (S3 Text of Albantakis et al. 2023), which is all that Φ needs.
Attributes:
| Name | Type | Description |
|---|---|---|
sum_phi |
Array
|
|
count |
Array
|
Number of relations (including self-relations with φ_r > 0). |
Source code in src/iitx/measures/iit4.py
1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 | |
PhiStructure
dataclass
The Φ-structure of a candidate system: distinctions, relations, and Φ (Eqs. 57-59).
Attributes:
| Name | Type | Description |
|---|---|---|
system |
SystemPhi
|
The system-level irreducibility analysis (φ_s and its partition). |
distinctions |
Distinctions
|
The congruent causal distinctions. |
relations |
Relations
|
The relations, in aggregate. |
big_phi |
Array
|
Structure integrated information |
Source code in src/iitx/measures/iit4.py
1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 | |
Complex
dataclass
One complex of a condensed system.
Attributes:
| Name | Type | Description |
|---|---|---|
units |
tuple[int, ...]
|
The complex's units. |
analysis |
SystemPhi
|
Its system φ analysis. |
Source code in src/iitx/measures/iit4.py
1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 | |
cause_effect_state(system, state, candidate=None)
Find the maximal cause-effect state a candidate system specifies.
The intrinsic information of each candidate past/future state is its selectivity times its informativeness (Eqs. 5-9); the specified state maximizes it, with ties broken by first occurrence in canonical (little-endian) state order.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
system
|
System
|
The system. |
required |
state
|
Array
|
Current state of the whole system, shape |
required |
candidate
|
Array | None
|
Mask of the candidate system's units; |
None
|
Returns:
| Type | Description |
|---|---|
CauseEffectState
|
The maximal cause-effect state with its intrinsic information on both sides. |
Source code in src/iitx/measures/iit4.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | |
system_phi(system, state, candidate=None, version='2023')
Compute the system integrated information φ_s of a candidate system.
Evaluates every directional system partition (the canonical SET_UNI/BI scheme):
for each, the φ lost about the maximal cause-effect state on each side (Eqs. 19-20,
without clipping, per the oracle), minimized across sides (Eq. 21); the minimum
partition is selected by quantized (normalized φ, -φ) with first occurrence
winning ties (Eqs. 22-23). A partition with φ ≤ 0 proves the system reducible, and —
matching the oracle's short-circuit — the first such partition in enumeration order
is reported as the minimum partition, with its (possibly negative) φ.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
system
|
System
|
The system. |
required |
state
|
Array
|
Current state of the whole system, shape |
required |
candidate
|
tuple[int, ...] | None
|
Units of the candidate system (static, since it fixes the partition
table); |
None
|
version
|
str
|
|
'2023'
|
Returns:
| Type | Description |
|---|---|
SystemPhi
|
The system φ analysis at the minimum partition. |
Source code in src/iitx/measures/iit4.py
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 | |
partition_phis(system, state, candidate=None)
Evaluate every system partition at the resolved specified states.
The partitions are the canonical table of :func:iitx.enumeration.system_cuts for
this candidate; the specified states are resolved exactly as in
:func:system_phi (ii-maximal, then φ-maximal, then oracle order).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
system
|
System
|
The system. |
required |
state
|
Array
|
Current state of the whole system, shape |
required |
candidate
|
tuple[int, ...] | None
|
Units of the candidate system (static); |
None
|
Returns:
| Type | Description |
|---|---|
PartitionPhis
|
The per-partition signed φ values, sides, and normalizations. |
Source code in src/iitx/measures/iit4.py
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | |
distinctions(system, state, candidate=None, specification=None)
Unfold the causal distinctions of a candidate system.
For every mechanism, on each side: the intrinsic information of every purview state selects candidate specified states (Eqs. 34-37); φ over the disintegrating partitions Θ(M, Z) (Eqs. 38-44, minimum by quantized normalized φ with the oracle's φ ≤ 0 short-circuit) evaluates each purview; the maximally irreducible purview wins (Eqs. 45-46). Ties are searched for a representative congruent with the system's maximal cause-effect state (Eq. 48): among φ-tied states the congruent one is preferred, then among φ-tied purviews the one whose state is congruent; a mechanism with no congruent representative on either side is not a distinction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
system
|
System
|
The system. |
required |
state
|
Array
|
Current state of the whole system, shape |
required |
candidate
|
tuple[int, ...] | None
|
Units of the candidate system (static); |
None
|
specification
|
CauseEffectState | None
|
The system's maximal cause-effect state to be congruent with.
|
None
|
Returns:
| Type | Description |
|---|---|
Distinctions
|
The distinctions, stacked over the nonempty mechanisms of the candidate. |
Source code in src/iitx/measures/iit4.py
767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 | |
relations(found, ces, shape)
Aggregate the relations among a set of distinctions, analytically.
A relation binds distinctions whose cause/effect purviews overlap congruently — over the same units in the same specified states. Since every distinction is congruent with the system's cause-effect state, the overlap arithmetic reduces to sets of unit-state atoms: one atom per unit and side, merged when the system's cause and effect states agree on the unit.
sum(phi_r) uses the S3 Text sort identity (per atom, sort member distinctions by
φ density and weight by the number of subsets whose minimum they are); the count
uses inclusion-exclusion over atom subsets. Self-relations (a single distinction
whose own cause and effect overlap) are added individually.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
found
|
Distinctions
|
The distinctions (with existence mask). |
required |
ces
|
CauseEffectState
|
The system's maximal cause-effect state (for the atom merging). |
required |
shape
|
tuple[int, ...]
|
Per-unit alphabet sizes. |
required |
Returns:
| Type | Description |
|---|---|
Relations
|
The total relation φ and the relation count. |
Source code in src/iitx/measures/iit4.py
1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 | |
phi_structure(system, state, candidate=None, version='2023')
Unfold the Φ-structure of a candidate system.
Composes the system-level analysis, the distinctions, and the relations;
Φ = sum(phi_d) + sum(phi_r) (Eq. 59) — a sum over what exists, not a partitioned
distance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
system
|
System
|
The system. |
required |
state
|
Array
|
Current state of the whole system, shape |
required |
candidate
|
tuple[int, ...] | None
|
Units of the candidate system (static); |
None
|
version
|
str
|
Theory version, |
'2023'
|
Returns:
| Type | Description |
|---|---|
PhiStructure
|
The Φ-structure. |
Source code in src/iitx/measures/iit4.py
1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 | |
complexes(system, state)
Condense a system into its complexes (recursive exclusion, Eqs. 24-26).
Among all candidate systems, the one with maximal φ_s is a complex (the first
complex is the maximal substrate); its units are removed and the search recurses on
the remainder until no candidate has positive φ_s. Excluded units remain background
conditions throughout. A Python driver by design (the recursion is data-dependent);
each candidate's analysis is the jitted :func:system_phi.
Ties among overlapping candidates resolve by first occurrence in powerset order
(the S1 Text's Φ-comparison cascade for exact ties is deferred with the deeper tie
machinery; the residual divergence is recorded in docs/notes/oracle-findings.md).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
system
|
System
|
The system. |
required |
state
|
Array
|
Current state of the whole system, shape |
required |
Returns:
| Type | Description |
|---|---|
list[Complex]
|
The complexes, in order of discovery (decreasing φ_s across rounds). |
Source code in src/iitx/measures/iit4.py
1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 | |