Documentation

Complexitylib.Metacomplexity.StatisticalTest.Oracle.Defs

Finite statistical tests as Boolean oracles -- definitions #

A fixed-length finite test is extended to all binary query strings by rejecting malformed lengths. This supplies the canonical oracle used by reconstruction decoders without placing the test's exponentially long truth table inside the program description.

def Complexity.decodeFixedWidthBoolean? (length : ) (bits : List Bool) :
Option (Fin lengthBool)

Decode a list only when it has exactly the advertised fixed length.

Equations
Instances For
    def Complexity.finiteTestOracle {outputLength : } (test : Finset (Fin outputLengthBool)) :

    Canonical total Boolean oracle associated to a finite fixed-length test. Queries of the wrong length are rejected.

    Equations
    Instances For