Documentation

Complexitylib.Algebraic.LowerBound.Cutwidth.Extractor.SourceReduction.Encoding.Defs

Concrete indices and advice for the source reduction #

Enumerate Boolean words by their fixed-width little-endian binary codes. The advice for a sampler position concatenates its outer and candidate codes. These are the actual computable encodings used by the reduction; no arbitrary equivalence between finite types is chosen.

def Algebraic.Cutwidth.Extractor.sourceReductionIndexWord (width : ℕ) (index : Fin (2 ^ width)) (j : Fin width) :

The fixed-width little-endian word at a finite enumeration index.

Equations
Instances For
    def Algebraic.Cutwidth.Extractor.sourceReductionWordIndex (width : ℕ) (word : Fin width → Bool) :
    Fin (2 ^ width)

    The exact finite index of a Boolean word under little-endian enumeration.

    Equations
    Instances For
      def Algebraic.Cutwidth.Extractor.sourceReductionAdvice (outerBits candidateBits : ℕ) (position : Fin (2 ^ outerBits) × Fin (2 ^ candidateBits)) :

      Concatenate the outer and candidate codes to give unique equal-length advice.

      Equations
      Instances For