Documentation

LeanPool.OddPrimeValuationDistribution.ValuationBlocks

Exact central-binomial valuation distributions for odd primes #

For the odd prime p = 2 * half + 1, this module identifies fixed-length base-p words with the integers below p ^ length. Kummer's theorem turns the word carry count into the exact value of ν_p (centralBinom n), so the transfer recurrence becomes an arithmetic distribution theorem.

def OddPrimeValuationDistribution.oddCarryWordValue {half length : } (word : List.Vector (Fin (oddBase half)) length) :

Natural value of a fixed-length word in the odd base 2 * half + 1.

Equations
Instances For
    theorem OddPrimeValuationDistribution.oddCarryWordValue_lt {half length : } (hhalf : 0 < half) (word : List.Vector (Fin (oddBase half)) length) :
    oddCarryWordValue word < oddBase half ^ length
    def OddPrimeValuationDistribution.oddCarryWordValueFin {half length : } (hhalf : 0 < half) (word : List.Vector (Fin (oddBase half)) length) :
    Fin (oddBase half ^ length)

    The word value packaged in the corresponding complete finite block.

    Equations
    Instances For
      noncomputable def OddPrimeValuationDistribution.oddCarryWordValueEquiv (half : ) (hhalf : 0 < half) (length : ) :
      List.Vector (Fin (oddBase half)) length Fin (oddBase half ^ length)

      Positional notation is a bijection from fixed-length odd-base words to the corresponding complete block of natural numbers.

      Equations
      Instances For

        Polynomial distribution of exact odd-prime valuations on the complete block 0 ≤ n < p ^ length.

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

          The odd-prime valuation distribution is exactly the doubling-carry distribution.

          @[reducible, inline]

          Integers in a complete odd-prime block with a prescribed exact central-binomial valuation.

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

            Literal coefficient interpretation of the odd-prime valuation polynomial.

            theorem OddPrimeValuationDistribution.oddPrimeValuationPolynomial_recurrence (half : ) (hhalf : 0 < half) [Fact (Nat.Prime (oddBase half))] (length : ) :
            oddPrimeValuationPolynomial half (length + 2) + (oddBase half) * Polynomial.X * oddPrimeValuationPolynomial half length = ↑(half + 1) * (1 + Polynomial.X) * oddPrimeValuationPolynomial half (length + 1)

            Headline exact-distribution recurrence for every odd prime p = 2 * half + 1.