Documentation

Mathlib.Algebra.Notation.Support

Support of a function #

In this file we define Function.support f = {x | f x ≠ 0} and prove its basic properties. We also define Function.mulSupport f = {x | f x ≠ 1}.

def Function.mulSupport {ι : Type u_1} {M : Type u_3} [One M] (f : ι → M) :
Set ι

mulSupport of a function is the set of points x such that f x ≠ 1.

Equations
Instances For
    def Function.support {ι : Type u_1} {M : Type u_3} [Zero M] (f : ι → M) :
    Set ι

    support of a function is the set of points x such that f x ≠ 0.

    Equations
    Instances For
      theorem Function.mulSupport_eq_preimage {ι : Type u_1} {M : Type u_3} [One M] (f : ι → M) :
      theorem Function.support_eq_preimage {ι : Type u_1} {M : Type u_3} [Zero M] (f : ι → M) :
      theorem Function.notMem_mulSupport {ι : Type u_1} {M : Type u_3} [One M] {f : ι → M} {x : ι} :
      ¬x ∈ mulSupport f ↔ f x = 1
      theorem Function.notMem_support {ι : Type u_1} {M : Type u_3} [Zero M] {f : ι → M} {x : ι} :
      ¬x ∈ support f ↔ f x = 0
      theorem Function.compl_mulSupport {ι : Type u_1} {M : Type u_3} [One M] {f : ι → M} :
      (mulSupport f)ᶜ = {x : ι | f x = 1}
      theorem Function.compl_support {ι : Type u_1} {M : Type u_3} [Zero M] {f : ι → M} :
      (support f)ᶜ = {x : ι | f x = 0}
      @[simp]
      theorem Function.mem_mulSupport {ι : Type u_1} {M : Type u_3} [One M] {f : ι → M} {x : ι} :
      x ∈ mulSupport f ↔ f x ≠ 1
      @[simp]
      theorem Function.mem_support {ι : Type u_1} {M : Type u_3} [Zero M] {f : ι → M} {x : ι} :
      x ∈ support f ↔ f x ≠ 0
      @[simp]
      theorem Function.mulSupport_subset_iff {ι : Type u_1} {M : Type u_3} [One M] {f : ι → M} {s : Set ι} :
      mulSupport f ⊆ s ↔ ∀ (x : ι), f x ≠ 1 → x ∈ s
      @[simp]
      theorem Function.support_subset_iff {ι : Type u_1} {M : Type u_3} [Zero M] {f : ι → M} {s : Set ι} :
      support f ⊆ s ↔ ∀ (x : ι), f x ≠ 0 → x ∈ s
      theorem Function.mulSupport_subset_iff' {ι : Type u_1} {M : Type u_3} [One M] {f : ι → M} {s : Set ι} :
      mulSupport f ⊆ s ↔ ∀ (x : ι), ¬x ∈ s → f x = 1
      theorem Function.support_subset_iff' {ι : Type u_1} {M : Type u_3} [Zero M] {f : ι → M} {s : Set ι} :
      support f ⊆ s ↔ ∀ (x : ι), ¬x ∈ s → f x = 0
      theorem Function.mulSupport_eq_iff {ι : Type u_1} {M : Type u_3} [One M] {f : ι → M} {s : Set ι} :
      mulSupport f = s ↔ (∀ (x : ι), x ∈ s → f x ≠ 1) ∧ ∀ (x : ι), ¬x ∈ s → f x = 1
      theorem Function.support_eq_iff {ι : Type u_1} {M : Type u_3} [Zero M] {f : ι → M} {s : Set ι} :
      support f = s ↔ (∀ (x : ι), x ∈ s → f x ≠ 0) ∧ ∀ (x : ι), ¬x ∈ s → f x = 0
      theorem Function.ext_iff_mulSupport {ι : Type u_1} {M : Type u_3} [One M] {f g : ι → M} :
      f = g ↔ mulSupport f = mulSupport g ∧ ∀ (x : ι), x ∈ mulSupport f → f x = g x
      theorem Function.ext_iff_support {ι : Type u_1} {M : Type u_3} [Zero M] {f g : ι → M} :
      f = g ↔ support f = support g ∧ ∀ (x : ι), x ∈ support f → f x = g x
      theorem Function.mulSupport_update_of_ne_one {ι : Type u_1} {M : Type u_3} [One M] [DecidableEq ι] (f : ι → M) (x : ι) {y : M} (hy : y ≠ 1) :
      theorem Function.support_update_of_ne_zero {ι : Type u_1} {M : Type u_3} [Zero M] [DecidableEq ι] (f : ι → M) (x : ι) {y : M} (hy : y ≠ 0) :
      support (update f x y) = insert x (support f)
      theorem Function.mulSupport_update_one {ι : Type u_1} {M : Type u_3} [One M] [DecidableEq ι] (f : ι → M) (x : ι) :
      theorem Function.support_update_zero {ι : Type u_1} {M : Type u_3} [Zero M] [DecidableEq ι] (f : ι → M) (x : ι) :
      support (update f x 0) = support f \ {x}
      theorem Function.mulSupport_update_eq_ite {ι : Type u_1} {M : Type u_3} [One M] [DecidableEq ι] [DecidableEq M] (f : ι → M) (x : ι) (y : M) :
      theorem Function.support_update_eq_ite {ι : Type u_1} {M : Type u_3} [Zero M] [DecidableEq ι] [DecidableEq M] (f : ι → M) (x : ι) (y : M) :
      support (update f x y) = if y = 0 then support f \ {x} else insert x (support f)
      theorem Function.mulSupport_extend_one_subset {ι : Type u_1} {κ : Type u_2} {N : Type u_4} [One N] {f : ι → κ} {g : ι → N} :
      theorem Function.support_extend_zero_subset {ι : Type u_1} {κ : Type u_2} {N : Type u_4} [Zero N] {f : ι → κ} {g : ι → N} :
      theorem Function.mulSupport_extend_one {ι : Type u_1} {κ : Type u_2} {N : Type u_4} [One N] {f : ι → κ} {g : ι → N} (hf : Injective f) :
      theorem Function.support_extend_zero {ι : Type u_1} {κ : Type u_2} {N : Type u_4} [Zero N] {f : ι → κ} {g : ι → N} (hf : Injective f) :
      support (extend f g 0) = f '' support g
      theorem Function.mulSupport_disjoint_iff {ι : Type u_1} {M : Type u_3} [One M] {f : ι → M} {s : Set ι} :
      theorem Function.support_disjoint_iff {ι : Type u_1} {M : Type u_3} [Zero M] {f : ι → M} {s : Set ι} :
      theorem Function.disjoint_mulSupport_iff {ι : Type u_1} {M : Type u_3} [One M] {f : ι → M} {s : Set ι} :
      theorem Function.disjoint_support_iff {ι : Type u_1} {M : Type u_3} [Zero M] {f : ι → M} {s : Set ι} :
      @[simp]
      theorem Function.mulSupport_eq_empty_iff {ι : Type u_1} {M : Type u_3} [One M] {f : ι → M} :
      @[simp]
      theorem Function.support_eq_empty_iff {ι : Type u_1} {M : Type u_3} [Zero M] {f : ι → M} :
      support f = ∅ ↔ f = 0
      @[simp]
      theorem Function.mulSupport_nonempty_iff {ι : Type u_1} {M : Type u_3} [One M] {f : ι → M} :
      @[simp]
      theorem Function.support_nonempty_iff {ι : Type u_1} {M : Type u_3} [Zero M] {f : ι → M} :
      theorem Subsingleton.mulSupport_eq {ι : Type u_1} {M : Type u_3} [One M] [Subsingleton M] (f : ι → M) :
      theorem Subsingleton.support_eq {ι : Type u_1} {M : Type u_3} [Zero M] [Subsingleton M] (f : ι → M) :
      theorem Function.range_subset_insert_image_mulSupport {ι : Type u_1} {M : Type u_3} [One M] (f : ι → M) :
      theorem Function.range_subset_insert_image_support {ι : Type u_1} {M : Type u_3} [Zero M] (f : ι → M) :
      theorem Function.range_eq_image_or_of_mulSupport_subset {ι : Type u_1} {M : Type u_3} [One M] {f : ι → M} {k : Set ι} (h : mulSupport f ⊆ k) :
      Set.range f = f '' k ∨ Set.range f = insert 1 (f '' k)
      theorem Function.range_eq_image_or_of_support_subset {ι : Type u_1} {M : Type u_3} [Zero M] {f : ι → M} {k : Set ι} (h : support f ⊆ k) :
      Set.range f = f '' k ∨ Set.range f = insert 0 (f '' k)
      @[simp]
      theorem Function.mulSupport_one {ι : Type u_1} {M : Type u_3} [One M] :
      @[simp]
      theorem Function.support_zero {ι : Type u_1} {M : Type u_3} [Zero M] :
      @[simp]
      theorem Function.mulSupport_fun_one {ι : Type u_1} {M : Type u_3} [One M] :
      (mulSupport fun (x : ι) => 1) = ∅
      @[simp]
      theorem Function.support_fun_zero {ι : Type u_1} {M : Type u_3} [Zero M] :
      (support fun (x : ι) => 0) = ∅
      @[deprecated Function.support_zero (since := "2025-07-31")]
      theorem Function.support_zero' {ι : Type u_1} {M : Type u_3} [Zero M] :

      Alias of Function.support_zero.

      @[deprecated Function.mulSupport_one (since := "2025-07-31")]
      theorem Function.mulSupport_one' {ι : Type u_1} {M : Type u_3} [One M] :

      Alias of Function.mulSupport_one.

      theorem Function.mulSupport_const {ι : Type u_1} {M : Type u_3} [One M] {c : M} (hc : c ≠ 1) :
      (mulSupport fun (x : ι) => c) = Set.univ
      theorem Function.support_const {ι : Type u_1} {M : Type u_3} [Zero M] {c : M} (hc : c ≠ 0) :
      (support fun (x : ι) => c) = Set.univ
      theorem Function.mulSupport_binop_subset {ι : Type u_1} {M : Type u_3} {N : Type u_4} {P : Type u_5} [One M] [One N] [One P] (op : M → N → P) (op1 : op 1 1 = 1) (f : ι → M) (g : ι → N) :
      (mulSupport fun (x : ι) => op (f x) (g x)) ⊆ mulSupport f ∪ mulSupport g
      theorem Function.support_binop_subset {ι : Type u_1} {M : Type u_3} {N : Type u_4} {P : Type u_5} [Zero M] [Zero N] [Zero P] (op : M → N → P) (op1 : op 0 0 = 0) (f : ι → M) (g : ι → N) :
      (support fun (x : ι) => op (f x) (g x)) ⊆ support f ∪ support g
      theorem Function.mulSupport_comp_subset {ι : Type u_1} {M : Type u_3} {N : Type u_4} [One M] [One N] {g : M → N} (hg : g 1 = 1) (f : ι → M) :
      theorem Function.support_comp_subset {ι : Type u_1} {M : Type u_3} {N : Type u_4} [Zero M] [Zero N] {g : M → N} (hg : g 0 = 0) (f : ι → M) :
      theorem Function.mulSupport_subset_comp {ι : Type u_1} {M : Type u_3} {N : Type u_4} [One M] [One N] {g : M → N} (hg : ∀ {x : M}, g x = 1 → x = 1) (f : ι → M) :
      theorem Function.support_subset_comp {ι : Type u_1} {M : Type u_3} {N : Type u_4} [Zero M] [Zero N] {g : M → N} (hg : ∀ {x : M}, g x = 0 → x = 0) (f : ι → M) :
      theorem Function.mulSupport_comp_eq {ι : Type u_1} {M : Type u_3} {N : Type u_4} [One M] [One N] (g : M → N) (hg : ∀ {x : M}, g x = 1 ↔ x = 1) (f : ι → M) :
      theorem Function.support_comp_eq {ι : Type u_1} {M : Type u_3} {N : Type u_4} [Zero M] [Zero N] (g : M → N) (hg : ∀ {x : M}, g x = 0 ↔ x = 0) (f : ι → M) :
      theorem Function.mulSupport_comp_eq_of_range_subset {ι : Type u_1} {M : Type u_3} {N : Type u_4} [One M] [One N] {g : M → N} {f : ι → M} (hg : ∀ {x : M}, x ∈ Set.range f → (g x = 1 ↔ x = 1)) :
      theorem Function.support_comp_eq_of_range_subset {ι : Type u_1} {M : Type u_3} {N : Type u_4} [Zero M] [Zero N] {g : M → N} {f : ι → M} (hg : ∀ {x : M}, x ∈ Set.range f → (g x = 0 ↔ x = 0)) :
      theorem Function.mulSupport_comp_eq_preimage {ι : Type u_1} {κ : Type u_2} {M : Type u_3} [One M] (g : κ → M) (f : ι → κ) :
      theorem Function.support_comp_eq_preimage {ι : Type u_1} {κ : Type u_2} {M : Type u_3} [Zero M] (g : κ → M) (f : ι → κ) :
      theorem Function.mulSupport_prodMk {ι : Type u_1} {M : Type u_3} {N : Type u_4} [One M] [One N] (f : ι → M) (g : ι → N) :
      (mulSupport fun (x : ι) => (f x, g x)) = mulSupport f ∪ mulSupport g
      theorem Function.support_prodMk {ι : Type u_1} {M : Type u_3} {N : Type u_4} [Zero M] [Zero N] (f : ι → M) (g : ι → N) :
      (support fun (x : ι) => (f x, g x)) = support f ∪ support g
      theorem Function.mulSupport_prodMk' {ι : Type u_1} {M : Type u_3} {N : Type u_4} [One M] [One N] (f : ι → M × N) :
      mulSupport f = (mulSupport fun (x : ι) => (f x).1) ∪ mulSupport fun (x : ι) => (f x).2
      theorem Function.support_prodMk' {ι : Type u_1} {M : Type u_3} {N : Type u_4} [Zero M] [Zero N] (f : ι → M × N) :
      support f = (support fun (x : ι) => (f x).1) ∪ support fun (x : ι) => (f x).2
      @[deprecated Function.support_prodMk (since := "2025-07-31")]
      theorem Function.support_prod_mk {ι : Type u_1} {M : Type u_3} {N : Type u_4} [Zero M] [Zero N] (f : ι → M) (g : ι → N) :
      (support fun (x : ι) => (f x, g x)) = support f ∪ support g

      Alias of Function.support_prodMk.

      @[deprecated Function.mulSupport_prodMk (since := "2025-07-31")]
      theorem Function.mulSupport_prod_mk {ι : Type u_1} {M : Type u_3} {N : Type u_4} [One M] [One N] (f : ι → M) (g : ι → N) :
      (mulSupport fun (x : ι) => (f x, g x)) = mulSupport f ∪ mulSupport g

      Alias of Function.mulSupport_prodMk.

      @[deprecated Function.support_prodMk' (since := "2025-07-31")]
      theorem Function.support_prod_mk' {ι : Type u_1} {M : Type u_3} {N : Type u_4} [Zero M] [Zero N] (f : ι → M × N) :
      support f = (support fun (x : ι) => (f x).1) ∪ support fun (x : ι) => (f x).2

      Alias of Function.support_prodMk'.

      @[deprecated Function.mulSupport_prodMk' (since := "2025-07-31")]
      theorem Function.mulSupport_prod_mk' {ι : Type u_1} {M : Type u_3} {N : Type u_4} [One M] [One N] (f : ι → M × N) :
      mulSupport f = (mulSupport fun (x : ι) => (f x).1) ∪ mulSupport fun (x : ι) => (f x).2

      Alias of Function.mulSupport_prodMk'.

      theorem Function.mulSupport_along_fiber_subset {ι : Type u_1} {κ : Type u_2} {M : Type u_3} [One M] (f : ι × κ → M) (i : ι) :
      (mulSupport fun (j : κ) => f (i, j)) ⊆ Prod.snd '' mulSupport f
      theorem Function.support_along_fiber_subset {ι : Type u_1} {κ : Type u_2} {M : Type u_3} [Zero M] (f : ι × κ → M) (i : ι) :
      (support fun (j : κ) => f (i, j)) ⊆ Prod.snd '' support f
      theorem Function.mulSupport_curry {ι : Type u_1} {κ : Type u_2} {M : Type u_3} [One M] (f : ι × κ → M) :
      theorem Function.support_curry {ι : Type u_1} {κ : Type u_2} {M : Type u_3} [Zero M] (f : ι × κ → M) :
      theorem Function.mulSupport_fun_curry {ι : Type u_1} {κ : Type u_2} {M : Type u_3} [One M] (f : ι × κ → M) :
      (mulSupport fun (i : ι) (j : κ) => f (i, j)) = Prod.fst '' mulSupport f
      theorem Function.support_fun_curry {ι : Type u_1} {κ : Type u_2} {M : Type u_3} [Zero M] (f : ι × κ → M) :
      (support fun (i : ι) (j : κ) => f (i, j)) = Prod.fst '' support f
      @[deprecated Function.support_fun_curry (since := "2025-07-31")]
      theorem Function.support_curry' {ι : Type u_1} {κ : Type u_2} {M : Type u_3} [Zero M] (f : ι × κ → M) :
      (support fun (i : ι) (j : κ) => f (i, j)) = Prod.fst '' support f

      Alias of Function.support_fun_curry.

      @[deprecated Function.mulSupport_fun_curry (since := "2025-07-31")]
      theorem Function.mulSupport_curry' {ι : Type u_1} {κ : Type u_2} {M : Type u_3} [One M] (f : ι × κ → M) :
      (mulSupport fun (i : ι) (j : κ) => f (i, j)) = Prod.fst '' mulSupport f

      Alias of Function.mulSupport_fun_curry.

      theorem Set.image_inter_mulSupport_eq {ι : Type u_1} {κ : Type u_2} {M : Type u_3} [One M] {f : ι → M} {s : Set κ} {g : κ → ι} :
      theorem Set.image_inter_support_eq {ι : Type u_1} {κ : Type u_2} {M : Type u_3} [Zero M] {f : ι → M} {s : Set κ} {g : κ → ι} :
      theorem Pi.mulSupport_mulSingle_subset {ι : Type u_1} {M : Type u_3} [DecidableEq ι] [One M] {i : ι} {a : M} :
      theorem Pi.support_single_subset {ι : Type u_1} {M : Type u_3} [DecidableEq ι] [Zero M] {i : ι} {a : M} :
      theorem Pi.mulSupport_mulSingle_one {ι : Type u_1} {M : Type u_3} [DecidableEq ι] [One M] {i : ι} :
      theorem Pi.support_single_zero {ι : Type u_1} {M : Type u_3} [DecidableEq ι] [Zero M] {i : ι} :
      @[simp]
      theorem Pi.mulSupport_mulSingle_of_ne {ι : Type u_1} {M : Type u_3} [DecidableEq ι] [One M] {i : ι} {a : M} (h : a ≠ 1) :
      @[simp]
      theorem Pi.support_single_of_ne {ι : Type u_1} {M : Type u_3} [DecidableEq ι] [Zero M] {i : ι} {a : M} (h : a ≠ 0) :
      theorem Pi.mulSupport_mulSingle {ι : Type u_1} {M : Type u_3} [DecidableEq ι] [One M] {i : ι} {a : M} [DecidableEq M] :
      theorem Pi.support_single {ι : Type u_1} {M : Type u_3} [DecidableEq ι] [Zero M] {i : ι} {a : M} [DecidableEq M] :
      theorem Pi.subsingleton_mulSupport_mulSingle {ι : Type u_1} {M : Type u_3} [DecidableEq ι] [One M] {i : ι} {a : M} :
      theorem Pi.subsingleton_support_single {ι : Type u_1} {M : Type u_3} [DecidableEq ι] [Zero M] {i : ι} {a : M} :
      theorem Pi.mulSupport_mulSingle_disjoint {ι : Type u_1} {M : Type u_3} [DecidableEq ι] [One M] {i j : ι} {a b : M} (ha : a ≠ 1) (hb : b ≠ 1) :
      theorem Pi.support_single_disjoint {ι : Type u_1} {M : Type u_3} [DecidableEq ι] [Zero M] {i j : ι} {a b : M} (ha : a ≠ 0) (hb : b ≠ 0) :