Documentation

CslibFrontier.Computability.PolyTime.CSP.CyclicDifference.Parity

Native list-funded parity-chain construction #

The actual recursive chain has an equivalent bounded map implementation. Every iteration count and auxiliary offset is unary and funded by the supplied boundary list. Scope names and the output use binary naturals. Only the four constant tables of widths zero through three occur; no exponentially large white-face table is constructed.

Constant-size parity lookup, with a total width-three fallback.

Instances For

    Scope of one chain cell. The row index and fresh offset are internally unary.

    Instances For
      theorem Cslib.Complexity.CSP.CyclicCompiler.parityChainTail_eq_map (fresh first : ℕ) (rest : List ℕ) :
      Logic.PL.CSP.Table.parityChainTail fresh first rest = List.map (fun (i : ℕ) => (smallEvenTable (min 3 (rest.length + 1)), chainScope fresh first rest i)) (List.range (max 1 (rest.length - 1)))

      Exact bounded-map implementation of the recursive chain tail.

      @[reducible, inline]

      Framed unary fresh offset, framed binary first name and binary remaining scope.

      Instances For