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 / V03. Sets, finite structures and big operators

Mathlib.Algebra.Order.Antidiag.FinsuppEquiv

8 declarations. Mathlib docs · Source

def Finset.finsuppAntidiagEquivSubtype E1 #

{ι : Type u_1} →
  {μ : Type u_2} →
    [inst : DecidableEq ι] →
      [inst_1 : AddCommMonoid μ] →
        [inst_2 : Finset.HasAntidiagonal μ] →
          [inst_3 : DecidableEq μ] → (s : Finset ι) → (n : μ) → ↥(s.finsuppAntidiag n) ≃ { P // (P.sum fun x ↦ id) = n }

The equivalence between Finset.finsuppAntidiag s n and the subtype of s →₀ μ whose sum is n.

theorem Finset.finsuppAntidiagEquivSubtype_apply_coe E0 #

∀ {ι : Type u_1} {μ : Type u_2} [inst : DecidableEq ι] [inst_1 : AddCommMonoid μ] [inst_2 : Finset.HasAntidiagonal μ]
  [inst_3 : DecidableEq μ] (s : Finset ι) (n : μ) (f : ↥(s.finsuppAntidiag n)),
  ↑((s.finsuppAntidiagEquivSubtype n) f) = Finsupp.subtypeDomain (fun x ↦ x ∈ s) ↑f

theorem Finset.finsuppAntidiagEquivSubtype_symm_apply_coe E0 #

∀ {ι : Type u_1} {μ : Type u_2} [inst : DecidableEq ι] [inst_1 : AddCommMonoid μ] [inst_2 : Finset.HasAntidiagonal μ]
  [inst_3 : DecidableEq μ] (s : Finset ι) (n : μ) (f : { P // (P.sum fun x ↦ id) = n }),
  ↑((s.finsuppAntidiagEquivSubtype n).symm f) = (↑f).extendDomain

def Finset.finsuppAntidiagEquiv E1 #

{ι : Type u_1} → [inst : DecidableEq ι] → (s : Finset ι) → (n : ℕ) → ↥(s.finsuppAntidiag n) ≃ Sym (↥s) n

The equivalence between Finset.finsuppAntidiag s n and Sym s n.

theorem Finset.finsuppAntidiagEquiv_symm_apply_apply E0 #

∀ {ι : Type u_1} [inst : DecidableEq ι] {s : Finset ι} (n : ℕ) (f : Sym (↥s) n) (a : ↥s),
  ↑((s.finsuppAntidiagEquiv n).symm f) ↑a = Multiset.count a ↑f

theorem Finset.count_coe_finsuppAntidiagEquiv_apply E0 #

∀ {ι : Type u_1} [inst : DecidableEq ι] {s : Finset ι} (n : ℕ) (f : ↥(s.finsuppAntidiag n)) (a : ↥s),
  Multiset.count a ↑((s.finsuppAntidiagEquiv n) f) = ↑f ↑a

theorem Finset.card_finsuppAntidiag_nat_eq_choose E1 #

∀ {ι : Type u_1} [inst : DecidableEq ι] {s : Finset ι} (n : ℕ), (s.finsuppAntidiag n).card = (s.card + n - 1).choose n

theorem Finset.card_finsuppAntidiag_nat_eq_multichoose E1 #

∀ {ι : Type u_1} [inst : DecidableEq ι] {s : Finset ι} (n : ℕ), (s.finsuppAntidiag n).card = s.card.multichoose n