Documentation

LeanPool.BrillNoetherGraphs.LowGenus.IndexedCellReplay

Indexed replay of closed-cover cell rows #

The generated hints specify either a zero affine form or a row in the cell's cone. For a witness with zero slopes and zero potentials, all its row forms are zero. The transfer lemma recovers the original Boolean check in both cases.

def Utilities.Certificate.AffineCover.AffineForm.checkMembershipAtHint {dimension : ℕ} (form : AffineForm dimension) (cone : List (AffineForm dimension)) (hint : ℕ) :

Check zero for a zero hint and look up the specified row for a positive hint.

Equations
Instances For
    theorem Utilities.Certificate.AffineCover.AffineForm.checkMembershipAt_of_checkMembershipAtHint {dimension : ℕ} (form : AffineForm dimension) (cone : List (AffineForm dimension)) (hint : ℕ) (checked : form.checkMembershipAtHint cone hint = true) :
    form.checkMembershipAt cone hint = true

    A successful direct lookup also satisfies the original membership checker.

    noncomputable def Utilities.Certificate.AffineCover.AffineForm.kernelMembership {dimension : ℕ} (form : AffineForm dimension) (cone : List (AffineForm dimension)) (hint : ℕ) :

    Check a zero row or its indexed witness with kernel integer comparisons.

    Equations
    Instances For
      theorem Utilities.Certificate.AffineCover.AffineForm.kernelMembership_eq {dimension : ℕ} (form : AffineForm dimension) (cone : List (AffineForm dimension)) (hint : ℕ) :
      form.kernelMembership cone hint = form.checkMembershipAtHint cone hint
      def Utilities.Certificate.ExplicitPotential.CertificateData.isZeroWitness {dimension vertices edges : ℕ} (witness : AnchorWitness dimension vertices edges) :

      Recognize the shared witness with zero slopes and zero vertex potentials.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Utilities.Certificate.ExplicitPotential.CertificateData.checkClosedRowsAtHints {dimension vertices edges : ℕ} (certificate : CertificateData dimension vertices edges) (degree : ℤ) (indices : List (List ℕ)) :

        Check the cell rows by direct lookup, guided by the generated hints.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem Utilities.Certificate.ExplicitPotential.CertificateData.checkClosedRows_of_checkClosedRowsAtHints {dimension vertices edges : ℕ} {certificate : CertificateData dimension vertices edges} {degree : ℤ} {indices : List (List ℕ)} (checked : certificate.checkClosedRowsAtHints degree indices = true) :
          certificate.checkClosedRows degree indices = true

          Directly checked hints establish the original cell row checks.

          def Utilities.Certificate.ExplicitPotential.CertificateData.checkEndpointRowsAtHints {dimension vertices edges : ℕ} (certificate : CertificateData dimension vertices edges) (anchor : Fin vertices) (edge : Fin edges) (lowerHint upperHint : ℕ) :

          When both slopes vanish, one zero-rise check certifies both zero endpoint rows.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def Utilities.Certificate.ExplicitPotential.CertificateData.checkClosedRowsAtPairedHints {dimension vertices edges : ℕ} (certificate : CertificateData dimension vertices edges) (degree : ℤ) (indices : List (List ℕ)) :

            Replay the two zero endpoint rows of a zero-slope edge together.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem Utilities.Certificate.ExplicitPotential.CertificateData.checkClosedRowsAtHints_of_checkClosedRowsAtPairedHints {dimension vertices edges : ℕ} {certificate : CertificateData dimension vertices edges} {degree : ℤ} {indices : List (List ℕ)} (checked : certificate.checkClosedRowsAtPairedHints degree indices = true) :
              certificate.checkClosedRowsAtHints degree indices = true

              The paired check certifies the original direct hint check.

              @[instance_reducible]
              def Utilities.Certificate.ExplicitPotential.CertificateData.decidableCheckClosedRowsAtHints {dimension vertices edges : ℕ} (certificate : CertificateData dimension vertices edges) (degree : ℤ) (indices : List (List ℕ)) :
              Decidable (certificate.checkClosedRowsAtHints degree indices = true)

              Decide direct cell hints using one shared check for pairs of zero forms.

              Equations
              Instances For
                @[instance_reducible]
                def Utilities.Certificate.ExplicitPotential.CertificateData.decidableCheckClosedRows {dimension vertices edges : ℕ} (certificate : CertificateData dimension vertices edges) (degree : ℤ) (indices : List (List ℕ)) :
                Decidable (certificate.checkClosedRows degree indices = true)

                Decide the indexed row checker through direct hints when they suffice.

                Equations
                Instances For
                  noncomputable def Utilities.Certificate.ExplicitPotential.CertificateData.kernelZeroWitness {dimension vertices edges : ℕ} (witness : AnchorWitness dimension vertices edges) :

                  Recognize the zero witness using direct folds and kernel integer comparisons.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    noncomputable def Utilities.Certificate.ExplicitPotential.CertificateData.kernelEndpointRows {dimension vertices edges : ℕ} (certificate : CertificateData dimension vertices edges) (anchor : Fin vertices) (edge : Fin edges) (lowerHint upperHint : ℕ) :

                    Check paired endpoint rows with kernel-specialized comparisons.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      theorem Utilities.Certificate.ExplicitPotential.CertificateData.kernelEndpointRows_eq {dimension vertices edges : ℕ} (certificate : CertificateData dimension vertices edges) (anchor : Fin vertices) (edge : Fin edges) (lowerHint upperHint : ℕ) :
                      certificate.kernelEndpointRows anchor edge lowerHint upperHint = certificate.checkEndpointRowsAtHints anchor edge lowerHint upperHint
                      noncomputable def Utilities.Certificate.ExplicitPotential.CertificateData.checkClosedRowsKernel {dimension vertices edges : ℕ} (certificate : CertificateData dimension vertices edges) (degree : ℤ) (indices : List (List ℕ)) :

                      Replay the explicit cell hints with kernel-specialized comparisons.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        theorem Utilities.Certificate.ExplicitPotential.CertificateData.checkClosedRowsKernel_eq {dimension vertices edges : ℕ} (certificate : CertificateData dimension vertices edges) (degree : ℤ) (indices : List (List ℕ)) :
                        certificate.checkClosedRowsKernel degree indices = certificate.checkClosedRowsAtPairedHints degree indices
                        @[instance_reducible]
                        noncomputable def Utilities.Certificate.ExplicitPotential.CertificateData.decidableCheckClosedRowsKernel {dimension vertices edges : ℕ} (certificate : CertificateData dimension vertices edges) (degree : ℤ) (indices : List (List ℕ)) :
                        Decidable (certificate.checkClosedRowsAtHints degree indices = true)

                        Decide cell hints using the kernel-specialized checker when it succeeds.

                        Equations
                        Instances For
                          @[instance_reducible]
                          noncomputable def Utilities.Certificate.ExplicitPotential.CertificateData.decidableCheckClosedRowsIndexedKernel {dimension vertices edges : ℕ} (certificate : CertificateData dimension vertices edges) (degree : ℤ) (indices : List (List ℕ)) :
                          Decidable (certificate.checkClosedRows degree indices = true)

                          Decide indexed rows using the kernel-specialized checker when it succeeds.

                          Equations
                          Instances For