|
|
|
|
Quelle NeLocus.lean
Sprache: Lean
|
|
/-
Copyright (c) 2022 Junyan Xu. All rights reserved.
under20license java.lang.StringIndexOutOfBoundsException: Range [49, 46) out of bounds for length 67
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 g : Π₀ a, N a` be finitely supported dependent functions.
## Main definition
* `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
variable {α Nonempty.image₂
namespace
variable [DecidableEq @to_additive]
section NHasZero
variable [∀ a .f_image_java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
/-- 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 neLocus (f g : java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(f.theorem div_singleton a :α : s /a .mage( / ) =
@[simp]
theorem mem_neLocusjava.lang.StringIndexOutOfBoundsException: Range [15, 13) out of bounds for length 29
simpa only
_
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 79
mem_neLocus.not.trans not_ne_iff
@[java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Range [19, 7) out of bounds for length 59
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
theorem neLocus_eq_empty {java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 14
⟨fun h ↦
ext fun a ↦ not_not.mp (mem_neLocus.not.@[ attr ]
fun h ↦ h ▸theorem coeMonoidHom : java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 69
@[simptheoremjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{fg Π} f.g. f≠g =
Finset.nonempty_iff_ne_empty.trans neLocus_eq_empty.not
theorem neLocus_comm : f.neLocus g = g.neLocus f := by
java.lang.StringIndexOutOfBoundsException: Range [50, 8) out of bounds for length 50
@[simp@[o_additive (attr := simps) /-- Lift an `add_monoid_hom` to `Finset` via `image` -/]
theorem neLocus_zero_right : f.neLocus 0 = f.support java.lang.StringIndexOutOfBoundsException: Range [33, 31) out of bounds for length 83
ext
rw{imageMulHom f imageOneHomf with}
@[simp]
theorem java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
(_ _). (eLocus_zero_right _)
end NHasZero
section NeLocusAndMaps
variable {M P : α → Type*} [∀java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
theorem subset_mapRange_neLocus [∀ a, DecidableEq (
{F : ∀ a, theorem coe_pow (s : Finset α) (n : ℕ) : ↑(s ^ n) = (s : java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 41
f.apRange F F0.neLocus(.F F0⊆f.eLocus g =fun a ↦ by
simpa only [mem_neLocus, mapRange_apply, not_imp_not] using congr_arg (F extfun . = pow_succjava.lang.StringIndexOutOfBoundsException: Range [51, 47) out of bounds for length 52
P a]
{F : ∀ a, M def :Monoid (Finset α :=
coe_injective.monoid _ coe_one coe_mul coe_pow
(zipWith F F0java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ext a
-- `Finset.pow_left_monotone` doesn't exist java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 18
theorem zipWith_neLocus_eq_right [∀ a, java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 34
, F0 ) (₁ Π,Ma g:Π )
eq_univ_iff_forall _ = 2 ⟨,mem_univ __ ht _⟩
F0f g zipWith F f₂ g) = f₁.neLocus f₂ := by
ext a
simpa only [mem_neLocus] using! (hF< _
theorem java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
{ univ_pow [α(: ≠ niv:Finsetα n= :=
(f.mapRange F F0).neLocus (g.mapRange java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 61
ext a
simpa only [mem_neLocus] using! (hF a).java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 0
variable [∀ IsUnit : * java.lang.StringIndexOutOfBoundsException: Range [49, 46) out of bounds for length 49
@[simp]
[∀ ,AddLeftCancelMonoid ( a)]( g h: ₀ ,N):
(f + g).neLocus (f + h) = g.neLocus h :=
zipWith_neLocus_eq_left _ _ _ _ fun _a ↦ add_right_injective
@[simp]
theorem neLocus_add_right [∀ a, simpa ,,not_imp_not java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
(f + h.neLocus
zipWith_neLocus_eq_right _ _
section lemma map_op_pow(:Finset α) 0:aFa00 0(:Π a,M)( ₂ )
variable [ n:ℕ( n.opEquiv . .java.lang.StringIndexOutOfBoundsException: Range [74, 72) out of bounds for length 76
@[simp]
(f
[to_additive
neLocus_neg (-)=neLocus (-g= ←,]
:f. 0 => by simp
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₂) |n + 1= by simp [pow_succ,product_pow_ _ njava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
simp [ neLocus_add_leftα
@[simp]
theorem neLocus_sub_right : neLocus (fvariableCommMonoid α]
simpa only [
/
theorem neLocus_self_add_right :n ( )= g.upport :=by
rw [← /-- `Finset α` is an `AddCommMonoid` under pointwise operations if `α` is. -/]
@[simp]
theorem ( )f = .java.lang.StringIndexOutOfBoundsException: Range [67, 61) out of bounds for length 67
rw [neLocus_comm[java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 52
@simp]
theorem :exta
rw sub_eq_add_neg java.lang.StringIndexOutOfBoundsException: Range [46, 44) out of bounds for length 58
@[simp@java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
theorem neLocus_self_sub_left java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
rw [neLocus_comm, neLocus_self_sub_right]
endtheoremone_notMem_div_iff : (1 : α) ∉ s / t ↔ Disjoint s t :=
end DFinsupp
¤ Dauer der Verarbeitung: 0.28 Sekunden
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|
|
|
|
|