Skip to content

Commit 0aa03fb

Browse files
committed
remove unnecesarry adaptation notes
1 parent 29f9a66 commit 0aa03fb

6 files changed

Lines changed: 0 additions & 66 deletions

File tree

β€ŽMathlib/Algebra/Group/Support.leanβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ theorem disjoint_mulSupport_iff {f : Ξ± β†’ M} {s : Set Ξ±} :
110110

111111
@[to_additive (attr := simp)]
112112
theorem mulSupport_eq_empty_iff {f : Ξ± β†’ M} : mulSupport f = βˆ… ↔ f = 1 := by
113-
#adaptation_note /-- This used to be `simp_rw` rather than `rw`,
114-
but this broke `to_additive` as of `nightly-2024-03-07` -/
115113
rw [← subset_empty_iff, mulSupport_subset_iff', funext_iff]
116114
simp
117115

β€ŽMathlib/Analysis/Normed/Group/Basic.leanβ€Ž

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -957,9 +957,6 @@ theorem SeminormedCommGroup.mem_closure_iff :
957957
@[to_additive]
958958
theorem SeminormedGroup.tendstoUniformlyOn_one {f : ΞΉ β†’ ΞΊ β†’ G} {s : Set ΞΊ} {l : Filter ΞΉ} :
959959
TendstoUniformlyOn f 1 l s ↔ βˆ€ Ξ΅ > 0, βˆ€αΆ  i in l, βˆ€ x ∈ s, β€–f i xβ€– < Ξ΅ := by
960-
#adaptation_note /-- nightly-2024-03-11.
961-
Originally this was `simp_rw` instead of `simp only`,
962-
but this creates a bad proof term with nested `OfNat.ofNat` that trips up `@[to_additive]`. -/
963960
simp only [tendstoUniformlyOn_iff, Pi.one_apply, dist_one_left]
964961

965962
@[to_additive]

β€ŽMathlib/Analysis/NormedSpace/Multilinear/Basic.leanβ€Ž

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -867,16 +867,6 @@ def smulRightL : ContinuousMultilinearMap π•œ E π•œ β†’L[π•œ] G β†’L[π•œ] Co
867867
@[simp] lemma smulRightL_apply (f : ContinuousMultilinearMap π•œ E π•œ) (z : G) :
868868
smulRightL π•œ E G f z = f.smulRight z := rfl
869869

870-
#adaptation_note
871-
/--
872-
Before https://github.com/leanprover/lean4/pull/4119 we had to create a local instance:
873-
```
874-
letI : SeminormedAddCommGroup
875-
(ContinuousMultilinearMap π•œ E π•œ β†’L[π•œ] G β†’L[π•œ] ContinuousMultilinearMap π•œ E G) :=
876-
ContinuousLinearMap.toSeminormedAddCommGroup
877-
(F := G β†’L[π•œ] ContinuousMultilinearMap π•œ E G) (σ₁₂ := RingHom.id π•œ)
878-
```
879-
-/
880870
set_option maxSynthPendingDepth 2 in
881871
lemma norm_smulRightL_le : β€–smulRightL π•œ E Gβ€– ≀ 1 :=
882872
LinearMap.mkContinuousβ‚‚_norm_le _ zero_le_one _

β€ŽMathlib/Analysis/NormedSpace/OperatorNorm/Bilinear.leanβ€Ž

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,6 @@ def compSL : (F β†’SL[σ₂₃] G) β†’L[π•œβ‚ƒ] (E β†’SL[σ₁₂] F) β†’SL[Οƒ
273273
Pi.smul_apply])
274274
1 fun f g => by simpa only [one_mul] using opNorm_comp_le f g
275275

276-
#adaptation_note
277-
/--
278-
Before https://github.com/leanprover/lean4/pull/4119 we had to create a local instance:
279-
```
280-
letI : Norm ((F β†’SL[σ₂₃] G) β†’L[π•œβ‚ƒ] (E β†’SL[σ₁₂] F) β†’SL[σ₂₃] E β†’SL[σ₁₃] G) :=
281-
hasOpNorm (π•œβ‚‚ := π•œβ‚ƒ) (E := F β†’SL[σ₂₃] G) (F := (E β†’SL[σ₁₂] F) β†’SL[σ₂₃] E β†’SL[σ₁₃] G)
282-
```
283-
-/
284276
set_option maxSynthPendingDepth 2 in
285277
theorem norm_compSL_le : β€–compSL E F G σ₁₂ σ₂₃‖ ≀ 1 :=
286278
LinearMap.mkContinuousβ‚‚_norm_le _ zero_le_one _
@@ -309,14 +301,6 @@ variable (π•œ σ₁₂ σ₂₃ E Fβ‚— Gβ‚—)
309301
def compL : (Fβ‚— β†’L[π•œ] Gβ‚—) β†’L[π•œ] (E β†’L[π•œ] Fβ‚—) β†’L[π•œ] E β†’L[π•œ] Gβ‚— :=
310302
compSL E Fβ‚— Gβ‚— (RingHom.id π•œ) (RingHom.id π•œ)
311303

312-
#adaptation_note
313-
/--
314-
Before https://github.com/leanprover/lean4/pull/4119 we had to create a local instance:
315-
```
316-
letI : Norm ((Fβ‚— β†’L[π•œ] Gβ‚—) β†’L[π•œ] (E β†’L[π•œ] Fβ‚—) β†’L[π•œ] E β†’L[π•œ] Gβ‚—) :=
317-
hasOpNorm (π•œβ‚‚ := π•œ) (E := Fβ‚— β†’L[π•œ] Gβ‚—) (F := (E β†’L[π•œ] Fβ‚—) β†’L[π•œ] E β†’L[π•œ] Gβ‚—)
318-
```
319-
-/
320304
set_option maxSynthPendingDepth 2 in
321305
theorem norm_compL_le : β€–compL π•œ E Fβ‚— Gβ‚—β€– ≀ 1 :=
322306
norm_compSL_le _ _ _ _ _
@@ -339,31 +323,13 @@ def precompL (L : E β†’L[π•œ] Fβ‚— β†’L[π•œ] Gβ‚—) : (Eβ‚— β†’L[π•œ] E) β†’L[
339323
@[simp] lemma precompL_apply (L : E β†’L[π•œ] Fβ‚— β†’L[π•œ] Gβ‚—) (u : Eβ‚— β†’L[π•œ] E) (f : Fβ‚—) (g : Eβ‚—) :
340324
precompL Eβ‚— L u f g = L (u g) f := rfl
341325

342-
#adaptation_note
343-
/--
344-
Before https://github.com/leanprover/lean4/pull/4119
345-
we had to create a local instance in the signature:
346-
```
347-
letI : SeminormedAddCommGroup ((Eβ‚— β†’L[π•œ] Fβ‚—) β†’L[π•œ] Eβ‚— β†’L[π•œ] Gβ‚—) := inferInstance
348-
letI : NormedSpace π•œ ((Eβ‚— β†’L[π•œ] Fβ‚—) β†’L[π•œ] Eβ‚— β†’L[π•œ] Gβ‚—) := inferInstance
349-
```
350-
-/
351326
set_option maxSynthPendingDepth 2 in
352327
theorem norm_precompR_le (L : E β†’L[π•œ] Fβ‚— β†’L[π•œ] Gβ‚—) : β€–precompR Eβ‚— Lβ€– ≀ β€–Lβ€– :=
353328
calc
354329
β€–precompR Eβ‚— Lβ€– ≀ β€–compL π•œ Eβ‚— Fβ‚— Gβ‚—β€– * β€–Lβ€– := opNorm_comp_le _ _
355330
_ ≀ 1 * β€–Lβ€– := mul_le_mul_of_nonneg_right (norm_compL_le _ _ _ _) (norm_nonneg L)
356331
_ = β€–Lβ€– := by rw [one_mul]
357332

358-
#adaptation_note
359-
/--
360-
Before https://github.com/leanprover/lean4/pull/4119
361-
we had to create a local instance in the signature:
362-
```
363-
letI : Norm ((Eβ‚— β†’L[π•œ] E) β†’L[π•œ] Fβ‚— β†’L[π•œ] Eβ‚— β†’L[π•œ] Gβ‚—) :=
364-
hasOpNorm (π•œβ‚‚ := π•œ) (E := Eβ‚— β†’L[π•œ] E) (F := Fβ‚— β†’L[π•œ] Eβ‚— β†’L[π•œ] Gβ‚—)
365-
```
366-
-/
367333
set_option maxSynthPendingDepth 2 in
368334
theorem norm_precompL_le (L : E β†’L[π•œ] Fβ‚— β†’L[π•œ] Gβ‚—) : β€–precompL Eβ‚— Lβ€– ≀ β€–Lβ€– := by
369335
rw [precompL, opNorm_flip, ← opNorm_flip L]

β€ŽMathlib/Analysis/NormedSpace/OperatorNorm/Mul.leanβ€Ž

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,6 @@ theorem opNorm_mulLeftRight_apply_le (x : π•œ') : β€–mulLeftRight π•œ π•œ' x
9797
@[deprecated (since := "2024-02-02")]
9898
alias op_norm_mulLeftRight_apply_le := opNorm_mulLeftRight_apply_le
9999

100-
#adaptation_note
101-
/--
102-
Before https://github.com/leanprover/lean4/pull/4119
103-
we had to create a local instance in the signature:
104-
```
105-
letI : Norm (π•œ' β†’L[π•œ] π•œ' β†’L[π•œ] π•œ' β†’L[π•œ] π•œ') :=
106-
hasOpNorm (π•œβ‚‚ := π•œ) (E := π•œ') (F := π•œ' β†’L[π•œ] π•œ' β†’L[π•œ] π•œ')
107-
```
108-
-/
109100
set_option maxSynthPendingDepth 2 in
110101
theorem opNorm_mulLeftRight_le :
111102
β€–mulLeftRight π•œ π•œ'β€– ≀ 1 :=

β€ŽMathlib/Analysis/NormedSpace/OperatorNorm/NormedSpace.leanβ€Ž

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,6 @@ alias op_norm_comp_linearIsometryEquiv := opNorm_comp_linearIsometryEquiv
215215
theorem norm_smulRightL (c : E β†’L[π•œ] π•œ) [Nontrivial Fβ‚—] : β€–smulRightL π•œ E Fβ‚— cβ€– = β€–cβ€– :=
216216
ContinuousLinearMap.homothety_norm _ c.norm_smulRight_apply
217217

218-
#adaptation_note
219-
/--
220-
Before https://github.com/leanprover/lean4/pull/4119 we had to create a local instance:
221-
```
222-
letI : SeminormedAddCommGroup ((E β†’L[π•œ] π•œ) β†’L[π•œ] Fβ‚— β†’L[π•œ] E β†’L[π•œ] Fβ‚—) :=
223-
toSeminormedAddCommGroup (F := Fβ‚— β†’L[π•œ] E β†’L[π•œ] Fβ‚—) (π•œ := π•œ) (σ₁₂ := RingHom.id π•œ)
224-
```
225-
-/
226218
set_option maxSynthPendingDepth 2 in
227219
lemma norm_smulRightL_le : β€–smulRightL π•œ E Fβ‚—β€– ≀ 1 :=
228220
LinearMap.mkContinuousβ‚‚_norm_le _ zero_le_one _

0 commit comments

Comments
Β (0)