@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[instance_reducible]
Equations
- Fintype.instOfIsEmpty_projects = { elems := ∅, complete := ⋯ }
@[instance_reducible]
noncomputable instance
Fintype.instElemRange_projects
{α : Type u_1}
[ha : Fintype α]
{β : Type u_2}
{f : α → β}
:
Equations
@[instance_reducible]
noncomputable instance
Fintype.instElem_projects
{α : Type u_1}
[ha : Fintype α]
{s : Set α}
:
Fintype ↑s
Equations
def
Finset.fold'
{α : Type u_1}
{β : Type u_2}
(s : Finset α)
(f : β → α → β)
(z : β)
(h : ∀ {acc : β} {x y : α}, f (f acc x) y = f (f acc y) x)
:
β
Equations
- s.fold' f z h = Multiset.foldl f z s.val
Instances For
Equations
- s.toSortedList = Quot.liftOn s.val (fun (xs : List α) => xs.mergeSort fun (a b : α) => decide (a ≤ b)) ⋯
Instances For
Equations
- Finset.mkRaw f = if h : Infinite α then ∅ else have h := Fintype.ofFinite α; (List.map f Fintype.elems.toList).toFinset
Instances For
@[simp]
def
Finset.mkRaw_comp
{α : Type u_4}
{β : Type u_5}
[Fintype α]
[LinearOrder α]
[DecidableEq β]
(f : α → β)
:
Finset β
Equations
Instances For
@[simp]
theorem
Finset.mkRaw_eq
{α : Type u_4}
{β : Type u_5}
[ha : Fintype α]
[DecidableEq α]
[DecidableEq β]
{f : α → β}
:
@[simp]
theorem
Finset.mem_mkRaw_comp_iff
{α : Type u_4}
{β : Type u_5}
[Fintype α]
[LinearOrder α]
[DecidableEq β]
{f : α → β}
{b : β}
:
@[simp]
theorem
Finset.mkRaw_comp_eq_mkRaw
{α : Type u_4}
{β : Type u_5}
[Fintype α]
[LinearOrder α]
[DecidableEq β]
{f : α → β}
:
@[simp]
theorem
Finset.mkRaw_const_of_nonempty
{α : Type u_4}
{β : Type u_5}
[Fintype α]
[Nonempty α]
[DecidableEq α]
[DecidableEq β]
{b : β}
:
@[simp]
theorem
Finset.mkRaw_const_of_empty
{α : Type u_4}
{β : Type u_5}
[IsEmpty α]
[DecidableEq β]
{b : β}
:
theorem
Finset.image_toSet_eq
{α : Type u_4}
{β : Type u_5}
[DecidableEq β]
{s : Finset α}
{f : α → β}
:
theorem
Finset.sum_eq_add_sum_erase_of_mem
{α : Type u_4}
[ha : DecidableEq α]
{s : Finset α}
{x : α}
{f : α → ℕ}
(h : x ∈ s)
:
@[simp]
theorem
Multiset.card_filter_eq_eq_count
{α : Type u_1}
[ha : DecidableEq α]
{m : Multiset α}
{x : α}
:
@[simp]
theorem
List.count_map_of_loc
{α : Type u_1}
{β : Type u_2}
{xs : List α}
[ha : DecidableEq α]
[hb : DecidableEq β]
{f : α → β}
{x : α}
(h : ∀ y ∈ xs, f x = f y → x = y)
:
@[simp]
@[simp]
theorem
List.le_max?
{α : Type u_1}
{xs : List α}
[ha : LinearOrder α]
{x m : α}
(h₁ : x ∈ xs)
(h₂ : xs.max? = some m)
:
theorem
List.pairwise_erase
{α : Type u_1}
{xs : List α}
[ha : DecidableEq α]
{r : α → α → Prop}
{x : α}
(h : Pairwise r xs)
:
@[simp]
@[simp]
@[simp]
theorem
Finset.mem_map''
{α : Type u_1}
{β : Type u_2}
{s : Finset α}
[hb : DecidableEq β]
{f : α → β}
{y : β}
:
@[instance_reducible]
instance
Finset.instDecidableForallOfFintypeOfDecidablePred_projects
{α : Type u_1}
[ha : Fintype α]
{p : α → Prop}
[hp : DecidablePred p]
:
Decidable (∀ (x : α), p x)