Documentation

LeanPool.BrillNoetherGraphs.Utilities.Subdivision.IndexedClosedCheck

Shared and indexed replay of closed affine certificates #

Slope and endpoint checks depend on the core, divisor, anchor and witness, independently of the cone. A checked witness pool shares those calculations across cells. Each cell proves that its witness selection belongs to the pool and checks its remaining affine rows using explicit hints.

The generated closed covers list their coordinate segment forms first. Other required forms are zero or occur in the cone. Zero forms finish without reading a hint. When a cone row is used, the checker tests its bound and affine equality. The soundness theorem recovers the original checker result, including every cached geometry condition.

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

Accept zero forms immediately, or check cone row index with hint index + 1.

Equations
Instances For
    theorem Utilities.Certificate.AffineCover.AffineForm.checkMembershipAt_sound {dimension : ℕ} (form : AffineForm dimension) (cone : List (AffineForm dimension)) (index : ℕ) (checked : form.checkMembershipAt cone index = true) :
    form = 0 ∨ form ∈ cone

    An accepted hint proves the original zero-or-membership condition.

    def Utilities.Certificate.ExplicitPotential.CertificateData.checkAnchorWitness {dimension vertices edges : ℕ} (core : Core vertices edges) (divisor : Fin vertices → ℤ) (witness : AnchorWitness dimension vertices edges) (anchor : Fin vertices) :

    Cone-independent slope and endpoint checks for one anchored witness.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def Utilities.Certificate.ExplicitPotential.CertificateData.checkWitnessPool {dimension vertices edges : ℕ} (core : Core vertices edges) (divisor : Fin vertices → ℤ) (witnesses : List (AnchorWitness dimension vertices edges)) (fallback : AnchorWitness dimension vertices edges) (allowed : List (List ℕ)) :

      Check each used anchor/witness pair once, independently of its cell's cone.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem Utilities.Certificate.ExplicitPotential.CertificateData.checkWitnessSelection {dimension vertices edges : ℕ} (core : Core vertices edges) (divisor : Fin vertices → ℤ) (witnesses : List (AnchorWitness dimension vertices edges)) (fallback : AnchorWitness dimension vertices edges) (allowed : List (List ℕ)) (selection : List ℕ) (poolChecked : checkWitnessPool core divisor witnesses fallback allowed = true) (selectionChecked : (allFin fun (anchor : Fin vertices) => decide (selection.getD (↑anchor) 0 ∈ allowed.getD ↑anchor [])) = true) (anchor : Fin vertices) :
        checkAnchorWitness core divisor (witnesses.getD (selection.getD (↑anchor) 0) fallback) anchor = true

        A selection from a checked pool reuses its verified anchor geometry.

        def Utilities.Certificate.ExplicitPotential.CertificateData.checkClosedRows {dimension vertices edges : ℕ} (certificate : CertificateData dimension vertices edges) (degree : ℤ) (indices : List (List ℕ)) :

        Check the loop, degree, segment and affine rows after sharing anchor geometry.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem Utilities.Certificate.ExplicitPotential.CertificateData.checkClosedRows_sound {dimension vertices edges : ℕ} (certificate : CertificateData dimension vertices edges) (degree : ℤ) (indices : List (List ℕ)) (anchorChecks : ∀ (anchor : Fin vertices), checkAnchorWitness certificate.core certificate.divisor (certificate.witness anchor) anchor = true) (checked : certificate.checkClosedRows degree indices = true) :
          certificate.checkClosed degree = true

          Cached anchor geometry and indexed rows recover the original closed-certificate check.