Documentation

Complexitylib.Classes.PPoly.Oracle.Evaluation.OutputMatch.Defs

Serialized output-match evaluator queries -- definitions #

A fixed gate count lets a live raw-gate stream be extended by the two-gate output-match fragment without computing on its code bits. The source circuit copies that stream, inserts the incremented count and fixed gate fields, and uses the live expected bit positively in both negation fields of the mismatch gate. The resulting tagged family code and its argument feed the verified serialized evaluator oracle.

Input width of a raw-gate body, evaluator argument, and expected bit.

Equations
Instances For
    def Complexity.CircuitCode.EvaluationOracleCircuit.OutputMatchBranch.bodySource (bodyWidth inputWidth : ) (coordinate : Fin bodyWidth) :
    Circuit.InputSource (sourceInputWidth bodyWidth inputWidth)

    Source of one raw-gate-body bit.

    Equations
    Instances For
      def Complexity.CircuitCode.EvaluationOracleCircuit.OutputMatchBranch.argumentSource (bodyWidth inputWidth : ) (coordinate : Fin inputWidth) :
      Circuit.InputSource (sourceInputWidth bodyWidth inputWidth)

      Source of one evaluator-argument bit.

      Equations
      Instances For

        Source of the expected output bit after the evaluator argument.

        Equations
        Instances For
          def Complexity.CircuitCode.EvaluationOracleCircuit.OutputMatchBranch.sourceInput {bodyWidth inputWidth : } (body : BitString bodyWidth) (input : BitString inputWidth) (expected : Bool) :
          BitString (sourceInputWidth bodyWidth inputWidth)

          Pack a raw-gate body, evaluator argument, and expected output bit.

          Equations
          Instances For

            Source-level encoding of a copy gate with one live negation bit.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              Source list spelling the tagged family code for a live-bit output match.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                Width of the tagged output-match family code.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  instance Complexity.CircuitCode.EvaluationOracleCircuit.OutputMatchBranch.instNeZeroNatCodeWidth (gateCount bodyWidth inputWidth : ) :
                  NeZero (codeWidth gateCount bodyWidth inputWidth)
                  def Complexity.CircuitCode.EvaluationOracleCircuit.OutputMatchBranch.codeSources (gateCount bodyWidth inputWidth : ) :
                  Fin (codeWidth gateCount bodyWidth inputWidth)Circuit.InputSource (sourceInputWidth bodyWidth inputWidth)

                  Fixed-width view of the output-match code source list.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def Complexity.CircuitCode.EvaluationOracleCircuit.OutputMatchBranch.querySources (gateCount bodyWidth inputWidth : ) :
                    Fin (packedWidth (codeWidth gateCount bodyWidth inputWidth) inputWidth)Circuit.InputSource (sourceInputWidth bodyWidth inputWidth)

                    Output-match family-code sources followed by argument sources.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      def Complexity.CircuitCode.EvaluationOracleCircuit.OutputMatchBranch.queryCircuit (gateCount bodyWidth inputWidth : ) :
                      Circuit Basis.andOr2 (sourceInputWidth bodyWidth inputWidth) (packedWidth (codeWidth gateCount bodyWidth inputWidth) inputWidth) 0

                      Source circuit producing the evaluator adapter's packed input.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        def Complexity.CircuitCode.EvaluationOracleCircuit.OutputMatchBranch.compile (oracle : PolynomialCircuitOracle circuitEvalLanguage) (gateCount bodyWidth inputWidth : ) :
                        (internalGates : ) × Circuit Basis.andOr2 (sourceInputWidth bodyWidth inputWidth) 1 internalGates

                        Compose the output-match query sources with the serialized evaluator oracle member selected by their exact width.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For

                          Semantic tagged family code emitted for a gate body and expected bit.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            def Complexity.CircuitCode.EvaluationOracleCircuit.OutputMatchBranch.codeValue {bodyWidth inputWidth : } (gateCount : ) (body : BitString bodyWidth) (input : BitString inputWidth) (expected : Bool) :
                            BitString (codeWidth gateCount bodyWidth inputWidth)

                            Semantic family-code bit string produced by the code sources.

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For