Errorless average-case heuristics #
This module exposes the exact errorless-heuristic semantics used in average-case
complexity: globally sound yes/no/failure answers, polynomial runtime through a
canonical FP output codec, and slice-wise failure probability over arbitrary
finite uniform-seed ensembles. It also defines AvgPAt δ and the
inverse-polynomial intersection AvgP for distributional problems.
Canonical heuristic answers round-trip through their binary codec.
The canonical three-answer encoding is injective.
Every canonical heuristic-answer code has length at most one.
Complementing an answer twice returns the original answer.
Complement preserves and reflects explicit failure.
Complementing a sound answer gives a sound answer for the negated truth value.
Complementing a globally errorless heuristic yields an errorless heuristic for the complement language.
Complementing a heuristic preserves its failure event pointwise.
Failure probability is nonnegative.
Failure probability is at most one.
Every answer probability is nonnegative.
Every answer probability is at most one.
Failure probability is the probability of the failure answer.
An errorless heuristic correctly rejects mass at least one minus the language mass and its failure mass.
Complementing a heuristic preserves its failure probability exactly.
A failure guarantee remains true under a pointwise weaker bound.
Complementing a heuristic preserves every failure guarantee.
A decision adapter runs in polynomial time whenever its singleton Boolean
output function belongs to FP.
An exact Boolean decision function induces a globally errorless heuristic.
A total decision adapter has zero failure probability on every ensemble slice.
A total decision adapter meets the zero failure bound.
The total inverse-polynomial failure target is nonnegative.
The total inverse-polynomial failure target is at most one.
Membership in AvgP means meeting every total inverse-polynomial failure
target.
Any exact polynomial-time Boolean decision function gives a zero-failure
member of AvgPAt δ for every nonnegative failure allowance.
Any exact polynomial-time Boolean decision function solves the same language
errorlessly on every distribution ensemble, hence places the distributional
problem in AvgP.