Documentation

Complexity.Computability.Circuit.Boolean.Iteration.CounterChart.Decode

Decoding sparse interval coordinates, including intervals crossing phase zero #

Main definitions #

Main results #

References #

Additive inverse of the initial phase modulo the cycle length.

Instances For
    @[simp]

    The natural-number value of chart.negativePhase j is the additive inverse of the initial phase of interval j modulo its cycle length.

    Distance from the interval start, modulo its cycle length.

    Instances For
      noncomputable def Cslib.Circuits.Boolean.Iteration.CounterIntervalChart.decodedRow {n R : ℕ} {f : BitVec n → BitVec n} (chart : CounterIntervalChart f R) (j : Fin R) (p : BitVec (chartWidth n)) :

      Recover the word by adding the phase distance to the interval start.

      Instances For
        noncomputable def Cslib.Circuits.Boolean.Iteration.CounterIntervalChart.decodeFlag {n R : ℕ} {f : BitVec n → BitVec n} (chart : CounterIntervalChart f R) (j : Fin R) (rep : BitVec n) (p : BitVec (chartWidth n)) :

        Test the representative and whether the phase distance lies in the interval.

        Instances For
          noncomputable def Cslib.Circuits.Boolean.Iteration.CounterIntervalChart.decode {n R : ℕ} {f : BitVec n → BitVec n} (chart : CounterIntervalChart f R) (rep : BitVec n) (p : BitVec (chartWidth n)) :

          Select a matching interval and return its decoded word.

          Instances For

            Decoding the canonical cycle representative and phase of y recovers the bits of y.