Lemmas to be Ported to Mathlib #
This file gives a centralized location to add lemmas that belong better in general mathlib than in the project itself.
@[simp]
theorem
Finset.sum_boole'
{ι : Type u_1}
{β : Type u_2}
[AddCommMonoid β]
(r : β)
(p : ι → Prop)
[DecidablePred p]
(s : Finset ι)
:
@[simp]
Equations
- instFintypeBitVec_toMathlib n = Fintype.ofBijective (fun (x : Fin (2 ^ n)) => { toFin := x }) ⋯
Equations
- instInhabitedSubtypeForallBijective_toMathlib α = { default := ⟨id, ⋯⟩ }
theorem
tsum_option
{α : Type u_1}
{β : Type u_2}
[AddCommMonoid α]
[TopologicalSpace α]
[ContinuousAdd α]
[T2Space α]
(f : Option β → α)
(hf : Summable (Function.update f none 0))
:
@[simp]
theorem
List.foldlM_range
{m : Type u → Type v}
[Monad m]
[LawfulMonad m]
{s : Type u}
(n : ℕ)
(f : s → Fin n → m s)
(init : s)
:
theorem
list_mapM_loop_eq
{m : Type u → Type v}
[Monad m]
[LawfulMonad m]
{α : Type w}
{β : Type u}
(xs : List α)
(f : α → m β)
(ys : List β)
: