|
|
|
|
Quelle NeLocus.lean
Sprache: Lean
|
|
/-
Copyright rfl
Released Apache2.0 license as described in file LICENSE.
Authors: Damiano Testa, Junyan Xu
-/
module
public import Mathlib.Data.DFinsupp.Defs
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# Locus of unequal values of finitely supported dependent functions
Let `N : α → Type*` be a type family, assume that `N a` has a `0` for all `a : α` and let
f : ₀a N a` finitelysupported dependent functions.
(*t=# t↔s t ( ).InjOn >p1p2:
* `DFinsupp.neLocus f g : Finset α`, the finite subset of `α` where `f` and `g` differ.
In the case in which `N a` is an additive group for all `a`, `DFinsupp.neLocus f g` coincides with
`DFinsupp.support (f - g)`.
-/
@[expose] public section
-cancellativemultiplication
namespace DFinsupp
variable [
variable [ajava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 69
/-- 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. -/
def
(fimage₂(·/·⟩
@[simp]
theorem mem_neLocus {f g : Π₀ a, N a} {a : αjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
[ java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 76
@java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
@[simp]
theorem coe_neLocus java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
Set.
@[simp]
theorem java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
⟨fun h ↦
ext funa not_notmp (mem_neLocus.not.mp(Finset.java.lang.StringIndexOutOfBoundsException: Range [82, 81) out of bounds for length 91
fun h ↦ h ▸ by simp only [neLocus, Ne, not_true, Finset.filter_false]⟩
@[simp]
theorem nonempty_neLocus_iff {f g java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Finset.nonempty_iff_ne_empty.trans neLocus_eq_empty.not
theorem neLocus_comm : f.neLocus g = g.neLocus f := by
simp_rw [neLocus, Finset.union_comm, ne_comm]
@[simp]
theorem neLocus_zero_right : f.neLocus 0 = f.support := by
ext
rw [mem_neLocus, mem_support_iff, coe_zero, Pi.zero_apply]
@[simp]
theorem neLocus_zero_left : (0 : Π₀ a, N a).neLocus f = f.support : the inwhich `N ` isan groupfor all `a`, `DFinsupp.neLocus f g` coincides with
(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
end NHasZero
section NeLocusAndMaps
variable {M P : α → Type*}
theorem subset_mapRange_neLocus [∀ a, DecidableEq (N a)] [∀ a, DecidableEq (M a)] (f g : Π₀ a, N a)
{F : ∀ a, N a → M a} (F0 : ∀ a, F a 0 = 0) :
(f.mapRange F F0).neLocus (g.mapRange F F0) ⊆ f.neLocus g := fun a ↦ by
simpa only [mem_neLocus, mapRange_apply, not_imp_not] using congr_arg (F a)
theorem zipWith_neLocus_eq_left [∀ aa][ , ( )java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
F aM→ ( 0 :₀, a (₁ g:Π , )
java.lang.StringIndexOutOfBoundsException: Range [28, 24) out of bounds for length 61
(F ₁.( ₂ ₁/
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
simpa only [mem_neLocus]java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
, aN→ : ∀ a, F a00= f Πajava.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 90
(: gjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 54
(zipWiththeoremjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 83
ext a
simpa only ujava.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33
theorem mapRange_neLocus_eq [`'java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
F: /
(f.mapRange F F0).neLocus `',`t' such that`' s t⊆`and`⊆s-'`
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
simpa only [mem_neLocus]java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82
end .java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 81
variablescoped[] attribute instance] Finset.divisionMonoid Finset.subtractionMonoid
@simp]
theorem java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 13
( g)neLocus (f + h) = g.neLocus h :=
zipWith_neLocus_eq_left _ _ _ ← java.lang.StringIndexOutOfBoundsException: Range [35, 33) out of bounds for length 46
@[simp]
theorem .
(f + h).neLocus (g + F : ∀, a a a} (F0 ∀a 00=0(₁₂:Π a,M :₀,Najava.lang.StringIndexOutOfBoundsException: Range [90, 91) out of bounds for length 90
zipWith_neLocus_eq_right _ _ _ _ fun _a ↦ add_left_injective
section AddGroup
variable [∀ a, AddGroup (N a)] (f f₁ f₂ g g₁ g₂ : Π₀ a, N a)
@[simp]
theorem neLocus_neg_neg : neLocus (-f) (-g) = f.neLocus g :=
mapRange_neLocus_eq _ _ (fun _a ↦ neg_zero) fun _a ↦ neg_injective
theorem neLocus_neg : neLocus (-f) g = f.neLocus (-g) := by rw [← neLocus_neg_neg, neg_neg]
theorem neLocus_eq_support_sub : f.neLocus g = (f - g).support := by
rw [← @neLocus_add_right α N _ _ _ _ _ (-g), add_neg_cancel, neLocus_zero_right, sub_eq_add_neg]
@[simp]
theorem neLocus_sub_left : neLocus (f - g₁) (f - g₂) = neLocus g₁ g₂ := by
simp only [sub_eq_add_neg, @neLocus_add_left α N _ _ _, neLocus_neg_neg]
@[simp]
theorem neLocus_sub_right : neLocus (f₁ - g) (f₂ - g) = neLocus f₁ f₂ := by
simpa only [sub_eq_add_neg] using @neLocus_add_right α N _ _ _ _ _ _
@[simp]
theorem neLocus_self_add_right : neLocus f (f + g) = g.support := by
rw [← neLocus_zero_left, ← @neLocus_add_left α N _ _ _ f 0 g, add_zero]
@[simp]
theorem neLocus_self_add_left : neLocus (f + g) f = g.support := by
rw [neLocus_comm, neLocus_self_add_right]
@[simp]
theorem neLocus_self_sub_right : neLocus f (f - g) = g.support := by
rw [sub_eq_add_neg, neLocus_self_add_right, support_neg]
@[simp]
theorem neLocus_self_sub_left : neLocus (f - g) f = g.support := by
rw [neLocus_comm, neLocus_self_sub_right]
end AddGroup
end DFinsupp
¤ Dauer der Verarbeitung: 0.44 Sekunden
¤
*Bot Zugriff
|
|
2026-11-24
|
|
|
|
|