Skip to content

Commit 23925f2

Browse files
Merge master into nightly-testing
2 parents ebb5175 + 9036ce5 commit 23925f2

265 files changed

Lines changed: 2270 additions & 1952 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.

Mathlib.lean

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,7 @@ public import Mathlib.AlgebraicGeometry.Fiber
13391339
public import Mathlib.AlgebraicGeometry.FunctionField
13401340
public import Mathlib.AlgebraicGeometry.GammaSpecAdjunction
13411341
public import Mathlib.AlgebraicGeometry.Geometrically.Basic
1342+
public import Mathlib.AlgebraicGeometry.Geometrically.Connected
13421343
public import Mathlib.AlgebraicGeometry.Geometrically.Integral
13431344
public import Mathlib.AlgebraicGeometry.Geometrically.Irreducible
13441345
public import Mathlib.AlgebraicGeometry.Geometrically.Reduced
@@ -1510,6 +1511,7 @@ public import Mathlib.AlgebraicTopology.SimplicialObject.II
15101511
public import Mathlib.AlgebraicTopology.SimplicialObject.Op
15111512
public import Mathlib.AlgebraicTopology.SimplicialObject.Split
15121513
public import Mathlib.AlgebraicTopology.SimplicialSet.AnodyneExtensions.IsUniquelyCodimOneFace
1514+
public import Mathlib.AlgebraicTopology.SimplicialSet.AnodyneExtensions.Op
15131515
public import Mathlib.AlgebraicTopology.SimplicialSet.AnodyneExtensions.Pairing
15141516
public import Mathlib.AlgebraicTopology.SimplicialSet.AnodyneExtensions.PairingCore
15151517
public import Mathlib.AlgebraicTopology.SimplicialSet.AnodyneExtensions.Rank
@@ -1528,6 +1530,7 @@ public import Mathlib.AlgebraicTopology.SimplicialSet.FiniteColimits
15281530
public import Mathlib.AlgebraicTopology.SimplicialSet.FiniteProd
15291531
public import Mathlib.AlgebraicTopology.SimplicialSet.HoFunctorMonoidal
15301532
public import Mathlib.AlgebraicTopology.SimplicialSet.Homology.Basic
1533+
public import Mathlib.AlgebraicTopology.SimplicialSet.Homology.HomologyZero
15311534
public import Mathlib.AlgebraicTopology.SimplicialSet.Homology.HomotopyInvariance
15321535
public import Mathlib.AlgebraicTopology.SimplicialSet.Homotopy
15331536
public import Mathlib.AlgebraicTopology.SimplicialSet.HomotopyCat
@@ -1559,9 +1562,10 @@ public import Mathlib.AlgebraicTopology.SimplicialSet.StrictSegal
15591562
public import Mathlib.AlgebraicTopology.SimplicialSet.Subcomplex
15601563
public import Mathlib.AlgebraicTopology.SimplicialSet.SubcomplexColimits
15611564
public import Mathlib.AlgebraicTopology.SimplicialSet.SubcomplexEvaluation
1565+
public import Mathlib.AlgebraicTopology.SimplicialSet.SubcomplexOp
15621566
public import Mathlib.AlgebraicTopology.SimplicialSet.TopAdj
15631567
public import Mathlib.AlgebraicTopology.SingularHomology.Basic
1564-
public import Mathlib.AlgebraicTopology.SingularHomology.HomotopyInvarianceTopCat
1568+
public import Mathlib.AlgebraicTopology.SingularHomology.HomotopyInvariance
15651569
public import Mathlib.AlgebraicTopology.SingularSet
15661570
public import Mathlib.AlgebraicTopology.TopologicalSimplex
15671571
public import Mathlib.Analysis.AbsoluteValue.Equivalence
@@ -6503,6 +6507,7 @@ public import Mathlib.RingTheory.LocalProperties.Semilocal
65036507
public import Mathlib.RingTheory.LocalProperties.Submodule
65046508
public import Mathlib.RingTheory.LocalRing.Basic
65056509
public import Mathlib.RingTheory.LocalRing.Defs
6510+
public import Mathlib.RingTheory.LocalRing.Length
65066511
public import Mathlib.RingTheory.LocalRing.LocalSubring
65076512
public import Mathlib.RingTheory.LocalRing.MaximalIdeal.Basic
65086513
public import Mathlib.RingTheory.LocalRing.MaximalIdeal.Defs

Mathlib/Algebra/Category/Grp/CartesianMonoidal.lean

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,6 @@ noncomputable def cartesianMonoidalCategory : CartesianMonoidalCategory AddCommG
119119
.ofChosenFiniteProducts ⟨_, (isZero_of_subsingleton (AddCommGrpCat.of PUnit.{u + 1})).isTerminal⟩
120120
fun G H ↦ binaryProductLimitCone G H
121121

122-
-- This is deprecated, but still used as a `local instance` in
123-
-- Mathlib.Algebra.Category.Grp.LeftExactFunctor
124-
@[instance_reducible, deprecated (since := "2025-10-10")]
125-
alias cartesianMonoidalCategoryAddCommGrp := cartesianMonoidalCategory
126-
127122
attribute [local instance] cartesianMonoidalCategory
128123

129124
noncomputable instance : BraidedCategory AddCommGrpCat.{u} := .ofCartesianMonoidalCategory

Mathlib/Algebra/Category/Grp/LeftExactFunctor.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ namespace leftExactFunctorForgetEquivalence
4545

4646
attribute [local instance] hasFiniteProducts_of_hasFiniteBiproducts
4747

48-
-- This was deprecated on 2025-10-10 but is still used as a local instance here!
49-
attribute [local instance] AddCommGrpCat.cartesianMonoidalCategoryAddCommGrp
48+
attribute [local instance] AddCommGrpCat.cartesianMonoidalCategory
5049

5150
set_option backward.privateInPublic true in
5251
private noncomputable local instance : CartesianMonoidalCategory C := .ofHasFiniteProducts

Mathlib/Algebra/Group/Action/Defs.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,10 +619,10 @@ but here you can use the even stronger class `MulSemiringAction`, which captures
619619
how the action plays with both multiplication and addition. -/
620620
@[ext]
621621
class MulDistribMulAction (M N : Type*) [Monoid M] [Monoid N] extends MulAction M N where
622-
/-- Distributivity of `•` across `*` -/
623-
smul_mul : ∀ (r : M) (x y : N), r • (x * y) = r • x * r • y
624622
/-- Multiplying `1` by a scalar gives `1` -/
625623
smul_one : ∀ r : M, r • (1 : N) = 1
624+
/-- Distributivity of `•` across `*` -/
625+
smul_mul : ∀ (r : M) (x y : N), r • (x * y) = r • x * r • y
626626

627627
export MulDistribMulAction (smul_one)
628628

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ left-cancellative multiplication.
511511
@[to_additive
512512
/-- See `card_le_card_add_left` for a more convenient but less general version for types with a
513513
left-cancellative addition. -/]
514-
lemma card_le_card_mul_left_of_injective (has : a ∈ s) (ha : Function.Injective (a * ·)) :
514+
lemma card_le_card_mul_left_of_injective (has : a ∈ s) (ha : IsLeftRegular a) :
515515
#t ≤ #(s * t) :=
516516
card_le_card_image₂_left _ has ha
517517

@@ -522,7 +522,7 @@ right-cancellative multiplication.
522522
@[to_additive
523523
/-- See `card_le_card_add_right` for a more convenient but less general version for types with a
524524
right-cancellative addition. -/]
525-
lemma card_le_card_mul_right_of_injective (hat : a ∈ t) (ha : Function.Injective (· * a)) :
525+
lemma card_le_card_mul_right_of_injective (hat : a ∈ t) (ha : IsRightRegular a) :
526526
#s ≤ #(s * t) :=
527527
card_le_card_image₂_right _ hat ha
528528

Mathlib/Algebra/Group/Pointwise/Finset/Scalar.lean

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ lemma coe_smul_finset (a : α) (s : Finset β) : ↑(a • s) = a • (↑s : Se
172172

173173
@[to_additive] lemma smul_mem_smul_finset : b ∈ s → a • b ∈ a • s := mem_image_of_mem _
174174

175-
@[to_additive] lemma smul_finset_card_le : #(a • s) ≤ #s := card_image_le
175+
@[to_additive] lemma card_smul_finset_le : #(a • s) ≤ #s := card_image_le
176+
@[deprecated (since := "2026-04-16")] alias smul_finset_card_le := card_smul_finset_le
177+
@[deprecated (since := "2026-04-16")] alias vadd_finset_card_le := card_vadd_finset_le
176178

177179
@[to_additive (attr := simp)]
178180
lemma smul_finset_empty (a : α) : a • (∅ : Finset β) = ∅ := rfl

Mathlib/Algebra/Group/Subgroup/Finite.lean

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,6 @@ open Set
174174

175175
variable {η : Type*} {f : η → Type*} [∀ i, Group (f i)]
176176

177-
@[to_additive (attr := deprecated Submonoid.pi_mem_of_mulSingle_mem_aux (since := "2025-10-08"))]
178-
theorem pi_mem_of_mulSingle_mem_aux [DecidableEq η] (I : Finset η) {H : Subgroup (∀ i, f i)}
179-
(x : ∀ i, f i) (h1 : ∀ i, i ∉ I → x i = 1) (h2 : ∀ i, i ∈ I → Pi.mulSingle i (x i) ∈ H) :
180-
x ∈ H :=
181-
Submonoid.pi_mem_of_mulSingle_mem_aux I x h1 h2
182-
183177
@[to_additive]
184178
theorem pi_mem_of_mulSingle_mem [Finite η] [DecidableEq η] {H : Subgroup (∀ i, f i)} (x : ∀ i, f i)
185179
(h : ∀ i, Pi.mulSingle i (x i) ∈ H) : x ∈ H :=

Mathlib/Algebra/GroupWithZero/Basic.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,6 @@ instance (priority := 900) isReduced_of_noZeroDivisors [NoZeroDivisors M₀] :
250250

251251
variable [IsReduced M₀]
252252

253-
@[deprecated (since := "2025-10-14")] alias pow_eq_zero := eq_zero_of_pow_eq_zero
254-
255253
@[simp] lemma pow_eq_zero_iff (hn : n ≠ 0) : a ^ n = 0 ↔ a = 0 :=
256254
⟨eq_zero_of_pow_eq_zero, (·.symm ▸ zero_pow hn)⟩
257255

Mathlib/Algebra/Homology/ShortComplex/HomologicalComplex.lean

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,14 @@ namespace ChainComplex
689689
variable {C : Type*} [Category* C] [HasZeroMorphisms C]
690690
(K L : ChainComplex C ℕ) (φ : K ⟶ L) [K.HasHomology 0]
691691

692+
instance isIso_iCycles₀ : IsIso (K.iCycles 0) :=
693+
K.isIso_iCycles 0 0 (by simp) (by simp)
694+
695+
/-- The canonical isomorphism `K.cycles 0 ≅ K.X 0` for a chain complex `K`
696+
indexed by `ℕ`. -/
697+
noncomputable abbrev cycles₀Iso : K.cycles 0 ≅ K.X 0 :=
698+
K.iCyclesIso 0 0 (by simp) (by simp)
699+
692700
instance isIso_homologyι₀ :
693701
IsIso (K.homologyι 0) :=
694702
K.isIso_homologyι 0 _ rfl (by simp)
@@ -715,6 +723,14 @@ namespace CochainComplex
715723
variable {C : Type*} [Category* C] [HasZeroMorphisms C]
716724
(K L : CochainComplex C ℕ) (φ : K ⟶ L) [K.HasHomology 0]
717725

726+
instance isIso_pOpcycles₀ : IsIso (K.pOpcycles 0) :=
727+
K.isIso_pOpcycles 0 0 (by simp) (by simp)
728+
729+
/-- The canonical isomorphism `K.X 0 ≅ K.opcycles 0` for a cochain complex `K`
730+
indexed by `ℕ`. -/
731+
noncomputable abbrev opcycles₀Iso : K.X 0 ≅ K.opcycles 0 :=
732+
K.pOpcyclesIso 0 0 (by simp) (by simp)
733+
718734
instance isIso_homologyπ₀ :
719735
IsIso (K.homologyπ 0) :=
720736
K.isIso_homologyπ _ 0 rfl (by simp)

Mathlib/Algebra/Homology/ShortComplex/LeftHomology.lean

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,14 @@ def ofIsColimitCokernelCofork (hg : S.g = 0) (c : CokernelCofork S.f) (hc : IsCo
159159
(hc : IsColimit c) : (ofIsColimitCokernelCofork S hg c hc).f' = S.f := by
160160
rfl
161161

162+
set_option backward.isDefEq.respectTransparency false in
163+
@[simp]
164+
lemma ofIsColimitCokernelCofork_liftK (hg : S.g = 0) (c : CokernelCofork S.f) (hc : IsColimit c)
165+
{T : C} (φ : T ⟶ S.X₂) :
166+
dsimp% (ofIsColimitCokernelCofork S hg c hc).liftK φ (by simp [hg]) = φ := by
167+
rw [← cancel_mono (ofIsColimitCokernelCofork S hg c hc).i, liftK_i]
168+
simp
169+
162170
/-- When the second map `S.g` is zero, this is the left homology data on `S` given by
163171
the chosen `cokernel S.f` -/
164172
@[simps!]

0 commit comments

Comments
 (0)