Documentation

LeanPool.Feige.NormalizedExponential

Normalized exponentials and simplex coordinates #

This file begins the change of variables behind the identification of normalized independent exponentials with the uniform simplex law. We use the product model ℝ × (Fin n → ℝ): the first target coordinate is E₀, and the remaining coordinates are Eᵢ.

The forward map is

(t,x) ↦ (t(1-∑xᵢ), fun i ↦ t xᵢ),

and its inverse divides all nonzero-total vectors by their total mass.

def Feige.exponentialTotal {n : } (e : × (Fin n)) :

Total mass of an E₀,E₁,...,Eₙ vector in product coordinates.

Equations
Instances For
    def Feige.exponentialSimplexForward {n : } (z : × (Fin n)) :
    × (Fin n)

    Polar/simplex coordinate map used for normalized exponentials.

    Equations
    Instances For
      noncomputable def Feige.exponentialSimplexInverse {n : } (e : × (Fin n)) :
      × (Fin n)

      Inverse normalized-coordinate map. It is used only on the domain where the total is positive.

      Equations
      Instances For

        Natural source domain for the change of variables.

        Equations
        Instances For

          Nonnegative exponential vectors with nonzero total mass.

          Equations
          Instances For

            The coordinate change is a bijection between its natural source and target domains.

            Fréchet derivative of the coordinate change #

            Differential of the total simplex-coordinate sum.

            Equations
            Instances For
              noncomputable def Feige.exponentialSimplexForwardDerivative {n : } (z : × (Fin n)) :
              × (Fin n) →L[] × (Fin n)

              The explicit Fréchet derivative of exponentialSimplexForward.

              Applied to an increment (dt,dx), it is

              (dt(1-∑x)-t∑dx, fun i ↦ dt*xᵢ+t*dxᵢ).

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                @[simp]
                theorem Feige.exponentialSimplexForwardDerivative_apply {n : } (z h : × (Fin n)) :
                (exponentialSimplexForwardDerivative z) h = (h.1 * (1 - i : Fin n, z.2 i) - z.1 * i : Fin n, h.2 i, fun (i : Fin n) => h.1 * z.2 i + z.1 * h.2 i)

                Matrix of the derivative #

                def Feige.optionVectorToProduct {n : } (v : Option (Fin n)) :
                × (Fin n)

                Identify an Option (Fin n) coordinate vector with radial/product coordinates.

                Equations
                Instances For

                  The optional-coordinate identification is measurable.

                  def Feige.productToOptionVector {n : } (z : × (Fin n)) :
                  Option (Fin n)

                  The inverse coordinate identification.

                  Equations
                  Instances For
                    noncomputable def Feige.exponentialSimplexJacobianMatrix {n : } (z : × (Fin n)) :

                    Jacobian matrix of exponentialSimplexForward in the basis indexed by none, some 0, ..., some (n-1).

                    Equations
                    Instances For
                      theorem Feige.exponentialSimplexJacobianMatrix_mulVec_none {n : } (z : × (Fin n)) (v : Option (Fin n)) :
                      (exponentialSimplexJacobianMatrix z).mulVec v none = v none * (1 - i : Fin n, z.2 i) - z.1 * i : Fin n, v (some i)
                      theorem Feige.exponentialSimplexJacobianMatrix_mulVec_some {n : } (z : × (Fin n)) (v : Option (Fin n)) (i : Fin n) :
                      (exponentialSimplexJacobianMatrix z).mulVec v (some i) = v none * z.2 i + z.1 * v (some i)

                      The explicit Jacobian matrix represents the Fréchet derivative proved above.

                      Determinant of the Jacobian #

                      noncomputable def Feige.reducedExponentialSimplexJacobianMatrix {n : } (z : × (Fin n)) :

                      Add all rows of the Jacobian to its none row. This elementary row operation leaves the determinant unchanged and makes the matrix triangular.

                      Equations
                      Instances For

                        The Jacobian determinant of the radial--simplex coordinate map is t ^ n.

                        Change of variables #

                        noncomputable def Feige.exponentialCoordinateBasis {n : } :

                        The coordinate basis whose none coordinate is the radial coordinate and whose some i coordinates are the simplex coordinates.

                        Equations
                        Instances For

                          The determinant of the Fréchet derivative, in the intrinsic finite-dimensional determinant used by Mathlib's change-of-variables theorem.

                          The coordinate Haar measure is exactly the default product Lebesgue measure, not merely a nonzero scalar multiple of it.

                          Restricted change of variables from radial--simplex coordinates to the positive exponential orthant. This is the nonnegative integral formula directly supplied by Mathlib's finite-dimensional Jacobian theorem, with all geometric and differentiability hypotheses discharged here.

                          The radial Gamma integral #

                          The elementary radial integral appearing after the normalized exponential change of variables.

                          ENNReal/Tonelli form of the radial Gamma integral.

                          Normalized exponential coordinates #

                          theorem Feige.lintegral_exponentialRadial_mul_test {n : } (h : (Fin n)ENNReal) (hh : Measurable h) :
                          ∫⁻ (z : × (Fin n)) in exponentialSimplexSource, ENNReal.ofReal (Real.exp (-z.1) * z.1 ^ n) * h z.2 = n.factorial * ∫⁻ (x : Fin n) in fullSimplex (Fin n), h x

                          Tonelli separation of the radial factor from an arbitrary measurable nonnegative test function on the simplex.

                          The measure on simplex coordinates obtained from independent unit-rate exponentials: factorial times Lebesgue measure restricted to the full simplex.

                          Equations
                          Instances For

                            Identification of normalized independent exponentials with the factorial-density uniform simplex measure, formulated against arbitrary measurable nonnegative test functions.

                            noncomputable def Feige.unitExponentialDensity (t : ) :

                            The unit-rate exponential density, extended by zero to the negative half-line.

                            Equations
                            Instances For
                              theorem Feige.integral_pi_unitExponentialDensity {n : } :
                              (x : Fin n), i : Fin n, unitExponentialDensity (x i) = 1

                              A finite product of unit exponential densities has total mass one.