/- Copyright (c) 2026 Marcel Morgenstern. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Marcel Morgenstern -/ module public import ErgodicTheory.Smooth.Pesin.ManeLowerBound public import ErgodicTheory.Entropy.Ruelle.MargulisRuelleSharp public import ErgodicTheory.Lyapunov.Extensions.BottomExponent /-! # Pesin's entropy formula `h_μ(T) = ∫ ∑ λᵢ⁺ dμ` and the bounds `∑ λᵢ ≤ h_μ(T) ≤ ∑ λᵢ⁺` For a `C¹` self-map `T` of `EuclideanSpace ℝ (Fin d)` and an ergodic invariant probability measure `μ` that is supported on a compact set and absolutely continuous with respect to Lebesgue measure, with a finite partition into injectivity domains of `T`, the Kolmogorov–Sinai entropy satisfies the two-sided bound (`sumAllExp_le_ksEntropy_le_sumPosExp`) `∑ᵢ λᵢ ≤ h_μ(T) ≤ ∑ᵢ λᵢ⁺`, with no sign condition on the Lyapunov spectrum: * **`≤` (Margulis–Ruelle).** `h_μ(T) ≤ ∑ λᵢ⁺` is `ErgodicTheory.margulisRuelle_of_ae_eq_derivativeCocycle`, proved for every ergodic invariant measure supported on a compact set; it needs `T ∈ C¹` and no absolute continuity. * **`≥` (Rokhlin).** `∑ λᵢ ≤ h_μ(T)` is `ErgodicTheory.sumAllExp_le_ksEntropy_of_ae_eq`: Rokhlin's inequality `∫ log|det DT| dμ ≤ h_μ(T)` for `μ ≪ volume` with a finite partition into injectivity domains, combined with `∑ λᵢ = ∫ log|det DT| dμ`. Since `∑ λᵢ = ∑ λᵢ⁺ + ∑ λᵢ⁻`, the gap between the bounds is `-∑ λᵢ⁻`. **Pesin's entropy formula** `h_μ(T) = ∑ᵢ λᵢ⁺ = ∫ (∑ᵢ λᵢ⁺) dμ` is the case in which the bounds coincide: it holds when no exponent is negative (`pesin_entropy_formula_of_ae_eq`) and when no exponent is positive (`pesin_entropy_formula_of_exponents_nonpos`), hence in dimension one with no spectral hypothesis (`pesin_entropy_formula_one_dim`). The nonnegativity of the spectrum is equivalent to the top exponent of the inverse cocycle being `≤ 0`, `⨅ n, (1/(n+1)) ∫ log ‖(A⁽ⁿ⁺¹⁾)⁻¹‖ dμ ≤ 0` (`exponents_nonneg_iff_iInf_nonpos`), which gives the checkable sufficient conditions of `pesin_entropy_formula_of_integral_logNorm_inv_nonpos` (`∫ log ‖A⁻¹‖ dμ ≤ 0`) and `pesin_entropy_formula_of_noncontracting` (`‖v‖ ≤ ‖DₓT v‖` almost everywhere). For a spectrum with exponents of both signs the reverse inequality `∑ λᵢ⁺ ≤ h_μ(T)` needs the Ledrappier–Young theory of conditional measures on unstable manifolds, which is not formalized here. The Lyapunov exponents are those of a measurable invertible matrix cocycle `A` that agrees with the derivative matrix `μ`-almost everywhere, so `T` may have critical points on a `μ`-null set. When `det DT ≠ 0` everywhere one may take `A = derivativeCocycle T` (`pesin_entropy_formula_spectral`, `pesin_entropy_formula`). The density hypothesis of the new statements is `log⁺ ρ ∈ L¹(μ)` for `ρ = μ.rnDeriv volume`; the negative part is integrable automatically (`integrable_log_rnDeriv_of_integrable_posLog`). ## Instances The hypotheses of `pesin_entropy_formula_of_ae_eq` are met by the Chebyshev maps `Tₙ` of every degree `n ≥ 2` with the arcsine law (`ErgodicTheory.Examples.Chebyshev.ksEntropy_cheb`, `ErgodicTheory.Examples.Chebyshev.ksEntropy_chebN`: `h = log n`) and, in dimension two, by the products `(x, y) ↦ (Tₘ(x), Tₙ(y))` with the product arcsine law (`ErgodicTheory.Examples.Chebyshev.ksEntropy_chebProd`: `h = log m + log n`, with exponents `log m` and `log n`). Allowing critical points is essential in dimension one: a `C¹` map with `T' ≠ 0` everywhere is monotone, and a monotone map has no absolutely continuous ergodic invariant probability measure. ## Main results * `ErgodicTheory.sumAllExp_le_ksEntropy_le_sumPosExp` — `∑ λᵢ ≤ h_μ(T) ≤ ∑ λᵢ⁺`. * `ErgodicTheory.pesin_entropy_formula_of_sign` — Pesin's formula for a spectrum of constant sign. * `ErgodicTheory.pesin_entropy_formula_of_ae_eq` — Pesin's formula for a nonnegative spectrum and a cocycle agreeing with the derivative almost everywhere. * `ErgodicTheory.pesin_entropy_formula_of_exponents_nonpos` — `h_μ(T) = ∑ λᵢ⁺ = 0` for a nonpositive spectrum. * `ErgodicTheory.pesin_entropy_formula_one_dim` — Pesin's formula in dimension one, with no spectral hypothesis. * `ErgodicTheory.pesin_entropy_formula_of_iInf_logNorm_inv_nonpos`, `ErgodicTheory.pesin_entropy_formula_of_integral_logNorm_inv_nonpos`, `ErgodicTheory.pesin_entropy_formula_of_noncontracting` — Pesin's formula under conditions on the inverse cocycle or the derivative in place of the spectral hypothesis. * `ErgodicTheory.pesin_entropy_formula_spectral` — Pesin's formula, spectral form `h_μ(T) = (∑_i λ_i⁺ : EReal)`, for the derivative cocycle. * `ErgodicTheory.pesin_entropy_formula` — Pesin's formula, integral form `h_μ(T) = (∫ χ dμ : EReal)`. ## References * V. A. Rokhlin, *Lectures on the entropy theory of measure-preserving transformations*, Russian Math. Surveys **22** (1967), no. 5, 1–52, §9. * Ya. B. Pesin, *Characteristic Lyapunov exponents and smooth ergodic theory*, Russian Math. Surveys **32** (1977) 55–114. * D. Ruelle, *An inequality for the entropy of differentiable maps*, Bol. Soc. Bras. Mat. **9** (1978) 83–87. * R. Mañé, *A proof of Pesin's formula*, Ergodic Theory Dynam. Systems **1** (1981) 95–102. * F. Ledrappier, L.-S. Young, *The metric entropy of diffeomorphisms I*, Ann. of Math. **122** (1985) 509–539. -/ @[expose] public section open MeasureTheory Filter Topology open scoped ENNReal NNReal Matrix.Norms.L2Operator namespace ErgodicTheory open ErgodicTheory.Entropy variable {d : ℕ} [NeZero d] section General variable {μ : Measure (EuclideanSpace ℝ (Fin d))} [IsProbabilityMeasure μ] {T : EuclideanSpace ℝ (Fin d) → EuclideanSpace ℝ (Fin d)} {m : ℕ} (hT : Ergodic T μ) {A : EuclideanSpace ℝ (Fin d) → Matrix (Fin d) (Fin d) ℝ} (hA : ∀ x, (A x).det ≠ 0) (hAm : Measurable A) (hint : IntegrableLogNorm A μ) (hint' : IntegrableLogNorm (fun x => (A x)⁻¹) μ) include hA hint hint' in /-- **Two-sided entropy bound** `∑ᵢ λᵢ ≤ h_μ(T) ≤ ∑ᵢ λᵢ⁺`. Let `T` be a `C¹` self-map of `EuclideanSpace ℝ (Fin d)` and `μ` an ergodic `T`-invariant probability measure such that * `μ Kᶜ = 0` for a compact set `K`, * `μ ≪ volume` (`hSRB`) with `log⁺ ρ ∈ L¹(μ)` for the density `ρ = μ.rnDeriv volume` (`hlogρ`), * `T` is injective on each cell of a finite measurable partition `ξ` (`hξ`), and let `A` be a measurable invertible matrix cocycle with log-integrable `‖A‖` and `‖A⁻¹‖` that agrees with the derivative matrix `μ`-almost everywhere (`hAT`). Then the Kolmogorov–Sinai entropy lies between the sum of all Lyapunov exponents of `A` and the sum of the positive ones. No sign condition on the spectrum is assumed. The lower bound is Rokhlin's inequality (`sumAllExp_le_ksEntropy_of_ae_eq`, with `integrable_log_rnDeriv_of_integrable_posLog`), the upper bound the Margulis–Ruelle inequality (`margulisRuelle_of_ae_eq_derivativeCocycle`). Since `∑ λᵢ = ∑ λᵢ⁺ + ∑ λᵢ⁻` (`sumAllExp_eq_sumPosExp_add_sumNegExp`), the gap between the two bounds is `-∑ λᵢ⁻`: they coincide exactly when no exponent is negative, which is Pesin's formula `pesin_entropy_formula_of_ae_eq`. -/ theorem sumAllExp_le_ksEntropy_le_sumPosExp (hT1 : ContDiff ℝ 1 T) {K : Set (EuclideanSpace ℝ (Fin d))} (hK : IsCompact K) (hμK : μ Kᶜ = 0) (hAT : ∀ᵐ x ∂μ, A x = derivativeCocycle T x) (hSRB : SRBProperty T μ) {ξ : Entropy.MeasurePartition μ (Fin m)} (hξ : IsInjectivityPartition μ T ξ) (hlogρ : Integrable (fun x => Real.posLog ((μ.rnDeriv volume) x).toReal) μ) : ((sumAllExp hT hA hAm hint hint' : ℝ) : EReal) ≤ Entropy.ksEntropy hT.toMeasurePreserving ∧ Entropy.ksEntropy hT.toMeasurePreserving ≤ ((sumPosExp hT hA hAm hint hint' : ℝ) : EReal) := ⟨sumAllExp_le_ksEntropy_of_ae_eq hT hA hAm hint hint' hAT (hT1.differentiable one_ne_zero) hSRB hξ (integrable_log_rnDeriv_of_integrable_posLog hSRB.absolutelyContinuous hK.measurableSet hK.measure_lt_top.ne hμK hlogρ), margulisRuelle_of_ae_eq_derivativeCocycle hT hT1 hK hμK hA hAm hint hint' hAT⟩ include hA hint hint' in /-- **Pesin's formula for a nonpositive spectrum.** `h_μ(T) = ∑ᵢ λᵢ⁺ = 0`. If every Lyapunov exponent of `A` is `≤ 0`, then `∑ λᵢ⁺ = 0` and the Margulis–Ruelle inequality forces `h_μ(T) = 0`. Only the hypotheses of the Margulis–Ruelle inequality are used (`T ∈ C¹`, `μ` supported on a compact set, `A = DT` a.e.); `μ ≪ volume` is not needed. -/ theorem pesin_entropy_formula_of_exponents_nonpos (hT1 : ContDiff ℝ 1 T) {K : Set (EuclideanSpace ℝ (Fin d))} (hK : IsCompact K) (hμK : μ Kᶜ = 0) (hAT : ∀ᵐ x ∂μ, A x = derivativeCocycle T x) (hnp : ∀ i, exponents hT hA hAm hint hint' i ≤ 0) : Entropy.ksEntropy hT.toMeasurePreserving = ((sumPosExp hT hA hAm hint hint' : ℝ) : EReal) := by have h0 : sumPosExp hT hA hAm hint hint' = 0 := (sumPosExp_eq_zero_iff hT hA hAm hint hint').2 hnp refine le_antisymm (margulisRuelle_of_ae_eq_derivativeCocycle hT hT1 hK hμK hA hAm hint hint' hAT) ?_ rw [h0, EReal.coe_zero] exact Entropy.ksEntropy_nonneg _ include hA hint hint' in /-- **Pesin's entropy formula for a spectrum of constant sign.** `h_μ(T) = ∑ᵢ λᵢ⁺`. Under the hypotheses of `sumAllExp_le_ksEntropy_le_sumPosExp` (in particular only `log⁺ ρ ∈ L¹(μ)` for the density), if the Lyapunov spectrum of `A` is either entirely `≥ 0` or entirely `≤ 0` (`hsign`), the Kolmogorov–Sinai entropy equals the sum of the positive Lyapunov exponents. For a nonnegative spectrum the two bounds of `sumAllExp_le_ksEntropy_le_sumPosExp` coincide; for a nonpositive one see `pesin_entropy_formula_of_exponents_nonpos`. A spectrum with both positive and negative exponents is not covered: that case requires the Ledrappier–Young theory. -/ theorem pesin_entropy_formula_of_sign (hT1 : ContDiff ℝ 1 T) {K : Set (EuclideanSpace ℝ (Fin d))} (hK : IsCompact K) (hμK : μ Kᶜ = 0) (hAT : ∀ᵐ x ∂μ, A x = derivativeCocycle T x) (hSRB : SRBProperty T μ) {ξ : Entropy.MeasurePartition μ (Fin m)} (hξ : IsInjectivityPartition μ T ξ) (hsign : (∀ i, 0 ≤ exponents hT hA hAm hint hint' i) ∨ ∀ i, exponents hT hA hAm hint hint' i ≤ 0) (hlogρ : Integrable (fun x => Real.posLog ((μ.rnDeriv volume) x).toReal) μ) : Entropy.ksEntropy hT.toMeasurePreserving = ((sumPosExp hT hA hAm hint hint' : ℝ) : EReal) := by rcases hsign with hspec | hnp · obtain ⟨hlo, hup⟩ := sumAllExp_le_ksEntropy_le_sumPosExp hT hA hAm hint hint' hT1 hK hμK hAT hSRB hξ hlogρ rw [← sumPosExp_eq_sumAllExp_of_nonneg hT hA hAm hint hint' hspec] at hlo exact le_antisymm hup hlo · exact pesin_entropy_formula_of_exponents_nonpos hT hA hAm hint hint' hT1 hK hμK hAT hnp include hA hint hint' in /-- **Pesin's entropy formula for a cocycle agreeing a.e. with the derivative.** `h_μ(T) = ∑_i λ_i⁺`. Let `T` be a `C¹` self-map of `EuclideanSpace ℝ (Fin d)` and `μ` an ergodic `T`-invariant probability measure such that * `μ Kᶜ = 0` for a compact set `K`, * `μ ≪ volume` (`hSRB`) with integrable `log` density (`hlogρ`), * `T` is injective on each cell of a finite measurable partition `ξ` (`hξ`), and let `A` be a measurable invertible matrix cocycle with log-integrable `‖A‖` and `‖A⁻¹‖` that agrees with the derivative matrix `μ`-almost everywhere (`hAT`; so `T` may have critical points on a `μ`-null set). If every Lyapunov exponent of `A` is nonnegative (`hspec`), then the Kolmogorov–Sinai entropy equals the sum of the positive Lyapunov exponents. This is the case of `sumAllExp_le_ksEntropy_le_sumPosExp` in which the two bounds coincide. The spectral hypothesis `hspec` is equivalent to `⨅ n, (1/(n+1)) ∫ log ‖(A⁽ⁿ⁺¹⁾)⁻¹‖ dμ ≤ 0` (`exponents_nonneg_iff_iInf_nonpos`); see `pesin_entropy_formula_of_iInf_logNorm_inv_nonpos`, `pesin_entropy_formula_of_noncontracting` and, in dimension one, where no spectral hypothesis is needed, `pesin_entropy_formula_one_dim`. -/ theorem pesin_entropy_formula_of_ae_eq (hT1 : ContDiff ℝ 1 T) {K : Set (EuclideanSpace ℝ (Fin d))} (hK : IsCompact K) (hμK : μ Kᶜ = 0) (hAT : ∀ᵐ x ∂μ, A x = derivativeCocycle T x) (hSRB : SRBProperty T μ) {ξ : Entropy.MeasurePartition μ (Fin m)} (hξ : IsInjectivityPartition μ T ξ) (hspec : ∀ i, 0 ≤ exponents hT hA hAm hint hint' i) (hlogρ : Integrable (fun x => Real.log ((μ.rnDeriv volume) x).toReal) μ) : Entropy.ksEntropy hT.toMeasurePreserving = ((sumPosExp hT hA hAm hint hint' : ℝ) : EReal) := pesin_entropy_formula_of_sign hT hA hAm hint hint' hT1 hK hμK hAT hSRB hξ (Or.inl hspec) (hlogρ.pos_part.congr (Eventually.of_forall fun x => by dsimp only; rw [Real.posLog_apply, max_comm])) include hA hint hint' in /-- **Pesin's entropy formula under an averaged non-contraction condition.** `h_μ(T) = ∑_i λ_i⁺`. Under the hypotheses of `sumAllExp_le_ksEntropy_le_sumPosExp`, if the top Lyapunov exponent of the inverse cocycle is `≤ 0`, i.e. `⨅ n, (1/(n+1)) ∫ log ‖(A⁽ⁿ⁺¹⁾)⁻¹‖ dμ ≤ 0` (`hinv`), then the Kolmogorov–Sinai entropy equals the sum of the positive Lyapunov exponents. The condition `hinv` is equivalent to the nonnegativity of the whole spectrum (`exponents_nonneg_iff_iInf_nonpos`). -/ theorem pesin_entropy_formula_of_iInf_logNorm_inv_nonpos (hT1 : ContDiff ℝ 1 T) {K : Set (EuclideanSpace ℝ (Fin d))} (hK : IsCompact K) (hμK : μ Kᶜ = 0) (hAT : ∀ᵐ x ∂μ, A x = derivativeCocycle T x) (hSRB : SRBProperty T μ) {ξ : Entropy.MeasurePartition μ (Fin m)} (hξ : IsInjectivityPartition μ T ξ) (hinv : ⨅ n : ℕ, (∫ x, Real.log ‖(cocycle A T (n + 1) x)⁻¹‖ ∂μ) / (n + 1) ≤ 0) (hlogρ : Integrable (fun x => Real.posLog ((μ.rnDeriv volume) x).toReal) μ) : Entropy.ksEntropy hT.toMeasurePreserving = ((sumPosExp hT hA hAm hint hint' : ℝ) : EReal) := pesin_entropy_formula_of_sign hT hA hAm hint hint' hT1 hK hμK hAT hSRB hξ (Or.inl ((exponents_nonneg_iff_iInf_nonpos hT hA hAm hint hint').2 hinv)) hlogρ include hA hint hint' in /-- **Pesin's entropy formula when `log ‖A⁻¹‖` has nonpositive mean.** `h_μ(T) = ∑_i λ_i⁺`. Under the hypotheses of `sumAllExp_le_ksEntropy_le_sumPosExp`, if `∫ log ‖(A x)⁻¹‖ dμ ≤ 0`, then every Lyapunov exponent is `≥ 0` (`exponents_nonneg_of_integral_logNorm_inv_nonpos`) and the Kolmogorov–Sinai entropy equals the sum of the positive Lyapunov exponents. -/ theorem pesin_entropy_formula_of_integral_logNorm_inv_nonpos (hT1 : ContDiff ℝ 1 T) {K : Set (EuclideanSpace ℝ (Fin d))} (hK : IsCompact K) (hμK : μ Kᶜ = 0) (hAT : ∀ᵐ x ∂μ, A x = derivativeCocycle T x) (hSRB : SRBProperty T μ) {ξ : Entropy.MeasurePartition μ (Fin m)} (hξ : IsInjectivityPartition μ T ξ) (hinv : ∫ x, Real.log ‖(A x)⁻¹‖ ∂μ ≤ 0) (hlogρ : Integrable (fun x => Real.posLog ((μ.rnDeriv volume) x).toReal) μ) : Entropy.ksEntropy hT.toMeasurePreserving = ((sumPosExp hT hA hAm hint hint' : ℝ) : EReal) := pesin_entropy_formula_of_sign hT hA hAm hint hint' hT1 hK hμK hAT hSRB hξ (Or.inl (exponents_nonneg_of_integral_logNorm_inv_nonpos hT hA hAm hint hint' hinv)) hlogρ omit [NeZero d] in /-- A matrix `M` with `‖v‖ ≤ ‖M v‖` for every vector `v` has `‖M⁻¹‖ ≤ 1`. -/ theorem norm_inv_le_one_of_forall_norm_le {M : Matrix (Fin d) (Fin d) ℝ} (hM : M.det ≠ 0) (h : ∀ v, ‖v‖ ≤ ‖Matrix.toEuclideanCLM (𝕜 := ℝ) M v‖) : ‖M⁻¹‖ ≤ 1 := by rw [← Matrix.l2_opNorm_toEuclideanCLM] refine ContinuousLinearMap.opNorm_le_bound _ zero_le_one fun w => ?_ have hw := h (Matrix.toEuclideanCLM (𝕜 := ℝ) M⁻¹ w) rw [← mul_apply_eq_comp, ← map_mul, Matrix.mul_nonsing_inv _ (Ne.isUnit hM), map_one, one_apply_eq_self] at hw rwa [one_mul] include hA hint hint' in /-- **Pesin's entropy formula for a non-contracting map.** `h_μ(T) = ∑_i λ_i⁺`. Under the hypotheses of `sumAllExp_le_ksEntropy_le_sumPosExp`, if the derivative does not contract any vector at `μ`-almost every point, `‖v‖ ≤ ‖DₓT v‖` (`hnc`), then every Lyapunov exponent is `≥ 0` (`exponents_nonneg_of_ae_norm_inv_le_one`) and the Kolmogorov–Sinai entropy equals the sum of the positive Lyapunov exponents. -/ theorem pesin_entropy_formula_of_noncontracting (hT1 : ContDiff ℝ 1 T) {K : Set (EuclideanSpace ℝ (Fin d))} (hK : IsCompact K) (hμK : μ Kᶜ = 0) (hAT : ∀ᵐ x ∂μ, A x = derivativeCocycle T x) (hSRB : SRBProperty T μ) {ξ : Entropy.MeasurePartition μ (Fin m)} (hξ : IsInjectivityPartition μ T ξ) (hnc : ∀ᵐ x ∂μ, ∀ v, ‖v‖ ≤ ‖fderiv ℝ T x v‖) (hlogρ : Integrable (fun x => Real.posLog ((μ.rnDeriv volume) x).toReal) μ) : Entropy.ksEntropy hT.toMeasurePreserving = ((sumPosExp hT hA hAm hint hint' : ℝ) : EReal) := by refine pesin_entropy_formula_of_sign hT hA hAm hint hint' hT1 hK hμK hAT hSRB hξ (Or.inl (exponents_nonneg_of_ae_norm_inv_le_one hT hA hAm hint hint' ?_)) hlogρ filter_upwards [hAT, hnc] with x hx hxv refine norm_inv_le_one_of_forall_norm_le (hA x) fun v => ?_ rw [hx, toEuclideanCLM_derivativeCocycle] exact hxv v end General section OneDim variable {μ : Measure (EuclideanSpace ℝ (Fin 1))} [IsProbabilityMeasure μ] {T : EuclideanSpace ℝ (Fin 1) → EuclideanSpace ℝ (Fin 1)} {m : ℕ} (hT : Ergodic T μ) {A : EuclideanSpace ℝ (Fin 1) → Matrix (Fin 1) (Fin 1) ℝ} (hA : ∀ x, (A x).det ≠ 0) (hAm : Measurable A) (hint : IntegrableLogNorm A μ) (hint' : IntegrableLogNorm (fun x => (A x)⁻¹) μ) include hA hint hint' in /-- **Pesin's entropy formula in dimension one.** `h_μ(T) = λ⁺`. Let `T` be a `C¹` self-map of `EuclideanSpace ℝ (Fin 1)` and `μ` an ergodic `T`-invariant probability measure supported on a compact set, with `μ ≪ volume` and `log⁺ ρ ∈ L¹(μ)`, and a finite partition into injectivity domains of `T`; let `A` be a measurable invertible log-integrable cocycle agreeing with `T'` `μ`-almost everywhere. Then `h_μ(T) = λ⁺`, where `λ = ∫ log |T'| dμ` is the Lyapunov exponent. No sign condition is assumed: a single exponent is either `≥ 0` or `≤ 0`, so `pesin_entropy_formula_of_sign` applies. -/ theorem pesin_entropy_formula_one_dim (hT1 : ContDiff ℝ 1 T) {K : Set (EuclideanSpace ℝ (Fin 1))} (hK : IsCompact K) (hμK : μ Kᶜ = 0) (hAT : ∀ᵐ x ∂μ, A x = derivativeCocycle T x) (hSRB : SRBProperty T μ) {ξ : Entropy.MeasurePartition μ (Fin m)} (hξ : IsInjectivityPartition μ T ξ) (hlogρ : Integrable (fun x => Real.posLog ((μ.rnDeriv volume) x).toReal) μ) : Entropy.ksEntropy hT.toMeasurePreserving = ((sumPosExp hT hA hAm hint hint' : ℝ) : EReal) := by refine pesin_entropy_formula_of_sign hT hA hAm hint hint' hT1 hK hμK hAT hSRB hξ ?_ hlogρ rcases le_total 0 (exponents hT hA hAm hint hint' 0) with h | h · exact Or.inl fun i => by rwa [Subsingleton.elim i 0] · exact Or.inr fun i => by rwa [Subsingleton.elim i 0] end OneDim section Pesin variable {μ : Measure (EuclideanSpace ℝ (Fin d))} [IsProbabilityMeasure μ] {T : EuclideanSpace ℝ (Fin d) → EuclideanSpace ℝ (Fin d)} {m : ℕ} (hT : Ergodic T μ) (hdet : ∀ x, (derivativeCocycle T x).det ≠ 0) (hint : IntegrableLogNorm (derivativeCocycle T) μ) (hint' : IntegrableLogNorm (fun x => (derivativeCocycle T x)⁻¹) μ) /-- **Pesin's entropy formula, spectral form.** `h_μ(T) = ∑_i λ_i⁺`. Let `T` be a `C¹` self-map of `EuclideanSpace ℝ (Fin d)` with everywhere invertible derivative, `log⁺ ‖DT‖, log⁺ ‖DT⁻¹‖ ∈ L¹(μ)` (`hint`, `hint'`), and `μ` an ergodic `T`-invariant probability measure such that * `μ Kᶜ = 0` for a compact set `K`, * `μ ≪ volume` (`hSRB`) with integrable `log` density (`hlogρ`), * `T` is injective on each cell of a finite measurable partition `ξ` (`hξ`), * every Lyapunov exponent of the derivative cocycle is nonnegative (`hspec`). Then the Kolmogorov–Sinai entropy equals the sum of the positive Lyapunov exponents. This is the special case `A = derivativeCocycle T` of `pesin_entropy_formula_of_ae_eq`. -/ theorem pesin_entropy_formula_spectral (hT1 : ContDiff ℝ 1 T) {K : Set (EuclideanSpace ℝ (Fin d))} (hK : IsCompact K) (hμK : μ Kᶜ = 0) (hSRB : SRBProperty T μ) {ξ : Entropy.MeasurePartition μ (Fin m)} (hξ : IsInjectivityPartition μ T ξ) (hspec : ∀ i, 0 ≤ exponents hT hdet (measurable_derivativeCocycle T) hint hint' i) (hlogρ : Integrable (fun x => Real.log ((μ.rnDeriv volume) x).toReal) μ) : Entropy.ksEntropy hT.toMeasurePreserving = ((sumPosExp hT hdet (measurable_derivativeCocycle T) hint hint' : ℝ) : EReal) := pesin_entropy_formula_of_ae_eq hT hdet (measurable_derivativeCocycle T) hint hint' hT1 hK hμK (Eventually.of_forall fun _ => rfl) hSRB hξ hspec hlogρ /-- **Pesin's entropy formula, integral form** `h_μ(T) = ∫ ∑_i λ_i⁺ dμ`. Under the hypotheses of `pesin_entropy_formula_spectral` (including the nonnegativity of the spectrum, `hspec`), the system entropy equals the integral of the positive-exponent-sum integrand `χ` (`UnstableJacobianRate`: `χ` is `μ`-a.e. equal to the constant `sumPosExp`, so `∫ χ dμ = sumPosExp`). -/ theorem pesin_entropy_formula (hT1 : ContDiff ℝ 1 T) {K : Set (EuclideanSpace ℝ (Fin d))} (hK : IsCompact K) (hμK : μ Kᶜ = 0) {χ : EuclideanSpace ℝ (Fin d) → ℝ} (hSRB : SRBProperty T μ) (hχ : UnstableJacobianRate hT hdet hint hint' χ) {ξ : Entropy.MeasurePartition μ (Fin m)} (hξ : IsInjectivityPartition μ T ξ) (hspec : ∀ i, 0 ≤ exponents hT hdet (measurable_derivativeCocycle T) hint hint' i) (hlogρ : Integrable (fun x => Real.log ((μ.rnDeriv volume) x).toReal) μ) : Entropy.ksEntropy hT.toMeasurePreserving = ((∫ x, χ x ∂μ : ℝ) : EReal) := by have hbridge : (∫ x, χ x ∂μ) = sumPosExp hT hdet (measurable_derivativeCocycle T) hint hint' := by rw [integral_congr_ae hχ, integral_const, probReal_univ, one_smul] rw [hbridge] exact pesin_entropy_formula_spectral hT hdet hint hint' hT1 hK hμK hSRB hξ hspec hlogρ end Pesin end ErgodicTheory