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).
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
- Bananas.crossOneOffPredecessorPosition n x = if x % (n - 1) = 0 then Bananas.crossOneOffColumnPosition n x - 1 else Bananas.crossOneOffColumnPosition n x
Instances For
Send a triangular or adjacent-pair counting index to its corresponding pair of natural numbers.
Equations
- Bananas.crossOneOffCountPair n g F (Sum.inl x_1) = Bananas.crossOneOffTriangularPair n g x_1
- Bananas.crossOneOffCountPair n g F (Sum.inr i) = Bananas.crossOneOffAdjacentPair n ↑i
Instances For
theorem
Bananas.correctedCrossOneOffForcedCount_le_card_of_three_le
{g n : ℕ}
(hg : 2 ≤ g)
(hn : 3 ≤ n)
:
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.