Documentation

LeanPool.BrillNoetherGraphs.LowGenus.PairedCoverReplay

Paired replay of integral closed-cover receipts #

Each leaf pairs its receipt indices with the cone rows in order. The active rows stay shared across the receipt checks, and each check looks up the appended violation separately. The soundness theorem transfers the result back to the existing compact-tree checker.

The generated proofs state the initial context once in a paired check. Their wrappers recover the original check proposition by applying soundness and retain the original auxiliary proof declaration with as_aux_lemma.

def Utilities.Certificate.AffineCover.FarkasData.integralSumBy {dimension : ℕ} (data : FarkasData) (rows : ℕ → AffineForm dimension) (coefficient : AffineForm dimension → ℤ) :

Sum one coordinate of the sparse integral combination without an intermediate list.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    def Utilities.Certificate.AffineCover.FarkasData.checkIntegralLookup {dimension : ℕ} (data : FarkasData) (rowCount : ℕ) (rows : ℕ → AffineForm dimension) :

    Replay the integral combination with an abstract lookup for active rows.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def Utilities.Certificate.AffineCover.FarkasData.lookupWithLast {dimension : ℕ} (rows : List (AffineForm dimension)) (last : AffineForm dimension) (index : ℕ) :
      AffineForm dimension

      Look up an existing row or the separately supplied final row.

      Equations
      Instances For
        def Utilities.Certificate.AffineCover.FarkasData.checkWithLast {dimension : ℕ} (data : FarkasData) (rows : List (AffineForm dimension)) (last : AffineForm dimension) :

        Replay integral Farkas data while looking up the extra inequality separately.

        Equations
        Instances For
          theorem Utilities.Certificate.AffineCover.FarkasData.checkWithLast_sound {dimension : ℕ} (data : FarkasData) (rows : List (AffineForm dimension)) (last : AffineForm dimension) (checked : data.checkWithLast rows last = true) :
          data.check (rows ++ [last]) = true

          The separate lookup checks the same rows as an appended inequality.

          def Utilities.Certificate.AffineCover.FarkasData.checkOpposite {dimension : ℕ} (data : FarkasData) (active : List (AffineForm dimension)) (form : AffineForm dimension) :

          Recognize the unit-weight contradiction between an active row and its closed violation.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def Utilities.Certificate.AffineCover.FarkasData.checkViolation {dimension : ℕ} (data : FarkasData) (active : List (AffineForm dimension)) (form : AffineForm dimension) :

            Use the unit-weight identity for matching rows and the integral check for other receipts.

            Equations
            Instances For
              theorem Utilities.Certificate.AffineCover.FarkasData.checkWithLast_of_checkViolation {dimension : ℕ} (data : FarkasData) (active : List (AffineForm dimension)) (form : AffineForm dimension) (checked : data.checkViolation active form = true) :
              data.checkWithLast active form.violation = true

              The shortcut establishes the same integral receipt check.

              noncomputable def Utilities.Certificate.AffineCover.FarkasData.checkKernelOpposite {dimension : ℕ} (data : FarkasData) (active : List (AffineForm dimension)) (form : AffineForm dimension) :

              Replay two unit-weight rows with proof-free integer comparisons.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                theorem Utilities.Certificate.AffineCover.FarkasData.checkKernelOpposite_eq {dimension : ℕ} (data : FarkasData) (active : List (AffineForm dimension)) (form : AffineForm dimension) :
                data.checkKernelOpposite active form = data.checkOpposite active form

                Pair cone inequalities and receipt indices directly during tree replay.

                Equations
                Instances For

                  Pairwise traversal establishes the existing tree check for the same receipt lookup.

                  Pair receipts and cone rows in a single traversal that also checks their lengths.

                  Equations
                  Instances For

                    Replay leaves with the unit-weight shortcut for an active row and its violation.

                    Equations
                    Instances For

                      A replay using opposite rows still proves the paired check for each leaf.

                      @[instance_reducible]

                      Decide the paired checker through the unit-weight shortcut when it succeeds.

                      Equations
                      Instances For

                        Match each cone inequality to its verified receipt in one pass.

                        Equations
                        Instances For

                          Replay tree leaves with proof-free integer tests and a supplied cone lookup.

                          Equations
                          Instances For
                            theorem AtanasovRanganathan.GenusFiveClosedCover.CompactCellTree.checkKernelTree_eq {vertices edges : ℕ} {core : Utilities.Certificate.ExplicitPotential.Core vertices edges} (tree : CompactCellTree) (forms : List (Utilities.Certificate.AffineCover.AffineForm edges)) (lookup : ℕ → Utilities.Certificate.AffineCover.FarkasData) (cells : List (CoordinateCell core)) (active : List (Utilities.Certificate.AffineCover.AffineForm edges)) (cellCount : ℕ) (coneAt : ℕ → List (Utilities.Certificate.AffineCover.AffineForm edges)) (count_eq : cellCount = cells.length) (cone_eq : ∀ (index : ℕ), coneAt index = CellTree.coneAt cells index) :
                            tree.checkKernelTree forms lookup cellCount coneAt active = tree.checkWithOpposites forms lookup cells active
                            noncomputable def AtanasovRanganathan.GenusFiveClosedCover.CompactCellTree.decidableCheckPairedKernelWithLookup {vertices edges : ℕ} {core : Utilities.Certificate.ExplicitPotential.Core vertices edges} (tree : CompactCellTree) (forms : List (Utilities.Certificate.AffineCover.AffineForm edges)) (lookup : ℕ → Utilities.Certificate.AffineCover.FarkasData) (cells : List (CoordinateCell core)) (active : List (Utilities.Certificate.AffineCover.AffineForm edges)) (cellCount : ℕ) (coneAt : ℕ → List (Utilities.Certificate.AffineCover.AffineForm edges)) (count_eq : cellCount = cells.length) (cone_eq : ∀ (index : ℕ), coneAt index = CellTree.coneAt cells index) :
                            Decidable (tree.checkPaired forms lookup cells active = true)

                            Use a verified index for cone lookup in the kernel replay.

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

                              Decide paired replay using proof-free comparisons in the unit-weight case.

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