/- 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.Livsic.BiShift.MeasurableRigidity public import ErgodicTheory.Livsic.BiShift.Factor public import ErgodicTheory.Livsic.FullShift public import ErgodicTheory.Livsic.Rigidity.Measurable public import ErgodicTheory.Multifractal.Bernoulli.TwoSided.Ergodic /-! # The full measurable Livšic rigidity theorem (Katok–Hasselblatt 19.2.4) Measurable a.e. solutions of the cohomological equation with Hölder data have vanishing periodic obstructions, and agree a.e. with Hölder solutions; this gives the full equivalence for both the two-sided and the one-sided Bernoulli full shift. The proof runs entirely through the two-sided natural extension over the Bernoulli product structure: the one-sided shift `(Shift α₀, shiftMap, bern ν)` is a measure-theoretic factor of the invertible two-sided shift `(BiShift α₀, biShiftMap, bernZ ν)` via the restriction map `toShift : BiShift α₀ → Shift α₀` (`ErgodicTheory.Livsic.BiShift.Factor`). Hölder data, measurability, and the a.e. cohomological equation all transport *up* the factor, so the two-sided result `hasVanishingPeriodicSums_of_measurable_aeCoboundary_biShift` (`ErgodicTheory.Livsic.BiShift.MeasurableRigidity`, via the stable/unstable essential-oscillation bounds and truncation; no Hölder-version construction of the transfer function and no Birkhoff ergodic theorem) applies to `φ ∘ toShift`. A periodic lift (a one-sided `n`-periodic point `p` lifts to the bi-infinite `n`-periodization `pZ j = p ((j % n).toNat)`, which is `biShiftMap`-`n`-periodic and whose Birkhoff sum of `φ ∘ toShift` equals that of `φ` along `p`) then descends vanishing periodic sums back to the one-sided shift. ## Main results * `hasVanishingPeriodicSums_of_measurable_aeCoboundary` — a Hölder observable that is the `bern ν`-a.e. coboundary of a measurable transfer function has vanishing periodic sums. * `livsic_measurable_rigidity` — the full Katok–Hasselblatt 19.2.4 equivalence: over a fully supported Bernoulli measure, a Hölder observable (`0 < r ≤ 1`) admits a measurable a.e. transfer function iff all of its periodic Birkhoff sums vanish. The forward direction is the result above; the backward direction produces the Hölder solution (`livsic_fullShift`), which is continuous, hence measurable and an exact — so a.e. — coboundary. * `measurable_aeCoboundary_ae_eq_holder` — Katok–Hasselblatt 19.2.4: every measurable a.e. solution agrees `bern ν`-a.e. with a Hölder solution of the cohomological equation. * `livsic_measurable_rigidity_biShift`, `measurable_aeCoboundary_ae_eq_holder_biShift` — the same two statements for the two-sided full shift with a fully supported Bernoulli measure `bernZ ν`. The measures treated are Bernoulli measures with full support; the argument uses their product structure (`ErgodicTheory.Livsic.BiShift.ProductStructure`). ## References * A. Katok, B. Hasselblatt, *Introduction to the Modern Theory of Dynamical Systems*, CUP (1995), Theorem 19.2.4. * A. N. Livšic, *Cohomology of dynamical systems*, Math. USSR-Izv. **6** (1972), 1278–1301. -/ @[expose] public section open MeasureTheory Function Filter open scoped NNReal namespace ErgodicTheory.Livsic open ErgodicTheory.Multifractal attribute [local instance] PiNat.metricSpace biShiftMetricSpace /-! ### The periodic lift and the descent along the factor -/ section Descent variable {α₀ : Type*} /-- **Descent of vanishing periodic sums along the factor.** If the lifted observable `φ ∘ toShift` has vanishing periodic sums for the two-sided shift, then `φ` has vanishing periodic sums for the one-sided shift. Every one-sided `n`-periodic point `p` (with `n ≥ 1`) lifts to the bi-infinite `n`-periodization `pZ j = p ((j % n).toNat)`, which is `biShiftMap`-`n`-periodic (`Int.add_mul_emod_self_left`), restricts to `p` (`toShift pZ = p`, via `n`-periodicity of `p`), and whose Birkhoff sum of `φ ∘ toShift` equals the Birkhoff sum of `φ` along `p` (the factor intertwines the shifts, `Function.Semiconj.iterate_right`). -/ private theorem descend_vanishing {φ : Shift α₀ → ℝ} (hvanZ : HasVanishingPeriodicSums biShiftMap (φ ∘ toShift)) : HasVanishingPeriodicSums shiftMap φ := by intro n p hp rcases Nat.eq_zero_or_pos n with hn0 | hnpos · subst hn0; simp [birkhoffSum] · -- `p` is `n`-periodic on `ℕ` have hpper : ∀ m : ℕ, p (m + n) = p m := by intro m have h := congrFun hp m rwa [shiftMap_iterate_apply] at h -- hence `p` is invariant under reduction mod `n` have hpmod : ∀ m : ℕ, p (m % n) = p m := by intro m have haux : ∀ t a : ℕ, p (a + n * t) = p a := by intro t induction t with | zero => intro a; simp | succ k ih => intro a have hstep : a + n * (k + 1) = (a + n * k) + n := by ring rw [hstep, hpper, ih a] calc p (m % n) = p (m % n + n * (m / n)) := (haux (m / n) (m % n)).symm _ = p m := by rw [Nat.mod_add_div] -- the bi-infinite `n`-periodization set pZ : BiShift α₀ := fun j : ℤ => p ((j % (n : ℤ)).toNat) with hpZdef have htoShiftpZ : toShift pZ = p := by funext m simp only [toShift, hpZdef] have hmod : ((m : ℤ) % (n : ℤ)).toNat = m % n := by omega rw [hmod]; exact hpmod m have hperZ : biShiftMap^[n] pZ = pZ := by funext j rw [ErgodicTheory.biShiftMap_iterate_apply] simp only [hpZdef] have hemod : (j + (n : ℤ)) % (n : ℤ) = j % (n : ℤ) := by have hrw : j + (n : ℤ) = j + n * 1 := by ring rw [hrw, Int.add_mul_emod_self_left] rw [hemod] -- the lifted Birkhoff sum along `pZ` equals the Birkhoff sum along `p` have hsc : Function.Semiconj (toShift (α₀ := α₀)) biShiftMap shiftMap := toShift_biShiftMap have hsum_eq : birkhoffSum biShiftMap (φ ∘ toShift) n pZ = birkhoffSum shiftMap φ n p := by simp only [birkhoffSum] refine Finset.sum_congr rfl fun k _ => ?_ simp only [Function.comp_apply] rw [hsc.iterate_right k pZ, htoShiftpZ] have hvan := hvanZ n pZ hperZ rwa [hsum_eq] at hvan end Descent /-! ### Measurable rigidity for the one-sided shift -/ section OneSided variable {α₀ : Type*} [Finite α₀] [TopologicalSpace α₀] [DiscreteTopology α₀] [MeasurableSpace α₀] [MeasurableSingletonClass α₀] /-- **One-sided measurable Livšic rigidity.** Let `ν` be a fully supported probability law on the finite discrete alphabet `α₀`. If a Hölder observable `φ` (`r > 0`) is the `bern ν`-a.e. coboundary of a merely measurable (possibly unbounded) transfer function `u`, then `φ` has vanishing periodic sums for the one-sided full shift. Route: transport `φ, u` up the natural-extension factor `toShift` (Hölder data by `holderWith_comp_toShift`, measurability by `measurable_comp_toShift`, the a.e. equation by `isAeCoboundaryOf_comp_toShift`); apply the two-sided result `hasVanishingPeriodicSums_of_measurable_aeCoboundary_biShift`; descend by the periodic lift (`descend_vanishing`). -/ theorem hasVanishingPeriodicSums_of_measurable_aeCoboundary (ν : Measure α₀) [IsProbabilityMeasure ν] (hν : ∀ a : α₀, ν {a} ≠ 0) {C r : ℝ≥0} {φ : Shift α₀ → ℝ} (hφ : HolderWith C r φ) (hr : 0 < r) {u : Shift α₀ → ℝ} (hu : Measurable u) (hae : IsAeCoboundaryOf (bern ν) shiftMap φ u) : HasVanishingPeriodicSums shiftMap φ := by have hvanZ : HasVanishingPeriodicSums biShiftMap (φ ∘ toShift) := hasVanishingPeriodicSums_of_measurable_aeCoboundary_biShift ν hν (holderWith_comp_toShift hφ) hr (measurable_comp_toShift hu) (isAeCoboundaryOf_comp_toShift ν hae) exact descend_vanishing hvanZ end OneSided /-! ### The full Katok–Hasselblatt 19.2.4 equivalence -/ section Full variable {α₀ : Type*} [Nonempty α₀] [Encodable α₀] [Finite α₀] [TopologicalSpace α₀] [DiscreteTopology α₀] [MeasurableSpace α₀] [MeasurableSingletonClass α₀] /-- **Full measurable Livšic rigidity for the one-sided full shift (Katok–Hasselblatt 19.2.4).** Over a fully supported Bernoulli measure `bern ν` on a nonempty encodable finite discrete alphabet, a Hölder observable `φ` (`0 < r ≤ 1`) admits *some* measurable `bern ν`-a.e. transfer function solving `φ = u ∘ shiftMap − u` iff all of its periodic Birkhoff sums vanish. * **(⇒)** `hasVanishingPeriodicSums_of_measurable_aeCoboundary` (via the two-sided natural extension: stable/unstable essential oscillation, truncation and reverse Fatou). * **(⇐)** vanishing periodic sums feed the backward direction of `livsic_fullShift` to produce a Hölder transfer function, which — being Hölder — is continuous, hence measurable, and is an exact (so a.e.) coboundary. -/ theorem livsic_measurable_rigidity (ν : Measure α₀) [IsProbabilityMeasure ν] (hν : ∀ a : α₀, ν {a} ≠ 0) {C r : ℝ≥0} {φ : Shift α₀ → ℝ} (hφ : HolderWith C r φ) (hr0 : 0 < r) (hr1 : r ≤ 1) : (∃ u, Measurable u ∧ IsAeCoboundaryOf (bern ν) shiftMap φ u) ↔ HasVanishingPeriodicSums shiftMap φ := by constructor · rintro ⟨u, hu, hcob⟩ exact hasVanishingPeriodicSums_of_measurable_aeCoboundary ν hν hφ hr0 hu hcob · intro hvan obtain ⟨C₀, r₀, u₀, hr₀, hu₀, hsol⟩ := (livsic_fullShift hφ hr0 hr1).mpr hvan let : BorelSpace (Shift α₀) := Pi.borelSpace have hu₀meas : Measurable u₀ := (hu₀.continuous hr₀).measurable exact ⟨u₀, hu₀meas, ae_of_all _ hsol⟩ /-- **Measurable a.e. solutions are Hölder (Katok–Hasselblatt 19.2.4), one-sided.** If a Hölder `φ` (`0 < r ≤ 1`) admits a measurable `bern ν`-a.e. transfer function `u`, then `u` agrees `bern ν`-a.e. with a Hölder transfer function `u₀` solving `φ = u₀ ∘ shiftMap − u₀` everywhere. The full equivalence `livsic_measurable_rigidity` produces a Hölder solution, the a.e. solution differs from it by an a.e. constant (`measurable_solution_ae_eq_holder`, by ergodicity), and adding that constant gives a Hölder solution equal to `u` a.e. -/ theorem measurable_aeCoboundary_ae_eq_holder (ν : Measure α₀) [IsProbabilityMeasure ν] (hν : ∀ a : α₀, ν {a} ≠ 0) {C r : ℝ≥0} {φ : Shift α₀ → ℝ} (hφ : HolderWith C r φ) (hr0 : 0 < r) (hr1 : r ≤ 1) {u : Shift α₀ → ℝ} (hu : Measurable u) (hcob : IsAeCoboundaryOf (bern ν) shiftMap φ u) : ∃ (u₀ : Shift α₀ → ℝ) (C₀ r₀ : ℝ≥0), 0 < r₀ ∧ HolderWith C₀ r₀ u₀ ∧ (∀ x, φ x = u₀ (shiftMap x) - u₀ x) ∧ u =ᵐ[bern ν] u₀ := by have hvan : HasVanishingPeriodicSums shiftMap φ := (livsic_measurable_rigidity ν hν hφ hr0 hr1).mp ⟨u, hu, hcob⟩ obtain ⟨u₀, C₀, r₀, c, hr₀, hu₀, hsol, hc⟩ := measurable_solution_ae_eq_holder hφ hr0 hr1 hvan hu hcob refine ⟨fun x => u₀ x + c, C₀, r₀, hr₀, ?_, fun x => by rw [hsol x]; ring, ?_⟩ · intro x y rw [edist_add_right] exact hu₀ x y · filter_upwards [hc] with x hx linarith /-- **Full measurable Livšic rigidity for the two-sided full shift (Katok–Hasselblatt 19.2.4).** Over a fully supported two-sided Bernoulli measure `bernZ ν` on a nonempty encodable finite discrete alphabet, a Hölder observable `φ` (`0 < r ≤ 1`) admits a measurable `bernZ ν`-a.e. transfer function solving `φ = u ∘ biShiftMap − u` iff all of its periodic Birkhoff sums vanish. * **(⇒)** `hasVanishingPeriodicSums_of_measurable_aeCoboundary_biShift` (stable/unstable essential oscillation over the local product structure, truncation, the bounded case). * **(⇐)** the two-sided Hölder Livšic theorem `livsic_biShift` produces a Hölder, hence measurable, exact solution. -/ theorem livsic_measurable_rigidity_biShift (ν : Measure α₀) [IsProbabilityMeasure ν] (hν : ∀ a : α₀, ν {a} ≠ 0) {C r : ℝ≥0} {φ : BiShift α₀ → ℝ} (hφ : HolderWith C r φ) (hr0 : 0 < r) (hr1 : r ≤ 1) : (∃ u, Measurable u ∧ IsAeCoboundaryOf (bernZ ν) biShiftMap φ u) ↔ HasVanishingPeriodicSums biShiftMap φ := by constructor · rintro ⟨u, hu, hcob⟩ exact hasVanishingPeriodicSums_of_measurable_aeCoboundary_biShift ν hν hφ hr0 hu hcob · intro hvan obtain ⟨C₀, r₀, u₀, hr₀, hu₀, hsol⟩ := (livsic_biShift hφ hr0 hr1).mpr hvan let : BorelSpace (BiShift α₀) := Pi.borelSpace exact ⟨u₀, (hu₀.continuous hr₀).measurable, ae_of_all _ hsol⟩ /-- **Measurable a.e. solutions are Hölder (Katok–Hasselblatt 19.2.4), two-sided.** If a Hölder `φ` (`0 < r ≤ 1`) on the two-sided full shift admits a measurable `bernZ ν`-a.e. transfer function `u` (`ν` fully supported), then `u` agrees `bernZ ν`-a.e. with a Hölder transfer function `u₀` solving `φ = u₀ ∘ biShiftMap − u₀` everywhere. The difference of `u` and the Hölder solution of `livsic_biShift` is a.e. invariant, hence a.e. constant by ergodicity of `bernZ ν` (`ergodic_biShiftEquiv_bernZ`); absorb the constant. -/ theorem measurable_aeCoboundary_ae_eq_holder_biShift (ν : Measure α₀) [IsProbabilityMeasure ν] (hν : ∀ a : α₀, ν {a} ≠ 0) {C r : ℝ≥0} {φ : BiShift α₀ → ℝ} (hφ : HolderWith C r φ) (hr0 : 0 < r) (hr1 : r ≤ 1) {u : BiShift α₀ → ℝ} (hu : Measurable u) (hcob : IsAeCoboundaryOf (bernZ ν) biShiftMap φ u) : ∃ (u₀ : BiShift α₀ → ℝ) (C₀ r₀ : ℝ≥0), 0 < r₀ ∧ HolderWith C₀ r₀ u₀ ∧ (∀ x, φ x = u₀ (biShiftMap x) - u₀ x) ∧ u =ᵐ[bernZ ν] u₀ := by have hvan : HasVanishingPeriodicSums biShiftMap φ := (livsic_measurable_rigidity_biShift ν hν hφ hr0 hr1).mp ⟨u, hu, hcob⟩ obtain ⟨C₀, r₀, u₀, hr₀, hu₀, hsol⟩ := (livsic_biShift hφ hr0 hr1).mpr hvan let : BorelSpace (BiShift α₀) := Pi.borelSpace have hu₀m : Measurable u₀ := (hu₀.continuous hr₀).measurable have hinv : (fun x => u x - u₀ x) ∘ biShiftMap =ᵐ[bernZ ν] fun x => u x - u₀ x := by filter_upwards [hcob] with x hx have e1 : φ x = u (biShiftMap x) - u x := hx have e2 := hsol x change u (biShiftMap x) - u₀ (biShiftMap x) = u x - u₀ x linarith have herg : Ergodic biShiftMap (bernZ ν) := by have h := ergodic_biShiftEquiv_bernZ ν rwa [coe_biShiftEquiv] at h obtain ⟨c, hc⟩ := herg.ae_eq_const_of_ae_eq_comp₀ (hu.sub hu₀m).nullMeasurable hinv refine ⟨fun x => u₀ x + c, C₀, r₀, hr₀, ?_, fun x => by rw [hsol x]; ring, ?_⟩ · intro x y rw [edist_add_right] exact hu₀ x y · filter_upwards [hc] with x hx simp only [Pi.sub_apply, Function.const_apply] at hx linarith end Full end ErgodicTheory.Livsic