Skip to content

Commit f1fe074

Browse files
Merge master into nightly-testing
2 parents c22b6cc + 977f84b commit f1fe074

1,327 files changed

Lines changed: 2299 additions & 1679 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3583,6 +3583,7 @@ public import Mathlib.Combinatorics.SimpleGraph.UniversalVerts
35833583
public import Mathlib.Combinatorics.SimpleGraph.VertexCover
35843584
public import Mathlib.Combinatorics.SimpleGraph.Walk
35853585
public import Mathlib.Combinatorics.SimpleGraph.Walk.Basic
3586+
public import Mathlib.Combinatorics.SimpleGraph.Walk.Chord
35863587
public import Mathlib.Combinatorics.SimpleGraph.Walk.Counting
35873588
public import Mathlib.Combinatorics.SimpleGraph.Walk.Decomp
35883589
public import Mathlib.Combinatorics.SimpleGraph.Walk.Maps
@@ -6923,6 +6924,7 @@ public import Mathlib.SetTheory.Lists
69236924
public import Mathlib.SetTheory.Ordinal.Arithmetic
69246925
public import Mathlib.SetTheory.Ordinal.Basic
69256926
public import Mathlib.SetTheory.Ordinal.CantorNormalForm
6927+
public import Mathlib.SetTheory.Ordinal.Commute
69266928
public import Mathlib.SetTheory.Ordinal.Enum
69276929
public import Mathlib.SetTheory.Ordinal.Exponential
69286930
public import Mathlib.SetTheory.Ordinal.Family

Mathlib/Algebra/Algebra/IsSimpleRing.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public import Mathlib.RingTheory.SimpleRing.Basic
1212
# Facts about algebras when the coefficient ring is a simple ring
1313
-/
1414

15-
@[expose] public section
15+
public section
1616

1717
variable (R A : Type*) [CommRing R] [Semiring A] [Algebra R A] [IsSimpleRing R] [Nontrivial A]
1818

Mathlib/Algebra/Algebra/Operations.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ theorem prod_span {ι : Type*} (s : Finset ι) (M : ι → Set A) :
804804

805805
theorem prod_span_singleton {ι : Type*} (s : Finset ι) (x : ι → A) :
806806
(∏ i ∈ s, span R ({x i} : Set A)) = span R {∏ i ∈ s, x i} := by
807-
rw [prod_span, Set.finset_prod_singleton]
807+
rw [prod_span, Set.finsetProd_singleton]
808808

809809
variable (R A)
810810

@@ -923,7 +923,7 @@ theorem restrictScalars_image_smul_eq {S M : Type*}
923923
exact mem_set_smul_of_mem_mem r_in x_in
924924
· intro r y h h'
925925
obtain ⟨c, c_supp, hc⟩ := (mem_set_smul ..).mp <| smul_mem _ r h
926-
simp only [hc, Finsupp.sum, AddSubmonoidClass.coe_finset_sum, SetLike.val_smul]
926+
simp only [hc, Finsupp.sum, AddSubmonoidClass.coe_finsetSum, SetLike.val_smul]
927927
refine sum_mem fun u u_in ↦ ?_
928928
obtain ⟨u, u_in', rfl⟩ := c_supp (Finset.mem_coe.mpr u_in)
929929
rw [algebraMap_smul]

Mathlib/Algebra/Algebra/Rat.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public import Mathlib.Data.Rat.Cast.CharZero
1515
This file could usefully be split further.
1616
-/
1717

18-
@[expose] public section
18+
public section
1919

2020
assert_not_exists Subgroup
2121

Mathlib/Algebra/Algebra/Subalgebra/Operations.lean

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ variable (S' : Subalgebra R S)
4141
/-- Suppose we are given `∑ i, lᵢ * sᵢ = 1` ∈ `S`, and `S'` a subalgebra of `S` that contains
4242
`lᵢ` and `sᵢ`. To check that an `x : S` falls in `S'`, we only need to show that
4343
`sᵢ ^ n • x ∈ S'` for some `n` for each `sᵢ`. -/
44-
theorem mem_of_finset_sum_eq_one_of_pow_smul_mem
44+
theorem mem_of_finsetSum_eq_one_of_pow_smul_mem
4545
{ι : Type*} (ι' : Finset ι) (s : ι → S) (l : ι → S)
4646
(e : ∑ i ∈ ι', l i * s i = 1) (hs : ∀ i, s i ∈ S') (hl : ∀ i, l i ∈ S') (x : S)
4747
(H : ∀ i, ∃ n : ℕ, (s i ^ n : S) • x ∈ S') : x ∈ S' := by
@@ -69,11 +69,14 @@ theorem mem_of_finset_sum_eq_one_of_pow_smul_mem
6969
refine Submodule.smul_mem _ (⟨_, pow_mem (hs i) _⟩ : S') ?_
7070
exact ⟨⟨_, hn i⟩, rfl⟩
7171

72+
@[deprecated (since := "2026-04-08")]
73+
alias mem_of_finset_sum_eq_one_of_pow_smul_mem := mem_of_finsetSum_eq_one_of_pow_smul_mem
74+
7275
theorem mem_of_span_eq_top_of_smul_pow_mem
7376
(s : Set S) (l : s →₀ S) (hs : Finsupp.linearCombination S ((↑) : s → S) l = 1)
7477
(hs' : s ⊆ S') (hl : ∀ i, l i ∈ S') (x : S) (H : ∀ r : s, ∃ n : ℕ, (r : S) ^ n • x ∈ S') :
7578
x ∈ S' :=
76-
mem_of_finset_sum_eq_one_of_pow_smul_mem S' l.support (↑) l hs (fun x => hs' x.2) hl x H
79+
mem_of_finsetSum_eq_one_of_pow_smul_mem S' l.support (↑) l hs (fun x => hs' x.2) hl x H
7780

7881
end Subalgebra
7982

Mathlib/Algebra/Algebra/Subalgebra/Order.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public import Mathlib.Algebra.Ring.Subsemiring.Order
1212
# Order instances on subalgebras
1313
-/
1414

15-
@[expose] public section
15+
public section
1616

1717
namespace Subalgebra
1818

Mathlib/Algebra/Azumaya/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Noncommutative algebra, Azumaya algebra, Brauer Group
3030
3131
-/
3232

33-
@[expose] public section
33+
public section
3434

3535
open scoped TensorProduct
3636

Mathlib/Algebra/Azumaya/Matrix.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ is an Azumaya algebra where `R` is a commutative ring.
2020
2121
-/
2222

23-
@[expose] public section
23+
public section
2424
open scoped TensorProduct
2525

2626
variable (R n : Type*) [CommSemiring R] [Fintype n] [DecidableEq n]

Mathlib/Algebra/BigOperators/Associated.lean

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,13 @@ variable [CommMonoid M]
160160
theorem prod_mk {p : Multiset M} : (p.map Associates.mk).prod = Associates.mk p.prod :=
161161
Multiset.induction_on p (by simp) fun a s ih => by simp [ih, Associates.mk_mul_mk]
162162

163-
theorem finset_prod_mk {p : Finset ι} {f : ι → M} :
163+
theorem finsetProd_mk {p : Finset ι} {f : ι → M} :
164164
(∏ i ∈ p, Associates.mk (f i)) = Associates.mk (∏ i ∈ p, f i) := by
165165
rw [Finset.prod_eq_multiset_prod, ← Function.comp_def, ← Multiset.map_map, prod_mk,
166166
← Finset.prod_eq_multiset_prod]
167167

168+
@[deprecated (since := "2026-04-08")] alias finset_prod_mk := finsetProd_mk
169+
168170
theorem rel_associated_iff_map_eq_map {p q : Multiset M} :
169171
Multiset.Rel Associated p q ↔ p.map Associates.mk = q.map Associates.mk := by
170172
rw [← Multiset.rel_eq, Multiset.rel_map]
@@ -216,20 +218,24 @@ section CommMonoidWithZero
216218

217219
variable {M : Type*} [CommMonoidWithZero M]
218220

219-
theorem Prime.dvd_finset_prod_iff {S : Finset M₀} {p : M} (pp : Prime p) (g : M₀ → M) :
221+
theorem Prime.dvd_finsetProd_iff {S : Finset M₀} {p : M} (pp : Prime p) (g : M₀ → M) :
220222
p ∣ S.prod g ↔ ∃ a ∈ S, p ∣ g a :=
221223
⟨pp.exists_mem_finset_dvd, fun ⟨_, ha1, ha2⟩ => dvd_trans ha2 (dvd_prod_of_mem g ha1)⟩
222224

223-
theorem Prime.not_dvd_finset_prod {S : Finset M₀} {p : M} (pp : Prime p) {g : M₀ → M}
225+
@[deprecated (since := "2026-04-08")] alias Prime.dvd_finset_prod_iff := Prime.dvd_finsetProd_iff
226+
227+
theorem Prime.not_dvd_finsetProd {S : Finset M₀} {p : M} (pp : Prime p) {g : M₀ → M}
224228
(hS : ∀ a ∈ S, ¬p ∣ g a) : ¬p ∣ S.prod g := by
225-
exact mt (Prime.dvd_finset_prod_iff pp _).1 <| not_exists.2 fun a => not_and.2 (hS a)
229+
exact mt (Prime.dvd_finsetProd_iff pp _).1 <| not_exists.2 fun a => not_and.2 (hS a)
230+
231+
@[deprecated (since := "2026-04-08")] alias Prime.not_dvd_finset_prod := Prime.not_dvd_finsetProd
226232

227233
theorem Prime.dvd_finsuppProd_iff {f : M₀ →₀ M} {g : M₀ → M → ℕ} {p : ℕ} (pp : Prime p) :
228234
p ∣ f.prod g ↔ ∃ a ∈ f.support, p ∣ g a (f a) :=
229-
Prime.dvd_finset_prod_iff pp _
235+
Prime.dvd_finsetProd_iff pp _
230236

231237
theorem Prime.not_dvd_finsuppProd {f : M₀ →₀ M} {g : M₀ → M → ℕ} {p : ℕ} (pp : Prime p)
232238
(hS : ∀ a ∈ f.support, ¬p ∣ g a (f a)) : ¬p ∣ f.prod g :=
233-
Prime.not_dvd_finset_prod pp hS
239+
Prime.not_dvd_finsetProd pp hS
234240

235241
end CommMonoidWithZero

Mathlib/Algebra/BigOperators/Fin.lean

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ theorem prod_ofFn {n : ℕ} {f : Fin n → M} : (ofFn f).prod = ∏ i, f i :=
752752
end CommMonoid
753753

754754
@[to_additive]
755-
theorem alternatingProd_eq_finset_prod {G : Type*} [DivisionCommMonoid G] :
755+
theorem alternatingProd_eq_finsetProd {G : Type*} [DivisionCommMonoid G] :
756756
∀ (L : List G), alternatingProd L = ∏ i : Fin L.length, L[i] ^ (-1 : ℤ) ^ (i : ℕ)
757757
| [] => by
758758
rw [alternatingProd, Finset.prod_eq_one]
@@ -763,9 +763,12 @@ theorem alternatingProd_eq_finset_prod {G : Type*} [DivisionCommMonoid G] :
763763
| g::h::L =>
764764
calc g * h⁻¹ * L.alternatingProd
765765
= g * h⁻¹ * ∏ i : Fin L.length, L[i] ^ (-1 : ℤ) ^ (i : ℕ) :=
766-
congr_arg _ (alternatingProd_eq_finset_prod _)
766+
congr_arg _ (alternatingProd_eq_finsetProd _)
767767
_ = ∏ i : Fin (L.length + 2), (g::h::L)[i] ^ (-1 : ℤ) ^ (i : ℕ) := by
768768
{ rw [Fin.prod_univ_succ, Fin.prod_univ_succ, mul_assoc]
769769
simp [pow_add]}
770770

771+
@[deprecated (since := "2026-04-08")]
772+
alias alternatingProd_eq_finset_prod := alternatingProd_eq_finsetProd
773+
771774
end List

0 commit comments

Comments
 (0)