Skip to content

Commit 6ec4302

Browse files
committed
feat: push lemmas for Filter.NeBot (#35261)
1 parent fd7d30a commit 6ec4302

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Mathlib/Order/Filter/Basic.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ end CompleteLattice
249249

250250
theorem NeBot.ne {f : Filter α} (hf : NeBot f) : f ≠ ⊥ := hf.ne'
251251

252-
@[simp] theorem not_neBot {f : Filter α} : ¬f.NeBot ↔ f = ⊥ := neBot_iff.not_left
252+
@[simp, push]
253+
theorem not_neBot {f : Filter α} : ¬f.NeBot ↔ f = ⊥ := neBot_iff.not_left
253254

254255
theorem NeBot.mono {f g : Filter α} (hf : NeBot f) (hg : f ≤ g) : NeBot g :=
255256
⟨ne_bot_of_le_ne_bot hf.1 hg⟩

Mathlib/Order/Filter/Defs.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ class NeBot (f : Filter α) : Prop where
271271
/-- The filter is nontrivial: `f ≠ ⊥` or equivalently, `∅ ∉ f`. -/
272272
ne' : f ≠ ⊥
273273

274+
@[push ←]
274275
theorem neBot_iff {f : Filter α} : NeBot f ↔ f ≠ ⊥ :=
275276
fun h => h.1, fun h => ⟨h⟩⟩
276277

Mathlib/Topology/Algebra/InfiniteSum/Defs.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ notation3 "∑' "(...)", "r:67:(scoped f => tsum f (unconditional _)) => r
162162
@[to_additive]
163163
lemma hasProd_bot (hL : ¬L.NeBot) (f : β → α) (a : α) :
164164
HasProd f a L := by
165-
have : L.filter = ⊥ := by contrapose! hL; exact ⟨⟨hL⟩
165+
have : L.filter = ⊥ := by contrapose! hL; exact ⟨hL
166166
rw [HasProd, this]
167167
exact tendsto_bot
168168

Mathlib/Topology/Algebra/InfiniteSum/SummationFilter.lean

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,10 @@ for the intended applications, and this avoids requiring a `DecidableEq` instanc
133133
/-- If `L` has well-defined support, then so does its map along an embedding. -/
134134
instance (L : SummationFilter β) [HasSupport L] (f : β ↪ γ) : HasSupport (L.map f) := by
135135
constructor
136-
by_cases h : L.NeBot
136+
obtain (h | h) := L.neBot_or_eq_bot
137137
· simp only [map_filter, eventually_map, Finset.coe_map, image_subset_iff, support_map]
138138
filter_upwards [L.eventually_le_support] with a using by grind
139-
· have : L.filter = ⊥ := by contrapose! h; exact ⟨⟨h⟩⟩
140-
simp [this]
139+
· simp [h]
141140

142141
/-- Pullback of a summation filter along an embedding. -/
143142
@[simps] noncomputable def comap (L : SummationFilter β) (f : γ ↪ β) : SummationFilter γ where

0 commit comments

Comments
 (0)