The areas / V03. Sets, finite structures and big operators
Mathlib.Data.Finsupp.NeLocus
25 declarations. Mathlib docs · Source
theorem Finsupp.neLocus.congr_simp E1 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] {inst_1 : DecidableEq N} [inst_2 : DecidableEq N]
[inst_3 : Zero N] (f f_1 : α →₀ N), f = f_1 → ∀ (g g_1 : α →₀ N), g = g_1 → f.neLocus g = f_1.neLocus g_1
def Finsupp.neLocus E1 #
{α : Type u_1} → {N : Type u_3} → [DecidableEq α] → [DecidableEq N] → [inst : Zero N] → (α →₀ N) → (α →₀ N) → Finset α
Given two finitely supported functions f g : α →₀ N, Finsupp.neLocus f g is the Finset
where f and g differ. This generalizes (f - g).support to situations without subtraction.
theorem Finsupp.mem_neLocus E0 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : Zero N] {f g : α →₀ N}
{a : α}, a ∈ f.neLocus g ↔ f a ≠ g a
theorem Finsupp.notMem_neLocus E1 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : Zero N] {f g : α →₀ N}
{a : α}, a ∉ f.neLocus g ↔ f a = g a
theorem Finsupp.coe_neLocus E0 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : Zero N] (f g : α →₀ N),
↑(f.neLocus g) = {x | f x ≠ g x}
theorem Finsupp.neLocus_eq_empty E0 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : Zero N] {f g : α →₀ N},
f.neLocus g = ∅ ↔ f = g
theorem Finsupp.nonempty_neLocus_iff E0 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : Zero N] {f g : α →₀ N},
(f.neLocus g).Nonempty ↔ f ≠ g
theorem Finsupp.neLocus_comm E1 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : Zero N] (f g : α →₀ N),
f.neLocus g = g.neLocus f
theorem Finsupp.neLocus_zero_right E0 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : Zero N] (f : α →₀ N),
f.neLocus 0 = f.support
theorem Finsupp.neLocus_zero_left E0 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : Zero N] (f : α →₀ N),
Finsupp.neLocus 0 f = f.support
theorem Finsupp.subset_mapRange_neLocus E1 #
∀ {α : Type u_1} {M : Type u_2} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : Zero N]
[inst_3 : DecidableEq M] [inst_4 : Zero M] (f g : α →₀ N) {F : N → M} (F0 : F 0 = 0),
(Finsupp.mapRange F F0 f).neLocus (Finsupp.mapRange F F0 g) ⊆ f.neLocus g
theorem Finsupp.zipWith_neLocus_eq_left E1 #
∀ {α : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : DecidableEq α] [inst_1 : DecidableEq N]
[inst_2 : Zero M] [inst_3 : DecidableEq P] [inst_4 : Zero P] [inst_5 : Zero N] {F : M → N → P} (F0 : F 0 0 = 0)
(f : α →₀ M) (g₁ g₂ : α →₀ N),
(∀ (f : M), Function.Injective fun g ↦ F f g) →
(Finsupp.zipWith F F0 f g₁).neLocus (Finsupp.zipWith F F0 f g₂) = g₁.neLocus g₂
theorem Finsupp.zipWith_neLocus_eq_right E1 #
∀ {α : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : DecidableEq α] [inst_1 : DecidableEq M]
[inst_2 : Zero M] [inst_3 : DecidableEq P] [inst_4 : Zero P] [inst_5 : Zero N] {F : M → N → P} (F0 : F 0 0 = 0)
(f₁ f₂ : α →₀ M) (g : α →₀ N),
(∀ (g : N), Function.Injective fun f ↦ F f g) →
(Finsupp.zipWith F F0 f₁ g).neLocus (Finsupp.zipWith F F0 f₂ g) = f₁.neLocus f₂
theorem Finsupp.mapRange_neLocus_eq E0 #
∀ {α : Type u_1} {M : Type u_2} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : DecidableEq M]
[inst_3 : Zero M] [inst_4 : Zero N] (f g : α →₀ N) {F : N → M} (F0 : F 0 = 0),
Function.Injective F → (Finsupp.mapRange F F0 f).neLocus (Finsupp.mapRange F F0 g) = f.neLocus g
theorem Finsupp.neLocus_add_left E0 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : AddLeftCancelMonoid N]
(f g h : α →₀ N), (f + g).neLocus (f + h) = g.neLocus h
theorem Finsupp.neLocus_add_right E0 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : AddRightCancelMonoid N]
(f g h : α →₀ N), (f + h).neLocus (g + h) = f.neLocus g
theorem Finsupp.neLocus_neg_neg E0 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : AddGroup N] (f g : α →₀ N),
(-f).neLocus (-g) = f.neLocus g
theorem Finsupp.neLocus_neg E1 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : AddGroup N] (f g : α →₀ N),
(-f).neLocus g = f.neLocus (-g)
theorem Finsupp.neLocus_eq_support_sub E1 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : AddGroup N] (f g : α →₀ N),
f.neLocus g = (f - g).support
theorem Finsupp.neLocus_sub_left E0 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : AddGroup N]
(f g₁ g₂ : α →₀ N), (f - g₁).neLocus (f - g₂) = g₁.neLocus g₂
theorem Finsupp.neLocus_sub_right E0 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : AddGroup N]
(f₁ f₂ g : α →₀ N), (f₁ - g).neLocus (f₂ - g) = f₁.neLocus f₂
theorem Finsupp.neLocus_self_add_right E0 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : AddGroup N] (f g : α →₀ N),
f.neLocus (f + g) = g.support
theorem Finsupp.neLocus_self_add_left E0 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : AddGroup N] (f g : α →₀ N),
(f + g).neLocus f = g.support
theorem Finsupp.neLocus_self_sub_right E0 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : AddGroup N] (f g : α →₀ N),
f.neLocus (f - g) = g.support
theorem Finsupp.neLocus_self_sub_left E0 #
∀ {α : Type u_1} {N : Type u_3} [inst : DecidableEq α] [inst_1 : DecidableEq N] [inst_2 : AddGroup N] (f g : α →₀ N),
(f - g).neLocus f = g.support