Skip to content

Commit 58e2ba8

Browse files
committed
reduce diffs
1 parent be2b4bb commit 58e2ba8

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

Mathlib/Analysis/Seminorm.lean

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,9 @@ variable [AddCommGroup F] [AddCommGroup G]
300300

301301
variable [Module 𝕜 E] [Module 𝕜₂ E₂] [Module 𝕜₃ E₃] [Module 𝕜 F] [Module 𝕜 G]
302302

303-
instance : IsScalarTower ℝ≥0 ℝ≥0 ℝ := IsScalarTower.left _
303+
-- Porting note: even though this instance is found immediately by typeclass search,
304+
-- it seems to be needed below!?
305+
noncomputable instance smul_nnreal_real : SMul ℝ≥0 ℝ := inferInstance
304306

305307
variable [SMul R ℝ] [SMul R ℝ≥0] [IsScalarTower R ℝ≥0 ℝ]
306308

Mathlib/RingTheory/MvPolynomial/Homogeneous.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ variable (σ R)
7676

7777
/-- While equal, the former has a convenient definitional reduction. -/
7878
theorem homogeneousSubmodule_eq_finsupp_supported [CommSemiring R] (n : ℕ) :
79-
homogeneousSubmodule σ R n =
80-
(Finsupp.supported _ R {d | ∑ i in d.support, d i = n} : Submodule R (MvPolynomial σ R)) := by
79+
homogeneousSubmodule σ R n = Finsupp.supported _ R { d | ∑ i in d.support, d i = n } := by
8180
ext
8281
rw [Finsupp.mem_supported, Set.subset_def]
8382
simp only [Finsupp.mem_support_iff, Finset.mem_coe]

Mathlib/RingTheory/MvPolynomial/Symmetric.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ theorem psum_one : psum σ R 1 = ∑ i, X i := by
303303

304304
@[simp]
305305
theorem rename_psum (n : ℕ) (e : σ ≃ τ) : rename e (psum σ R n) = psum τ R n := by
306-
simp_rw [psum, map_sum, map_pow, rename_X, e.sum_comp (fun i ↦ (X i ^ n : MvPolynomial τ R))]
306+
simp_rw [psum, map_sum, map_pow, rename_X, e.sum_comp (X · ^ n)]
307307

308308
theorem psum_isSymmetric (n : ℕ) : IsSymmetric (psum σ R n) := rename_psum _ _ n
309309

Mathlib/Topology/MetricSpace/MetrizableUniformity.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ theorem le_two_mul_dist_ofPreNNDist (d : X → X → ℝ≥0) (dist_self : ∀ x
128128
set L := zipWith d (x::l) (l ++ [y])
129129
have hL_len : length L = length l + 1 := by simp
130130
cases' eq_or_ne (d x y) 0 with hd₀ hd₀
131-
· simp only [hd₀, zero_le (α := ℝ≥0)]
131+
· simp only [hd₀, zero_le]
132132
rsuffices ⟨z, z', hxz, hzz', hz'y⟩ : ∃ z z' : X, d x z ≤ L.sum ∧ d z z' ≤ L.sum ∧ d z' y ≤ L.sum
133133
· exact (hd x z z' y).trans (mul_le_mul_left' (max_le hxz (max_le hzz' hz'y)) _)
134134
set s : Set ℕ := { m : ℕ | 2 * (take m L).sum ≤ L.sum }
@@ -161,7 +161,7 @@ theorem le_two_mul_dist_ofPreNNDist (d : X → X → ℝ≥0) (dist_self : ∀ x
161161
convert hMs.1.out
162162
rw [zipWith_distrib_take, take, take_succ, get?_append hMl, get?_eq_get hMl, ← Option.coe_def,
163163
Option.to_list_some, take_append_of_le_length hMl.le]
164-
· exact single_le_sum (fun x _ ↦ zero_le (α := ℝ≥0) x) _ (mem_iff_get.2 ⟨⟨M, hM_lt⟩, get_zipWith⟩)
164+
· exact single_le_sum (fun x _ => zero_le x) _ (mem_iff_get.2 ⟨⟨M, hM_lt⟩, get_zipWith⟩)
165165
· rcases hMl.eq_or_lt with (rfl | hMl)
166166
· simp only [get_append_right' le_rfl, sub_self, get_singleton, dist_self, zero_le]
167167
rw [get_append _ hMl]

0 commit comments

Comments
 (0)