@@ -139,7 +139,7 @@ theorem iSupIndep_stratum : iSupIndep u.stratum := by
139139 obtain hf' := congrArg ArchimedeanClass.mk hf
140140 contrapose! hf' with h0
141141 rw [← hab, DFinsupp.sum]
142- by_cases hnonempty : f.support.Nonempty
142+ by_cases! hnonempty : f.support.Nonempty
143143 · have hmem (x : ArchimedeanClass M) : (f x).val ∈ u.stratum x :=
144144 Set.mem_of_mem_of_subset (f x).prop (by simp)
145145 have hmono : StrictMonoOn (fun i ↦ ArchimedeanClass.mk (f i).val) f.support := by
@@ -156,7 +156,7 @@ theorem iSupIndep_stratum : iSupIndep u.stratum := by
156156 contrapose! h
157157 rw [DFinsupp.notMem_support_iff, u.archimedeanClassMk_of_mem_stratum ha h0]
158158 simpa using (f c).prop
159- · rw [Finset.not_nonempty_iff_eq_empty.mp hnonempty]
159+ · rw [hnonempty]
160160 symm
161161 simpa using h0
162162
@@ -293,7 +293,7 @@ theorem baseEmbedding_pos {x : seed.baseEmbedding.domain} (hx : 0 < x) :
293293 contrapose! hne with hempty
294294 apply DFinsupp.sum_eq_zero
295295 intro c
296- simpa using DFinsupp.notMem_support_iff.mp (forall_not_of_not_exists hempty c)
296+ simpa using DFinsupp.notMem_support_iff.mp (Finset.eq_empty_iff_forall_notMem.mp hempty c)
297297 have htop : f.support.min' hsupport ≠ ⊤ := by
298298 by_contra! h
299299 have h : ⊤ ∈ f.support := h ▸ f.support.min'_mem hsupport
@@ -338,16 +338,14 @@ theorem baseEmbedding_pos {x : seed.baseEmbedding.domain} (hx : 0 < x) :
338338 rw [DFinsupp.sum, mk_sum hsupport hmono]
339339 rw [seed.archimedeanClassMk_of_mem_stratum (f _).prop
340340 (by simpa using f.support.min'_mem hsupport)]
341- by_cases hsupport' : (f.support.erase (f.support.min' hsupport)).Nonempty
341+ by_cases! hsupport' : (f.support.erase (f.support.min' hsupport)).Nonempty
342342 · rw [mk_sum hsupport' (hmono.mono (by simp))]
343343 rw [seed.archimedeanClassMk_of_mem_stratum (f _).prop (by
344344 simpa using (Finset.mem_erase.mp <| (f.support.erase _).min'_mem hsupport').2 )]
345345 apply Finset.min'_lt_of_mem_erase_min'
346346 apply Finset.min'_mem _ _
347347 · -- special case: `f` has a single term, and becomes 0 after removing it
348- have : f.support.erase (f.support.min' hsupport) = ∅ :=
349- Finset.not_nonempty_iff_eq_empty.mp hsupport'
350- simpa [this] using lt_top_iff_ne_top.mpr htop
348+ simpa [hsupport'] using lt_top_iff_ne_top.mpr htop
351349
352350theorem baseEmbedding_strictMono [IsOrderedAddMonoid R] : StrictMono seed.baseEmbedding := by
353351 intro x y h
0 commit comments