/- 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.Cocycle.FurstenbergKesten public import ErgodicTheory.Ergodic.Kingman.Limit public import Mathlib.Analysis.SpecialFunctions.Log.ENNRealLog /-! # The Furstenberg–Kesten limits, identified `ErgodicTheory.furstenbergKesten_norm` gives an a.e.-constant limit of `(1/n) log‖A⁽ⁿ⁾(x)‖` for an invertible cocycle with `log⁺‖A‖, log⁺‖A⁻¹‖ ∈ L¹`. This file identifies the constant and removes the unnecessary hypotheses for the top exponent. * For an invertible cocycle with both integrability hypotheses, the top exponent is `λ₁ = ⨅ n, (1/(n+1)) ∫ log‖A⁽ⁿ⁺¹⁾‖ = lim (1/n) ∫ log‖A⁽ⁿ⁾‖` (`furstenbergKesten_norm_eq_iInf`); likewise for the inverse cocycle (`furstenbergKesten_norm_inv_eq_iInf`). * For an arbitrary measurable (possibly singular) generator with only `log⁺‖A‖ ∈ L¹`, the normalized log norms converge a.e. in `EReal` — with `log 0 = -∞` — to a constant `λ₁ ∈ [-∞, ∞)` (`furstenbergKesten_top_ereal`). The constant is `λ₁ = ⨅ n, ⨅ M, (1/(n+1)) ∫ log max(‖A⁽ⁿ⁺¹⁾‖, e^{-(n+1)M})`; the inner infimum over `M` is the `[-∞, ∞)`-valued integral of `log‖A⁽ⁿ⁺¹⁾‖` (monotone convergence), so this is the classical `λ₁ = inf_n (1/n) E log‖A⁽ⁿ⁾‖`. ## References * H. Furstenberg and H. Kesten, *Products of random matrices*, Ann. Math. Statist. **31** (1960), 457–469. * J. F. C. Kingman, *The ergodic theory of subadditive stochastic processes*, J. Roy. Statist. Soc. Ser. B **30** (1968), 499–510. -/ @[expose] public section open MeasureTheory Filter Topology open scoped Matrix.Norms.L2Operator namespace ErgodicTheory variable {X : Type*} [MeasurableSpace X] {T : X → X} {d : ℕ} omit [MeasurableSpace X] in /-- Upper bound by a Birkhoff sum: `log⁺‖A⁽ⁿ⁾(x)‖ ≤ birkhoffSum T (log⁺‖A‖) n x`. This is the subadditive-cocycle bound `g (n) ≤ birkhoffSum (g 1) n` specialised to `gₙ = log⁺‖A⁽ⁿ⁾‖`. -/ theorem posLogNorm_cocycle_le_birkhoffSum (A : X → Matrix (Fin d) (Fin d) ℝ) (n : ℕ) (x : X) : Real.posLog ‖cocycle A T n x‖ ≤ birkhoffSum T (fun y => Real.posLog ‖A y‖) n x := by induction n generalizing x with | zero => simp only [cocycle_zero, birkhoffSum_zero] -- `posLog ‖1‖ = 0` since `‖(1 : Matrix)‖ ≤ 1`. rw [Real.posLog_def] refine max_le_iff.2 ⟨le_refl 0, ?_⟩ refine Real.log_nonpos (norm_nonneg _) ?_ rw [← Matrix.l2_opNorm_toEuclideanCLM, map_one] exact ContinuousLinearMap.norm_id_le | succ n ih => rw [cocycle_succ, birkhoffSum_succ'] calc Real.posLog ‖cocycle A T n (T x) * A x‖ ≤ Real.posLog (‖cocycle A T n (T x)‖ * ‖A x‖) := Real.posLog_le_posLog (neg_one_lt_zero.le.trans (norm_nonneg _)) (Matrix.l2_opNorm_mul _ _) _ ≤ Real.posLog ‖cocycle A T n (T x)‖ + Real.posLog ‖A x‖ := Real.posLog_mul _ ≤ birkhoffSum T (fun y => Real.posLog ‖A y‖) n (T x) + Real.posLog ‖A x‖ := by gcongr; exact ih (T x) _ = Real.posLog ‖A x‖ + birkhoffSum T (fun y => Real.posLog ‖A y‖) n (T x) := by ring variable {μ : Measure X} /-! ### Identification of the constants (invertible cocycles) -/ /-- **Furstenberg–Kesten, top exponent, identified.** Under the hypotheses of `furstenbergKesten_norm`, the a.e. limit of `(1/n) log‖A⁽ⁿ⁾(x)‖` is `λ₁ = ⨅ n, (∫ log‖A⁽ⁿ⁺¹⁾‖)/(n+1)`, which is also the limit of `(1/(n+1)) ∫ log‖A⁽ⁿ⁺¹⁾‖`. -/ theorem furstenbergKesten_norm_eq_iInf [IsProbabilityMeasure μ] (hT : Ergodic T μ) {A : X → Matrix (Fin d) (Fin d) ℝ} (hA : ∀ x, (A x).det ≠ 0) (hAmeas : Measurable A) (hint : IntegrableLogNorm A μ) (hint' : IntegrableLogNorm (fun x => (A x)⁻¹) μ) : Tendsto (fun n : ℕ => (∫ x, Real.log ‖cocycle A T (n + 1) x‖ ∂μ) / (n + 1)) atTop (𝓝 (⨅ n : ℕ, (∫ x, Real.log ‖cocycle A T (n + 1) x‖ ∂μ) / (n + 1))) ∧ ∀ᵐ x ∂μ, Tendsto (fun n : ℕ => (n : ℝ)⁻¹ * Real.log ‖cocycle A T n x‖) atTop (𝓝 (⨅ n : ℕ, (∫ x, Real.log ‖cocycle A T (n + 1) x‖ ∂μ) / (n + 1))) := by rcases Nat.eq_zero_or_pos d with hd | hd · subst hd have hz : ∀ n x, Real.log ‖cocycle A T n x‖ = 0 := fun n x => by rw [Subsingleton.elim (cocycle A T n x) 0]; simp simp only [hz, integral_zero, zero_div, ciInf_const, mul_zero] exact ⟨tendsto_const_nhds, Eventually.of_forall fun _ => tendsto_const_nhds⟩ have : NeZero d := ⟨hd.ne'⟩ have hmp : MeasurePreserving T μ μ := hT.toMeasurePreserving suffices hbdd : BddBelow (Set.range fun n : ℕ => (∫ x, Real.log ‖cocycle A T (n + 1) x‖ ∂μ) / (n + 1)) from tendsto_kingman_ergodic_iInf (g := fun n x => Real.log ‖cocycle A T n x‖) hT (isSubadditiveCocycle_logNorm hA) (fun n => integrable_logNorm_cocycle hmp hA hAmeas hint hint' n) hbdd refine ⟨- ∫ x, Real.posLog ‖(A x)⁻¹‖ ∂μ, ?_⟩ rintro _ ⟨n, rfl⟩ have hpos : (0 : ℝ) < (n : ℝ) + 1 := by positivity rw [le_div_iff₀ hpos] have hmono : - ∫ x, birkhoffSum T (fun y => Real.posLog ‖(A y)⁻¹‖) (n + 1) x ∂μ ≤ ∫ x, Real.log ‖cocycle A T (n + 1) x‖ ∂μ := by rw [← integral_neg] exact integral_mono ((integrable_birkhoffSum (n := n + 1) hmp hint').neg) (integrable_logNorm_cocycle hmp hA hAmeas hint hint' (n + 1)) fun x => neg_birkhoffSum_le_logNorm_cocycle hA (n + 1) x rw [integral_birkhoffSum hmp hint' (n + 1), nsmul_eq_mul] at hmono push_cast at hmono ⊢ nlinarith [hmono] /-- **Furstenberg–Kesten, bottom exponent, identified.** Under the hypotheses of `furstenbergKesten_norm_inv`, the a.e. limit of `(1/n) log‖(A⁽ⁿ⁾(x))⁻¹‖` (the negative of the bottom exponent) is `⨅ n, (∫ log‖(A⁽ⁿ⁺¹⁾)⁻¹‖)/(n+1)`, also the limit of the normalized integrals. -/ theorem furstenbergKesten_norm_inv_eq_iInf [IsProbabilityMeasure μ] (hT : Ergodic T μ) {A : X → Matrix (Fin d) (Fin d) ℝ} (hA : ∀ x, (A x).det ≠ 0) (hAmeas : Measurable A) (hint : IntegrableLogNorm A μ) (hint' : IntegrableLogNorm (fun x => (A x)⁻¹) μ) : Tendsto (fun n : ℕ => (∫ x, Real.log ‖(cocycle A T (n + 1) x)⁻¹‖ ∂μ) / (n + 1)) atTop (𝓝 (⨅ n : ℕ, (∫ x, Real.log ‖(cocycle A T (n + 1) x)⁻¹‖ ∂μ) / (n + 1))) ∧ ∀ᵐ x ∂μ, Tendsto (fun n : ℕ => (n : ℝ)⁻¹ * Real.log ‖(cocycle A T n x)⁻¹‖) atTop (𝓝 (⨅ n : ℕ, (∫ x, Real.log ‖(cocycle A T (n + 1) x)⁻¹‖ ∂μ) / (n + 1))) := by rcases Nat.eq_zero_or_pos d with hd | hd · subst hd have hz : ∀ n x, Real.log ‖(cocycle A T n x)⁻¹‖ = 0 := fun n x => by rw [Subsingleton.elim (cocycle A T n x)⁻¹ 0]; simp simp only [hz, integral_zero, zero_div, ciInf_const, mul_zero] exact ⟨tendsto_const_nhds, Eventually.of_forall fun _ => tendsto_const_nhds⟩ have : NeZero d := ⟨hd.ne'⟩ have hmp : MeasurePreserving T μ μ := hT.toMeasurePreserving suffices hbdd : BddBelow (Set.range fun n : ℕ => (∫ x, Real.log ‖(cocycle A T (n + 1) x)⁻¹‖ ∂μ) / (n + 1)) from tendsto_kingman_ergodic_iInf (g := fun n x => Real.log ‖(cocycle A T n x)⁻¹‖) hT (isSubadditiveCocycle_logNorm_inv hA) (fun n => integrable_logNorm_inv_cocycle hmp hA hAmeas hint hint' n) hbdd refine ⟨- ∫ x, Real.posLog ‖A x‖ ∂μ, ?_⟩ rintro _ ⟨n, rfl⟩ have hpos : (0 : ℝ) < (n : ℝ) + 1 := by positivity rw [le_div_iff₀ hpos] have hlb : ∀ x, - birkhoffSum T (fun y => Real.posLog ‖A y‖) (n + 1) x ≤ Real.log ‖(cocycle A T (n + 1) x)⁻¹‖ := by intro x have hposc : 0 < ‖cocycle A T (n + 1) x‖ := norm_cocycle_pos hA (n + 1) _ have hposi : 0 < ‖(cocycle A T (n + 1) x)⁻¹‖ := norm_inv_cocycle_pos hA (n + 1) _ have hmulinv : cocycle A T (n + 1) x * (cocycle A T (n + 1) x)⁻¹ = 1 := Matrix.mul_nonsing_inv _ (Ne.isUnit (det_cocycle_ne_zero hA (n + 1) x)) have h1 : (1 : ℝ) ≤ ‖cocycle A T (n + 1) x‖ * ‖(cocycle A T (n + 1) x)⁻¹‖ := by have := Matrix.l2_opNorm_mul (cocycle A T (n + 1) x) (cocycle A T (n + 1) x)⁻¹ rw [hmulinv, norm_one_matrix] at this; exact this have hlog : 0 ≤ Real.log ‖cocycle A T (n + 1) x‖ + Real.log ‖(cocycle A T (n + 1) x)⁻¹‖ := by rw [← Real.log_mul (ne_of_gt hposc) (ne_of_gt hposi)]; exact Real.log_nonneg h1 have hubf := logNorm_cocycle_le_birkhoffSum (T := T) hA (n + 1) x linarith have hmono : - ∫ x, birkhoffSum T (fun y => Real.posLog ‖A y‖) (n + 1) x ∂μ ≤ ∫ x, Real.log ‖(cocycle A T (n + 1) x)⁻¹‖ ∂μ := by rw [← integral_neg] exact integral_mono ((integrable_birkhoffSum (n := n + 1) hmp hint).neg) (integrable_logNorm_inv_cocycle hmp hA hAmeas hint hint' (n + 1)) hlb rw [integral_birkhoffSum hmp hint (n + 1), nsmul_eq_mul] at hmono push_cast at hmono ⊢ nlinarith [hmono] /-! ### The top exponent of an arbitrary cocycle, in `EReal` -/ /-- The truncated log-norm cocycle `log max(‖A⁽ⁿ⁾(x)‖, e^{-n·M})`, a real-valued stand-in for the `[-∞, ∞)`-valued `log‖A⁽ⁿ⁾(x)‖` that is bounded below by `-n·M`. -/ noncomputable def truncLogNorm (A : X → Matrix (Fin d) (Fin d) ℝ) (T : X → X) (M n : ℕ) (x : X) : ℝ := Real.log (max ‖cocycle A T n x‖ (Real.exp (-((n : ℝ) * M)))) omit [MeasurableSpace X] in lemma neg_le_truncLogNorm (A : X → Matrix (Fin d) (Fin d) ℝ) (M n : ℕ) (x : X) : -((n : ℝ) * M) ≤ truncLogNorm A T M n x := by calc -((n : ℝ) * M) = Real.log (Real.exp (-((n : ℝ) * M))) := (Real.log_exp _).symm _ ≤ truncLogNorm A T M n x := Real.log_le_log (Real.exp_pos _) (le_max_right _ _) omit [MeasurableSpace X] in lemma truncLogNorm_le_posLog (A : X → Matrix (Fin d) (Fin d) ℝ) (M n : ℕ) (x : X) : truncLogNorm A T M n x ≤ Real.posLog ‖cocycle A T n x‖ := by rw [truncLogNorm] rcases le_total ‖cocycle A T n x‖ (Real.exp (-((n : ℝ) * M))) with h | h · rw [max_eq_right h, Real.log_exp] have : (0 : ℝ) ≤ (n : ℝ) * M := by positivity linarith [Real.posLog_nonneg (x := ‖cocycle A T n x‖)] · rw [max_eq_left h, Real.posLog_def] exact le_max_right _ _ omit [MeasurableSpace X] in /-- The truncated log-norm cocycle is subadditive (no invertibility needed). -/ theorem isSubadditiveCocycle_truncLogNorm (A : X → Matrix (Fin d) (Fin d) ℝ) (M : ℕ) : IsSubadditiveCocycle T (truncLogNorm A T M) := by refine ⟨fun m n x => ?_⟩ set a := ‖cocycle A T n (T^[m] x)‖ set b := ‖cocycle A T m x‖ set p := Real.exp (-((m : ℝ) * M)) set q := Real.exp (-((n : ℝ) * M)) have hp : 0 < p := Real.exp_pos _ have hq : 0 < q := Real.exp_pos _ have hbp : 0 < max b p := lt_max_of_lt_right hp have haq : 0 < max a q := lt_max_of_lt_right hq have hcoc : cocycle A T (m + n) x = cocycle A T n (T^[m] x) * cocycle A T m x := by rw [show m + n = n + m by ring, cocycle_add] have hkey : max ‖cocycle A T (m + n) x‖ (Real.exp (-(((m + n : ℕ) : ℝ) * M))) ≤ max b p * max a q := by refine max_le ?_ ?_ · rw [hcoc] calc ‖cocycle A T n (T^[m] x) * cocycle A T m x‖ ≤ a * b := Matrix.l2_opNorm_mul _ _ _ = b * a := mul_comm _ _ _ ≤ max b p * max a q := mul_le_mul (le_max_left _ _) (le_max_left _ _) (norm_nonneg _) hbp.le · have : Real.exp (-(((m + n : ℕ) : ℝ) * M)) = p * q := by rw [← Real.exp_add]; push_cast; ring_nf rw [this] exact mul_le_mul (le_max_right _ _) (le_max_right _ _) hq.le hbp.le calc truncLogNorm A T M (m + n) x ≤ Real.log (max b p * max a q) := Real.log_le_log (lt_max_of_lt_right (Real.exp_pos _)) hkey _ = truncLogNorm A T M m x + truncLogNorm A T M n (T^[m] x) := by rw [Real.log_mul hbp.ne' haq.ne'] rfl theorem integrable_truncLogNorm (hT : MeasurePreserving T μ μ) [IsFiniteMeasure μ] {A : X → Matrix (Fin d) (Fin d) ℝ} (hAmeas : Measurable A) (hint : IntegrableLogNorm A μ) (M n : ℕ) : Integrable (truncLogNorm A T M n) μ := by have hmeas : Measurable (truncLogNorm A T M n) := Real.measurable_log.comp ((measurable_l2_opNorm.comp (measurable_cocycle hAmeas hT.measurable n)).max measurable_const) refine Integrable.mono' ((integrable_birkhoffSum (n := n) hT hint).add (integrable_const ((n : ℝ) * M))) hmeas.aestronglyMeasurable (Eventually.of_forall fun x => ?_) have h1 := neg_le_truncLogNorm (T := T) A M n x have h2 := (truncLogNorm_le_posLog (T := T) A M n x).trans (posLogNorm_cocycle_le_birkhoffSum A n x) have hB : 0 ≤ birkhoffSum T (fun y => Real.posLog ‖A y‖) n x := Finset.sum_nonneg fun k _ => Real.posLog_nonneg have hnM : (0 : ℝ) ≤ (n : ℝ) * M := by positivity rw [Real.norm_eq_abs, abs_le] constructor <;> simp only [Pi.add_apply] <;> linarith omit [MeasurableSpace X] in /-- The normalized truncated cocycle is the truncation of the `EReal` normalized log norm. -/ lemma truncLogNorm_div_eq_max (A : X → Matrix (Fin d) (Fin d) ℝ) (M n : ℕ) (x : X) : ((truncLogNorm A T M (n + 1) x / (n + 1) : ℝ) : EReal) = max (((((n + 1 : ℕ) : ℝ)⁻¹ : ℝ) : EReal) * ENNReal.log (ENNReal.ofReal ‖cocycle A T (n + 1) x‖)) (-(M : ℝ)) := by have hk : (0 : ℝ) < (n : ℝ) + 1 := by positivity have hkE : (0 : EReal) < (((((n + 1 : ℕ) : ℝ)⁻¹ : ℝ)) : EReal) := EReal.coe_pos.mpr (by positivity) have hexp : Real.log (Real.exp (-(((n + 1 : ℕ) : ℝ) * M))) / (n + 1) = -(M : ℝ) := by rw [Real.log_exp]; push_cast; field_simp rcases (norm_nonneg (cocycle A T (n + 1) x)).eq_or_lt with h0 | hpos · rw [← h0, ENNReal.ofReal_zero, ENNReal.log_zero, EReal.mul_bot_of_pos hkE, max_eq_right bot_le, truncLogNorm, ← h0, max_eq_right (Real.exp_pos _).le, hexp] rfl · rw [ENNReal.log_ofReal_of_pos hpos, ← EReal.coe_mul, truncLogNorm] rw [← EReal.coe_neg, ← Monotone.map_max EReal.coe_strictMono.monotone, EReal.coe_eq_coe_iff] rcases le_total ‖cocycle A T (n + 1) x‖ (Real.exp (-(((n + 1 : ℕ) : ℝ) * M))) with h | h · rw [max_eq_right h, hexp, max_eq_right] have hl := Real.log_le_log hpos h rw [Real.log_exp] at hl push_cast at hl ⊢ rw [inv_mul_eq_div, div_le_iff₀ hk] linarith · rw [max_eq_left h, max_eq_left, inv_mul_eq_div] · push_cast; rfl have hl := Real.log_le_log (Real.exp_pos _) h rw [Real.log_exp] at hl push_cast at hl ⊢ rw [inv_mul_eq_div, le_div_iff₀ hk] linarith /-- **Furstenberg–Kesten, top exponent, for an arbitrary cocycle.** For an ergodic measure-preserving `T` on a probability space and a measurable — possibly singular — matrix generator `A` with `log⁺‖A‖ ∈ L¹` (no invertibility and no integrability of `log⁺‖A⁻¹‖`), the normalized log norms `(1/n) log‖A⁽ⁿ⁾(x)‖ ∈ [-∞, ∞)` (with `log 0 = -∞`, via `ENNReal.log`) converge `μ`-a.e. in `EReal` to the constant `λ₁ = ⨅ n, ⨅ M, (1/(n+1)) ∫ log max(‖A⁽ⁿ⁺¹⁾‖, e^{-(n+1)M}) ∈ [-∞, ∞)`. For each `n`, the infimum over `M` is the `[-∞, ∞)`-valued integral of `log‖A⁽ⁿ⁺¹⁾‖` (monotone convergence), so `λ₁ = inf_n (1/n) E log‖A⁽ⁿ⁾‖`; when the cocycle is invertible with `log⁺‖A⁻¹‖ ∈ L¹` this is `furstenbergKesten_norm_eq_iInf`. The proof applies the truncation principle `ae_tendsto_ereal_of_truncations` to the subadditive cocycles `truncLogNorm A T M`. -/ theorem furstenbergKesten_top_ereal [IsProbabilityMeasure μ] (hT : Ergodic T μ) {A : X → Matrix (Fin d) (Fin d) ℝ} (hAmeas : Measurable A) (hint : IntegrableLogNorm A μ) : ∀ᵐ x ∂μ, Tendsto (fun n : ℕ => (((n : ℝ)⁻¹ : ℝ) : EReal) * ENNReal.log (ENNReal.ofReal ‖cocycle A T n x‖)) atTop (𝓝 (⨅ n : ℕ, ⨅ M : ℕ, (((∫ x, truncLogNorm A T M (n + 1) x ∂μ) / (n + 1) : ℝ) : EReal))) := by have hmp : MeasurePreserving T μ μ := hT.toMeasurePreserving rw [iInf_comm] exact ae_tendsto_ereal_of_truncations hT (fun n x => (((n : ℝ)⁻¹ : ℝ) : EReal) * ENNReal.log (ENNReal.ofReal ‖cocycle A T n x‖)) (truncLogNorm A T) (isSubadditiveCocycle_truncLogNorm A) (integrable_truncLogNorm hmp hAmeas hint) (neg_le_truncLogNorm A) (truncLogNorm_div_eq_max A) end ErgodicTheory