Skip to content

Commit ca47173

Browse files
chore: adaptations for nightly-2026-05-03 (#215)
Co-authored-by: mathlib-nightly-testing[bot] <mathlib-nightly-testing[bot]@users.noreply.github.com>
1 parent 4d96bdc commit ca47173

1,234 files changed

Lines changed: 5074 additions & 603 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Archive/Imo/Imo1988Q6.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ theorem constant_descent_vieta_jumping (x y : ℕ) {claim : Prop} {H : ℕ →
171171
rw [exceptional_empty, Set.diff_empty]
172172
-- Now we are ready to prove that p' = (c, m_x) lies on the upper branch.
173173
-- We need to check two conditions: H(c, m_x) and c < m_x.
174-
constructor <;> dsimp only
174+
constructor
175175
· -- The first condition is not so hard. After all, c is the other root of the quadratic equation.
176176
rw [H_symm, H_quad]
177177
simpa using h_root

Counterexamples/Phillips.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,7 @@ theorem exists_discrete_support_nonpos (f : BoundedAdditiveMeasure α) :
284284
intro n
285285
rw [div_le_iff₀' (show (0 : ℝ) < 2 by simp), hε]
286286
convert hF (s n) u using 2
287-
· dsimp
288-
ext x
287+
· ext x
289288
simp only [u, not_exists, mem_iUnion, mem_diff]
290289
tauto
291290
· congr 1

Mathlib/Algebra/Algebra/NonUnitalHom.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ variable (R A B)
348348
variable [DistribMulAction R B]
349349

350350
/-- The first projection of a product is a non-unital algebra homomorphism. -/
351-
@[simps]
351+
@[simps toFun]
352352
def fst : A × B →ₙₐ[R] A where
353353
toFun := Prod.fst
354354
map_zero' := rfl
@@ -357,7 +357,7 @@ def fst : A × B →ₙₐ[R] A where
357357
map_mul' _ _ := rfl
358358

359359
/-- The second projection of a product is a non-unital algebra homomorphism. -/
360-
@[simps]
360+
@[simps toFun]
361361
def snd : A × B →ₙₐ[R] B where
362362
toFun := Prod.snd
363363
map_zero' := rfl
@@ -369,7 +369,7 @@ variable {R A B}
369369
variable [DistribMulAction R C]
370370

371371
/-- The prod of two morphisms is a morphism. -/
372-
@[simps]
372+
@[simps toFun]
373373
def prod (f : A →ₙₐ[R] B) (g : A →ₙₐ[R] C) : A →ₙₐ[R] B × C where
374374
toFun := Pi.prod f g
375375
map_zero' := by simp only [Pi.prod, Prod.mk_zero_zero, map_zero]

Mathlib/Algebra/Algebra/Unitization.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ section coe
672672

673673
/-- The coercion from a non-unital `R`-algebra `A` to its unitization `Unitization R A`
674674
realized as a non-unital algebra homomorphism. -/
675-
@[simps]
675+
@[simps toFun]
676676
def inrNonUnitalAlgHom (R A : Type*) [CommSemiring R] [NonUnitalSemiring A] [Module R A] :
677677
A →ₙₐ[R] Unitization R A where
678678
toFun := (↑)
@@ -763,7 +763,7 @@ def _root_.NonUnitalAlgHom.toAlgHom (φ : A →ₙₐ[R] C) : Unitization R A
763763
set_option backward.isDefEq.respectTransparency false in
764764
/-- Non-unital algebra homomorphisms from `A` into a unital `R`-algebra `C` lift uniquely to
765765
`Unitization R A →ₐ[R] C`. This is the universal property of the unitization. -/
766-
@[simps! apply symm_apply apply_apply]
766+
@[simps! apply symm_apply]
767767
def lift : (A →ₙₐ[R] C) ≃ (Unitization R A →ₐ[R] C) where
768768
toFun := NonUnitalAlgHom.toAlgHom
769769
invFun φ := φ.toNonUnitalAlgHom.comp (inrNonUnitalAlgHom R A)
@@ -800,7 +800,7 @@ variable [StarModule R C]
800800

801801
/-- Non-unital star algebra homomorphisms from `A` into a unital star `R`-algebra `C` lift uniquely
802802
to `Unitization R A →⋆ₐ[R] C`. This is the universal property of the unitization. -/
803-
@[simps! apply symm_apply apply_apply]
803+
@[simps! apply symm_apply]
804804
def starLift : (A →⋆ₙₐ[R] C) ≃ (Unitization R A →⋆ₐ[R] C) :=
805805
{ toFun := fun φ ↦
806806
{ toAlgHom := Unitization.lift φ.toNonUnitalAlgHom

Mathlib/Algebra/Category/AlgCat/Basic.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def free : Type u ⥤ AlgCat.{u} R where
187187
obj S := of R (FreeAlgebra R S)
188188
map f := ofHom <| FreeAlgebra.lift _ <| FreeAlgebra.ι _ ∘ f
189189

190+
set_option backward.defeqAttrib.useBackward true in
190191
set_option backward.isDefEq.respectTransparency false in
191192
/-- The free/forget adjunction for `R`-algebras. -/
192193
def adj : free.{u} R ⊣ forget (AlgCat.{u} R) :=

Mathlib/Algebra/Category/AlgCat/Limits.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Further, these limits are preserved by the forgetful functor --- that is,
1919
the underlying types are just the limits in the category of types.
2020
-/
2121

22+
set_option backward.defeqAttrib.useBackward true
23+
2224
@[expose] public section
2325

2426

Mathlib/Algebra/Category/CoalgCat/ComonEquivalence.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,10 @@ theorem tensorObj_comul (K L : CoalgCat R) :
132132
= (TensorProduct.tensorTensorTensorComm R K K L L).toLinearMap
133133
∘ₗ TensorProduct.map Coalgebra.comul Coalgebra.comul := by
134134
rw [ofComonObjCoalgebraStruct_comul]
135-
simp only [Comon.monoidal_tensorObj_comon_comul, Equivalence.symm_inverse,
136-
comonEquivalence_functor, toComon_obj, toComonObj_X, ModuleCat.of_coe,
135+
simp only [Comon.monoidal_tensorObj_comon_comul,
137136
MonObj.tensorObj.mul_def, unop_comp, unop_tensorObj, unop_tensorHom,
138137
BraidedCategory.unop_tensorμ, tensorμ_eq_tensorTensorTensorComm, ModuleCat.hom_comp,
139-
ModuleCat.hom_ofHom, LinearEquiv.comp_toLinearMap_eq_iff]
138+
ModuleCat.hom_ofHom]
140139
rfl
141140

142141
theorem tensorHom_toLinearMap (f : M →ₗc[R] N) (g : P →ₗc[R] Q) :
@@ -180,6 +179,7 @@ theorem comul_tensorObj_tensorObj_right :
180179
AlgebraTensorModule.tensorTensorTensorComm_eq]
181180
rfl
182181

182+
set_option backward.defeqAttrib.useBackward true in
183183
set_option backward.isDefEq.respectTransparency false in
184184
attribute [local simp] MonObj.tensorObj.one_def MonObj.tensorObj.mul_def in
185185
theorem comul_tensorObj_tensorObj_left :

Mathlib/Algebra/Category/ContinuousCohomology/Basic.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ See `ContinuousCohomology.MultiInd.d`.
4343
- Show that short exact sequences induce long exact sequences in certain scenarios.
4444
-/
4545

46+
set_option backward.defeqAttrib.useBackward true
47+
4648
@[expose] public section
4749

4850
open CategoryTheory Functor ContinuousMap

Mathlib/Algebra/Category/Grp/AB.lean

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ universe u
2424

2525
open CategoryTheory Limits
2626

27+
set_option backward.defeqAttrib.useBackward true in
2728
set_option backward.isDefEq.respectTransparency false in
2829
instance {J C : Type*} [Category* J] [Category* C] [HasColimitsOfShape J C] [Preadditive C] :
2930
(colim (J := J) (C := C)).Additive where
3031

3132
variable {J : Type u} [SmallCategory J] [IsFiltered J]
3233

34+
set_option backward.defeqAttrib.useBackward true in
3335
set_option backward.isDefEq.respectTransparency false in
3436
noncomputable instance :
3537
(colim (J := J) (C := AddCommGrpCat.{u})).PreservesHomology :=
@@ -77,12 +79,11 @@ instance : HasExactLimitsOfShape (Discrete J) (AddCommGrpCat.{u}) := by
7779
IsLimit.conePointUniqueUpToIso, limit.cone, AddCommGrpCat.HasLimit.productLimitCone,
7880
Iso.trans_inv, Functor.mapIso_inv, IsLimit.uniqueUpToIso_inv, Cone.forget_map,
7981
IsLimit.liftConeMorphism_hom, limit.isLimit_lift, Iso.symm_inv, Functor.mapIso_hom,
80-
IsLimit.uniqueUpToIso_hom, lim_obj, lim_map, Iso.trans_hom, Iso.symm_hom,
81-
AddCommGrpCat.HasLimit.lift, Functor.const_obj_obj, Category.assoc, limit.lift_map_assoc,
82-
Pi.cone_pt, iX, iY]
82+
IsLimit.uniqueUpToIso_hom, lim_map, Iso.trans_hom, Iso.symm_hom,
83+
AddCommGrpCat.HasLimit.lift, Category.assoc, limit.lift_map_assoc, iX, iY]
8384
ext g j
8485
change _ = (_ ≫ limit.π (Discrete.functor fun j ↦ Y.obj { as := j }) ⟨j⟩) _
85-
simp only [Discrete.functor_obj_eq_as, productIsProduct', limit.lift_π, Fan.mk_pt,
86+
simp only [Discrete.functor_obj_eq_as, productIsProduct', limit.lift_π,
8687
Fan.mk_π_app, Pi.map_apply]
8788
change _ = (_ ≫ _ ≫ limit.π Y ⟨j⟩) _
8889
simp

Mathlib/Algebra/Category/Grp/Adjunctions.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ theorem free_map_coe {α β : Type u} {f : α ⟶ β} (x : FreeAbelianGroup α)
6565
(free.map f) x = f <$> x :=
6666
rfl
6767

68+
set_option backward.defeqAttrib.useBackward true in
6869
set_option backward.isDefEq.respectTransparency false in
6970
/-- The free-forgetful adjunction for abelian groups.
7071
-/

0 commit comments

Comments
 (0)