Raw truth-table MCSP -- definitions #
Hardness-magnification papers conventionally give MCSP only the N = 2^n
truth-table bits and fix the circuit-size threshold externally. The canonical
MCSP.Instance codec instead stores arity and threshold metadata. This module
defines the raw convention and total maps between the two representations.
A raw string is well formed exactly when its length is a power of two. Its arity is recovered by base-two logarithm. Malformed lengths are outside both sides of every raw gap problem; no arbitrary threshold or arity is assigned to them.
Recover the arity of a prospective raw truth table from its length.
Equations
- Complexity.MCSP.rawArity bits = Nat.log 2 bits.length
Instances For
Decode a raw truth table at an externally supplied arity-indexed threshold.
The decoder succeeds only at exact power-of-two lengths.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Raw MCSP[threshold]: the input contains only its truth-table bits.
Equations
- Complexity.MCSP.rawAtThreshold threshold = {bits : List Bool | match Complexity.MCSP.rawDecode? threshold bits with | some inst => inst.HasCircuitAtMost | none => False}
Instances For
Add canonical arity and threshold metadata to a raw truth table. Malformed raw strings are sent to the empty, noncanonical code.
Equations
- Complexity.MCSP.rawToCanonical threshold bits = match Complexity.MCSP.rawDecode? threshold bits with | some inst => inst.encode | none => []
Instances For
Erase arity and threshold metadata from a canonical MCSP code. Malformed canonical strings are sent to the empty, malformed raw string.
Equations
- Complexity.MCSP.canonicalToRaw bits = match Complexity.MCSP.Instance.decode? bits with | some inst => inst.tableBits | none => []
Instances For
Yes side of raw GapMCSP[s_yes,s_no].
Equations
- Complexity.GapMCSP.rawSliceYesLanguage parameters = Complexity.MCSP.rawAtThreshold parameters.yesThreshold
Instances For
No side of raw GapMCSP[s_yes,s_no]. The input has no encoded threshold;
the no cutoff is supplied entirely by the problem parameters.
Equations
- One or more equations did not get rendered due to their size.