Documentation

Complexitylib.Metacomplexity.NisanWigderson.Reconstruction.Defs

Nisan--Wigderson fixed-advice reconstruction -- definitions #

The finite next-bit experiment initially samples a full NW seed and full output tail. A reconstruction circuit instead fixes only seed coordinates outside the challenge block and tail coordinates after the predicted bit. Earlier generator values are supplied by the overlap-indexed predecessor tables.

def Complexity.NWDesign.outsideCoordinates {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (current : Fin outputLength) :
Finset (Fin seedLength)

Seed coordinates outside the challenged design block.

Equations
Instances For
    def Complexity.NWDesign.laterCoordinates {outputLength : } (current : Fin outputLength) :
    Finset (Fin outputLength)

    Output coordinates strictly after the predicted coordinate.

    Equations
    Instances For
      def Complexity.NWDesign.outsideSeed {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (current : Fin outputLength) (outside : (design.outsideCoordinates current)Bool) :
      Fin seedLengthBool

      Extend an assignment to the outside seed coordinates by false before inserting the challenge.

      Equations
      Instances For
        def Complexity.NWDesign.reconstructionSeed {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (current : Fin outputLength) (outside : (design.outsideCoordinates current)Bool) (challenge : Fin inputLengthBool) :
        Fin seedLengthBool

        Assemble a full seed from an outside assignment and a challenge on the current design block.

        Equations
        Instances For
          def Complexity.NWDesign.laterTail {outputLength : } (current : Fin outputLength) (later : (laterCoordinates current)Bool) :
          Fin outputLengthBool

          Extend later output bits by false at and before the predicted coordinate.

          Equations
          Instances For
            def Complexity.NWDesign.reconstructionBackground {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (current : Fin outputLength) (outside : (design.outsideCoordinates current)Bool) (later : (laterCoordinates current)Bool) (challenge : Fin inputLengthBool) :
            BitGenerator.CandidateBackground seedLength outputLength current

            Candidate background assembled from exactly the fixed outside-seed and later-tail assignments, together with a varying challenge.

            Equations
            Instances For
              def Complexity.NWDesign.reconstructionQuery {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (hardFunction : (Fin inputLengthBool)Bool) (current : Fin outputLength) (outside : (design.outsideCoordinates current)Bool) (later : (laterCoordinates current)Bool) (challenge : Fin inputLengthBool) (candidate : Bool) :
              Fin outputLengthBool

              Query assembled from hardwired predecessor tables, the independent candidate, and fixed later bits.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                def Complexity.NWDesign.reconstructionTestAtCandidate {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (hardFunction : (Fin inputLengthBool)Bool) (test : Finset (Fin outputLengthBool)) (current : Fin outputLength) (outside : (design.outsideCoordinates current)Bool) (later : (laterCoordinates current)Bool) (challenge : Fin inputLengthBool) (candidate : Bool) :

                Test evaluation computed from the reconstruction query.

                Equations
                Instances For
                  def Complexity.NWDesign.reconstructionPredictor {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (hardFunction : (Fin inputLengthBool)Bool) (test : Finset (Fin outputLengthBool)) (current : Fin outputLength) (outside : (design.outsideCoordinates current)Bool) (later : (laterCoordinates current)Bool) (candidate : Bool) :
                  (Fin inputLengthBool)Bool

                  The fixed-advice next-bit predictor as a Boolean function of the challenge.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def Complexity.NWDesign.reconstructionDataBitsAt {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (current : Fin outputLength) :

                    Exact non-codec Boolean payload of one fixed reconstruction predictor: predecessor-table entries, later bits, outside seed bits, and the candidate.

                    Equations
                    Instances For