The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V21. Dynamics, ergodic theory and information theory

Mathlib.Dynamics.BirkhoffSum.Basic

27 declarations and 2 deprecated aliases. Mathlib docs · Source

def birkhoffSum E1 #

{α : Type u_1} → {M : Type u_2} → [AddCommMonoid M] → (α → α) → (α → M) → ℕ → α → M

The sum of values of g on the first n points of the orbit of x under f.

theorem birkhoffSum_zero_apply E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → α) (g : α → M) (x : α), birkhoffSum f g 0 x = 0

theorem birkhoffSum_zero E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → α) (g : α → M), birkhoffSum f g 0 = 0

theorem birkhoffSum_one_apply E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → α) (g : α → M) (x : α), birkhoffSum f g 1 x = g x

theorem birkhoffSum_one E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → α) (g : α → M), birkhoffSum f g 1 = g

theorem birkhoffSum_succ_apply E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → α) (g : α → M) (n : ℕ) (x : α),
  birkhoffSum f g (n + 1) x = birkhoffSum f g n x + g (f^[n] x)

theorem birkhoffSum_succ E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → α) (g : α → M) (n : ℕ),
  birkhoffSum f g (n + 1) = birkhoffSum f g n + g ∘ f^[n]

theorem birkhoffSum_succ_apply' E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → α) (g : α → M) (n : ℕ) (x : α),
  birkhoffSum f g (n + 1) x = g x + birkhoffSum f g n (f x)

theorem birkhoffSum_succ' E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → α) (g : α → M) (n : ℕ),
  birkhoffSum f g (n + 1) = g + birkhoffSum f g n ∘ f

theorem birkhoffSum_add_apply E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → α) (g g' : α → M) (n : ℕ) (x : α),
  birkhoffSum f (g + g') n x = birkhoffSum f g n x + birkhoffSum f g' n x

theorem birkhoffSum_add E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → α) (g g' : α → M),
  birkhoffSum f (g + g') = birkhoffSum f g + birkhoffSum f g'

theorem birkhoffSum_add_right_apply E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → α) (g : α → M) (m n : ℕ) (x : α),
  birkhoffSum f g (m + n) x = birkhoffSum f g m x + birkhoffSum f g n (f^[m] x)

theorem birkhoffSum_add_right E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → α) (g : α → M) (m n : ℕ),
  birkhoffSum f g (m + n) = birkhoffSum f g m + birkhoffSum f g n ∘ f^[m]

theorem Function.IsFixedPt.birkhoffSum_eq E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {f : α → α} {x : α},
  Function.IsFixedPt f x → ∀ (g : α → M) (n : ℕ), birkhoffSum f g n x = n • g x

theorem map_birkhoffSum E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {F : Type u_3} {N : Type u_4} [inst_1 : AddCommMonoid N]
  [inst_2 : FunLike F M N] [AddMonoidHomClass F M N] (g' : F) (f : α → α) (g : α → M) (n : ℕ) (x : α),
  g' (birkhoffSum f g n x) = birkhoffSum f (⇑g' ∘ g) n x

theorem map_comp_birkhoffSum E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {F : Type u_3} {N : Type u_4} [inst_1 : AddCommMonoid N]
  [inst_2 : FunLike F M N] [AddMonoidHomClass F M N] (g' : F) (f : α → α) (g : α → M) (n : ℕ),
  ⇑g' ∘ birkhoffSum f g n = birkhoffSum f (⇑g' ∘ g) n

theorem birkhoffSum_comp_apply E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → α) (g : α → M) (n : ℕ) (x : α),
  birkhoffSum f (g ∘ f) n x = birkhoffSum f g n (f x)

theorem birkhoffSum_comp E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → α) (g : α → M) (n : ℕ),
  birkhoffSum f (g ∘ f) n = birkhoffSum f g n ∘ f

theorem birkhoffSum_apply_of_comp_eq E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {f : α → α} {φ : α → M},
  φ ∘ f = φ → ∀ (n : ℕ) (x : α), birkhoffSum f φ n x = n • φ x

If a function φ is invariant under a function f (i.e., φ ∘ f = φ), then the Birkhoff sum of φ over f for n iterations is equal to n • φ x at every point x.

theorem birkhoffSum_of_comp_eq E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {f : α → α} {φ : α → M},
  φ ∘ f = φ → ∀ (n : ℕ), birkhoffSum f φ n = n • φ

If a function φ is invariant under a function f (i.e., φ ∘ f = φ), then the Birkhoff sum of φ over f for n iterations is equal to n • φ.

theorem birkhoffSum_const E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → α) (a : M) {n : ℕ},
  birkhoffSum f (fun x ↦ a) n = n • fun x ↦ a

theorem birkhoffSum_neg_apply E0 #

∀ {α : Type u_1} {G : Type u_2} [inst : AddCommGroup G] (f : α → α) (g : α → G) (n : ℕ) (x : α),
  birkhoffSum f (-g) n x = -birkhoffSum f g n x

theorem birkhoffSum_neg E1 #

∀ {α : Type u_1} {G : Type u_2} [inst : AddCommGroup G] (f : α → α) (g : α → G), birkhoffSum f (-g) = -birkhoffSum f g

theorem birkhoffSum_sub_apply E0 #

∀ {α : Type u_1} {G : Type u_2} [inst : AddCommGroup G] (f : α → α) (g g' : α → G) (n : ℕ) (x : α),
  birkhoffSum f (g - g') n x = birkhoffSum f g n x - birkhoffSum f g' n x

theorem birkhoffSum_sub E1 #

∀ {α : Type u_1} {G : Type u_2} [inst : AddCommGroup G] (f : α → α) (g g' : α → G),
  birkhoffSum f (g - g') = birkhoffSum f g - birkhoffSum f g'

theorem birkhoffSum_apply_sub_birkhoffSum E1 #

∀ {α : Type u_1} {G : Type u_2} [inst : AddCommGroup G] (f : α → α) (g : α → G) (n : ℕ) (x : α),
  birkhoffSum f g n (f x) - birkhoffSum f g n x = g (f^[n] x) - g x

Birkhoff sum is "almost invariant" under f: the difference between birkhoffSum f g n (f x) and birkhoffSum f g n x is equal to g (f^[n] x) - g x.

theorem birkhoffSum_comp_sub_birkhoffSum E1 #

∀ {α : Type u_1} {G : Type u_2} [inst : AddCommGroup G] (f : α → α) (g : α → G) (n : ℕ),
  birkhoffSum f g n ∘ f - birkhoffSum f g n = g ∘ f^[n] - g

Birkhoff sum is "almost invariant" under f: the difference between birkhoffSum f g n ∘ f and birkhoffSum f g n is equal to g ∘ f^[n] - g.

Deprecated aliases

NameNew nameSince
birkhoffSum_one'birkhoffSum_one2026-08-06
birkhoffSum_zero'birkhoffSum_zero2026-08-06