/- 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.Examples.ChebyshevDegree /-! # Pesin's entropy formula for a product of two Chebyshev maps For `m, n ≥ 2` the map `F(x, y) = (Tₘ(x), Tₙ(y))` of `EuclideanSpace ℝ (Fin 2)`, with the product `ν` of two arcsine laws, is a two-dimensional instance of the abstract Pesin formula `ErgodicTheory.pesin_entropy_formula_of_ae_eq`. Its Lyapunov spectrum is `(max (log m) (log n), min (log m) (log n))` (two distinct exponents when `m ≠ n`), and `h_ν(F) = log m + log n`. `F` is the factor of the toral endomorphism `(θ₁, θ₂) ↦ (mθ₁, nθ₂)` through `(θ₁, θ₂) ↦ (cos 2πθ₁, cos 2πθ₂)`. Ergodicity of the toral endomorphism is `AddMonoidHom.ergodic_of_dense_iUnion_preimage_zero` (the points killed by some iterate are dense). The two coordinate projections send `ν` to the one-dimensional arcsine law, which reduces the integrability conditions, the null set of critical points and the exponent integrals to the one-dimensional results of `ErgodicTheory.Examples.ChebyshevDegree`. The derivative cocycle is diagonal; its bottom exponent is computed from Birkhoff's theorem applied to the two coordinates (`ErgodicTheory.tendsto_log_norm_inv_cocycle`), and the spectrum is nonnegative. ## Main results * `ErgodicTheory.Examples.Chebyshev.ergodic_torusMul`: `(θ₁, θ₂) ↦ (mθ₁, nθ₂)` is ergodic for Haar measure on the two-torus. * `ErgodicTheory.Examples.Chebyshev.ergodic_chebProd`: `F` is ergodic for `ν`. * `ErgodicTheory.Examples.Chebyshev.exponents_chebProd`: the Lyapunov exponents are `max (log m) (log n)` and `min (log m) (log n)`. * `ErgodicTheory.Examples.Chebyshev.pesin_formula_chebProd`: `h_ν(F) = ∑ λᵢ⁺`. * `ErgodicTheory.Examples.Chebyshev.ksEntropy_chebProd`: `h_ν(F) = log m + log n`. ## References * P. Walters, *An Introduction to Ergodic Theory*, GTM **79**, Springer 1982. -/ @[expose] public section open MeasureTheory Filter Topology Set Real open scoped ENNReal Matrix.Norms.L2Operator namespace ErgodicTheory.Examples.Chebyshev /-! ## The toral endomorphism `(θ₁, θ₂) ↦ (mθ₁, nθ₂)` -/ /-- Haar measure on the two-torus `UnitAddCircle × UnitAddCircle`. -/ noncomputable abbrev torusMeasure : Measure (UnitAddCircle × UnitAddCircle) := (volume : Measure UnitAddCircle).prod volume /-- The toral endomorphism `(θ₁, θ₂) ↦ (mθ₁, nθ₂)`. -/ noncomputable def torusMul (m n : ℕ) : UnitAddCircle × UnitAddCircle →+ UnitAddCircle × UnitAddCircle where toFun p := (m • p.1, n • p.2) map_zero' := by simp map_add' p q := by simp [smul_add] /-- The toral endomorphism acts coordinatewise. -/ lemma torusMul_apply (m n : ℕ) (p : UnitAddCircle × UnitAddCircle) : torusMul m n p = (m • p.1, n • p.2) := rfl /-- The `k`-th iterate of the toral endomorphism is `(θ₁, θ₂) ↦ (mᵏθ₁, nᵏθ₂)`. -/ lemma iterate_torusMul (m n k : ℕ) (p : UnitAddCircle × UnitAddCircle) : (torusMul m n)^[k] p = (m ^ k • p.1, n ^ k • p.2) := by induction k generalizing p with | zero => simp | succ k ih => rw [Function.iterate_succ_apply, ih, torusMul_apply, pow_succ, pow_succ, mul_smul, mul_smul] /-- The numbers `j / mᵏ` are dense in `ℝ` (`m ≥ 2`). -/ lemma dense_setOf_div_pow {m : ℕ} (hm : 1 < m) : Dense {x : ℝ | ∃ k : ℕ, ∃ j : ℤ, x = j / (m : ℝ) ^ k} := by have hm' : (1 : ℝ) < m := by exact_mod_cast hm refine Metric.dense_iff.2 fun x r hr => ?_ obtain ⟨k, hk⟩ := exists_pow_lt_of_lt_one hr (inv_lt_one_of_one_lt₀ hm') have hpos : (0 : ℝ) < (m : ℝ) ^ k := by positivity refine ⟨⌊x * (m : ℝ) ^ k⌋ / (m : ℝ) ^ k, ?_, k, ⌊x * (m : ℝ) ^ k⌋, rfl⟩ rw [Metric.mem_ball, Real.dist_eq, abs_lt] have h1 := Int.floor_le (x * (m : ℝ) ^ k) have h2 := Int.lt_floor_add_one (x * (m : ℝ) ^ k) rw [inv_pow] at hk constructor · rw [neg_lt_sub_iff_lt_add, ← sub_lt_iff_lt_add', lt_div_iff₀ hpos] calc (x - r) * (m : ℝ) ^ k = x * (m : ℝ) ^ k - r * (m : ℝ) ^ k := by ring _ < x * (m : ℝ) ^ k - 1 := by have : 1 < r * (m : ℝ) ^ k := by rw [inv_lt_iff_one_lt_mul₀ hpos] at hk; linarith linarith _ < ⌊x * (m : ℝ) ^ k⌋ := by linarith · rw [sub_lt_iff_lt_add, div_lt_iff₀ hpos] nlinarith /-- The points of the circle killed by some power of `m` are dense. -/ lemma dense_setOf_pow_nsmul_eq_zero {m : ℕ} (hm : 1 < m) : Dense {θ : UnitAddCircle | ∃ k : ℕ, m ^ k • θ = 0} := by refine ((QuotientAddGroup.mk_surjective.denseRange).dense_image continuous_quotient_mk' (dense_setOf_div_pow hm)).mono ?_ rintro _ ⟨x, ⟨k, j, rfl⟩, rfl⟩ refine ⟨k, ?_⟩ rw [← AddCircle.coe_nsmul, nsmul_eq_mul, Nat.cast_pow, mul_div_cancel₀ _ (by positivity : (m : ℝ) ^ k ≠ 0)] exact (AddCircle.coe_eq_zero_iff 1).2 ⟨j, by simp⟩ /-- Multiplication by `m ≠ 0` is surjective on the circle. -/ lemma nsmul_surjective_unitAddCircle {m : ℕ} (hm : m ≠ 0) : Function.Surjective fun θ : UnitAddCircle => m • θ := by intro θ induction θ using QuotientAddGroup.induction_on with | H r => refine ⟨((r / m : ℝ) : UnitAddCircle), ?_⟩ simp only rw [← AddCircle.coe_nsmul, nsmul_eq_mul, mul_div_cancel₀ _ (by exact_mod_cast hm)] /-- **The toral endomorphism `(θ₁, θ₂) ↦ (mθ₁, nθ₂)` is ergodic** for Haar measure (`m, n ≥ 2`). -/ theorem ergodic_torusMul {m n : ℕ} (hm : 1 < m) (hn : 1 < n) : Ergodic (torusMul m n) torusMeasure := by refine (torusMul m n).ergodic_of_dense_iUnion_preimage_zero ?_ ?_ ?_ · refine ((dense_setOf_pow_nsmul_eq_zero hm).prod (dense_setOf_pow_nsmul_eq_zero hn)).mono ?_ rintro ⟨a, b⟩ ⟨⟨k, hk⟩, ⟨l, hl⟩⟩ refine mem_iUnion.2 ⟨k + l, ?_⟩ rw [mem_preimage, iterate_torusMul] refine Prod.ext ?_ ?_ · change m ^ (k + l) • a = 0 rw [pow_add, mul_comm, mul_smul, hk, smul_zero] · change n ^ (k + l) • b = 0 rw [pow_add, mul_smul, hl, smul_zero] · exact ((continuous_nsmul m).comp continuous_fst).prodMk ((continuous_nsmul n).comp continuous_snd) · intro p obtain ⟨a, ha⟩ := nsmul_surjective_unitAddCircle (by omega : m ≠ 0) p.1 obtain ⟨b, hb⟩ := nsmul_surjective_unitAddCircle (by omega : n ≠ 0) p.2 exact ⟨(a, b), Prod.ext ha hb⟩ /-! ## The plane `EuclideanSpace ℝ (Fin 2)` and the product arcsine law -/ /-- The point `(s, t)` of `EuclideanSpace ℝ (Fin 2)`. -/ noncomputable def emb2 (s t : ℝ) : EuclideanSpace ℝ (Fin 2) := WithLp.toLp 2 ![s, t] /-- The first coordinate of `emb2 s t` is `s`. -/ @[simp] lemma emb2_apply_zero (s t : ℝ) : emb2 s t 0 = s := rfl /-- The second coordinate of `emb2 s t` is `t`. -/ @[simp] lemma emb2_apply_one (s t : ℝ) : emb2 s t 1 = t := rfl /-- Every point of `EuclideanSpace ℝ (Fin 2)` is `emb2` of its coordinates. -/ lemma emb2_coord (v : EuclideanSpace ℝ (Fin 2)) : emb2 (v 0) (v 1) = v := by ext i; fin_cases i <;> rfl /-- `emb2 s t` in the standard basis. -/ lemma emb2_eq_add (s t : ℝ) : emb2 s t = s • emb2 1 0 + t • emb2 0 1 := by ext i; fin_cases i <;> simp [emb2] /-- `(s, t) ↦ (s, t)` as a measurable equivalence `ℝ × ℝ ≃ᵐ EuclideanSpace ℝ (Fin 2)`. -/ noncomputable def emb2Equiv : ℝ × ℝ ≃ᵐ EuclideanSpace ℝ (Fin 2) := MeasurableEquiv.finTwoArrow.symm.trans (MeasurableEquiv.toLp 2 (Fin 2 → ℝ)) /-- The equivalence `emb2Equiv` is `(s, t) ↦ emb2 s t`. -/ lemma coe_emb2Equiv : (emb2Equiv : ℝ × ℝ → EuclideanSpace ℝ (Fin 2)) = fun p => emb2 p.1 p.2 := by funext p; ext i; fin_cases i <;> rfl /-- `emb2Equiv` maps Lebesgue measure on `ℝ × ℝ` to Lebesgue measure on the plane. -/ lemma measurePreserving_emb2Equiv : MeasurePreserving emb2Equiv volume volume := (PiLp.volume_preserving_toLp (Fin 2)).comp (volume_preserving_finTwoArrow ℝ).symm /-- `(s, t) ↦ emb2 s t` is continuous. -/ lemma continuous_emb2 : Continuous fun p : ℝ × ℝ => emb2 p.1 p.2 := (PiLp.continuous_toLp 2 _).comp (continuous_pi fun i => by fin_cases i · exact continuous_fst · exact continuous_snd) /-- `|cos 2πθ| ≤ 1`. -/ lemma abs_circleCos_le_one (θ : UnitAddCircle) : |circleCos θ| ≤ 1 := by induction θ using QuotientAddGroup.induction_on with | H r => rw [circleCos_coe, cosParam]; exact abs_cos_le_one _ /-- The factor map `(θ₁, θ₂) ↦ (cos 2πθ₁, cos 2πθ₂)`. -/ noncomputable def torusCos (p : UnitAddCircle × UnitAddCircle) : EuclideanSpace ℝ (Fin 2) := emb2 (circleCos p.1) (circleCos p.2) /-- The factor map `torusCos` is continuous. -/ lemma continuous_torusCos : Continuous torusCos := continuous_emb2.comp ((continuous_circleCos.comp continuous_fst).prodMk (continuous_circleCos.comp continuous_snd)) /-- The product arcsine law on `EuclideanSpace ℝ (Fin 2)`: the image of Haar measure on the torus under `torusCos`. -/ noncomputable def arcsineMeasure2 : Measure (EuclideanSpace ℝ (Fin 2)) := Measure.map torusCos torusMeasure /-- The product arcsine law is a probability measure. -/ instance : IsProbabilityMeasure arcsineMeasure2 := (Measure.isProbabilityMeasure_map_iff continuous_torusCos.measurable.aemeasurable).2 inferInstance /-- `torusCos` maps Haar measure on the torus to the product arcsine law. -/ lemma measurePreserving_torusCos : MeasurePreserving torusCos torusMeasure arcsineMeasure2 := ⟨continuous_torusCos.measurable, rfl⟩ /-- The image of Haar measure on the circle under `θ ↦ cos 2πθ` is the arcsine law on `ℝ`. -/ lemma map_circleCos_volume : Measure.map circleCos (volume : Measure UnitAddCircle) = volume.withDensity arcsineDensity := by have hmk := UnitAddCircle.measurePreserving_mk 0 rw [zero_add] at hmk rw [← hmk.map_eq, Measure.map_map continuous_circleCos.measurable hmk.measurable, ← map_cos_volume] congr 1 funext r exact circleCos_coe r /-- **The product arcsine law has density `ρ(x) ρ(y)`.** -/ theorem arcsineMeasure2_eq_withDensity : arcsineMeasure2 = volume.withDensity (fun v : EuclideanSpace ℝ (Fin 2) => arcsineDensity (v 0) * arcsineDensity (v 1)) := by have hcc : Measurable fun p : UnitAddCircle × UnitAddCircle => (circleCos p.1, circleCos p.2) := (continuous_circleCos.comp continuous_fst).measurable.prodMk (continuous_circleCos.comp continuous_snd).measurable have hprod : Measure.map (fun p : UnitAddCircle × UnitAddCircle => (circleCos p.1, circleCos p.2)) torusMeasure = (volume : Measure (ℝ × ℝ)).withDensity (fun p => arcsineDensity p.1 * arcsineDensity p.2) := by have h := Measure.map_prod_map (volume : Measure UnitAddCircle) (volume : Measure UnitAddCircle) continuous_circleCos.measurable continuous_circleCos.measurable rw [map_circleCos_volume] at h change Measure.map (Prod.map circleCos circleCos) _ = _ rw [torusMeasure, ← h, prod_withDensity measurable_arcsineDensity measurable_arcsineDensity] rfl have htor : torusCos = emb2Equiv ∘ fun p => (circleCos p.1, circleCos p.2) := by rw [coe_emb2Equiv]; rfl rw [arcsineMeasure2, htor, ← Measure.map_map emb2Equiv.measurable hcc, hprod] ext B hB rw [Measure.map_apply emb2Equiv.measurable hB, withDensity_apply _ (emb2Equiv.measurable hB), withDensity_apply _ hB] rw [← measurePreserving_emb2Equiv.setLIntegral_comp_preimage_emb emb2Equiv.measurableEmbedding] congr 1 /-- The product arcsine density is measurable. -/ lemma measurable_arcsineDensity2 : Measurable fun v : EuclideanSpace ℝ (Fin 2) => arcsineDensity (v 0) * arcsineDensity (v 1) := (measurable_arcsineDensity.comp ((measurable_pi_apply 0).comp (WithLp.measurable_ofLp 2 _))).mul (measurable_arcsineDensity.comp ((measurable_pi_apply 1).comp (WithLp.measurable_ofLp 2 _))) /-- The product arcsine law is absolutely continuous with respect to Lebesgue measure. -/ lemma arcsineMeasure2_ac : arcsineMeasure2 ≪ volume := by rw [arcsineMeasure2_eq_withDensity]; exact withDensity_absolutelyContinuous _ _ /-- The product arcsine law is supported in the closed ball of radius `2`. -/ lemma arcsineMeasure2_compl_closedBall : arcsineMeasure2 (Metric.closedBall (0 : EuclideanSpace ℝ (Fin 2)) 2)ᶜ = 0 := by rw [arcsineMeasure2, Measure.map_apply continuous_torusCos.measurable Metric.isClosed_closedBall.isOpen_compl.measurableSet] refine measure_mono_null (fun p hp => ?_) measure_empty exfalso apply hp rw [mem_closedBall_zero_iff, EuclideanSpace.norm_eq, Fin.sum_univ_two] have h1 := abs_circleCos_le_one p.1 have h2 := abs_circleCos_le_one p.2 rw [Real.sqrt_le_left (by norm_num)] simp only [torusCos, emb2_apply_zero, emb2_apply_one, Real.norm_eq_abs, sq_abs] nlinarith [abs_nonneg (circleCos p.1), abs_nonneg (circleCos p.2), sq_abs (circleCos p.1), sq_abs (circleCos p.2)] /-! ## The coordinate projections -/ /-- The first coordinate, as a point of `EuclideanSpace ℝ (Fin 1)`. -/ noncomputable def coord0 (v : EuclideanSpace ℝ (Fin 2)) : EuclideanSpace ℝ (Fin 1) := emb (v 0) /-- The second coordinate, as a point of `EuclideanSpace ℝ (Fin 1)`. -/ noncomputable def coord1 (v : EuclideanSpace ℝ (Fin 2)) : EuclideanSpace ℝ (Fin 1) := emb (v 1) /-- The first coordinate projection is measurable. -/ lemma measurable_coord0 : Measurable coord0 := continuous_emb.measurable.comp ((measurable_pi_apply 0).comp (WithLp.measurable_ofLp 2 _)) /-- The second coordinate projection is measurable. -/ lemma measurable_coord1 : Measurable coord1 := continuous_emb.measurable.comp ((measurable_pi_apply 1).comp (WithLp.measurable_ofLp 2 _)) /-- The first marginal of the product arcsine law is the arcsine law. -/ lemma measurePreserving_coord0 : MeasurePreserving coord0 arcsineMeasure2 arcsineMeasure := by refine ⟨measurable_coord0, ?_⟩ rw [arcsineMeasure2, Measure.map_map measurable_coord0 continuous_torusCos.measurable, arcsineMeasure_eq_map_circle] have h : coord0 ∘ torusCos = (fun θ => emb (circleCos θ)) ∘ Prod.fst := rfl rw [h, ← Measure.map_map (g := fun θ : UnitAddCircle => emb (circleCos θ)) (f := Prod.fst) (continuous_emb.comp continuous_circleCos).measurable measurable_fst, measurePreserving_fst.map_eq] /-- The second marginal of the product arcsine law is the arcsine law. -/ lemma measurePreserving_coord1 : MeasurePreserving coord1 arcsineMeasure2 arcsineMeasure := by refine ⟨measurable_coord1, ?_⟩ rw [arcsineMeasure2, Measure.map_map measurable_coord1 continuous_torusCos.measurable, arcsineMeasure_eq_map_circle] have h : coord1 ∘ torusCos = (fun θ => emb (circleCos θ)) ∘ Prod.snd := rfl rw [h, ← Measure.map_map (g := fun θ : UnitAddCircle => emb (circleCos θ)) (f := Prod.snd) (continuous_emb.comp continuous_circleCos).measurable measurable_snd, measurePreserving_snd.map_eq] /-- The arcsine density is nonzero at almost every point of the arcsine law. -/ lemma ae_arcsineDensity_ne_zero : ∀ᵐ w ∂arcsineMeasure, (arcsineDensity (w 0)).toReal ≠ 0 := by have hm : MeasurableSet {w : EuclideanSpace ℝ (Fin 1) | (arcsineDensity (w 0)).toReal = 0} := measurableSet_eq_fun measurable_arcsineDensity_coord.ennreal_toReal measurable_const have h0 : arcsineMeasure {w : EuclideanSpace ℝ (Fin 1) | (arcsineDensity (w 0)).toReal = 0} = 0 := by rw [arcsineMeasure, Measure.map_apply measurable_embCos hm] refine le_antisymm ((Measure.restrict_apply_le _ _).trans (le_of_eq ?_)) zero_le refine measure_mono_null (fun r hr => ?_) (volume_sin_two_pi_mul_eq_zero one_ne_zero) by_contra hs simp only [Nat.cast_one, one_mul] at hs simp only [mem_preimage, mem_ofPred_eq, emb_apply] at hr rw [arcsineDensity_cosParam hs, ENNReal.toReal_ofReal (by positivity)] at hr have : 0 < 1 / (π * |sin (2 * π * r)|) := by have := abs_pos.2 hs; have := pi_pos; positivity exact this.ne' hr exact (measure_eq_zero_iff_ae_notMem.1 h0).mono fun w hw => hw /-- The logarithm of the density of the product arcsine law is integrable. -/ lemma integrable_log_rnDeriv2 : Integrable (fun v => Real.log ((arcsineMeasure2.rnDeriv volume) v).toReal) arcsineMeasure2 := by have hrn : arcsineMeasure2.rnDeriv volume =ᵐ[arcsineMeasure2] fun v : EuclideanSpace ℝ (Fin 2) => arcsineDensity (v 0) * arcsineDensity (v 1) := by have h := Measure.rnDeriv_withDensity (volume : Measure (EuclideanSpace ℝ (Fin 2))) measurable_arcsineDensity2 rw [← arcsineMeasure2_eq_withDensity] at h exact arcsineMeasure2_ac.ae_le h have hm : Measurable fun w : EuclideanSpace ℝ (Fin 1) => Real.log (arcsineDensity (w 0)).toReal := Real.measurable_log.comp measurable_arcsineDensity_coord.ennreal_toReal have h0 := (measurePreserving_coord0.integrable_comp hm.aestronglyMeasurable).2 integrable_log_arcsineDensity have h1 := (measurePreserving_coord1.integrable_comp hm.aestronglyMeasurable).2 integrable_log_arcsineDensity have hz0 := measurePreserving_coord0.quasiMeasurePreserving.ae ae_arcsineDensity_ne_zero have hz1 := measurePreserving_coord1.quasiMeasurePreserving.ae ae_arcsineDensity_ne_zero refine (h0.add h1).congr ?_ filter_upwards [hrn, hz0, hz1] with v hv hv0 hv1 simp only [coord0, coord1, emb_apply] at hv0 hv1 simp only [Pi.add_apply, Function.comp_apply, coord0, coord1, emb_apply, hv, ENNReal.toReal_mul] rw [Real.log_mul hv0 hv1] /-! ## The product Chebyshev map -/ /-- The product Chebyshev map `(x, y) ↦ (Tₘ(x), Tₙ(y))` on `EuclideanSpace ℝ (Fin 2)`. -/ noncomputable def chebProd (m n : ℕ) (v : EuclideanSpace ℝ (Fin 2)) : EuclideanSpace ℝ (Fin 2) := emb2 (chebPoly m (v 0)) (chebPoly n (v 1)) /-- The product Chebyshev map is semiconjugate to the toral endomorphism by `torusCos`. -/ lemma chebProd_torusCos (m n : ℕ) (p : UnitAddCircle × UnitAddCircle) : chebProd m n (torusCos p) = torusCos (torusMul m n p) := by simp only [chebProd, torusCos, emb2_apply_zero, emb2_apply_one, torusMul_apply, circleCos_nsmul] /-- The product Chebyshev map in the standard basis. -/ lemma chebProd_eq (m n : ℕ) : chebProd m n = fun w => chebPoly m (EuclideanSpace.proj (0 : Fin 2) w) • emb2 1 0 + chebPoly n (EuclideanSpace.proj (1 : Fin 2) w) • emb2 0 1 := by funext w; rw [chebProd, emb2_eq_add]; rfl /-- The product Chebyshev map is continuous. -/ lemma continuous_chebProd (m n : ℕ) : Continuous (chebProd m n) := by rw [chebProd_eq] exact (((continuous_chebPoly m).comp (EuclideanSpace.proj (0 : Fin 2) : EuclideanSpace ℝ (Fin 2) →L[ℝ] ℝ).continuous).smul continuous_const).add (((continuous_chebPoly n).comp (EuclideanSpace.proj (1 : Fin 2) : EuclideanSpace ℝ (Fin 2) →L[ℝ] ℝ).continuous).smul continuous_const) /-- The product Chebyshev map is `C¹`. -/ lemma contDiff_chebProd (m n : ℕ) : ContDiff ℝ 1 (chebProd m n) := by rw [chebProd_eq] exact (((contDiff_chebPoly m).comp (EuclideanSpace.proj (0 : Fin 2) : EuclideanSpace ℝ (Fin 2) →L[ℝ] ℝ).contDiff).smul contDiff_const).add (((contDiff_chebPoly n).comp (EuclideanSpace.proj (1 : Fin 2) : EuclideanSpace ℝ (Fin 2) →L[ℝ] ℝ).contDiff).smul contDiff_const) /-- **The product Chebyshev map is ergodic for the product arcsine law** (`m, n ≥ 2`): it is a factor of the toral endomorphism `(θ₁, θ₂) ↦ (mθ₁, nθ₂)`. -/ theorem ergodic_chebProd {m n : ℕ} (hm : 1 < m) (hn : 1 < n) : Ergodic (chebProd m n) arcsineMeasure2 := measurePreserving_torusCos.ergodic_of_ergodic_semiconj (ergodic_torusMul hm hn) (continuous_chebProd m n).measurable fun p => (chebProd_torusCos m n p).symm /-- The derivative of the product Chebyshev map at `v`. -/ lemma hasFDerivAt_chebProd (m n : ℕ) (v : EuclideanSpace ℝ (Fin 2)) : HasFDerivAt (chebProd m n) (((chebPolyDeriv m (v 0)) • (EuclideanSpace.proj (0 : Fin 2) : EuclideanSpace ℝ (Fin 2) →L[ℝ] ℝ)).smulRight (emb2 1 0) + ((chebPolyDeriv n (v 1)) • (EuclideanSpace.proj (1 : Fin 2) : EuclideanSpace ℝ (Fin 2) →L[ℝ] ℝ)).smulRight (emb2 0 1)) v := by rw [chebProd_eq] exact (((hasDerivAt_chebPoly m (v 0)).comp_hasFDerivAt v (EuclideanSpace.proj (0 : Fin 2) : EuclideanSpace ℝ (Fin 2) →L[ℝ] ℝ).hasFDerivAt).smul_const (emb2 1 0)).add (((hasDerivAt_chebPoly n (v 1)).comp_hasFDerivAt v (EuclideanSpace.proj (1 : Fin 2) : EuclideanSpace ℝ (Fin 2) →L[ℝ] ℝ).hasFDerivAt).smul_const (emb2 0 1)) /-- The derivative matrix of the product Chebyshev map is `diag (Tₘ'(x), Tₙ'(y))`. -/ lemma derivativeCocycle_chebProd (m n : ℕ) (v : EuclideanSpace ℝ (Fin 2)) : derivativeCocycle (chebProd m n) v = Matrix.diagonal ![chebPolyDeriv m (v 0), chebPolyDeriv n (v 1)] := by rw [derivativeCocycle, (hasFDerivAt_chebProd m n v).fderiv, (Matrix.toEuclideanCLM (𝕜 := ℝ) (n := Fin 2)).symm_apply_eq] refine ContinuousLinearMap.ext fun w => ?_ ext i have h := congrFun (Matrix.ofLp_toEuclideanCLM (Matrix.diagonal ![chebPolyDeriv m (v 0), chebPolyDeriv n (v 1)]) w) i change _ = ((Matrix.toEuclideanCLM (𝕜 := ℝ) _) w).ofLp i rw [h] fin_cases i <;> simp [Matrix.mulVec_diagonal, emb2] /-! ## The diagonal cocycle -/ /-- The corrected derivative cocycle of the product Chebyshev map: `diag (scalarGain Tₘ' (x), scalarGain Tₙ' (y))`. -/ noncomputable def chebProdCocycle (m n : ℕ) (v : EuclideanSpace ℝ (Fin 2)) : Matrix (Fin 2) (Fin 2) ℝ := Matrix.diagonal ![scalarGain (chebPolyDeriv m) (v 0), scalarGain (chebPolyDeriv n) (v 1)] /-- The corrected cocycle is invertible. -/ lemma chebProdCocycle_det_ne_zero (m n : ℕ) (v : EuclideanSpace ℝ (Fin 2)) : (chebProdCocycle m n v).det ≠ 0 := by rw [chebProdCocycle, Matrix.det_diagonal, Fin.prod_univ_two] exact mul_ne_zero (scalarGain_ne_zero _ _) (scalarGain_ne_zero _ _) /-- The corrected cocycle is measurable. -/ lemma measurable_chebProdCocycle (m n : ℕ) : Measurable (chebProdCocycle m n) := by have h0 : Measurable fun v : EuclideanSpace ℝ (Fin 2) => scalarGain (chebPolyDeriv m) (v 0) := (measurable_scalarGain (measurable_chebPolyDeriv m)).comp ((measurable_pi_apply 0).comp (WithLp.measurable_ofLp 2 _)) have h1 : Measurable fun v : EuclideanSpace ℝ (Fin 2) => scalarGain (chebPolyDeriv n) (v 1) := (measurable_scalarGain (measurable_chebPolyDeriv n)).comp ((measurable_pi_apply 1).comp (WithLp.measurable_ofLp 2 _)) refine measurable_pi_iff.2 fun i => measurable_pi_iff.2 fun j => ?_ fin_cases i <;> fin_cases j <;> simp [chebProdCocycle, h0, h1] /-- The inverse of a diagonal `2 × 2` matrix with nonzero entries. -/ lemma inv_diagonal_two {a b : ℝ} (ha : a ≠ 0) (hb : b ≠ 0) : (Matrix.diagonal ![a, b])⁻¹ = Matrix.diagonal ![a⁻¹, b⁻¹] := by refine Matrix.inv_eq_left_inv ?_ rw [Matrix.diagonal_mul_diagonal] ext i j fin_cases i <;> fin_cases j <;> simp [ha, hb] /-- The operator norm of `diag (a, b)` is `max |a| |b|`. -/ lemma norm_diagonal_two (a b : ℝ) : ‖Matrix.diagonal ![a, b]‖ = max |a| |b| := by rw [Matrix.l2_opNorm_diagonal] refine le_antisymm ((pi_norm_le_iff_of_nonneg (le_max_of_le_left (abs_nonneg a))).2 fun i => ?_) (max_le ?_ ?_) · fin_cases i · exact (Real.norm_eq_abs a).le.trans (le_max_left _ _) · exact (Real.norm_eq_abs b).le.trans (le_max_right _ _) · have := norm_le_pi_norm (![a, b] : Fin 2 → ℝ) 0 simpa using this · have := norm_le_pi_norm (![a, b] : Fin 2 → ℝ) 1 simpa using this /-- `log⁺ (max |a| |b|) ≤ |log |a|| + |log |b||`. -/ lemma posLog_max_abs_le (a b : ℝ) : Real.posLog (max |a| |b|) ≤ abs (Real.log |a|) + abs (Real.log |b|) := by have ha := posLog_le_abs_log |a| have hb := posLog_le_abs_log |b| rcases le_total |a| |b| with h | h · rw [max_eq_right h]; linarith [abs_nonneg (Real.log |a|)] · rw [max_eq_left h]; linarith [abs_nonneg (Real.log |b|)] /-- `log |Tₘ'(x)|` is integrable for the product arcsine law. -/ lemma integrable_log_abs_chebPolyDeriv_coord0 {m : ℕ} (hm : m ≠ 0) : Integrable (fun v : EuclideanSpace ℝ (Fin 2) => Real.log |chebPolyDeriv m (v 0)|) arcsineMeasure2 := (measurePreserving_coord0.integrable_comp (measurable_log_abs_comp_coord (measurable_chebPolyDeriv m)).aestronglyMeasurable).2 (integrable_log_abs_chebPolyDeriv hm) /-- `log |Tₙ'(y)|` is integrable for the product arcsine law. -/ lemma integrable_log_abs_chebPolyDeriv_coord1 {n : ℕ} (hn : n ≠ 0) : Integrable (fun v : EuclideanSpace ℝ (Fin 2) => Real.log |chebPolyDeriv n (v 1)|) arcsineMeasure2 := (measurePreserving_coord1.integrable_comp (measurable_log_abs_comp_coord (measurable_chebPolyDeriv n)).aestronglyMeasurable).2 (integrable_log_abs_chebPolyDeriv hn) /-- The corrected cocycle satisfies `log⁺ ‖A‖ ∈ L¹`. -/ lemma integrableLogNorm_chebProdCocycle {m n : ℕ} (hm : 1 < m) (hn : 1 < n) : IntegrableLogNorm (chebProdCocycle m n) arcsineMeasure2 := by have hmeas : Measurable fun v => Real.posLog ‖chebProdCocycle m n v‖ := Real.continuous_posLog.measurable.comp (continuous_norm.measurable.comp (measurable_chebProdCocycle m n)) refine Integrable.mono' ((integrable_log_abs_chebPolyDeriv_coord0 (m := m) (by omega)).abs.add (integrable_log_abs_chebPolyDeriv_coord1 (n := n) (by omega)).abs) hmeas.aestronglyMeasurable ?_ filter_upwards with v rw [Real.norm_of_nonneg Real.posLog_nonneg, chebProdCocycle, norm_diagonal_two] refine (posLog_max_abs_le _ _).trans_eq ?_ simp only [Pi.add_apply, log_abs_scalarGain] /-- The corrected cocycle satisfies `log⁺ ‖A⁻¹‖ ∈ L¹`. -/ lemma integrableLogNorm_inv_chebProdCocycle {m n : ℕ} (hm : 1 < m) (hn : 1 < n) : IntegrableLogNorm (fun v => (chebProdCocycle m n v)⁻¹) arcsineMeasure2 := by have hmeas : Measurable fun v => Real.posLog ‖(chebProdCocycle m n v)⁻¹‖ := Real.continuous_posLog.measurable.comp (continuous_norm.measurable.comp (measurable_inv_matrix.comp (measurable_chebProdCocycle m n))) refine Integrable.mono' ((integrable_log_abs_chebPolyDeriv_coord0 (m := m) (by omega)).abs.add (integrable_log_abs_chebPolyDeriv_coord1 (n := n) (by omega)).abs) hmeas.aestronglyMeasurable ?_ filter_upwards with v rw [Real.norm_of_nonneg Real.posLog_nonneg, chebProdCocycle, inv_diagonal_two (scalarGain_ne_zero _ _) (scalarGain_ne_zero _ _), norm_diagonal_two] refine (posLog_max_abs_le _ _).trans_eq ?_ simp only [Pi.add_apply, abs_inv, Real.log_inv, abs_neg, log_abs_scalarGain] /-- The corrected cocycle agrees with the derivative matrix almost everywhere. -/ lemma ae_chebProdCocycle_eq {m n : ℕ} (hm : m ≠ 0) (hn : n ≠ 0) : ∀ᵐ v ∂arcsineMeasure2, chebProdCocycle m n v = derivativeCocycle (chebProd m n) v := by have h0 := measurePreserving_coord0.quasiMeasurePreserving.ae (ae_chebPolyDeriv_ne_zero hm) have h1 := measurePreserving_coord1.quasiMeasurePreserving.ae (ae_chebPolyDeriv_ne_zero hn) filter_upwards [h0, h1] with v hv0 hv1 simp only [coord0, coord1, emb_apply] at hv0 hv1 rw [chebProdCocycle, derivativeCocycle_chebProd, scalarGain, scalarGain] simp only [hv0, hv1, ite_false] /-! ## The Lyapunov exponents -/ /-- `diag (1, 1) = 1`. -/ lemma diagonal_one_one : Matrix.diagonal ![(1 : ℝ), 1] = 1 := by ext i j; fin_cases i <;> fin_cases j <;> simp /-- The iterates of the diagonal cocycle are diagonal, with the products of the gains along the orbit on the diagonal. -/ lemma cocycle_chebProdCocycle (m n k : ℕ) (v : EuclideanSpace ℝ (Fin 2)) : cocycle (chebProdCocycle m n) (chebProd m n) k v = Matrix.diagonal ![∏ j ∈ Finset.range k, scalarGain (chebPolyDeriv m) (((chebProd m n)^[j] v) 0), ∏ j ∈ Finset.range k, scalarGain (chebPolyDeriv n) (((chebProd m n)^[j] v) 1)] := by induction k generalizing v with | zero => simp only [cocycle_zero, Finset.range_zero, Finset.prod_empty, diagonal_one_one] | succ k ih => rw [cocycle_succ, ih, chebProdCocycle, Matrix.diagonal_mul_diagonal, Finset.prod_range_succ', Finset.prod_range_succ'] congr 1 ext i fin_cases i <;> simp [Function.iterate_succ_apply] /-- `log |∏ⱼ scalarGain g (uⱼ)| = ∑ⱼ log |g (uⱼ)|`. -/ lemma log_abs_prod_scalarGain {g : ℝ → ℝ} (k : ℕ) (u : ℕ → ℝ) : Real.log |∏ j ∈ Finset.range k, scalarGain g (u j)| = ∑ j ∈ Finset.range k, Real.log |g (u j)| := by rw [Finset.abs_prod, Real.log_prod (fun j _ => abs_ne_zero.2 (scalarGain_ne_zero _ _))] exact Finset.sum_congr rfl fun j _ => log_abs_scalarGain g (u j) /-- `log (max a b) = max (log a) (log b)` for `a, b > 0`. -/ lemma log_max_of_pos {a b : ℝ} (ha : 0 < a) (hb : 0 < b) : Real.log (max a b) = max (Real.log a) (Real.log b) := by rcases le_total a b with h | h · rw [max_eq_right h, max_eq_right (Real.log_le_log ha h)] · rw [max_eq_left h, max_eq_left (Real.log_le_log hb h)] /-- `log ‖(A⁽ᵏ⁾)⁻¹‖` is the larger of the two negated Birkhoff sums of `log |Tₘ'(x)|` and `log |Tₙ'(y)|`. -/ lemma log_norm_inv_cocycle_chebProd (m n k : ℕ) (v : EuclideanSpace ℝ (Fin 2)) : Real.log ‖(cocycle (chebProdCocycle m n) (chebProd m n) k v)⁻¹‖ = max (-birkhoffSum (chebProd m n) (fun w => Real.log |chebPolyDeriv m (w 0)|) k v) (-birkhoffSum (chebProd m n) (fun w => Real.log |chebPolyDeriv n (w 1)|) k v) := by have hP : ∏ j ∈ Finset.range k, scalarGain (chebPolyDeriv m) (((chebProd m n)^[j] v) 0) ≠ 0 := Finset.prod_ne_zero_iff.2 fun j _ => scalarGain_ne_zero _ _ have hQ : ∏ j ∈ Finset.range k, scalarGain (chebPolyDeriv n) (((chebProd m n)^[j] v) 1) ≠ 0 := Finset.prod_ne_zero_iff.2 fun j _ => scalarGain_ne_zero _ _ rw [cocycle_chebProdCocycle, inv_diagonal_two hP hQ, norm_diagonal_two, log_max_of_pos (abs_pos.2 (inv_ne_zero hP)) (abs_pos.2 (inv_ne_zero hQ)), abs_inv, abs_inv, Real.log_inv, Real.log_inv, log_abs_prod_scalarGain, log_abs_prod_scalarGain] rfl /-- `∫ log |Tₘ'(x)| dν = log m`. -/ lemma integral_log_abs_chebPolyDeriv_coord0 {m : ℕ} (hm : m ≠ 0) : ∫ v, Real.log |chebPolyDeriv m (v 0)| ∂arcsineMeasure2 = Real.log m := by rw [← integral_log_abs_chebPolyDeriv hm, ← measurePreserving_coord0.map_eq, integral_map measurable_coord0.aemeasurable (measurable_log_abs_comp_coord (measurable_chebPolyDeriv m)).aestronglyMeasurable] rfl /-- `∫ log |Tₙ'(y)| dν = log n`. -/ lemma integral_log_abs_chebPolyDeriv_coord1 {n : ℕ} (hn : n ≠ 0) : ∫ v, Real.log |chebPolyDeriv n (v 1)| ∂arcsineMeasure2 = Real.log n := by rw [← integral_log_abs_chebPolyDeriv hn, ← measurePreserving_coord1.map_eq, integral_map measurable_coord1.aemeasurable (measurable_log_abs_comp_coord (measurable_chebPolyDeriv n)).aestronglyMeasurable] rfl variable {m n : ℕ} (hm : 1 < m) (hn : 1 < n) /-- The sum of the two Lyapunov exponents of the product Chebyshev map is `log m + log n`. -/ lemma sumAllExp_chebProd : sumAllExp (ergodic_chebProd hm hn) (chebProdCocycle_det_ne_zero m n) (measurable_chebProdCocycle m n) (integrableLogNorm_chebProdCocycle hm hn) (integrableLogNorm_inv_chebProdCocycle hm hn) = Real.log m + Real.log n := by rw [sumAllExp_eq_integral_log_abs_det, ← integral_log_abs_chebPolyDeriv_coord0 (m := m) (by omega), ← integral_log_abs_chebPolyDeriv_coord1 (n := n) (by omega), ← integral_add (integrable_log_abs_chebPolyDeriv_coord0 (by omega)) (integrable_log_abs_chebPolyDeriv_coord1 (by omega))] refine integral_congr_ae (Eventually.of_forall fun v => ?_) simp only [chebProdCocycle, Matrix.det_diagonal, Fin.prod_univ_two, Matrix.cons_val_zero, Matrix.cons_val_one] rw [abs_mul, Real.log_mul (abs_ne_zero.2 (scalarGain_ne_zero _ _)) (abs_ne_zero.2 (scalarGain_ne_zero _ _)), log_abs_scalarGain, log_abs_scalarGain] /-- The smaller Lyapunov exponent of the product Chebyshev map is `min (log m) (log n)`. -/ lemma exponents_chebProd_one : exponents (ergodic_chebProd hm hn) (chebProdCocycle_det_ne_zero m n) (measurable_chebProdCocycle m n) (integrableLogNorm_chebProdCocycle hm hn) (integrableLogNorm_inv_chebProdCocycle hm hn) 1 = min (Real.log m) (Real.log n) := by have hT := ergodic_chebProd hm hn have hbirk0 := tendsto_birkhoffAverage_ae_integral hT (integrable_log_abs_chebPolyDeriv_coord0 (m := m) (by omega)) have hbirk1 := tendsto_birkhoffAverage_ae_integral hT (integrable_log_abs_chebPolyDeriv_coord1 (n := n) (by omega)) obtain ⟨v, hv, hv0, hv1⟩ := ((tendsto_log_norm_inv_cocycle hT (chebProdCocycle_det_ne_zero m n) (measurable_chebProdCocycle m n) (integrableLogNorm_chebProdCocycle hm hn) (integrableLogNorm_inv_chebProdCocycle hm hn)).and (hbirk0.and hbirk1)).exists rw [integral_log_abs_chebPolyDeriv_coord0 (by omega)] at hv0 rw [integral_log_abs_chebPolyDeriv_coord1 (by omega)] at hv1 have hlim := hv0.neg.max hv1.neg have heq : (fun k : ℕ => (k : ℝ)⁻¹ * Real.log ‖(cocycle (chebProdCocycle m n) (chebProd m n) k v)⁻¹‖) = fun k => max (-birkhoffAverage ℝ (chebProd m n) (fun w => Real.log |chebPolyDeriv m (w 0)|) k v) (-birkhoffAverage ℝ (chebProd m n) (fun w => Real.log |chebPolyDeriv n (w 1)|) k v) := by funext k rw [log_norm_inv_cocycle_chebProd, mul_max_of_nonneg _ _ (inv_nonneg.2 k.cast_nonneg), birkhoffAverage, birkhoffAverage, smul_eq_mul, smul_eq_mul, mul_neg, mul_neg] rw [heq] at hv have h := tendsto_nhds_unique hv hlim rw [max_neg_neg, neg_inj] at h exact h /-- **The Lyapunov spectrum of the product Chebyshev map** is `(max (log m) (log n), min (log m) (log n))`. -/ theorem exponents_chebProd : exponents (ergodic_chebProd hm hn) (chebProdCocycle_det_ne_zero m n) (measurable_chebProdCocycle m n) (integrableLogNorm_chebProdCocycle hm hn) (integrableLogNorm_inv_chebProdCocycle hm hn) 0 = max (Real.log m) (Real.log n) ∧ exponents (ergodic_chebProd hm hn) (chebProdCocycle_det_ne_zero m n) (measurable_chebProdCocycle m n) (integrableLogNorm_chebProdCocycle hm hn) (integrableLogNorm_inv_chebProdCocycle hm hn) 1 = min (Real.log m) (Real.log n) := by refine ⟨?_, exponents_chebProd_one hm hn⟩ have h := sumAllExp_chebProd hm hn rw [sumAllExp, Fin.sum_univ_two, exponents_chebProd_one hm hn] at h have := min_add_max (Real.log m) (Real.log n) linarith /-- Both Lyapunov exponents of the product Chebyshev map are nonnegative. -/ lemma exponents_chebProd_nonneg (i : Fin 2) : 0 ≤ exponents (ergodic_chebProd hm hn) (chebProdCocycle_det_ne_zero m n) (measurable_chebProdCocycle m n) (integrableLogNorm_chebProdCocycle hm hn) (integrableLogNorm_inv_chebProdCocycle hm hn) i := by have h1 : (0 : ℝ) ≤ min (Real.log m) (Real.log n) := le_min (Real.log_nonneg (by exact_mod_cast hm.le)) (Real.log_nonneg (by exact_mod_cast hn.le)) rw [← exponents_chebProd_one hm hn] at h1 exact h1.trans (exponents_antitone _ _ _ _ _ (Fin.le_last i)) /-- **The positive-exponent sum of the product Chebyshev map is `log m + log n`.** -/ theorem sumPosExp_chebProd : sumPosExp (ergodic_chebProd hm hn) (chebProdCocycle_det_ne_zero m n) (measurable_chebProdCocycle m n) (integrableLogNorm_chebProdCocycle hm hn) (integrableLogNorm_inv_chebProdCocycle hm hn) = Real.log m + Real.log n := by rw [sumPosExp_eq_sumAllExp_of_nonneg _ _ _ _ _ (exponents_chebProd_nonneg hm hn), sumAllExp_chebProd hm hn] /-! ## The injectivity domains -/ omit hm hn in /-- The injectivity domain of `(x, y) ↦ (Tₘ(x), Tₙ(y))` indexed by `(i, j)`: the product of the `i`-th domain of `Tₘ` and the `j`-th domain of `Tₙ`. -/ noncomputable def chebProdCell (m n : ℕ) (ij : Fin m × Fin n) : Set (EuclideanSpace ℝ (Fin 2)) := coord0 ⁻¹' chebNCell m ij.1 ∩ coord1 ⁻¹' chebNCell n ij.2 omit hm hn in /-- The product domains are measurable. -/ lemma measurableSet_chebProdCell (m n : ℕ) (ij : Fin m × Fin n) : MeasurableSet (chebProdCell m n ij) := (measurable_coord0 (measurableSet_chebNCell m ij.1)).inter (measurable_coord1 (measurableSet_chebNCell n ij.2)) /-- The partition into the `m · n` product domains, indexed by `Fin m × Fin n`. -/ noncomputable def chebProdPartition' : Entropy.MeasurePartition arcsineMeasure2 (Fin m × Fin n) where cells := chebProdCell m n measurable := measurableSet_chebProdCell m n aedisjoint ij kl hne := by by_cases h1 : ij.1 = kl.1 · have h2 : ij.2 ≠ kl.2 := fun h2 => hne (Prod.ext h1 h2) refine measure_mono_null (t := coord1 ⁻¹' (chebNCell n ij.2 ∩ chebNCell n kl.2)) (fun v hv => ⟨hv.1.2, hv.2.2⟩) ?_ rw [measurePreserving_coord1.measure_preimage ((measurableSet_chebNCell n _).inter (measurableSet_chebNCell n _)).nullMeasurableSet] exact (chebNPartition hn).aedisjoint h2 · refine measure_mono_null (t := coord0 ⁻¹' (chebNCell m ij.1 ∩ chebNCell m kl.1)) (fun v hv => ⟨hv.1.1, hv.2.1⟩) ?_ rw [measurePreserving_coord0.measure_preimage ((measurableSet_chebNCell m _).inter (measurableSet_chebNCell m _)).nullMeasurableSet] exact (chebNPartition hm).aedisjoint h1 cover := by refine Set.eq_univ_of_forall fun v => ?_ have h0 : coord0 v ∈ ⋃ i, chebNCell m i := (chebNPartition hm).cover ▸ mem_univ _ have h1 : coord1 v ∈ ⋃ j, chebNCell n j := (chebNPartition hn).cover ▸ mem_univ _ obtain ⟨i, hi⟩ := mem_iUnion.1 h0 obtain ⟨j, hj⟩ := mem_iUnion.1 h1 exact mem_iUnion.2 ⟨(i, j), hi, hj⟩ /-- The partition into the `m · n` product domains, indexed by `Fin (m * n)`. -/ noncomputable def chebProdPartition : Entropy.MeasurePartition arcsineMeasure2 (Fin (m * n)) := (chebProdPartition' hm hn).reindex finProdFinEquiv.symm /-- The product Chebyshev map is injective on each product domain. -/ lemma isInjectivityPartition_chebProd : IsInjectivityPartition arcsineMeasure2 (chebProd m n) (chebProdPartition hm hn) where inj k := by intro v hv w hw hvw have hv' : v ∈ chebProdCell m n (finProdFinEquiv.symm k) := hv have hw' : w ∈ chebProdCell m n (finProdFinEquiv.symm k) := hw have h0 := congrArg (fun u => u 0) hvw have h1 := congrArg (fun u => u 1) hvw simp only [chebProd, emb2_apply_zero, emb2_apply_one] at h0 h1 simp only [chebProdCell, mem_inter_iff, mem_preimage, chebNCell, mem_ofPred_eq, coord0, coord1, emb_apply] at hv' hw' have e0 := injOn_chebPoly_cell hm _ (finProdFinEquiv.symm k).1.isLt hv'.1 hw'.1 h0 have e1 := injOn_chebPoly_cell hn _ (finProdFinEquiv.symm k).2.isLt hv'.2 hw'.2 h1 rw [← emb2_coord v, ← emb2_coord w, e0, e1] /-! ## Pesin's formula for the product Chebyshev map -/ /-- **Pesin's entropy formula for the product Chebyshev map** `(x, y) ↦ (Tₘ(x), Tₙ(y))` (`m, n ≥ 2`), as an instance of the abstract theorem `ErgodicTheory.pesin_entropy_formula_of_ae_eq` in dimension two: every hypothesis of that theorem is verified for the product arcsine law. -/ theorem pesin_formula_chebProd : Entropy.ksEntropy (ergodic_chebProd hm hn).toMeasurePreserving = ((sumPosExp (ergodic_chebProd hm hn) (chebProdCocycle_det_ne_zero m n) (measurable_chebProdCocycle m n) (integrableLogNorm_chebProdCocycle hm hn) (integrableLogNorm_inv_chebProdCocycle hm hn) : ℝ) : EReal) := haveI : Nonempty (Fin (m * n)) := ⟨⟨0, Nat.mul_pos (by omega) (by omega)⟩⟩ pesin_entropy_formula_of_ae_eq (ergodic_chebProd hm hn) (chebProdCocycle_det_ne_zero m n) (measurable_chebProdCocycle m n) (integrableLogNorm_chebProdCocycle hm hn) (integrableLogNorm_inv_chebProdCocycle hm hn) (contDiff_chebProd m n) (isCompact_closedBall 0 2) arcsineMeasure2_compl_closedBall (ae_chebProdCocycle_eq (by omega) (by omega)) ⟨arcsineMeasure2_ac⟩ (isInjectivityPartition_chebProd hm hn) (exponents_chebProd_nonneg hm hn) integrable_log_rnDeriv2 /-- **The Kolmogorov–Sinai entropy of the product Chebyshev map is `log m + log n`**, computed from Pesin's formula. -/ theorem ksEntropy_chebProd : Entropy.ksEntropy (ergodic_chebProd hm hn).toMeasurePreserving = ((Real.log m + Real.log n : ℝ) : EReal) := by rw [pesin_formula_chebProd hm hn, sumPosExp_chebProd hm hn] end ErgodicTheory.Examples.Chebyshev