Documentation

Complexitylib.Metacomplexity.BooleanDependency.Defs

Finite Boolean dependency tables -- definitions #

This module gives canonical restriction, extension, and table operations for a function of Boolean coordinates that depends on only a finite set. The table is indexed by assignments to exactly those coordinates, making its entry count an explicit resource rather than merely asserting that the function factors.

def Complexity.BooleanDependency.restrict {coordinate : Type u_1} (coordinates : Finset coordinate) (input : coordinateBool) :
coordinatesBool

Restrict a total Boolean assignment to a finite set of coordinates.

Equations
Instances For
    def Complexity.BooleanDependency.mergeAssignments {coordinate : Type u_1} [Fintype coordinate] [DecidableEq coordinate] (coordinates : Finset coordinate) (assignments : (coordinatesBool) × (coordinatesBool)) :
    coordinateBool

    Merge Boolean assignments on a finite coordinate set and its complement.

    Equations
    Instances For
      def Complexity.BooleanDependency.assignmentSplitEquiv {coordinate : Type u_1} [Fintype coordinate] [DecidableEq coordinate] (coordinates : Finset coordinate) :
      (coordinateBool) (coordinatesBool) × (coordinatesBool)

      A total Boolean assignment is equivalently its restrictions to a finite coordinate set and its complement.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Complexity.BooleanDependency.extendByFalse {coordinate : Type u_1} [DecidableEq coordinate] (coordinates : Finset coordinate) (input : coordinatesBool) :
        coordinateBool

        Extend an assignment on selected coordinates by false everywhere else.

        Equations
        Instances For
          def Complexity.BooleanDependency.table {coordinate : Type u_1} {result : Type u_2} [DecidableEq coordinate] (coordinates : Finset coordinate) (function : (coordinateBool)result) :
          (coordinatesBool)result

          The canonical table obtained by evaluating a function on extensions of all assignments to a selected finite coordinate set.

          Equations
          Instances For