@@ -63,7 +63,7 @@ instance PeriodicSpherePacking.instIsZLattice (S : PeriodicSpherePacking d) :
6363
6464instance SpherePacking.instCentersDiscrete (S : SpherePacking d) :
6565 DiscreteTopology S.centers := by
66- simp_rw [← singletons_open_iff_discrete , Metric.isOpen_iff]
66+ simp_rw [discreteTopology_iff_isOpen_singleton , Metric.isOpen_iff]
6767 intro ⟨u, hu⟩ ⟨v, hv⟩ huv
6868 simp_rw [Set.subset_singleton_iff, mem_ball, Subtype.forall, Subtype.mk.injEq]
6969 rw [Set.mem_singleton_iff, Subtype.mk.injEq] at huv
@@ -175,7 +175,7 @@ noncomputable def PeriodicSpherePacking.scale (S : PeriodicSpherePacking d) {c :
175175 specialize hε' x hx
176176 simp only [DistribMulAction.toLinearMap_apply, AddSubgroupClass.coe_norm,
177177 Submodule.mk_eq_zero] at hx' hε'
178- rw [norm_smul, norm_eq_abs, abs_eq_self.mpr hc.le, mul_lt_mul_left hc] at hx'
178+ rw [norm_smul, norm_eq_abs, abs_eq_self.mpr hc.le, mul_lt_mul_iff_right₀ hc] at hx'
179179 exact hε' hx'
180180 lattice_isZLattice := by
181181 use ?_
@@ -219,7 +219,7 @@ lemma SpherePacking.scale_balls {S : SpherePacking d} {c : ℝ} (hc : 0 < c) :
219219 rw [dist_eq_norm] at hxy ⊢
220220 rw [← smul_sub, norm_smul, Real.norm_eq_abs, abs_eq_self.mpr this]
221221 apply lt_of_lt_of_le (b := c⁻¹ * (c * S.separation / 2 ))
222- · exact (mul_lt_mul_left h).mpr hxy
222+ · exact (mul_lt_mul_iff_right₀ h).mpr hxy
223223 · rw [mul_div_assoc, ← mul_assoc, inv_mul_cancel₀ hc.ne.symm, one_mul]
224224 · rw [smul_smul, mul_inv_cancel₀ hc.ne.symm, one_smul]
225225 · intro h
0 commit comments