Documentation

Complexitylib.Languages.Contains

containsZero and containsOne: "contains-a-bit" languages #

The strings containing at least one 0-bit (resp. 1-bit). Decided by a 3-state scannerTM instance: the scan state is a single Bool tracking "some bit seen so far equals target".

Main definitions #

Main results #

def Complexity.TM.containsTM (target : Bool) :
TM 0

Scanner for "some input bit equals target". Scan state: a Bool encoding "some bit seen so far equals target".

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Strings containing at least one 0-bit.

    Equations
    Instances For

      Strings containing at least one 1-bit.

      Equations
      Instances For