pyphi.macro.estimate.SearchEstimate#

class pyphi.macro.estimate.SearchEstimate(n, bounds, judgments_by_level, worst_case_pool_by_level, assemblies_upper_bound, distinct_systems_upper_bound, systems_by_unit_count, partitions_by_unit_count, partition_sweeps_upper_bound, construction_keys_upper_bound, is_exact, truncated, partitions_capped)[source]#

Bases: Displayable, ToPandasMixin

The size and shape of a grain search, before running it.

All quantities are exact worst cases under the assumption that every judged decomposition passes the intrinsic-unit criteria; the search itself can only do less. See the module docstring for what “exact” can and cannot promise.

Variables:
  • n (int) – Micro universe size the estimate was computed for.

  • bounds (SearchBounds) – The bounds the estimate describes.

  • judgments_by_level (tuple[int, ...]) – Judgments per macroing level, one per candidate decomposition and update grain (the first level’s count is exact; deeper levels are worst-case).

  • worst_case_pool_by_level (tuple[int, ...]) – Concrete units in the pool after each level, all-pass.

  • assemblies_upper_bound (int) – Candidate systems the final sweep assembles (Eq. 19).

  • distinct_systems_upper_bound (int) – Deduplicated candidate systems across judgment candidates, judgment competitors, and the final sweep — the number to compare with len(ComplexesResult.records).

  • systems_by_unit_count (dict[int, int]) – Final-sweep candidates bucketed by macro unit count m.

  • partitions_by_unit_count (dict[int, int]) – Partitions per system irreducibility analysis at each m, under the active system partition scheme.

  • partition_sweeps_upper_bound (int) – Σ over m of systems × partitions — the SIA-cost axis.

  • construction_keys_upper_bound (int) – Distinct (footprint, grain) construction keys — the Θ(τ·4ⁿ) construction-cost axis.

  • is_exact (bool) – Whether the enumeration is exact rather than an upper bound (max_depth == 0 and not truncated).

  • truncated (bool) – The counting hit its limit; counts are then lower bounds of the bound.

  • partitions_capped (bool) – At least one bucket has a macro unit count m above the partition-count cap and so has no partition count; partition_sweeps_upper_bound then covers only the counted buckets. Independent of truncated and is_exact.

Parameters:
  • n (int)

  • bounds (SearchBounds)

  • judgments_by_level (tuple[int, ...])

  • worst_case_pool_by_level (tuple[int, ...])

  • assemblies_upper_bound (int)

  • distinct_systems_upper_bound (int)

  • systems_by_unit_count (dict[int, int])

  • partitions_by_unit_count (dict[int, int])

  • partition_sweeps_upper_bound (int)

  • construction_keys_upper_bound (int)

  • is_exact (bool)

  • truncated (bool)

  • partitions_capped (bool)