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 / V02. Numbers

Mathlib.Data.Rat.BigOperators

6 declarations. Mathlib docs · Source

Casting lemmas for rational numbers involving sums and products

theorem Rat.cast_list_sum E0 #

∀ {α : Type u_2} [inst : DivisionRing α] [CharZero α] (s : List ℚ), ↑s.sum = (List.map Rat.cast s).sum

theorem Rat.cast_multiset_sum E0 #

∀ {α : Type u_2} [inst : DivisionRing α] [CharZero α] (s : Multiset ℚ), ↑s.sum = (Multiset.map Rat.cast s).sum

theorem Rat.cast_sum E0 #

∀ {ι : Type u_1} {α : Type u_2} [inst : DivisionRing α] [CharZero α] (s : Finset ι) (f : ι → ℚ),
  ↑(∑ i ∈ s, f i) = ∑ i ∈ s, ↑(f i)

theorem Rat.cast_list_prod E0 #

∀ {α : Type u_2} [inst : DivisionRing α] [CharZero α] (s : List ℚ), ↑s.prod = (List.map Rat.cast s).prod

theorem Rat.cast_multiset_prod E0 #

∀ {α : Type u_2} [inst : Field α] [CharZero α] (s : Multiset ℚ), ↑s.prod = (Multiset.map Rat.cast s).prod

theorem Rat.cast_prod E0 #

∀ {ι : Type u_1} {α : Type u_2} [inst : Field α] [CharZero α] (s : Finset ι) (f : ι → ℚ),
  ↑(∏ i ∈ s, f i) = ∏ i ∈ s, ↑(f i)