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.Set.MemPartition

17 declarations. Mathlib docs · Source

theorem memPartition.match_1.congr_eq_2 E1 #

∀ (motive : ℕ → Sort u_1) (x : ℕ) (h_1 : Unit → motive 0) (h_2 : (n : ℕ) → motive n.succ) (n : ℕ),
  x = n.succ →
    (match x with
      | 0 => h_1 ()
      | n.succ => h_2 n) ≍
      h_2 n

theorem memPartition.match_1.congr_eq_1 E1 #

∀ (motive : ℕ → Sort u_1) (x : ℕ) (h_1 : Unit → motive 0) (h_2 : (n : ℕ) → motive n.succ),
  x = 0 →
    (match x with
      | 0 => h_1 ()
      | n.succ => h_2 n) ≍
      h_1 ()

def memPartition E3 #

{α : Type u_1} → (ℕ → Set α) → ℕ → Set (Set α)

memPartition f n is the partition containing at most 2^(n+1) sets, where each set contains the points that for all i belong to one of f i or its complement.

theorem memPartition_zero E0 #

∀ {α : Type u_1} (f : ℕ → Set α), memPartition f 0 = {Set.univ}

theorem memPartition_succ E1 #

∀ {α : Type u_1} (f : ℕ → Set α) (n : ℕ),
  memPartition f (n + 1) = {s | ∃ u ∈ memPartition f n, s = u ∩ f n ∨ s = u \ f n}

theorem disjoint_memPartition E1 #

∀ {α : Type u_1} (f : ℕ → Set α) (n : ℕ) {u v : Set α},
  u ∈ memPartition f n → v ∈ memPartition f n → u ≠ v → Disjoint u v

theorem sUnion_memPartition E0 #

∀ {α : Type u_1} (f : ℕ → Set α) (n : ℕ), ⋃₀ memPartition f n = Set.univ

theorem finite_memPartition E1 #

∀ {α : Type u_1} (f : ℕ → Set α) (n : ℕ), (memPartition f n).Finite

instance instFinite_memPartition E0 #

∀ {α : Type u_1} (f : ℕ → Set α) (n : ℕ), Finite ↑(memPartition f n)

instance instFintype_memPartition E0 #

{α : Type u_1} → (f : ℕ → Set α) → (n : ℕ) → Fintype ↑(memPartition f n)

def memPartitionSet E1 #

{α : Type u_1} → (ℕ → Set α) → ℕ → α → Set α

The set in memPartition f n to which a : α belongs.

theorem memPartitionSet_zero E0 #

∀ {α : Type u_1} (f : ℕ → Set α) (a : α), memPartitionSet f 0 a = Set.univ

theorem memPartitionSet_succ E1 #

∀ {α : Type u_1} (f : ℕ → Set α) (n : ℕ) (a : α) [inst : Decidable (a ∈ f n)],
  memPartitionSet f (n + 1) a = if a ∈ f n then memPartitionSet f n a ∩ f n else memPartitionSet f n a \ f n

theorem memPartitionSet_mem E1 #

∀ {α : Type u_1} (f : ℕ → Set α) (n : ℕ) (a : α), memPartitionSet f n a ∈ memPartition f n

theorem mem_memPartitionSet E0 #

∀ {α : Type u_1} (f : ℕ → Set α) (n : ℕ) (a : α), a ∈ memPartitionSet f n a

theorem memPartitionSet_eq_iff E0 #

∀ {α : Type u_1} {f : ℕ → Set α} {n : ℕ} (a : α) {s : Set α}, s ∈ memPartition f n → (memPartitionSet f n a = s ↔ a ∈ s)

theorem memPartitionSet_of_mem E1 #

∀ {α : Type u_1} {f : ℕ → Set α} {n : ℕ} {a : α} {s : Set α}, s ∈ memPartition f n → a ∈ s → memPartitionSet f n a = s