Documentation

LeanPool.BrillNoetherGraphs.Bananas.CrossOneOff.CrossOneOffFiniteCountSol

Explicit coordinates for the corrected cross-one-off inversion count #

This module reparametrizes the finite rows by x = b - b / n. The preferred row over x is x + x / (n - 1); at multiples of n - 1 there is also the immediately preceding row. This is the combinatorial skeleton behind the count choose (g - 1) 2 + g / (n - 1).

The preferred row with compressed coordinate x.

Equations
Instances For

    A row strictly before the preferred row over x, chosen so that it is never a multiple of n. At a multiple of n-1 it is the exceptional -1-residue row; otherwise it is the preferred row itself.

    Equations
    Instances For
      theorem Bananas.crossOneOffColumnPosition_row {g n x : ℕ} (hn : 2 ≤ n) (hxg : x ≤ g) :
      crossOneOffRow g n (crossOneOffColumnPosition n x) = if x % (n - 1) = 0 then x / (n - 1) + 1 else g + x / (n - 1) + 2 - x
      theorem Bananas.crossOneOffPredecessorPosition_row {g n x : ℕ} (hn : 3 ≤ n) (hx : 2 ≤ x) (hxg : x ≤ g) :
      crossOneOffRow g n (crossOneOffPredecessorPosition n x) = if x % (n - 1) = 0 then g + x / (n - 1) else g + x / (n - 1) + 2 - x

      A predecessor row at compressed coordinate y and a column row at a larger compressed coordinate x form one of the forced inversions.

      noncomputable def Bananas.crossOneOffTriangularPair (n g : ℕ) :
      Sym2 (Fin (g - 2)) → ℕ × ℕ

      The triangular family of inversions indexed by unordered pairs in {2, ..., g-1}.

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

        The additional adjacent high-to-low inversion over the ith complete column.

        Equations
        Instances For
          @[reducible, inline]

          The two disjoint families used in the corrected count.

          Equations
          Instances For
            noncomputable def Bananas.crossOneOffCountPair (n g F : ℕ) :

            Send a triangular or adjacent-pair counting index to its corresponding pair of natural numbers.

            Equations
            Instances For

              Corrected finite forced-row count for strand lengths at least three.

              Pure arithmetic certificate requested by the corrected Corollary 4.31, valid for every strand length at least two.