pyphi.macro.search#

Bounded search for intrinsic units and complexes (Marshall et al. 2026, “Applying the postulates to units”).

The recursion starts from the micro units, which are axiomatically valid (Eqs. 16-17 gate macroing only). Each level derives candidate decompositions V from the previous level’s pool of valid units and judges each (V, W) pair once per update grain τ_J the candidate can take, counted in micro updates. The candidate’s mapping does not enter the criteria, but τ_J bounds its competitor set. Each update grain at which a decomposition is valid emits that grain’s mapped variants into the pool. Footprints are processed smallest-first, so the competitor set f(U^J, W^J, τ_J) always draws on every unit already validated at strictly finer footprints.

f(U^J, W^J, τ_J) is the set of valid systems whose total micro constituents are a subset (not necessarily strict) of U^J, whose background apportionments are non-overlapping subsets of W^J, and whose units all have a micro grain of at most τ_J, excluding the candidate v^J itself (the comparison in Eq. 17 is over v' != v^J). Members are assembled from units validated at strictly finer footprints, so a system whose constituents equal U^J competes only when it splits them into several smaller meso/micro units (a same-union reorganization), while a single unit spanning all of U^J – the candidate’s own grain – never enters f. The set P(u) extends the same assembly to the whole universe (Eq. 19), and a member is a complex if it strictly beats every other member whose micro constituents overlap its own (Eq. 20). Candidate systems whose state is unreachable under their own TPM specify no cause and cannot exist; they are dropped.

All φₛ evaluations within one driver run share a memo keyed on the hashable MacroSystem.

Functions

candidate_mappings(num_constituents, ...)

Deduplicated candidate truth tables for a unit shape.

competing_systems(substrate, unit, ...[, ...])

f(U^J, W^J, τ_J) materialized within the unit's footprint (Eq.

complexes(substrate, micro_history, *[, ...])

Identify the complexes of the bounded candidate space -- the one-call driver.

intrinsic_units(substrate, micro_history, *, ...)

The recursion's fixed point: the valid-unit pool plus all verdicts.

is_intrinsic_unit(substrate, unit, ...[, ...])

Eqs.

valid_systems(substrate, micro_history, *, ...)

The bounded P(u): every Eq-19-compatible system of intrinsic units, evaluated over the full universe with everything else as background.

Classes

ComplexesResult(complexes, records, ties)

The complexes of the bounded candidate space (Eq.

DecompositionVerdict(constituents, ...)

A judged candidate decomposition (V^J, W^J) at update grain τ_J.

EvaluationRecord(system, phi[, ii_ceiling, ...])

One candidate system and what the search established about it.

IntrinsicUnitsResult(units, verdicts)

The recursion's output: the valid-unit pool and every verdict.

SearchBounds([max_constituents, ...])

Bounds on the intrinsic-unit search space.