Skip to content

Commit 5ddea23

Browse files
kim-emmathlib-nightly-testing[bot]leanprover-community-mathlib4-botwkrozowski
committed
chore: adaptations for nightly-2026-04-20 (#211)
Co-authored-by: mathlib-nightly-testing[bot] <mathlib-nightly-testing[bot]@users.noreply.github.com> Co-authored-by: leanprover-community-mathlib4-bot <leanprover-community-mathlib4-bot@users.noreply.github.com> Co-authored-by: Wojciech Rozowski <wojciech@lean-fro.org>
1 parent dde4d75 commit 5ddea23

24 files changed

Lines changed: 41 additions & 17 deletions

File tree

Mathlib/Algebra/BigOperators/Group/Finset/Basic.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ lemma prod_filter_not_mul_prod_filter (s : Finset ι) (p : ι → Prop) [Decidab
153153
(∏ x ∈ s with ¬p x, f x) * ∏ x ∈ s with p x, f x = ∏ x ∈ s, f x := by
154154
rw [mul_comm, prod_filter_mul_prod_filter_not]
155155

156+
set_option backward.isDefEq.respectTransparency false in
156157
@[to_additive]
157158
theorem prod_filter_xor (p q : ι → Prop) [DecidablePred p] [DecidablePred q] :
158159
(∏ x ∈ s with (Xor' (p x) (q x)), f x) =

Mathlib/Algebra/Homology/DerivedCategory/Basic.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ variable {C}
9494
/-- The localization functor `CochainComplex C ℤ ⥤ DerivedCategory C`. -/
9595
def Q : CochainComplex C ℤ ⥤ DerivedCategory C := HomologicalComplexUpToQuasiIso.Q
9696

97+
set_option backward.isDefEq.respectTransparency false in
9798
instance : (Q (C := C)).IsLocalization
9899
(HomologicalComplex.quasiIso C (ComplexShape.up ℤ)) := by
99100
dsimp only [Q, DerivedCategory]
@@ -114,6 +115,7 @@ variable (C)
114115
def quotientCompQhIso : HomotopyCategory.quotient C (ComplexShape.up ℤ) ⋙ Qh ≅ Q :=
115116
HomologicalComplexUpToQuasiIso.quotientCompQhIso C (ComplexShape.up ℤ)
116117

118+
set_option backward.isDefEq.respectTransparency false in
117119
instance : Qh.IsLocalization (HomotopyCategory.quasiIso C (ComplexShape.up ℤ)) := by
118120
dsimp [Qh, DerivedCategory]
119121
infer_instance

Mathlib/Algebra/Lie/Free.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def of : X → FreeLieAlgebra R X := fun x => Quot.mk _ (lib.of R x)
181181

182182
variable {L : Type w} [LieRing L] [LieAlgebra R L]
183183

184+
set_option backward.isDefEq.respectTransparency false in
184185
/-- An auxiliary definition used to construct the equivalence `lift` below. -/
185186
def liftAux (f : X → CommutatorRing L) :=
186187
lib.lift R f
@@ -197,6 +198,7 @@ theorem liftAux_map_mul (f : X → L) (a b : lib R X) :
197198
liftAux R f (a * b) = ⁅liftAux R f a, liftAux R f b⁆ :=
198199
map_mul _ a b
199200

201+
set_option backward.isDefEq.respectTransparency false in
200202
theorem liftAux_spec (f : X → L) (a b : lib R X) (h : FreeLieAlgebra.Rel R X a b) :
201203
liftAux R f a = liftAux R f b := by
202204
induction h with
@@ -208,6 +210,7 @@ theorem liftAux_spec (f : X → L) (a b : lib R X) (h : FreeLieAlgebra.Rel R X a
208210
| mul_left c' _ h₂ => simp only [liftAux_map_mul, h₂]
209211
| mul_right c' _ h₂ => simp only [liftAux_map_mul, h₂]
210212

213+
set_option backward.isDefEq.respectTransparency false in
211214
/-- The quotient map as a `NonUnitalAlgHom`. -/
212215
def mk : lib R X →ₙₐ[R] CommutatorRing (FreeLieAlgebra R X) where
213216
toFun := Quot.mk (Rel R X)

Mathlib/Algebra/Lie/NonUnitalNonAssocAlgebra.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ namespace LieHom
7878
variable {R L}
7979
variable {L₂ : Type w} [LieRing L₂] [LieAlgebra R L₂]
8080

81+
set_option backward.isDefEq.respectTransparency false in
8182
/-- Regarding the `LieRing` of a `LieAlgebra` as a `NonUnitalNonAssocRing`, we can
8283
regard a `LieHom` as a `NonUnitalAlgHom`. -/
8384
@[simps]
@@ -87,6 +88,7 @@ def toNonUnitalAlgHom (f : L →ₗ⁅R⁆ L₂) : CommutatorRing L →ₙₐ[R]
8788
map_zero' := f.toLinearMap.map_zero
8889
map_mul' := f.map_lie }
8990

91+
set_option backward.isDefEq.respectTransparency false in
9092
theorem toNonUnitalAlgHom_injective :
9193
Function.Injective (toNonUnitalAlgHom : _ → CommutatorRing L →ₙₐ[R] CommutatorRing L₂) :=
9294
fun _ _ h => ext <| NonUnitalAlgHom.congr_fun h

Mathlib/Analysis/CStarAlgebra/Matrix.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def l2OpNormedRingAux : NormedRing (Matrix n n 𝕜) :=
152152
open Bornology Filter
153153
open scoped Topology Uniformity
154154

155+
set_option backward.isDefEq.respectTransparency false in
155156
/-- The metric on `Matrix m n 𝕜` arising from the operator norm given by the identification with
156157
(continuous) linear maps of `EuclideanSpace`. -/
157158
@[instance_reducible]

Mathlib/CategoryTheory/Monoidal/Free/Coherence.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ section
135135

136136
variable (C)
137137

138+
set_option backward.isDefEq.respectTransparency false in
138139
/-- Our normalization procedure works by first defining a functor `F C ⥤ (N C ⥤ N C)` (which turns
139140
out to be very easy), and then obtain a functor `F C ⥤ N C` by plugging in the normal object
140141
`𝟙_ C`. -/

Mathlib/CategoryTheory/Pi/Basic.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def comapComp (f : K → J) (g : J → I) : comap C g ⋙ comap (C ∘ g) f ≅
102102
{ app := fun X b => 𝟙 (X (g (f b)))
103103
naturality := fun X Y f' => by simp only [comap, Function.comp]; funext; simp }
104104

105+
set_option backward.isDefEq.respectTransparency false in
105106
/-- The natural isomorphism between pulling back then evaluating, and just evaluating. -/
106107
@[simps!]
107108
def comapEvalIsoEval (h : J → I) (j : J) : comap C h ⋙ eval (C ∘ h) j ≅ eval C (h j) :=
@@ -117,6 +118,7 @@ instance sumElimCategory : ∀ s : I ⊕ J, Category.{v₁} (Sum.elim C D s)
117118
| Sum.inl i => inferInstanceAs <| Category (C i)
118119
| Sum.inr j => inferInstanceAs <| Category (D j)
119120

121+
set_option backward.isDefEq.respectTransparency false in
120122
/-- The bifunctor combining an `I`-indexed family of objects with a `J`-indexed family of objects
121123
to obtain an `I ⊕ J`-indexed family of objects.
122124
-/

Mathlib/CategoryTheory/Shift/Adjunction.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ this constructs the unique compatible `CommShift` structure on `E.functor`.
610610
noncomputable def commShiftFunctor [E.inverse.CommShift A] : E.functor.CommShift A :=
611611
E.symm.toAdjunction.rightAdjointCommShift A
612612

613+
set_option backward.isDefEq.respectTransparency false in
613614
lemma commShift_of_inverse [E.inverse.CommShift A] :
614615
letI := E.commShiftFunctor A
615616
E.CommShift A := by

Mathlib/CategoryTheory/Shift/Twist.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ identify to the shift functors on `C`. -/
9292
noncomputable def shiftIso (m : A) : shiftFunctor t.Category m ≅ shiftFunctor C m :=
9393
Iso.refl _
9494

95+
set_option backward.isDefEq.respectTransparency false in
9596
lemma shiftFunctor_map {X Y : t.Category} (f : X ⟶ Y) (m : A) :
9697
(shiftFunctor t.Category m).map f =
9798
(t.shiftIso m).hom.app X ≫ (shiftFunctor C m).map f ≫ (t.shiftIso m).inv.app Y := by

Mathlib/CategoryTheory/Triangulated/Adjunction.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ instance [h : E.inverse.IsTriangulated] : E.symm.functor.IsTriangulated := h
201201
lemma mk' (h : E.functor.IsTriangulated) : E.IsTriangulated where
202202
rightAdjoint_isTriangulated := E.toAdjunction.isTriangulated_rightAdjoint
203203

204+
set_option backward.isDefEq.respectTransparency false in
204205
/-- Constructor for `Equivalence.IsTriangulated`. -/
205206
lemma mk'' (h : E.inverse.IsTriangulated) : E.IsTriangulated where
206207
leftAdjoint_isTriangulated := (mk' E.symm h).rightAdjoint_isTriangulated

0 commit comments

Comments
 (0)