The areas / V03. Sets, finite structures and big operators
Mathlib.Data.Finset.Sigma
31 declarations. Mathlib docs · Source
def Finset.sigma E1 #
{ι : Type u_1} → {α : ι → Type u_2} → Finset ι → ((i : ι) → Finset (α i)) → Finset ((i : ι) × α i)
s.sigma t is the finset of dependent pairs ⟨i, a⟩ such that i ∈ s and a ∈ t i.
theorem Finset.mem_sigma E0 #
∀ {ι : Type u_1} {α : ι → Type u_2} {s : Finset ι} {t : (i : ι) → Finset (α i)} {a : (i : ι) × α i},
a ∈ s.sigma t ↔ a.fst ∈ s ∧ a.snd ∈ t a.fst
theorem Finset.coe_sigma E0 #
∀ {ι : Type u_1} {α : ι → Type u_2} (s : Finset ι) (t : (i : ι) → Finset (α i)),
↑(s.sigma t) = (↑s).sigma fun i ↦ ↑(t i)
theorem Finset.sigma_nonempty E0 #
∀ {ι : Type u_1} {α : ι → Type u_2} {s : Finset ι} {t : (i : ι) → Finset (α i)},
(s.sigma t).Nonempty ↔ ∃ i ∈ s, (t i).Nonempty
theorem Finset.Aesop.sigma_nonempty_of_exists_nonempty E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {s : Finset ι} {t : (i : ι) → Finset (α i)},
(∃ i ∈ s, (t i).Nonempty) → (s.sigma t).Nonempty
Alias of the reverse direction of Finset.sigma_nonempty.
theorem Finset.sigma_eq_empty E0 #
∀ {ι : Type u_1} {α : ι → Type u_2} {s : Finset ι} {t : (i : ι) → Finset (α i)}, s.sigma t = ∅ ↔ ∀ i ∈ s, t i = ∅
theorem Finset.sigma_mono E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {s₁ s₂ : Finset ι} {t₁ t₂ : (i : ι) → Finset (α i)},
s₁ ⊆ s₂ → (∀ (i : ι), t₁ i ⊆ t₂ i) → s₁.sigma t₁ ⊆ s₂.sigma t₂
theorem Finset.pairwiseDisjoint_map_sigmaMk E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {s : Finset ι} {t : (i : ι) → Finset (α i)},
(↑s).PairwiseDisjoint fun i ↦ Finset.map (Function.Embedding.sigmaMk i) (t i)
theorem Finset.disjiUnion_map_sigma_mk E0 #
∀ {ι : Type u_1} {α : ι → Type u_2} {s : Finset ι} {t : (i : ι) → Finset (α i)},
s.disjiUnion (fun i ↦ Finset.map (Function.Embedding.sigmaMk i) (t i)) ⋯ = s.sigma t
theorem Finset.sigma_eq_biUnion E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ((i : ι) × α i)] (s : Finset ι) (t : (i : ι) → Finset (α i)),
s.sigma t = s.biUnion fun i ↦ Finset.map (Function.Embedding.sigmaMk i) (t i)
theorem Finset.filter_sigma E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} (s : Finset ι) (t : (i : ι) → Finset (α i)) (p : (i : ι) × α i → Prop)
[inst : DecidablePred p], Finset.filter p (s.sigma t) = s.sigma fun i ↦ {x ∈ t i | p ⟨i, x⟩}
theorem Finset.filter_sigma' E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} (s : Finset ι) (t : (i : ι) → Finset (α i)) (p : (i : ι) → α i → Prop)
[inst : (i : ι) → DecidablePred (p i)], {x ∈ s.sigma t | p x.fst x.snd} = s.sigma fun i ↦ Finset.filter (p i) (t i)
theorem Finset.sup_sigma E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : Type u_3} (s : Finset ι) (t : (i : ι) → Finset (α i)) (f : (i : ι) × α i → β)
[inst : SemilatticeSup β] [inst_1 : OrderBot β], (s.sigma t).sup f = s.sup fun i ↦ (t i).sup fun b ↦ f ⟨i, b⟩
theorem Finset.inf_sigma E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : Type u_3} (s : Finset ι) (t : (i : ι) → Finset (α i)) (f : (i : ι) × α i → β)
[inst : SemilatticeInf β] [inst_1 : OrderTop β], (s.sigma t).inf f = s.inf fun i ↦ (t i).inf fun b ↦ f ⟨i, b⟩
theorem biSup_finsetSigma E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : Type u_3} [inst : CompleteLattice β] (s : Finset ι)
(t : (i : ι) → Finset (α i)) (f : Sigma α → β), ⨆ ij ∈ s.sigma t, f ij = ⨆ i ∈ s, ⨆ j ∈ t i, f ⟨i, j⟩
theorem biSup_finsetSigma' E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : Type u_3} [inst : CompleteLattice β] (s : Finset ι)
(t : (i : ι) → Finset (α i)) (f : (i : ι) → α i → β), ⨆ i ∈ s, ⨆ j ∈ t i, f i j = ⨆ ij ∈ s.sigma t, f ij.fst ij.snd
theorem biInf_finsetSigma E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : Type u_3} [inst : CompleteLattice β] (s : Finset ι)
(t : (i : ι) → Finset (α i)) (f : Sigma α → β), ⨅ ij ∈ s.sigma t, f ij = ⨅ i ∈ s, ⨅ j ∈ t i, f ⟨i, j⟩
theorem biInf_finsetSigma' E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : Type u_3} [inst : CompleteLattice β] (s : Finset ι)
(t : (i : ι) → Finset (α i)) (f : (i : ι) → α i → β), ⨅ i ∈ s, ⨅ j ∈ t i, f i j = ⨅ ij ∈ s.sigma t, f ij.fst ij.snd
theorem Set.biUnion_finsetSigma E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : Type u_3} (s : Finset ι) (t : (i : ι) → Finset (α i)) (f : Sigma α → Set β),
⋃ ij ∈ s.sigma t, f ij = ⋃ i ∈ s, ⋃ j ∈ t i, f ⟨i, j⟩
theorem Set.biUnion_finsetSigma' E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : Type u_3} (s : Finset ι) (t : (i : ι) → Finset (α i))
(f : (i : ι) → α i → Set β), ⋃ i ∈ s, ⋃ j ∈ t i, f i j = ⋃ ij ∈ s.sigma t, f ij.fst ij.snd
theorem Set.biInter_finsetSigma E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : Type u_3} (s : Finset ι) (t : (i : ι) → Finset (α i)) (f : Sigma α → Set β),
⋂ ij ∈ s.sigma t, f ij = ⋂ i ∈ s, ⋂ j ∈ t i, f ⟨i, j⟩
theorem Set.biInter_finsetSigma' E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : Type u_3} (s : Finset ι) (t : (i : ι) → Finset (α i))
(f : (i : ι) → α i → Set β), ⋂ i ∈ s, ⋂ j ∈ t i, f i j = ⋂ ij ∈ s.sigma t, f ij.fst ij.snd
def Finset.sigmaLift E1 #
{ι : Type u_1} →
{α : ι → Type u_2} →
{β : ι → Type u_3} →
{γ : ι → Type u_4} → [DecidableEq ι] → (⦃i : ι⦄ → α i → β i → Finset (γ i)) → Sigma α → Sigma β → Finset (Sigma γ)
Lifts maps α i → β i → Finset (γ i) to a map Σ i, α i → Σ i, β i → Finset (Σ i, γ i).
theorem Finset.mem_sigmaLift E0 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : ι → Type u_3} {γ : ι → Type u_4} [inst : DecidableEq ι]
(f : ⦃i : ι⦄ → α i → β i → Finset (γ i)) (a : Sigma α) (b : Sigma β) (x : Sigma γ),
x ∈ Finset.sigmaLift f a b ↔ ∃ (ha : a.fst = x.fst) (hb : b.fst = x.fst), x.snd ∈ f (ha ▸ a.snd) (hb ▸ b.snd)
theorem Finset.mk_mem_sigmaLift E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : ι → Type u_3} {γ : ι → Type u_4} [inst : DecidableEq ι]
(f : ⦃i : ι⦄ → α i → β i → Finset (γ i)) (i : ι) (a : α i) (b : β i) (x : γ i),
⟨i, x⟩ ∈ Finset.sigmaLift f ⟨i, a⟩ ⟨i, b⟩ ↔ x ∈ f a b
theorem Finset.notMem_sigmaLift_of_ne_left E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : ι → Type u_3} {γ : ι → Type u_4} [inst : DecidableEq ι]
(f : ⦃i : ι⦄ → α i → β i → Finset (γ i)) (a : Sigma α) (b : Sigma β) (x : Sigma γ),
a.fst ≠ x.fst → x ∉ Finset.sigmaLift f a b
theorem Finset.notMem_sigmaLift_of_ne_right E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : ι → Type u_3} {γ : ι → Type u_4} [inst : DecidableEq ι]
(f : ⦃i : ι⦄ → α i → β i → Finset (γ i)) {a : Sigma α} (b : Sigma β) {x : Sigma γ},
b.fst ≠ x.fst → x ∉ Finset.sigmaLift f a b
theorem Finset.sigmaLift_nonempty E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : ι → Type u_3} {γ : ι → Type u_4} [inst : DecidableEq ι]
{f : ⦃i : ι⦄ → α i → β i → Finset (γ i)} {a : (i : ι) × α i} {b : (i : ι) × β i},
(Finset.sigmaLift f a b).Nonempty ↔ ∃ (h : a.fst = b.fst), (f (h ▸ a.snd) b.snd).Nonempty
theorem Finset.sigmaLift_eq_empty E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : ι → Type u_3} {γ : ι → Type u_4} [inst : DecidableEq ι]
{f : ⦃i : ι⦄ → α i → β i → Finset (γ i)} {a : (i : ι) × α i} {b : (i : ι) × β i},
Finset.sigmaLift f a b = ∅ ↔ ∀ (h : a.fst = b.fst), f (h ▸ a.snd) b.snd = ∅
theorem Finset.sigmaLift_mono E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : ι → Type u_3} {γ : ι → Type u_4} [inst : DecidableEq ι]
{f g : ⦃i : ι⦄ → α i → β i → Finset (γ i)},
(∀ ⦃i : ι⦄ ⦃a : α i⦄ ⦃b : β i⦄, f a b ⊆ g a b) →
∀ (a : (i : ι) × α i) (b : (i : ι) × β i), Finset.sigmaLift f a b ⊆ Finset.sigmaLift g a b
theorem Finset.card_sigmaLift E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} {β : ι → Type u_3} {γ : ι → Type u_4} [inst : DecidableEq ι]
(f : ⦃i : ι⦄ → α i → β i → Finset (γ i)) (a : (i : ι) × α i) (b : (i : ι) × β i),
(Finset.sigmaLift f a b).card = if h : a.fst = b.fst then (f (h ▸ a.snd) b.snd).card else 0