@@ -48,12 +48,22 @@ public lemma convexOn_ringInverse :
4848 by_cases ha' : a = 0
4949 · have hb' : b = 1 := by grind
5050 simp only [ha', hb', one_mul, zero_add, gt_iff_lt]
51- grind
51+ #adaptation_note /-- Before nightly-2026-06-04, this was just `grind.
52+ `spectrum_pos` is not activating in `grind` despite the
53+ ```
54+ grind_pattern IsStrictlyPositive.spectrum_pos => x ∈ spectrum 𝕜 a, IsStrictlyPositive a
55+ ```
56+ rule, because `grind` will not fill in the `𝕜 := ℝ`. -/
57+ exact zpos.spectrum_pos hr
5258 · grind [add_pos_of_pos_of_nonneg, mul_nonneg]
5359 have h₂ : (a • 1 + b • z ^ (-1 : ℝ)) = cfc (fun r => (a + b * r ^ (-1 : ℝ))) z := by
5460 rw [CFC.rpow_eq_cfc_real zpos.nonneg]
5561 have hcont : ContinuousOn (fun r : ℝ => (r ^ (-1 : ℝ))) (spectrum ℝ z) :=
56- ContinuousOn.rpow_const (f := id) (by fun_prop) (by grind)
62+ ContinuousOn.rpow_const (f := id) (by fun_prop) (by
63+ #adaptation_note /-- Before nightly-2026-06-04, this was just `grind. -/
64+ intro x h
65+ have := IsStrictlyPositive.spectrum_pos (𝕜 := ℝ) zpos h
66+ grind)
5767 rw [← cfc_smul b _ z hcont, ← Algebra.algebraMap_eq_smul_one, ← cfc_const_add a _ z]
5868 refine cfc_congr fun r hr => ?_
5969 simp
@@ -72,7 +82,11 @@ public lemma convexOn_ringInverse :
7282 have : 0 ≤ b * r := by positivity
7383 cases lt_or_eq_of_le ha <;> grind
7484 · refine ContinuousOn.const_add (ContinuousOn.const_mul ?_ _) _
75- exact ContinuousOn.rpow_const (by fun_prop) (by grind)
85+ exact ContinuousOn.rpow_const (by fun_prop) (by
86+ #adaptation_note /-- Before nightly-2026-06-04, this was just `grind. -/
87+ intro x h
88+ have := IsStrictlyPositive.spectrum_pos (𝕜 := ℝ) zpos h
89+ grind)
7690 · intro r hr
7791 suffices (a • 1 + b • r) ^ (-1 : ℤ) ≤ a • 1 ^ (-1 : ℤ) + b • r ^ (-1 : ℤ) by
7892 simp_rw [← Real.rpow_intCast] at this
0 commit comments