Documentation

BalancedVectors.Definitions.Basic

WARNING #

This repo contains AI generated proofs which may contain errors. To trust the claimed main result, and for it to be meaningful to have Lean check the actual proofs you must read, understand, and validate the content of this file.

Weak Compositions and Symmetric Log-Concave Functions #

This file defines weak compositions of an integer d into n parts, along with symmetric log-concave functions on the space of weak compositions.

Main definitions #

Implementation notes #

We use for entries rather than to simplify arithmetic in proofs, particularly when dealing with the modify operation that transfers units between positions.

structure WeakComposition (n : ) (d : ) :

A weak composition of d into n parts is a vector e : Fin n → ℤ with ∑ eᵢ = d and all entries non-negative.

  • toFun : Fin n

    The underlying function from indices to integer values.

  • sum_eq : i : Fin n, self.toFun i = d

    The entries sum to d.

  • nonneg (i : Fin n) : 0 self.toFun i

    All entries are non-negative.

Instances For
    def WeakComposition.concentrated {d : } {n : } (hd : 0 d) (k : Fin n) :

    The concentrated vector: all zeros except d at position k.

    Equations
    Instances For
      def WeakComposition.modify {n : } {d : } (e : WeakComposition n d) (i j : Fin n) (hi : 1 e.toFun i) (hij : i j) :

      Modify a composition by transferring one unit from position i to position j.

      Equations
      Instances For
        def IsSymmetric {n : } {d : } (D : WeakComposition n d) :

        A function on weak compositions that is symmetric under the Sₙ action.

        Equations
        Instances For
          def SatisfiesLogConcavity {n : } {d : } (D : WeakComposition n d) :

          The log-concavity condition for D.

          Equations
          Instances For
            def IsStrictlyPositive {n : } {d : } (D : WeakComposition n d) :

            D is strictly positive.

            Equations
            Instances For
              structure SymmetricLogConcaveFunction (n : ) (d : ) :

              A function D on weak compositions satisfying the three conditions: Sₙ-symmetry, log-concavity, and strict positivity.

              Instances For

                Auxiliary Definitions for Main Statement #

                def IsBalanced {n : } (e : Fin n) :

                A vector is balanced if all entries differ by at most 1.

                Equations
                Instances For
                  def IsConcentrated {n : } (d : ) (e : Fin n) :

                  A vector is concentrated if it equals d • δₖ for some k.

                  Equations
                  Instances For