pyphi.formalism.base.PhiFormalism#

class pyphi.formalism.base.PhiFormalism(*args, **kwargs)[source]#

Bases: Protocol

The minimum shape every formalism satisfies.

Concrete formalisms also declare:

  • name: stable string identifier used in config.formalism.iit.version and registered in FORMALISM_REGISTRY.

  • compatible_measures: frozenset of measure names that this formalism accepts.

  • uses_system_phi_measure: whether the formalism reads config.formalism.iit.system_phi_measure (IIT 3.0 derives system phi from the cause-effect-structure distance and never reads it).

  • partition_scheme: name (string) of the partition scheme registered in pyphi.partition.partition_types to use by default. May be None for approximation methods that bypass partitions.

  • compatible_system_partition_schemes: frozenset of system partition scheme names this formalism accepts, or None if it accepts any registered scheme.

  • compatible_mechanism_partition_schemes: frozenset of mechanism partition scheme names this formalism accepts, or None if it accepts any registered scheme.

  • compatible_sia_tie_strategies: frozenset of SIA tie-resolution strategy names this formalism’s SIA result type supports, or None if it supports every registered strategy.

  • compatible_specification_measures: frozenset of measure names this formalism accepts for config.formalism.iit.specification_measure, or None for formalisms without a specified-state phase (IIT 3.0 never consults the field).

  • compatible_background_conditioning: frozenset of cause-side background-conditioning conventions this formalism defines, or None if it accepts any registered convention.

  • applies_intrinsic_information_requirement: whether the formalism is defined by the intrinsic-information requirement (Eq. 23 of Mayner et al. 2026) and therefore requires a system measure whose attribute of the same name is True.

Signatures are permissive (Any) over the measure and partition arguments.