Skip to content

Commit 45cf205

Browse files
committed
chore(Analysis/Calculus): golf IsOpen.exists_smooth_support_eq using grind (#27723)
1 parent 33cfd1d commit 45cf205

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Mathlib/Analysis/Calculus/BumpFunction/FiniteDimension.lean

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,7 @@ theorem IsOpen.exists_smooth_support_eq {s : Set E} (hs : IsOpen s) :
113113
rw [← hT] at hx
114114
obtain ⟨i, iT, hi⟩ : ∃ i ∈ T, x ∈ support (i : E → ℝ) := by
115115
simpa only [mem_iUnion, exists_prop] using hx
116-
rw [hg, mem_range] at iT
117-
rcases iT with ⟨n, hn⟩
118-
rw [← hn] at hi
119-
exact ⟨n, hi⟩
116+
grind [Set.mem_range]
120117
have g_smooth : ∀ n, ContDiff ℝ ∞ (g n) := fun n => (g0 n).2.2.2.1
121118
have g_comp_supp : ∀ n, HasCompactSupport (g n) := fun n => (g0 n).2.2.1
122119
have g_nonneg : ∀ n x, 0 ≤ g n x := fun n x => ((g0 n).2.2.2.2 (mem_range_self x)).1

0 commit comments

Comments
 (0)