Skip to content

Commit cb18d5e

Browse files
committed
chore: cleanup of adaptation notes
1 parent 9036ce5 commit cb18d5e

File tree

31 files changed

+16
-107
lines changed

31 files changed

+16
-107
lines changed

Mathlib/Algebra/Category/AlgCat/Limits.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ instance limitAlgebra :
6767
Algebra R (Types.Small.limitCone (F ⋙ forget (AlgCat.{w} R))).pt :=
6868
inferInstanceAs <| Algebra R (Shrink (sectionsSubalgebra F))
6969

70-
#adaptation_note /-- After nightly-2026-02-23 we need this to avoid timeouts. -/
7170
set_option backward.isDefEq.respectTransparency false in
7271
/-- `limit.π (F ⋙ forget (AlgCat R)) j` as an `AlgHom`. -/
7372
def limitπAlgHom (j) :

Mathlib/Algebra/Category/ContinuousCohomology/Basic.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ def kerHomogeneousCochainsZeroEquiv
199199
continuous_invFun := continuous_induced_rng.mpr
200200
(continuous_induced_rng.mpr ((ContinuousLinearMap.const R G).cont.comp continuous_subtype_val))
201201

202-
#adaptation_note /-- After nightly-2026-02-23 we need this to avoid timeouts. -/
203202
set_option backward.isDefEq.respectTransparency false in
204203
open ShortComplex HomologyData in
205204
/-- `H⁰_cont(G, X) ≅ Xᴳ`. -/

Mathlib/Algebra/Category/ModuleCat/Basic.lean

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -509,26 +509,10 @@ def smulNatTrans : R →+* End (forget₂ (ModuleCat R) AddCommGrpCat) where
509509
toFun r :=
510510
{ app := fun M => M.smul r
511511
naturality := fun _ _ _ => smul_naturality _ r }
512-
map_one' := NatTrans.ext (by
513-
#adaptation_note /-- Prior to https://github.com/leanprover/lean4/pull/12244
514-
this was just `cat_disch`. -/
515-
simp +instances only [forget₂_obj, map_one, End.one_def]
516-
cat_disch)
517-
map_zero' := NatTrans.ext (by
518-
#adaptation_note /-- Prior to https://github.com/leanprover/lean4/pull/12244
519-
this was just `cat_disch`. -/
520-
simp +instances only [forget₂_obj, map_zero]
521-
cat_disch)
522-
map_mul' _ _ := NatTrans.ext (by
523-
#adaptation_note /-- Prior to https://github.com/leanprover/lean4/pull/12244
524-
this was just `cat_disch`. -/
525-
simp +instances only [forget₂_obj, map_mul, End.mul_def]
526-
cat_disch)
527-
map_add' _ _ := NatTrans.ext (by
528-
#adaptation_note /-- Prior to https://github.com/leanprover/lean4/pull/12244
529-
this was just `cat_disch`. -/
530-
simp +instances only [forget₂_obj, map_add]
531-
cat_disch)
512+
map_one' := by cat_disch
513+
map_zero' := by cat_disch
514+
map_mul' _ _ := by cat_disch
515+
map_add' _ _ := by cat_disch
532516

533517
/-- Given `A : AddCommGrpCat` and a ring morphism `R →+* End A`, this is a type synonym
534518
for `A`, on which we shall define a structure of `R`-module. -/

Mathlib/Algebra/Category/ModuleCat/Sheaf/PushforwardContinuous.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ variable {K' : GrothendieckTopology D'} {K'' : GrothendieckTopology D''}
9595
[Functor.IsContinuous G K K'] [Functor.IsContinuous (F ⋙ G) J K']
9696
(ψ : R ⟶ (G.sheafPushforwardContinuous RingCat.{u} K K').obj R')
9797

98-
#adaptation_note /-- After nightly-2026-02-23 we need this to avoid timeouts. -/
9998
/-- The composition of two pushforward functors on categories of sheaves of modules
10099
identify to the pushforward for the composition. -/
101100
noncomputable def pushforwardComp :

Mathlib/Algebra/Category/ModuleCat/Sheaf/Quasicoherent.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ variable [∀ X, (J.over X).HasSheafCompose (forget₂ RingCat.{u} AddCommGrpCat
354354
[∀ X Y, HasSheafify ((J.over X).over Y) AddCommGrpCat.{u}]
355355
[∀ X Y, ((J.over X).over Y).WEqualsLocallyBijective AddCommGrpCat.{u}]
356356

357-
#adaptation_note /-- After nightly-2026-02-23 we need this to avoid timeouts. -/
358357
/-- Given an cover `X` and a quasicoherent data for `M` restricted onto each `Mᵢ`, we may glue them
359358
into a quasicoherent data of `M` itself. -/
360359
noncomputable def QuasicoherentData.bind {R : Sheaf J RingCat.{u}}

Mathlib/Algebra/Category/ModuleCat/Stalk.lean

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ def colimit.smul (r : (R ⋙ forget _).ColimitType) (m : (M ⋙ forget _).Colimi
5858
refine Functor.ιColimitType_eq_of_map_eq_map _ _ _ α β ?_
5959
simp [*, ← R.map_comp_apply, ← M.map_comp_apply, -Functor.map_comp]
6060

61-
#adaptation_note /-- As of nightly-2026-02-10, we need to increase the maxHeartbeats limits here,
62-
and as of nightly-2026-02-23, we also need `backward.whnf.reducibleClassField`
63-
to avoid needing even more. -/
61+
#adaptation_note /-- As of nightly-2026-02-10, we need to increase the maxHeartbeats limits here. -/
6462
set_option backward.isDefEq.respectTransparency false in
6563
set_option maxHeartbeats 700000 in --
6664
set_option synthInstance.maxHeartbeats 40000 in

Mathlib/Algebra/Category/Ring/Limits.lean

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,6 @@ instance limitCommRing :
422422
(RingCat.sectionsSubring.{v, u} (F ⋙ forget₂ CommRingCat RingCat.{u}))
423423
inferInstanceAs <| CommRing (Shrink _)
424424

425-
#adaptation_note /-- After nightly-2026-02-23 we need this to avoid timeouts. -/
426425
/-- We show that the forgetful functor `CommRingCat ⥤ RingCat` creates limits.
427426
428427
All we need to do is notice that the limit point has a `CommRing` instance available,
@@ -502,8 +501,6 @@ instance forget₂Ring_preservesLimitsOfSize [UnivLE.{v, u}] :
502501
instance forget₂Ring_preservesLimits : PreservesLimits (forget₂ CommRingCat RingCat.{u}) :=
503502
CommRingCat.forget₂Ring_preservesLimitsOfSize.{u, u}
504503

505-
#adaptation_note /-- After nightly-2026-02-23 this requires more heartbeats. -/
506-
set_option maxHeartbeats 400000 in -- see note above
507504
/-- An auxiliary declaration to speed up typechecking.
508505
-/
509506
def forget₂CommSemiRingPreservesLimitsAux :

Mathlib/AlgebraicGeometry/AffineSpace.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ def isoOfIsAffine [IsAffine S] :
202202
simp only [eval₂_X]
203203
exact homOfVector_appTop_coord _ _ _
204204

205-
#adaptation_note /-- After nightly-2026-02-23 we need this to avoid timeouts. -/
206205
@[simp]
207206
lemma isoOfIsAffine_hom_appTop [IsAffine S] :
208207
(isoOfIsAffine n S).hom.appTop =

Mathlib/AlgebraicGeometry/Cover/MorphismProperty.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ def Cover.mkOfCovers (J : Type*) (obj : J → Scheme.{u}) (map : (j : J) → obj
102102
f := map
103103
mem₀ := by
104104
simp_rw [presieve₀_mem_precoverage_iff, Set.mem_range]
105-
#adaptation_note /-- This was `grind` before nightly-2026-02-05. -/
106-
exact ⟨covers, map_prop⟩
105+
grind
107106

108107
/-- An isomorphism `X ⟶ Y` is a `P`-cover of `Y`. -/
109108
@[simps! I₀ X f]

Mathlib/Analysis/InnerProductSpace/Adjoint.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,8 +964,6 @@ lemma coe_symm_linearIsometryEquiv_apply (e : H ≃ₗᵢ[𝕜] H) :
964964
theorem conjStarAlgEquiv_unitaryLinearIsometryEquiv (u : unitary (H →L[𝕜] H)) :
965965
(linearIsometryEquiv u).conjStarAlgEquiv = conjStarAlgAut 𝕜 _ u := rfl
966966

967-
#adaptation_note /-- The maxHeartbeats bump is required after leanprover/lean4#12564. -/
968-
set_option maxHeartbeats 400000 in -- see adaptation note
969967
theorem conjStarAlgAut_symm_unitaryLinearIsometryEquiv (u : H ≃ₗᵢ[𝕜] H) :
970968
conjStarAlgAut 𝕜 (H →L[𝕜] H) (linearIsometryEquiv.symm u) = u.conjStarAlgEquiv := by
971969
simp [← conjStarAlgEquiv_unitaryLinearIsometryEquiv]

0 commit comments

Comments
 (0)