Range Avoidance (Empty) and APEPP #
Range Avoidance — named Empty in Korten, Section 2, Definition 3 — is the
total search problem: given a stretching Boolean circuit C : {0, 1} ^ n → {0, 1} ^ m with
n < m, find an m-bit string outside the range of C. Totality follows from the dual weak
pigeonhole principle (2 ^ n < 2 ^ m), and verifying a candidate y requires checking
C(u) ≠ y for all n-bit inputs u, placing RangeAvoidance in TFΣ₂^P
Korten, Section 2, Observation 1.
Admitted instances (Cslib.Complexity.RangeAvoidanceInstance) are encoded as the validity subtype
of Cslib.Complexity.RangeAvoidanceData enforcing both inputLen < outputLen and the exact De
Morgan circuit contract (Circuit.ofCode inputLen outputLen code is some), so every admitted
instance decodes to a well-formed De Morgan circuit with exactly inputLen inputs and outputLen
outputs (Cslib.Complexity.RangeAvoidanceInstance.toCircuit,
Cslib.Complexity.RangeAvoidance_iff_toCircuit) without silent padding of malformed codes.
The class APEPP (Abundant Polynomial Empty Pigeonhole Principle) consists of the search
problems polynomial-time search-reducible to RangeAvoidance
Kleinberg, Korten, Mitropolsky and Papadimitriou,
Korten, Section 2. Defining APEPP directly by reduction to RangeAvoidance
makes RangeAvoidance complete for APEPP immediately by reflexivity; the companion module
CslibFrontier.Computability.Complexity.Classes.RangeAvoidance.Uniform compiles uniform
polynomial-time stretching families into admitted RangeAvoidanceInstance values with exact
widths and explicit polynomial circuit-size bounds, characterizing APEPP via uniform stretching
families.
No algorithmic upper bound (APEPP ⊆ FPSearch) or circuit lower bound is claimed here.
Main definitions #
Cslib.Complexity.avoidRel: the generic range-avoidance search relation for a family of mapsF : α × List Bool → List Boolfrom{0, 1} ^ (n a)to{0, 1} ^ (m a).Cslib.Complexity.RangeAvoidanceData,Cslib.Complexity.encRangeAvoidanceData: raw named-field data(inputLen, outputLen, code)and itsenc_structurebinary encoding.Cslib.Complexity.RangeAvoidanceData.IsValid,Cslib.Complexity.RangeAvoidanceInstance,Cslib.Complexity.encRangeAvoidance: admitted stretching De Morgan circuit instances enforcinginputLen < outputLenand exactCircuit.ofCodewell-formedness.Cslib.Complexity.RangeAvoidanceInstance.toCircuit,Cslib.Complexity.RangeAvoidanceInstance.ofCircuit: round-trip bridge with typed stretching De Morgan circuitsCslib.Circuits.Circuit Cslib.Circuits.Boolean.signature n m.Cslib.Complexity.RangeAvoidance: the canonical circuit-presented range-avoidance search problem (Emptyin Korten).Cslib.Complexity.APEPP: search problems polynomial-time search-reducible toRangeAvoidance.
Main results #
Cslib.Complexity.exists_avoid,Cslib.Complexity.isTotalSearch_avoidRel: totality ofavoidRelwhenevern a < m a(dual weak pigeonhole counting).Cslib.Complexity.avoidRel_mem_TFSigma2P: membership of a polynomial-time stretching family inTFΣ₂^P.Cslib.Complexity.isTotalSearch_RangeAvoidance:RangeAvoidanceis a total search problem.Cslib.Complexity.RangeAvoidance_mem_TFSigma2P:RangeAvoidance ∈ TFSigma2PKorten, Section 2, Observation 1.Cslib.Complexity.RangeAvoidance_iff_toCircuit,Cslib.Complexity.RangeAvoidance_ofCircuit_iff: characterization viaCslib.Circuits.Circuit.evalon every admitted instance and on typed stretching De Morgan circuits.Cslib.Complexity.SearchReducible.mem_APEPP,Cslib.Complexity.RangeAvoidance_mem_APEPP,Cslib.Complexity.APEPP.isTotalSearch,Cslib.Complexity.RangeAvoidance_searchComplete_APEPP: closure, totality, and completeness ofRangeAvoidanceforAPEPP.
References #
Generic range-avoidance relation and counting totality #
The generic range-avoidance search relation for a family of maps
F : α × List Bool → List Bool from {0, 1} ^ (n a) to {0, 1} ^ (m a): a candidate y is a
solution iff y.length = m a and no n a-bit string u satisfies F (a, u) = y.
Any polynomial-time stretching family defines a TFΣ₂^P search problem.
Raw data fields of a circuit range-avoidance instance: input width, output width, and De Morgan circuit code.
- inputLen : ℕ
The input bit-length
n. - outputLen : ℕ
The output bit-length
m. - code : CircuitCode
The De Morgan circuit code.
Structure encoding of RangeAvoidanceData: inputLen in unary, outputLen in unary, and
code via Cslib.Circuits.Boolean.encCode.
An admitted instance of circuit Range Avoidance (Empty in
Korten, Section 2, Definition 3): a RangeAvoidanceData record satisfying both
inputLen < outputLen and exact Circuit.ofCode well-formedness.
Explicit binary encoding of admitted RangeAvoidanceInstance values as the subtype
restriction of encRangeAvoidanceData.
Decode an admitted RangeAvoidanceInstance to its typed stretching De Morgan circuit.
Construct an admitted RangeAvoidanceInstance from a typed stretching De Morgan circuit.
RangeAvoidance is a total search problem.
Observation 1 of Korten, Section 2: RangeAvoidance ∈ TFΣ₂^P.
Every admitted RangeAvoidanceInstance evaluates exactly according to its decoded De Morgan
circuit a.toCircuit, with no padding of mismatched output lists.
On a typed stretching De Morgan circuit c : Circuit signature n m, RangeAvoidance asks for
an m-bit string outside the range of c.eval interpretation.
APEPP (Abundant Polynomial Empty Pigeonhole Principle): the class of search problems
polynomial-time search-reducible to RangeAvoidance
Kleinberg, Korten, Mitropolsky and Papadimitriou,
Korten, Section 2.
RangeAvoidance belongs to APEPP.
RangeAvoidance is complete for APEPP under polynomial-time search reductions (directly
from the reduction-based definition of APEPP).