Documentation

StatMech.ThermoQuantities

def MicroHamiltonian.PartitionZ {D : Type} (H : MicroHamiltonian D) (d : D) (β : ) :

The partition function corresponding to a given MicroHamiltonian. This is a function taking a thermodynamic β, not a temperature. It also depends on the data D defining the system extrinsincs.

  • Ideally this would be an NNReal, but ∫ (NNReal) doesn't work right now, so it would just be a separate proof anyway
Equations
Instances For
    def MicroHamiltonian.PartitionZT {D : Type} (H : MicroHamiltonian D) (d : D) (T : ) :

    The partition function as a function of temperature T instead of β.

    Equations
    Instances For
      def MicroHamiltonian.InternalU {D : Type} (H : MicroHamiltonian D) (d : D) (β : ) :

      The Internal Energy, U or E, defined as -∂(ln Z)/∂β. Parameterized here with β.

      Equations
      Instances For
        def MicroHamiltonian.HelmholtzA {D : Type} (H : MicroHamiltonian D) (d : D) (T : ) :

        The Helmholtz Free Energy, -T * ln Z. Also denoted F. Parameterized here with temperature T, not β.

        Equations
        Instances For
          def MicroHamiltonian.EntropyS {D : Type} (H : MicroHamiltonian D) (d : D) (T : ) :

          The entropy, defined as the -∂A/∂T. Function of T.

          Equations
          Instances For
            def MicroHamiltonian.EntropySβ {D : Type} (H : MicroHamiltonian D) (d : D) (β : ) :

            The entropy, defined as ln Z + β*U. Function of β.

            Equations
            Instances For
              def MicroHamiltonian.ZIntegrable {D : Type} (H : MicroHamiltonian D) (d : D) (β : ) :

              To be able to compute or define anything from a Hamiltonian, we need its partition function to be a computable integral. A Hamiltonian is ZIntegrable at β if PartitionZ is Lesbegue integrable and nonzero.

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

                This Prop defines the most common case of ZIntegrable, that it is integrable at all finite temperatures (aka all positive β).

                Equations
                Instances For
                  theorem MicroHamiltonian.entropy_A_eq_entropy_Z {D : Type} {H : MicroHamiltonian D} {d : D} (T β : ) (hβT : T * β = 1) (hi : H.ZIntegrable d β) :
                  H.EntropyS d T = H.EntropySβ d β

                  The two definitions of entropy, in terms of T or β, are equivalent.

                  theorem MicroHamiltonian.β_eq_deriv_S_U {D : Type} {H : MicroHamiltonian D} {d : D} {β : } (hi : H.ZIntegrable d β) :
                  β = deriv (H.EntropySβ d) β / deriv (H.InternalU d) β

                  The "definition of temperature from entropy": 1/T = (∂S/∂U), when the derivative is at constant extrinsic d (typically N/V). Here we use β instead of 1/T on the left, and express the right actually as (∂S/∂β)/(∂U/∂β), as all our things are ultimately parameterized by β.

                  Pressure, as a function of T. Defined as the conjugate variable to volume.

                  Equations
                  Instances For