Documentation

LeanPool.BeyondBethe.BeyondBethe.MachineCertificateAssembly

Assembly of the directed certificate from its matching gain #

This module isolates the remaining combinatorial and exponential-size obligations. Given a finite-word machine for the fixed greedy matching gain, it forms the complete rational certificate logarithm. Given in addition a unary exponential guard, it returns the final canonical raw rational entry. All composition and rational-format conversions are explicit.

The source matrix word retained by the certificate interface.

Equations
Instances For

    The optimizer-output word consumed by the arithmetic subroutines.

    Equations
    Instances For
      @[simp]
      def BeyondBethe.rawCertificateLogAssembly {n : ℕ} (X : Matrix (Fin n) (Fin n) ℚ) (R C : Fin n → ℚ) (gain : ℚ) :

      Assemble the raw-rational logarithmic certificate from the row and column potentials, directed nearby-coordinate sum, structural gain, and subtracted KKT penalty.

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

        Add the encoded potential sum and nearby-matrix contribution extracted from the optimizer payload.

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

          Add the supplied gain machine's raw-rational output to the nearby-certificate sum.

          Equations
          Instances For

            Subtract the optimizer's encoded KKT penalty from the logarithmic certificate before normalization.

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

              Canonical raw-entry encoding of the complete certificate logarithm.

              Equations
              Instances For
                theorem BeyondBethe.machineCertificateLogUnnormalizedRawCode_encode {gainMachine : List Bool → List Bool} (source : List Bool) {n : ℕ} (X : Matrix (Fin n) (Fin n) ℚ) (R C : Fin n → ℚ) (hgain : gainMachine (Complexity.pair source (rationalOptimizerOutputCode { matrix := X, rowPotential := R, columnPotential := C })) = rawRatBinaryCode (rawRatOfRat (explicitCertifiedMatchingGain X))) :
                theorem BeyondBethe.machineCertificateLogRawCode_encode {gainMachine : List Bool → List Bool} (source : List Bool) {n : ℕ} (X : Matrix (Fin n) (Fin n) ℚ) (R C : Fin n → ℚ) (hgain : gainMachine (Complexity.pair source (rationalOptimizerOutputCode { matrix := X, rowPotential := R, columnPotential := C })) = rawRatBinaryCode (rawRatOfRat (explicitCertifiedMatchingGain X))) :
                machineCertificateLogRawCode gainMachine (Complexity.pair source (rationalOptimizerOutputCode { matrix := X, rowPotential := R, columnPotential := C })) = rawRatBinaryCode (rawRatOfRat (explicitDirectedCertificateLog X R C))
                def BeyondBethe.machineCertificateExpInput (gainMachine guardMachine : List Bool → List Bool) (word : List Bool) :

                Package the exponentiation guard, normalized logarithmic certificate, and optimizer-derived exponential loss.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  def BeyondBethe.machineCertificateValueRawCode (gainMachine guardMachine : List Bool → List Bool) (word : List Bool) :

                  Evaluate the bounded rational lower exponential routine on the assembled certificate input.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    theorem BeyondBethe.machineCertificateExpInput_mem_FP {gainMachine guardMachine : List Bool → List Bool} (hgain : gainMachine ∈ Complexity.FP) (hguard : guardMachine ∈ Complexity.FP) :
                    theorem BeyondBethe.machineCertificateValueRawCode_mem_FP {gainMachine guardMachine : List Bool → List Bool} (hgain : gainMachine ∈ Complexity.FP) (hguard : guardMachine ∈ Complexity.FP) :
                    theorem BeyondBethe.machineCertificateValueRawCode_encode {gainMachine guardMachine : List Bool → List Bool} (source : List Bool) {n : ℕ} (X : Matrix (Fin n) (Fin n) ℚ) (R C : Fin n → ℚ) (hgain : gainMachine (Complexity.pair source (rationalOptimizerOutputCode { matrix := X, rowPotential := R, columnPotential := C })) = rawRatBinaryCode (rawRatOfRat (explicitCertifiedMatchingGain X))) (hsteps : (rawRatOfRat (explicitDirectedCertificateLog X R C)).expApproxSteps (rawCertificateExpLoss n) ≤ (guardMachine (Complexity.pair source (rationalOptimizerOutputCode { matrix := X, rowPotential := R, columnPotential := C }))).length) :
                    machineCertificateValueRawCode gainMachine guardMachine (Complexity.pair source (rationalOptimizerOutputCode { matrix := X, rowPotential := R, columnPotential := C })) = rawRatBinaryCode (rawRatOfRat (explicitDirectedCertificateValue X R C))

                    Correctness required of the remaining fixed-gain matching transducer.

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

                      The optimizer-dependent magnitude statement still needed by the guarded exponential. It is separated from machine composition so that no universal claim about arbitrary rational potentials is hidden in the evaluator.

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

                        The guarded exponential needs to fit only on the positive normalized matrices on which the certificate theorem and the outer algorithm use it.

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