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.UnionLift

13 declarations. Mathlib docs · Source

theorem Set.iUnionLift.congr_simp E1 #

∀ {α : Type u_1} {ι : Sort u_2} {β : Sort u_3} (S : ι → Set α) (f f_1 : (i : ι) → ↑(S i) → β) (e_f : f = f_1)
  (x : ∀ (i j : ι) (x : α) (hxi : x ∈ S i) (hxj : x ∈ S j), f i ⟨x, hxi⟩ = f j ⟨x, hxj⟩) (T : Set α)
  (hT : T ⊆ Set.iUnion S) (x_1 x_2 : ↑T), x_1 = x_2 → Set.iUnionLift S f x T hT x_1 = Set.iUnionLift S f_1 ⋯ T hT x_2

def Set.iUnionLift E1 #

{α : Type u_1} →
  {ι : Sort u_2} →
    {β : Sort u_3} →
      (S : ι → Set α) →
        (f : (i : ι) → ↑(S i) → β) →
          (∀ (i j : ι) (x : α) (hxi : x ∈ S i) (hxj : x ∈ S j), f i ⟨x, hxi⟩ = f j ⟨x, hxj⟩) →
            (T : Set α) → T ⊆ Set.iUnion S → ↑T → β

Given a union of sets iUnion S, define a function on the Union by defining it on each component, and proving that it agrees on the intersections.

theorem Set.iUnionLift_mk E0 #

∀ {α : Type u_1} {ι : Sort u_3} {β : Sort u_2} {S : ι → Set α} {f : (i : ι) → ↑(S i) → β}
  {hf : ∀ (i j : ι) (x : α) (hxi : x ∈ S i) (hxj : x ∈ S j), f i ⟨x, hxi⟩ = f j ⟨x, hxj⟩} {T : Set α}
  {hT : T ⊆ Set.iUnion S} {i : ι} (x : ↑(S i)) (hx : ↑x ∈ T), Set.iUnionLift S f hf T hT ⟨↑x, hx⟩ = f i x

theorem Set.iUnionLift_inclusion E1 #

∀ {α : Type u_1} {ι : Sort u_3} {β : Sort u_2} {S : ι → Set α} {f : (i : ι) → ↑(S i) → β}
  {hf : ∀ (i j : ι) (x : α) (hxi : x ∈ S i) (hxj : x ∈ S j), f i ⟨x, hxi⟩ = f j ⟨x, hxj⟩} {T : Set α}
  {hT : T ⊆ Set.iUnion S} {i : ι} (x : ↑(S i)) (h : S i ⊆ T), Set.iUnionLift S f hf T hT (Set.inclusion h x) = f i x

theorem Set.iUnionLift_of_mem E1 #

∀ {α : Type u_1} {ι : Sort u_3} {β : Sort u_2} {S : ι → Set α} {f : (i : ι) → ↑(S i) → β}
  {hf : ∀ (i j : ι) (x : α) (hxi : x ∈ S i) (hxj : x ∈ S j), f i ⟨x, hxi⟩ = f j ⟨x, hxj⟩} {T : Set α}
  {hT : T ⊆ Set.iUnion S} (x : ↑T) {i : ι} (hx : ↑x ∈ S i), Set.iUnionLift S f hf T hT x = f i ⟨↑x, hx⟩

theorem Set.preimage_iUnionLift E1 #

∀ {α : Type u_1} {ι : Sort u_3} {β : Type u_2} {S : ι → Set α} {f : (i : ι) → ↑(S i) → β}
  {hf : ∀ (i j : ι) (x : α) (hxi : x ∈ S i) (hxj : x ∈ S j), f i ⟨x, hxi⟩ = f j ⟨x, hxj⟩} {T : Set α}
  {hT : T ⊆ Set.iUnion S} (t : Set β),
  Set.iUnionLift S f hf T hT ⁻¹' t = Set.inclusion hT ⁻¹' ⋃ i, Set.inclusion ⋯ '' f i ⁻¹' t

theorem Set.iUnionLift_const E1 #

∀ {α : Type u_1} {ι : Sort u_3} {β : Sort u_2} {S : ι → Set α} {f : (i : ι) → ↑(S i) → β}
  {hf : ∀ (i j : ι) (x : α) (hxi : x ∈ S i) (hxj : x ∈ S j), f i ⟨x, hxi⟩ = f j ⟨x, hxj⟩} {T : Set α}
  {hT : T ⊆ Set.iUnion S} (c : ↑T) (ci : (i : ι) → ↑(S i)),
  (∀ (i : ι), ↑(ci i) = ↑c) → ∀ (cβ : β), (∀ (i : ι), f i (ci i) = cβ) → Set.iUnionLift S f hf T hT c = cβ

iUnionLift_const is useful for proving that iUnionLift is a homomorphism of algebraic structures when defined on the Union of algebraic subobjects. For example, it could be used to prove that the lift of a collection of group homomorphisms on a union of subgroups preserves 1.

theorem Set.iUnionLift_unary E1 #

∀ {α : Type u_1} {ι : Sort u_2} {β : Sort u_3} {S : ι → Set α} {f : (i : ι) → ↑(S i) → β}
  {hf : ∀ (i j : ι) (x : α) (hxi : x ∈ S i) (hxj : x ∈ S j), f i ⟨x, hxi⟩ = f j ⟨x, hxj⟩} {T : Set α}
  (hT' : T = Set.iUnion S) (u : ↑T → ↑T) (ui : (i : ι) → ↑(S i) → ↑(S i)),
  (∀ (i : ι) (x : ↑(S i)), u (Set.inclusion ⋯ x) = Set.inclusion ⋯ (ui i x)) →
    ∀ (uβ : β → β),
      (∀ (i : ι) (x : ↑(S i)), f i (ui i x) = uβ (f i x)) →
        ∀ (x : ↑T), Set.iUnionLift S f hf T ⋯ (u x) = uβ (Set.iUnionLift S f hf T ⋯ x)

iUnionLift_unary is useful for proving that iUnionLift is a homomorphism of algebraic structures when defined on the Union of algebraic subobjects. For example, it could be used to prove that the lift of a collection of LinearMaps on a union of submodules preserves scalar multiplication.

theorem Set.iUnionLift_binary E1 #

∀ {α : Type u_1} {ι : Sort u_2} {β : Sort u_3} {S : ι → Set α} {f : (i : ι) → ↑(S i) → β}
  {hf : ∀ (i j : ι) (x : α) (hxi : x ∈ S i) (hxj : x ∈ S j), f i ⟨x, hxi⟩ = f j ⟨x, hxj⟩} {T : Set α}
  (hT' : T = Set.iUnion S),
  Directed (fun x1 x2 ↦ x1 ⊆ x2) S →
    ∀ (op : ↑T → ↑T → ↑T) (opi : (i : ι) → ↑(S i) → ↑(S i) → ↑(S i)),
      (∀ (i : ι) (x y : ↑(S i)), Set.inclusion ⋯ (opi i x y) = op (Set.inclusion ⋯ x) (Set.inclusion ⋯ y)) →
        ∀ (opβ : β → β → β),
          (∀ (i : ι) (x y : ↑(S i)), f i (opi i x y) = opβ (f i x) (f i y)) →
            ∀ (x y : ↑T),
              Set.iUnionLift S f hf T ⋯ (op x y) = opβ (Set.iUnionLift S f hf T ⋯ x) (Set.iUnionLift S f hf T ⋯ y)

iUnionLift_binary is useful for proving that iUnionLift is a homomorphism of algebraic structures when defined on the Union of algebraic subobjects. For example, it could be used to prove that the lift of a collection of group homomorphisms on a union of subgroups preserves *.

def Set.liftCover E1 #

{α : Type u_1} →
  {ι : Sort u_2} →
    {β : Sort u_3} →
      (S : ι → Set α) →
        (f : (i : ι) → ↑(S i) → β) →
          (∀ (i j : ι) (x : α) (hxi : x ∈ S i) (hxj : x ∈ S j), f i ⟨x, hxi⟩ = f j ⟨x, hxj⟩) →
            Set.iUnion S = Set.univ → α → β

Glue together functions defined on each of a collection S of sets that cover a type. See also Set.iUnionLift.

theorem Set.liftCover_coe E0 #

∀ {α : Type u_1} {ι : Sort u_3} {β : Sort u_2} {S : ι → Set α} {f : (i : ι) → ↑(S i) → β}
  {hf : ∀ (i j : ι) (x : α) (hxi : x ∈ S i) (hxj : x ∈ S j), f i ⟨x, hxi⟩ = f j ⟨x, hxj⟩} {hS : Set.iUnion S = Set.univ}
  {i : ι} (x : ↑(S i)), Set.liftCover S f hf hS ↑x = f i x

theorem Set.liftCover_of_mem E1 #

∀ {α : Type u_1} {ι : Sort u_3} {β : Sort u_2} {S : ι → Set α} {f : (i : ι) → ↑(S i) → β}
  {hf : ∀ (i j : ι) (x : α) (hxi : x ∈ S i) (hxj : x ∈ S j), f i ⟨x, hxi⟩ = f j ⟨x, hxj⟩} {hS : Set.iUnion S = Set.univ}
  {i : ι} {x : α} (hx : x ∈ S i), Set.liftCover S f hf hS x = f i ⟨x, hx⟩

theorem Set.preimage_liftCover E1 #

∀ {α : Type u_1} {ι : Sort u_3} {β : Type u_2} {S : ι → Set α} {f : (i : ι) → ↑(S i) → β}
  {hf : ∀ (i j : ι) (x : α) (hxi : x ∈ S i) (hxj : x ∈ S j), f i ⟨x, hxi⟩ = f j ⟨x, hxj⟩} {hS : Set.iUnion S = Set.univ}
  (t : Set β), Set.liftCover S f hf hS ⁻¹' t = ⋃ i, Subtype.val '' f i ⁻¹' t