pyphi.condensation.gated_exclusion_cascade#
- pyphi.condensation.gated_exclusion_cascade(pending, evaluate_batch)[source]#
Condense candidates known by certified φₛ ceilings, evaluating lazily.
Candidates are forced to exact φₛ — via
evaluate_batch, which must return oneCandidateper pending item, in order — only when their ceiling reaches the tier currently being resolved atconfig.numerics.precision. A forced candidate whose φₛ is not positive is reducible and dropped. Each tier then resolves exactly as inexclusion_cascade(). A pending candidate that comes to overlap an accepted complex is a certified exclusion: its ceiling, hence its φₛ, is strictly below that complex’s φₛ at precision, so it is never evaluated and is returned in the second element.Within-tier presentation order follows the input order of
pending, matching the eager cascade’s contract. Ceilings certify skips only: when every ceiling is loose enough to force evaluation, the outcome is identical to the eager cascade on the same input order.Notes
Tier membership is tolerant but not transitive, so the eager cascade’s tier boundaries can be anchored by a candidate that is later dropped by coverage. A gated candidate is never evaluated and cannot anchor: when three φₛ values form a sub-tolerance chain whose middle candidate is gated, the two ends share a tier here where the eager cascade splits them. The difference is observable only when those ends also overlap each other, in which case their tie escalates to Composition (the reading the tie supplement prescribes for candidates tied at precision) instead of the higher end excluding the lower by coverage.
- Raises:
RuntimeError – If a forced candidate’s φₛ exceeds its ceiling beyond precision — the certified premise itself is violated, and pruning would be unsound.
- Parameters:
pending (Sequence[PendingCandidate])
evaluate_batch (Callable[[Sequence[PendingCandidate]], Sequence[Candidate]])
- Return type: