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.Data.Finset.Fin

11 declarations. Mathlib docs · Source

theorem Finset.attachFin.congr_simp E1 #

∀ (s s_1 : Finset ℕ) (e_s : s = s_1) {n : ℕ} (h : ∀ m ∈ s, m < n), s.attachFin h = s_1.attachFin ⋯

def Finset.attachFin E1 #

(s : Finset ℕ) → {n : ℕ} → (∀ m ∈ s, m < n) → Finset (Fin n)

Given a Finset s of ℕ contained in {0,..., n-1}, the corresponding Finset in Fin n is s.attachFin h where h is a proof that all elements of s are less than n.

theorem Finset.mem_attachFin E0 #

∀ {n : ℕ} {s : Finset ℕ} (h : ∀ m ∈ s, m < n) {a : Fin n}, a ∈ s.attachFin h ↔ ↑a ∈ s

theorem Finset.coe_attachFin E0 #

∀ {n : ℕ} {s : Finset ℕ} (h : ∀ m ∈ s, m < n), ↑(s.attachFin h) = Fin.val ⁻¹' ↑s

theorem Finset.card_attachFin E0 #

∀ {n : ℕ} (s : Finset ℕ) (h : ∀ m ∈ s, m < n), (s.attachFin h).card = s.card

theorem Finset.image_val_attachFin E0 #

∀ {n : ℕ} {s : Finset ℕ} (h : ∀ m ∈ s, m < n), Finset.image Fin.val (s.attachFin h) = s

theorem Finset.map_valEmbedding_attachFin E0 #

∀ {n : ℕ} {s : Finset ℕ} (h : ∀ m ∈ s, m < n), Finset.map Fin.valEmbedding (s.attachFin h) = s

theorem Finset.attachFin_subset_attachFin_iff E0 #

∀ {n : ℕ} {s t : Finset ℕ} (hs : ∀ m ∈ s, m < n) (ht : ∀ m ∈ t, m < n), s.attachFin hs ⊆ t.attachFin ht ↔ s ⊆ t

theorem Finset.attachFin_subset_attachFin E1 #

∀ {n : ℕ} {s t : Finset ℕ} (hst : s ⊆ t) (ht : ∀ m ∈ t, m < n), s.attachFin ⋯ ⊆ t.attachFin ht

theorem Finset.attachFin_ssubset_attachFin_iff E0 #

∀ {n : ℕ} {s t : Finset ℕ} (hs : ∀ m ∈ s, m < n) (ht : ∀ m ∈ t, m < n), s.attachFin hs ⊂ t.attachFin ht ↔ s ⊂ t

theorem Finset.attachFin_ssubset_attachFin E1 #

∀ {n : ℕ} {s t : Finset ℕ} (hst : s ⊂ t) (ht : ∀ m ∈ t, m < n), s.attachFin ⋯ ⊂ t.attachFin ht