Documentation

LeanPool.GapCVP.Part05A

GapCVP proof, part 05 #

Step budget for indexing a well-formed unary pair.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    def GapCVP.CNFUnaryPairIndexTotalRuntimeCert.unaryPairFailureTrace (input first second matchedFirst matchedSecond base outer scratch : List Bool) :
    StateTransition.EvalsToInTime CNFUnaryPairIndexTM.actualUnaryPairIndexMachine.step (CNFUnaryPairIndexTM.unaryPairConfiguration 11 input first second matchedFirst matchedSecond base outer [] scratch) (some (Turing.haltList CNFUnaryPairIndexTM.actualUnaryPairIndexMachine [])) (input.length + first.length + second.length + matchedFirst.length + matchedSecond.length + base.length + outer.length + scratch.length + 1)

    Clears the stacks after invalid unary-pair input and halts empty.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def GapCVP.CNFUnaryPairIndexTotalRuntimeCert.unaryPairFirstMissingTrace (count : ℕ) (first second matchedFirst matchedSecond base outer output scratch : List Bool) :
      StateTransition.EvalsToInTime CNFUnaryPairIndexTM.actualUnaryPairIndexMachine.step (CNFUnaryPairIndexTM.unaryPairConfiguration 0 (List.replicate count true) first second matchedFirst matchedSecond base outer output scratch) (some (CNFUnaryPairIndexTM.unaryPairConfiguration 11 [] (List.replicate count true ++ first) second matchedFirst matchedSecond base outer output scratch)) (count + 1)

      Detects a first unary component with no delimiter.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def GapCVP.CNFUnaryPairIndexTotalRuntimeCert.unaryPairSecondMissingTrace (count : ℕ) (first second matchedFirst matchedSecond base outer output scratch : List Bool) :
        StateTransition.EvalsToInTime CNFUnaryPairIndexTM.actualUnaryPairIndexMachine.step (CNFUnaryPairIndexTM.unaryPairConfiguration 1 (List.replicate count true) first second matchedFirst matchedSecond base outer output scratch) (some (CNFUnaryPairIndexTM.unaryPairConfiguration 11 [] first (List.replicate count true ++ second) matchedFirst matchedSecond base outer output scratch)) (count + 1)

        Detects a second unary component with no delimiter.

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

          Quadratic step budget for the unary-pair index machine on arbitrary input.

          Equations
          Instances For

            GapCVP reduction support.

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

              GapCVP reduction support.

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

                GapCVP reduction support.

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

                  GapCVP reduction support.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def GapCVP.CNFSourcePairPrefixWorkerTM.sourcePairPrefixPeek (stack : Fin 4) (present absent : Turing.TM2.Stmt (fun (x : Fin 4) => Bool) (Fin 6) (Option Bool)) :
                    Turing.TM2.Stmt (fun (x : Fin 4) => Bool) (Fin 6) (Option Bool)

                    Inspects a source-pair prefix stack and branches on whether a bit is present.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      def GapCVP.CNFSourcePairPrefixWorkerTM.sourcePairPrefixPop (stack : Fin 4) (continuation : Turing.TM2.Stmt (fun (x : Fin 4) => Bool) (Fin 6) (Option Bool)) :
                      Turing.TM2.Stmt (fun (x : Fin 4) => Bool) (Fin 6) (Option Bool)

                      Removes the top bit of a source-pair prefix stack.

                      Equations
                      Instances For
                        def GapCVP.CNFSourcePairPrefixWorkerTM.sourcePairPrefixPush (stack : Fin 4) (bit : Bool) (continuation : Turing.TM2.Stmt (fun (x : Fin 4) => Bool) (Fin 6) (Option Bool)) :
                        Turing.TM2.Stmt (fun (x : Fin 4) => Bool) (Fin 6) (Option Bool)

                        Pushes the given bit onto a source-pair prefix stack.

                        Equations
                        Instances For

                          Clears the inspected bit and enters the chosen source-pair prefix phase.

                          Equations
                          Instances For

                            Internal support shared across GapCVP continuation modules.

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

                              Internal support shared across GapCVP continuation modules.

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

                                Internal support shared across GapCVP continuation modules.

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

                                  Internal support shared across GapCVP continuation modules.

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

                                    Internal support shared across GapCVP continuation modules.

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

                                      Internal support shared across GapCVP continuation modules.

                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For
                                        @[reducible, inline]

                                        Internal support shared across GapCVP continuation modules.

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

                                          Internal support shared across GapCVP continuation modules.

                                          Equations
                                          Instances For

                                            Executes the sourcePairPrefixStepTac machine-step simplifier.

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

                                              Internal support shared across GapCVP continuation modules.

                                              Internal support shared across GapCVP continuation modules.

                                              Internal support shared across GapCVP continuation modules.

                                              Internal support shared across GapCVP continuation modules.

                                              Internal support shared across GapCVP continuation modules.

                                              Internal support shared across GapCVP continuation modules.

                                              theorem GapCVP.CNFSourcePairPrefixWorkerTM.sourcePairPrefix_suffix_step (bit : Bool) (input first second output : List Bool) :
                                              actualSourcePairPrefixMachine.step (sourcePairPrefixConfiguration 2 (bit :: input) first second output) = some (sourcePairPrefixConfiguration 2 input first second output)

                                              Internal support shared across GapCVP continuation modules.

                                              Internal support shared across GapCVP continuation modules.

                                              Internal support shared across GapCVP continuation modules.

                                              Internal support shared across GapCVP continuation modules.

                                              Internal support shared across GapCVP continuation modules.

                                              theorem GapCVP.CNFSourcePairPrefixWorkerTM.sourcePairPrefix_failure_input_step (bit : Bool) (input first second output : List Bool) :
                                              actualSourcePairPrefixMachine.step (sourcePairPrefixConfiguration 5 (bit :: input) first second output) = some (sourcePairPrefixConfiguration 5 input first second output)

                                              Internal support shared across GapCVP continuation modules.

                                              Internal support shared across GapCVP continuation modules.

                                              Internal support shared across GapCVP continuation modules.