Skip to content

Commit e120c76

Browse files
chore: adaptations for nightly-2026-05-11 (#220)
Co-authored-by: mathlib-nightly-testing[bot] <mathlib-nightly-testing[bot]@users.noreply.github.com>
1 parent 41c335d commit e120c76

24 files changed

Lines changed: 50 additions & 5 deletions

File tree

Mathlib/Algebra/Homology/HomotopyCategory/Plus.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ open HomologicalComplex
3232

3333
variable {C} [HasBinaryBiproducts C]
3434

35+
set_option backward.defeqAttrib.useBackward true in
3536
lemma plus_cylinder (K : CochainComplex C ℤ) (hK : CochainComplex.plus C K) :
3637
CochainComplex.plus C (cylinder K) := by
3738
obtain ⟨n, hn⟩ := hK
@@ -110,6 +111,7 @@ instance : (plus C).IsStableUnderShift ℤ where
110111
plus_quotient_obj_iff]
111112
exact ⟨q - n, K.isStrictlyGE_shift q n (q - n) (by lia)⟩ }
112113

114+
set_option backward.defeqAttrib.useBackward true in
113115
set_option backward.isDefEq.respectTransparency false in
114116
instance [HasZeroObject C] [HasBinaryBiproducts C] :
115117
(plus C).IsTriangulatedClosed₃ where
@@ -202,6 +204,7 @@ section
202204
variable [HasZeroObject C] [HasBinaryBiproducts C]
203205

204206
open HomologicalComplex in
207+
set_option backward.defeqAttrib.useBackward true in
205208
instance :
206209
(quotient C).IsLocalization
207210
((homotopyEquivalences C (.up ℤ)).inverseImage (CochainComplex.Plus.ι C)) :=

Mathlib/Algebra/Homology/HomotopyFiber.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ instance [HasBinaryBiproducts C] : HasHomotopyFiber φ where
4444

4545
variable [HasHomotopyFiber φ] [DecidableRel c.Rel]
4646

47+
set_option backward.defeqAttrib.useBackward true in
4748
instance : HasHomotopyCofiber ((opFunctor C c).map φ.op) where
4849
hasBinaryBiproduct i j hij := by
4950
have := HasHomotopyFiber.hasBinaryBiproduct φ j i hij
@@ -58,6 +59,7 @@ end
5859

5960
variable (K) [∀ i, HasBinaryBiproduct (K.X i) (K.X i)]
6061

62+
set_option backward.defeqAttrib.useBackward true in
6163
instance (i : α) : HasBinaryBiproduct (K.op.X i) (K.op.X i) := by
6264
dsimp; infer_instance
6365

@@ -84,6 +86,7 @@ noncomputable def pathObject := (unopFunctor C c.symm).obj (op K.op.cylinder)
8486

8587
namespace pathObject
8688

89+
set_option backward.defeqAttrib.useBackward true in
8790
lemma isZero_X (i : α) (h₁ : IsZero (K.X i)) (h₂ : ∀ (j : α), c.Rel j i → IsZero (K.X j)) :
8891
IsZero (K.pathObject.X i) := by
8992
apply IsZero.unop

Mathlib/Algebra/Homology/Opposite.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ open HomologicalComplex
454454

455455
variable {V : Type*} [Category* V] {ι : Type*} {c : ComplexShape ι} [Preadditive V]
456456

457+
set_option backward.defeqAttrib.useBackward true in
457458
/-- The opposite of a homotopy between morphisms of homological complexes. -/
458459
@[simps]
459460
def op {F G : HomologicalComplex V c} {φ₁ φ₂ : F ⟶ G} (h : Homotopy φ₁ φ₂) :
@@ -466,6 +467,7 @@ def op {F G : HomologicalComplex V c} {φ₁ φ₂ : F ⟶ G} (h : Homotopy φ
466467
nth_rw 2 [add_comm]
467468
rfl)
468469

470+
set_option backward.defeqAttrib.useBackward true in
469471
/-- The homotopy between morphisms of homological complexes that is deduced
470472
from a homotopy in the opposite category. -/
471473
@[simps]

Mathlib/AlgebraicGeometry/Morphisms/FlatRank.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ lemma Scheme.Hom.finrank_eq_one_of_isIso (f : X ⟶ Y) [IsIso f] : finrank f = 1
265265
· exact RingHom.Finite.id R
266266
· exact RingHom.Flat.id ↑R
267267

268+
set_option backward.defeqAttrib.useBackward true in
268269
/-- A finite flat locally finitely presented morphism is an isomorphism if and only if
269270
its rank is constant equal to `1`. -/
270271
nonrec lemma Scheme.Hom.isIso_iff_finrank_eq : IsIso f ↔ finrank f = 1 := by

Mathlib/AlgebraicTopology/DoldKan/SplitSimplicialObject.lean

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,19 +226,22 @@ noncomputable def toKaroubiNondegComplexIsoN₁ :
226226
simp only [πSummand_comp_cofan_inj_id_comp_PInfty_eq_PInfty, Karoubi.comp_f,
227227
HomologicalComplex.comp_f, N₁_obj_p, Karoubi.id_f]
228228

229+
set_option backward.defeqAttrib.useBackward true in
229230
@[reassoc (attr := simp)]
230231
lemma toKaroubiNondegComplexIsoN₁_hom_f_PInfty :
231232
dsimp% s.toKaroubiNondegComplexIsoN₁.hom.f ≫ PInfty =
232233
s.toKaroubiNondegComplexIsoN₁.hom.f := by
233234
simpa using s.toKaroubiNondegComplexIsoN₁.hom.comm
234235

236+
set_option backward.defeqAttrib.useBackward true in
235237
@[reassoc (attr := simp)]
236238
lemma toKaroubiNondegComplexIsoN₁_hom_inv_id_f :
237239
dsimp% s.toKaroubiNondegComplexIsoN₁.hom.f ≫ s.toKaroubiNondegComplexIsoN₁.inv.f = 𝟙 _ := by
238240
rw [← dsimp% [-Karoubi.comp_f] Karoubi.comp_f s.toKaroubiNondegComplexIsoN₁.hom
239241
s.toKaroubiNondegComplexIsoN₁.inv, Iso.hom_inv_id]
240242
simp
241243

244+
set_option backward.defeqAttrib.useBackward true in
242245
/-- Given a splitting `s` of a simplicial object `X` in a preadditive category,
243246
this is the split epimorphism from the alternating face map complex of `X` to the chain
244247
complex `s.nondegComplex`. -/
@@ -247,6 +250,7 @@ noncomputable def toNondegComplex : K[X] ⟶ s.nondegComplex :=
247250
(fullyFaithfulToKaroubi _).preimage
248251
({ f := by exact PInfty } ≫ s.toKaroubiNondegComplexIsoN₁.inv)
249252

253+
set_option backward.defeqAttrib.useBackward true in
250254
/-- Given a splitting `s` of a simplicial object `X` in a preadditive category,
251255
this is the split monomormphism from the chain complex `s.nondegComplex` to
252256
the alternating face map complex fo `X`. -/
@@ -255,20 +259,24 @@ noncomputable def fromNondegComplex : s.nondegComplex ⟶ K[X] :=
255259
(fullyFaithfulToKaroubi _).preimage
256260
(s.toKaroubiNondegComplexIsoN₁.hom ≫ { f := PInfty })
257261

262+
set_option backward.defeqAttrib.useBackward true in
258263
@[reassoc (attr := simp)]
259264
lemma PInfty_toNondegComplex : PInfty ≫ s.toNondegComplex = s.toNondegComplex :=
260265
(toKaroubi _).map_injective (by simp [toNondegComplex])
261266

267+
set_option backward.defeqAttrib.useBackward true in
262268
@[reassoc (attr := simp)]
263269
lemma fromNondegComplex_toNondegComplex :
264270
s.fromNondegComplex ≫ s.toNondegComplex = 𝟙 _ :=
265271
(toKaroubi _).map_injective (by simp [toNondegComplex, fromNondegComplex])
266272

273+
set_option backward.defeqAttrib.useBackward true in
267274
@[reassoc]
268275
lemma toNondegComplex_f (n : ℕ) :
269276
s.toNondegComplex.f n = PInfty.f n ≫ s.toKaroubiNondegComplexIsoN₁.inv.f.f n := by
270277
simp [toNondegComplex, fullyFaithfulToKaroubi]
271278

279+
set_option backward.defeqAttrib.useBackward true in
272280
@[reassoc]
273281
lemma fromNondegComplex_f (n : ℕ) :
274282
s.fromNondegComplex.f n = s.ι n ≫ PInfty.f n := by
@@ -281,6 +289,7 @@ instance isSplitEpi_toNondegComplex : IsSplitEpi s.toNondegComplex where
281289
instance isSplitMono_fromNondegComplex : IsSplitMono s.fromNondegComplex where
282290
exists_splitMono := ⟨⟨s.toNondegComplex, by simp⟩⟩
283291

292+
set_option backward.defeqAttrib.useBackward true in
284293
@[reassoc (attr := simp)]
285294
lemma toNondegComplex_fromNondegComplex :
286295
s.toNondegComplex ≫ s.fromNondegComplex = PInfty :=

Mathlib/AlgebraicTopology/ModelCategory/LeftHomotopy.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def postcomp {f g : X ⟶ Y} (h : P.LeftHomotopy f g) {Z : C} (p : Y ⟶ Z) :
8383
P.LeftHomotopy (f ≫ p) (g ≫ p) where
8484
h := h.h ≫ p
8585

86+
set_option backward.defeqAttrib.useBackward true in
8687
/-- Left homotopies in a full subcategory identify to left homotopies in the
8788
ambient category. -/
8889
noncomputable def fullSubcategoryEquiv {P : ObjectProperty C} {X Y : P.FullSubcategory}

Mathlib/AlgebraicTopology/ModelCategory/RightHomotopy.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def precomp {f g : X ⟶ Y} (h : P.RightHomotopy f g) {Z : C} (i : Z ⟶ X) :
8686
P.RightHomotopy (i ≫ f) (i ≫ g) where
8787
h := i ≫ h.h
8888

89+
set_option backward.defeqAttrib.useBackward true in
8990
/-- Right homotopies in a full subcategory identify to right homotopies in the
9091
ambient category. -/
9192
noncomputable def fullSubcategoryEquiv {P : ObjectProperty C} {X Y : P.FullSubcategory}

Mathlib/AlgebraicTopology/SimplicialObject/DeltaZeroIter.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,13 @@ namespace Augmented
149149

150150
variable (Y : Augmented C)
151151

152+
set_option backward.defeqAttrib.useBackward true in
152153
@[reassoc (attr := simp)]
153154
lemma δ₀Iter_hom_app {n m : ℕ} (i : ℕ) (hi : n + i = m := by lia) :
154155
dsimp% Y.left.δ₀Iter i hi ≫ Y.hom.app (op ⦋n⦌) = Y.hom.app (op ⦋m⦌) := by
155156
simpa using Y.hom.naturality (SimplexCategory.δ₀Iter i hi).op
156157

158+
set_option backward.defeqAttrib.useBackward true in
157159
@[reassoc (attr := simp)]
158160
lemma σ₀Iter_hom_app {n m : ℕ} (i : ℕ) (hi : n + i = m := by lia) :
159161
dsimp% Y.left.σ₀Iter i hi ≫ Y.hom.app (op ⦋m⦌) = Y.hom.app (op ⦋n⦌) := by

Mathlib/AlgebraicTopology/SimplicialObject/Split.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ theorem cofan_inj_epi_naturality {Δ₁ Δ₂ : SimplexCategoryᵒᵖ} (A : Inde
289289
rw [assoc, ← X.map_comp]
290290
rfl
291291

292+
set_option backward.defeqAttrib.useBackward true in
292293
/-- The image of a splitting of simplicial object by a functor which preserves
293294
finite coproducts -/
294295
@[simps]

Mathlib/AlgebraicTopology/SimplicialSet/Homology/Nondegenerate.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ noncomputable def normalizedChainComplexFunctorObj : SSet.{w} ⥤ ChainComplex C
223223
obj X := X.normalizedChainComplex R
224224
map f := normalizedChainComplexMap f R
225225

226+
set_option backward.defeqAttrib.useBackward true in
226227
/-- The morphism `X.toNormalizedChainComplex R` for any simplicial set `X`,
227228
as a natural transformation. -/
228229
@[simps]

0 commit comments

Comments
 (0)