pyphi.formalism.queries#

Formalism queries — operations whose math depends on the active formalism.

These are free functions taking a System as the first argument. The kernel (pyphi.core.repertoire_algebra) holds pure repertoire math; this module holds the operations whose definition is formalism-policy (each version of IIT defines the MIP, MICE, and SIA differently).

The dispatch path is:

queries.X(cs, ...)
    → FORMALISM_REGISTRY[config.formalism.iit.version].evaluate_X(cs, ...)
    → concrete formalism's algorithm

The kernel never imports this module.

Functions

all_distinctions(cs, **kwargs)

Iterate non-empty mechanisms and return the resulting Distinctions.

cause_mip(cs, mechanism, purview, **kwargs)

distinction(cs, mechanism[, purviews, ...])

Return the distinction specified by a mechanism.

effect_mip(cs, mechanism, purview, **kwargs)

evaluate_partition(cs, direction, mechanism, ...)

Evaluate a mechanism partition's φ.

find_mice(cs, direction, mechanism[, purviews])

Return the maximally irreducible cause or effect for a mechanism.

find_mip(cs, direction, mechanism, purview)

Return the minimum partition for a mechanism over a purview.

mic(cs, mechanism, **kwargs)

mie(cs, mechanism, **kwargs)

phi(cs, mechanism, purview, **kwargs)

Return the φ of a mechanism over a purview: the minimum of the cause and effect MIP φ values.

phi_cause_mip(cs, mechanism, purview, **kwargs)

phi_effect_mip(cs, mechanism, purview, **kwargs)

phi_max(cs, mechanism)

sia(cs, **kwargs)

Run system irreducibility analysis via the active formalism.