Repository navigation
[Merged by Bors] - chore: fix namespace in a deprecation - #45506
Closed
EtienneC30 wants to merge 1 commit into
Closed
EtienneC30 wants to merge 1 commit into
EtienneC30 wants to merge 1 commit into
Conversation
PR summary 65dc961a6dImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
mathlib-bors Bot
pushed a commit
that referenced
this pull request
Oct 31, 2026
Update the module docstring of `Probability.Distributions.Uniform` after #42909, and fix a deprecation in which the `PMF` namespace was forgotten.
Contributor
|
Pull request successfully merged into master. Build succeeded: |
TJHeeringa
added a commit
to TJHeeringa/mathlib4
that referenced
this pull request
Nov 6, 2026
commit 0de82161949c252e3ad54854c3ef8647238336bc Author: TJHeeringa <[email protected]> Date: Fri Nov 6 19:49:21 2026 +0100 Simp abs_(adjoint_comp_self|self_comp_adjoint) commit 73363aa1735d93052978d2411a091dcba4709798 Author: TJHeeringa <[email protected]> Date: Fri Nov 6 19:48:17 2026 +0100 Update docstring Co-authored-by: Monica Omar <[email protected]> commit a2fb91452a16d158daf8aa711c0a1d95e8ffb7ce Author: TJHeeringa <[email protected]> Date: Fri Nov 6 17:02:55 2026 +0100 Rename abs_eq_self_neg to abs_eq_neg_self commit de28de898526e92a907ba0efa39f739232af9ee9 Author: TJHeeringa <[email protected]> Date: Fri Nov 6 17:02:03 2026 +0100 Unprotect some theorems commit 76502371bcbed80eaa18d10cdd36de84de5af28e Author: TJHeeringa <[email protected]> Date: Fri Nov 6 16:58:40 2026 +0100 Mark continuous_abs with fun_prop commit 5624d8d9f470fb5fbd72de4996838937c13b0127 Author: TJHeeringa <[email protected]> Date: Fri Nov 6 16:57:51 2026 +0100 Rename ker_abs_eq to ker_abs commit 4def32ef46da0a3177fe0641020c33088d687048 Author: TJHeeringa <[email protected]> Date: Fri Nov 6 16:57:16 2026 +0100 Remove ker_abs_eq_ker_adjoint_comp_self commit e95379b1a4d232b2d15ce9766e9833aa6384e465 Author: TJHeeringa <[email protected]> Date: Thu Nov 5 23:21:41 2026 +0100 Add abs_linearIsometry_comp commit 6ef94e994cd1d58b30df287846f2158aa658751a Author: TJHeeringa <[email protected]> Date: Thu Nov 5 23:21:29 2026 +0100 Add abs_sub_comm commit 96d8f73d26a665aaacf9a27144e22caedd7d4bd8 Author: TJHeeringa <[email protected]> Date: Thu Nov 5 22:38:07 2026 +0100 Add abs_eq_self(|_neg) commit e2719577fc54910a7a3353a17c0f5a02f5328f64 Author: TJHeeringa <[email protected]> Date: Thu Nov 5 22:10:13 2026 +0100 Make variables in abs_of_isPositive(|_neg), abs_eq_zero implicit commit 8a2c04d4526647959e1c0907138e3c5e24de1ee4 Author: TJHeeringa <[email protected]> Date: Thu Nov 5 22:07:01 2026 +0100 Add abs_one commit 20d0ff36702e29c82adbf169d469576869aaea0d Author: TJHeeringa <[email protected]> Date: Thu Nov 5 22:01:16 2026 +0100 Destack theorems commit 9fd3623bd7291a0862357dbfbaca90bf0f20f546 Author: TJHeeringa <[email protected]> Date: Thu Nov 5 21:59:19 2026 +0100 Mark more protected commit aa9de3c4db3f1289bd25089549c4ab13222020d0 Author: TJHeeringa <[email protected]> Date: Thu Nov 5 21:30:49 2026 +0100 Change proofs of (adjoint_comp_self|self_comp_adjoint)_nonneg from simp to exact commit 248668be6812898fee4c8a3ca8e975d3191154d1 Author: TJHeeringa <[email protected]> Date: Thu Nov 5 21:27:58 2026 +0100 Golf norm_abs_apply Co-authored-by: Monica Omar <[email protected]> commit 5e4fe089a4fdb95b5bf4f0376dc3589a0ea46794 Author: TJHeeringa <[email protected]> Date: Thu Nov 5 21:20:58 2026 +0100 Add abs_id commit 4edcc2665e9583355c193f9898d20d64bb4494fc Author: TJHeeringa <[email protected]> Date: Thu Nov 5 21:02:34 2026 +0100 Limit opened scoped namespaces commit 07871c7a7e730c856f6d2b6d805e8055b1e83219 Author: TJHeeringa <[email protected]> Date: Thu Nov 5 21:00:06 2026 +0100 Move noncomputable from section to def commit d47187affbcf17ee7fd82a77a1ba0e1fcc318dc7 Author: TJHeeringa <[email protected]> Date: Thu Nov 5 21:25:20 2026 +0100 Update docstring Co-authored-by: Monica Omar <[email protected]> commit 9fe0eb82b5d1fe7d52bfcc720183505251e349c1 Author: TJHeeringa <[email protected]> Date: Wed Nov 4 21:30:05 2026 +0100 Protect ContinuousLinearMap.abs commit 50c2eae0f2ae61805f1290765237b3a8ccc86176 Author: TJHeeringa <[email protected]> Date: Wed Nov 4 21:23:36 2026 +0100 Add continuous_abs commit 88ed75ca0e684b58dcb04dbc5a88e73314ae4716 Author: TJHeeringa <[email protected]> Date: Wed Nov 4 21:07:20 2026 +0100 Add abs_self_comp_adjoint commit 06361a464c3cbb944ff3b48426fca1d24db509d0 Author: TJHeeringa <[email protected]> Date: Wed Nov 4 21:06:00 2026 +0100 Use .adjoint notation † for everything commit 207eab2fe164854691509c315aa69ca19a21aa70 Author: TJHeeringa <[email protected]> Date: Wed Nov 4 21:25:02 2026 +0100 Simplify various proofs Co-authored-by: Monica Omar <[email protected]> commit f90355dc49f0de14ec556aa0d60311d5baa96631 Author: TJHeeringa <[email protected]> Date: Tue Nov 3 22:40:52 2026 +0100 Reinstate aesop and simp attributes, add lemmas (adjoint_comp_self|self_comp_adjoint)_nonneg commit 65dc6bc99b5bcc8b7d70ea3c3e3c99e366e66bd5 Author: TJHeeringa <[email protected]> Date: Tue Nov 3 15:45:38 2026 +0100 Add ker_abs_eq_ker_adjoint_comp_self commit 6a9dba6fdbfac91263a390c8caa02301a7a52471 Author: TJHeeringa <[email protected]> Date: Tue Nov 3 15:33:56 2026 +0100 Revert abs_adjoint_comp_self commit 46ba82b06ea3b12b71ed2c32a9cf05f22595b3f8 Author: TJHeeringa <[email protected]> Date: Tue Nov 3 15:32:50 2026 +0100 Replacing nonneg naming by IsPositive naming, remove introduced aesope attributes, add nonneg_iff_isPositive alias IsPositive.nonneg commit cecdf94dee4f1724c2da9a17d926de1372d11aec Merge: 60540e0fb18 bf20166d939 Author: TJHeeringa <[email protected]> Date: Sun Nov 1 14:07:11 2026 +0100 Merge branch 'master' into modulus commit 60540e0fb18a4be32456b09f6fefd5320adc6179 Author: TJHeeringa <[email protected]> Date: Sun Nov 1 13:54:05 2026 +0100 Fix linter commit 1a1670b73432f375ce5293a1f9e83a3a02a9d06a Author: TJHeeringa <[email protected]> Date: Sun Nov 1 13:47:56 2026 +0100 Replace abs_apply by abs_def; actually use it instead of unfolding abs commit bf20166d9391945becb69bd9e211b6a5383d9b78 Author: Robin Carlier <[email protected]> Date: Sun Nov 1 09:13:34 2026 +0000 feat(CategoryTheory/Limits/Types): lemmas about κ-filtered colimits of types (#45527) This PR adds lemmas about κ-filtered colimits of types, parallel to some existing lemmas for filtered colimits of types (which correspond to the case where κ is ℵ₀). It shows that any κ-small family in the colimit of a κ-filtered diagram of types can be lifted to a common stage of the diagram. It also shows that any κ-small family of elements in the diagram (potentially in different stages) that becomes equal in the colimit is already equalized at some stage of the diagram. These lemmas will be used to provide some extra lemmas on κ-presentable objects in categories. Part of the PR series on accessibility of category of algebras. commit 94c3288dfe4744557df7902ad5e300a45f564112 Author: WangJiabai <[email protected]> Date: Sun Nov 1 08:43:45 2026 +0000 feat(RingTheory/MvPolynomial): define generic determinantal ideals (#40266) This PR adds a foundational API for determinantal ideals of the generic matrix. It defines `Matrix.MinorIndex`, the corresponding minors of the existing generic matrix `Matrix.mvPolynomialX`, the finite set of all `t × t` generic minors, and the ideal generated by these minors in `MvPolynomial (Fin m × Fin n) R`. It also proves basic membership, evaluation, coefficient-map/base-change, and finite-generation lemmas. This PR intentionally does not include the Sturmfels/KRS/straightening/Groebner part of the development. Co-authored-by: Jiabai Wang <[email protected]> commit a2f96aabcf72be9e18bece4b5c7c54fcc0c029f4 Author: jano-wol <[email protected]> Date: Sat Oct 31 22:39:28 2026 +0000 chore: remove straightforward redundant theorem hypotheses (#45526) A subset of changes from: https://github.com/leanprover-community/mathlib4/pull/45525 I intend to support that PR by merging the straightforward fixes first. Co-authored-by: Janos Wolosz <[email protected]> commit 95153009917ea7c8a07d4cbfb0acce197433eff6 Author: Xavier Roblot <[email protected]> Date: Sat Oct 31 15:38:56 2026 +0000 feat(RingTheory/ZMod/UnitsCyclic): (ZMod (2 ^ n))ˣ is generated by -1 and 5 (#45509) We prove that the subgroups generated by `5` and by `-1` are complements in `(ZMod (2 ^ n))ˣ`, so that the quotient by `⟨-1⟩` is cyclic, generated by the class of `5`. We also fix the module docstring entry for `ZMod.orderOf_five`, which did not match the statement. :robot: This PR was extracted from the [SKW project](https://github.com/xroblot/SKW) by Claude. commit a151a9c425dad802e4e1578282116f26004739b8 Author: Etienne Marion <[email protected]> Date: Sat Oct 31 14:30:59 2026 +0000 chore: fix namespace in a deprecation (#45506) Update the module docstring of `Probability.Distributions.Uniform` after #42909, and fix a deprecation in which the `PMF` namespace was forgotten. commit 3aeb8d21d0deef7083a1f547c3e75023904d123e Author: Yongle Hu <[email protected]> Date: Sat Oct 31 13:51:35 2026 +0000 feat(RingTheory/LocalProperties): `Module.Invertible` is a local property (#39420) Let `M` be a finite `R`-module. We show that `M` is invertible if `Mₘ` is invertible for any maximal ideal `m` of `R`. - [x] depends on: #39109 - [x] depends on: #39412 Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> commit c25839128f86b301f2dc1bddd529e3a91591a648 Author: Joël Riou <[email protected]> Date: Sat Oct 31 10:05:48 2026 +0000 refactor(CategoryTheory): colimits of representable presheaves (#42816) The file `Mathlib/CategoryTheory/Limits/Presheaf.lean` has already been refactored a few times. This PR is an effort in order to cleanup this file which contains various results about presheaves of types which should be organized better. All the definitions in `Limits/Presheaf.lean` have been moved or deprecated. The fact that a presheaf of types is a colimit of representable presheaves is now in the file `Functor/KanExtension/DenseAtYoneda.lean`. The results are stated using cocones indexed by (the opposite) of a category of elements, but they are also stated as the density of the Yoneda embedding (`Functor.IsDense`). We prove the results first for the most general version of the Yoneda embedding which is `shrinkYoneda`, and we deduce similar results for `uliftYoneda` and `yoneda`. (Some dual versions are also obtained in the file `Functor/KanExtension/DenseAtCoyoneda.lean`). Results about left Kan extensions along the Yoneda embedding are obtained in the file `Functor/KanExtension/RestrictedYoneda.lean`, and an application is obtained in the file `Functor/KanExtension/RestrictedYoneda.lean`: if `F` is a functor between locally `w`-small categories, we have the isomorphism `F ⋙ shrinkYoneda.{w} ≅ shrinkYoneda.{w} ⋙ F.op.lan`, which makes `F.op.lan` a left Kan extension of `F ⋙ shrinkYoneda.{w}` along the Yoneda embedding. (Doing so required splitting the file `Dense.lean`. New files `DenseIff.lean` and `StrongGenerator.lean` contain respectively a characterization of dense functors in terms of the restricted Yoneda functors, and the fact that the image of a dense functor is a strong generator.) Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> commit c1cc962aa0ead632c537be6c1f5b24ebc5540bc1 Author: Jovan Gerbscheid <[email protected]> Date: Sat Oct 31 04:12:24 2026 +0000 feat: use `max`/`min` for `union`/`inter` in `Set`, `Finset`, `ZFSet`, `Class` (#42316) This lets us write `∪`/`∩` for sets while the underlying constant is `max`/`min`. This is a follow-up to #32983, which made the same change for `⊆`, `⊂`, `⊇` and `⊃`. The implementation for `∪`/`∩` is analogous. The first commit contains the implementation change, and all other commits are just adaptations. Note that there are now two different special delaborators for `max`/`min`, because we already had the delaborator that chooses between `max`/`min` and `⊔`/`⊓`. It is important that the one for `∪`/`∩` is tried first. There is no priority mechanism for delaborators: they are always executed newest to oldest. So, this PR adds a (redundant) import to ensure that this order is respected. - I modified the delaborator for `⊔`/`⊓` so that it doesn't fire if `LinearOrder` isn't imported. Due to the extra redundant import, that is now a more common situation and I think in that situation it's better to print `max a b` instead of `a ⊔ b`. - It is now not anymore possible to write `simp [(· ∪ ·)]` due to elaboration issues. The same also already applied to `simp [(· ⊆ ·)]`. - Many `simp` calls had to be fixed because the `simp` set for `max`/`min` contains more lemmas than what we had for `union`/`inter`. For example, `compl_inf` and `inf_of_le_left`/`inf_of_le_right` now also apply to intersections. - In particular `inf_of_le_left`/`inf_of_le_right` are quite slow simp lemmas, which means that this PR gives a bit of slowdown. - A `grind` call had to be fixed because it timed out. Originally, that `grind` call was already doing too much stuff, but it didn't quite reach its limits. - Many `@[simp]` and some `@[gcongr]` tags could be removed because they are now subsumed by more general tags. - I removed `@[mfld_simp]` from `inter_subset_left`, as it seemed a bit weird to have it there and not on its dual or its mirror lemma. commit fdeeb26964fbda0e30d0b175372662e950f47704 Author: Kim Morrison <[email protected]> Date: Sat Oct 31 02:16:13 2026 +0000 chore(Data/Nat): remove redundant helper hypotheses (#45516) Remove `n ≠ 0` from the private `pow_dvd_iff_le_of_spec` helper in both `Data/Nat/MaxPowDiv` and `Data/Nat/PadicValNat`, and remove `1 < b` from the private `Nat.log.go_aux` helper. Update their local callers to omit the removed arguments. The helper proofs are unchanged. commit 156eea3030de019fcfe047e0216a9d10b8dfdf41 Author: Kim Morrison <[email protected]> Date: Sat Oct 31 01:50:08 2026 +0000 chore(Data/Nat/Cast): remove redundant order instances (#45515) Remove three redundant instance assumptions: - `[AddRightMono α]` from `Nat.one_sub_one_div_cast_nonneg`; - `[AddLeftMono α]` from `Nat.one_sub_one_div_cast_le_one`; - `[IsOrderedRing α]` from `Nat.cast_tsub`. The remaining ordered-algebra assumptions supply these instances. All three proofs are unchanged. commit a3ea5addc1aeda3985e7f4b663841f7663da87be Author: Kim Morrison <[email protected]> Date: Fri Oct 30 23:24:30 2026 +0000 chore(CategoryTheory): remove redundant comma-category hypotheses (#45517) Remove redundant assumptions from four related comma-category lemmas: - Drop `[Q.RespectsIso]` from `Over.pullbackComp_left_fst_fst`. - Drop `[HasPullbacks T]` from `CostructuredArrow.closedUnderLimitsOfShape_walkingCospan`. - Scope `[K.HasPullbacks]` to the earlier lemmas in `MorphismProperty/CommaSites`, so `isContinuous_comap_forget` and `toGrothendieck_comap_forget_eq_inducedTopology` no longer assume it separately. Their ambient finite wide pullbacks supply the needed instances. All four proofs are unchanged. commit 0161e865c91d29991a30c3a0628399bc525561ef Author: Kim Morrison <[email protected]> Date: Fri Oct 30 23:14:02 2026 +0000 chore(CategoryTheory): drop hypercover smallness assumptions (#45518) Remove `[Precoverage.ZeroHypercover.Small.{v} 𝒰]` from `MorphismProperty.of_zeroHypercover_target` and `MorphismProperty.of_zeroHypercover_source`. Both locality arguments work without requiring the zero-hypercover's index type to be small in the morphism universe. The proofs are unchanged. commit e363848c929ded4d9fe7c5eae8ef36403e8b7809 Author: Yongxi (Aaron) Lin <[email protected]> Date: Fri Oct 30 20:28:53 2026 +0000 feat(MeasureTheory): countable uncurry preserves strong measurability (#45492) A countable family of strongly measurable functions is jointly strongly measurable when singletons in the index space are measurable. Add `stronglyMeasurable_uncurry_of_countable` with only `[TopologicalSpace β]` on the target: no pseudometrizability, topology on the index, or measurable-space structure on the target is required. The proof directly assembles simple-function approximations, using an eventually exact finite-range approximation of the countable index. Use the new lemma to shorten `stronglyMeasurable_uncurry_of_continuous_of_stronglyMeasurable`. This is an independent prerequisite for #34716; it does not depend on that PR or #42164. Developed with assistance from Codex. Co-authored-by: Yongxi Lin <[email protected]> commit a36db84c7f1999746055c382170e85afceebce61 Author: Yongxi (Aaron) Lin <[email protected]> Date: Fri Oct 30 20:28:50 2026 +0000 refactor(MeasureTheory/Constructions/BorelSpace/Order): regroup sections and weaken hypotheses (#45475) Regroup the sections of `BorelSpace/Order.lean` so that repeated instance binders become section variables, and weaken `BorelSpace` to `OpensMeasurableSpace` where the proofs allow it: - the `lt`/`le` lemmas and `Measurable.max`/`min` now share a section with `[SecondCountableTopology α] [OrderClosedTopology α]` instead of repeating these binders; - `MeasurableSet.of_mem_nhdsGT_aux` and `MeasurableSet.of_mem_nhdsGT` move next to them under `[OrderTopology α]`, and only assume `[OpensMeasurableSpace α]` (their proofs only use measurability of open sets, singletons and countable sets); - `Monotone.measurable`, `Antitone.measurable`, `aemeasurable_restrict_of_monotoneOn` and `aemeasurable_restrict_of_antitoneOn` only assume `[OpensMeasurableSpace β]` on the domain, matching `Continuous.measurable`. The section-wide `[BorelSpace β]` they inherited is kept only for `measurable_iSup_of_lowerSemicontinuous`/`iInf_of_upperSemicontinuous`, where `β` is the codomain. No proofs change except the two `Antitone` lemmas, whose positional `@` applications are rewritten with named arguments. Preparation for #42164. Co-authored-by: Yongxi Lin <[email protected]> commit 917045c08db1323f77df9f80a99ac35b875ad94b Author: Jireh Loreaux <[email protected]> Date: Fri Oct 30 19:52:16 2026 +0000 feat: `max_pow_of_nonneg` (#45484) commit f9738e46d32221bdd20d876adf69c619543cc523 Author: Joël Riou <[email protected]> Date: Fri Oct 30 18:12:28 2026 +0000 feat(CategoryTheory): stability under retracts of the preservation of (co)limits (#45417) If a functor preserves a (co)limit, so does any retract of it. commit 75b1f08d2d82a89ce11b4f02c19df0de263cc466 Author: Etienne Marion <[email protected]> Date: Fri Oct 30 16:27:20 2026 +0000 feat: use `IsApply` for `ArithmeticFunction` (#45386) commit c51f4102de2372f0c3abbf9ca6c4a2062f6e53f6 Author: Xavier Roblot <[email protected]> Date: Fri Oct 30 16:27:16 2026 +0000 feat(Algebra/QuadraticAlgebra/Int): integral elements and the discriminant (#45296) For `z` an integral element of `QuadraticAlgebra ℚ a b`, we prove that `discr a b` is the square of the denominator of `z.im` times an integer congruent to `0` or `1` modulo `4`. Conversely, if `discr a b = d ^ 2 * e` with `1 < |d|` and `e` congruent to `0` or `1` modulo `4`, we construct an integral element `z` not in `QuadraticAlgebra ℤ a b` such that `d • z` lies in it. These are the two directions needed to determine when `QuadraticAlgebra ℤ a b` is the integral closure of `ℤ` in `QuadraticAlgebra ℚ a b`, which is done in a later PR. Prepared with Claude Code 🤖 commit 10d46ad27faef3a4ed05ccb621047c9786f883fc Author: Joël Riou <[email protected]> Date: Fri Oct 30 16:27:12 2026 +0000 feat(Algebra/Homology): bounded above cochain complexes (#45274) This new API is parallel to the API for bounded below cochain complexes. commit 14483c715b769c2542d7ce09c1994b64e5c635d5 Author: Bingyu Xia <[email protected]> Date: Fri Oct 30 16:27:08 2026 +0000 feat(Algebra/TotalMonoidAlgebra): definitions and basic coefficient API (#44814) Add the definitions and basic coefficient API of total monoid algebras. commit a354dac4230a93f6122bda889b84c9dd954b1b64 Author: Kamille Bidan <[email protected]> Date: Fri Oct 30 16:27:04 2026 +0000 feat(SetTheory/Cardinal): add cardinality bounds for direct limits (#42125) Add an equivalence between a direct limit and its component at an upper-bound index. Use it to prove upper and lower cardinality bounds and criteria for computing the cardinality of direct limits. Co-authored-by: NoneMore <[email protected]> commit cce3fe90f12eb3aa39045ceaf278ff6adcb19855 Author: qawbecrdtey <[email protected]> Date: Fri Oct 30 15:42:06 2026 +0000 chore(Data/DFinsupp/BigOperators): golf (#44787) commit 4bc402847e24ad131ba6c5ff73a14a8a34176735 Author: Chris Birkbeck <[email protected]> Date: Fri Oct 30 15:42:03 2026 +0000 chore(Topology/Order): deprecate duplicate `nhdsGE_basis_Ico` (#44581) Deprecate `nhdsGE_basis_Ico` and its dual `nhdsLE_basis_Ioc`, duplicates of `nhdsGE_basis` and `nhdsLE_basis`. commit 2a1bf39f35af2a56d0a145221926fecfb27a3eba Author: Chris Birkbeck <[email protected]> Date: Fri Oct 30 15:42:01 2026 +0000 chore(Algebra/Category/ModuleCat/Sheaf): deprecate duplicate `pushforwardNatTrans_app_val_app_apply` (#44580) Deprecate the simp lemma `SheafOfModules.pushforwardNatTrans_app_val_app_apply`, a duplicate of `pushforwardNatTrans_app_val_app`. commit f20abd6d9eae85220f785ca42bc54f45dfa44de0 Author: Joël Riou <[email protected]> Date: Fri Oct 30 15:41:58 2026 +0000 feat(CategoryTheory): external products of derivability structures (#43896) The external product of two left/right derivability structures is again a derivability structure (when one assumes that the properties of morphisms which appear contain identities). This observation of mine (in 2023) was my main motivation for the formalization of derivability structures, because it would allow to formalize not only derived functors in one variable (see #43267), but also derived functors in several variables (like the tensor product, see https://github.com/joelriou/mathlib4/blob/jriou_localization/Mathlib/CategoryTheory/Localization/DerivabilityStructure/Monoidal.lean). commit a4c49ad337d04c8743e309de017b53eb6af9b95a Author: KodamaSec Labs LTD <[email protected]> Date: Fri Oct 30 15:41:55 2026 +0000 feat(NumberTheory/ArithmeticFunction): prodPrimeFactors_one_sub for every n (#43749) `IsMultiplicative.prodPrimeFactors_one_sub_of_squarefree` gives ``` ∏ p ∈ n.primeFactors, (1 - f p) = ∑ d ∈ n.divisors, μ d * f d ``` only for squarefree `n`. The hypothesis is not needed: the summands with `d` not squarefree vanish (`μ d = 0`), and the squarefree divisors of `n` are exactly the divisors of `∏ p ∈ n.primeFactors, p`, which is squarefree with the same prime factors. So the general statement reduces to the squarefree one. This PR - adds `IsMultiplicative.prodPrimeFactors_one_sub`, the identity for every `n ≠ 0`, with the same orientation and naming as the existing lemma; - deprecates `IsMultiplicative.prodPrimeFactors_one_sub_of_squarefree` in favour of it (as requested in review), and inlines its proof. Co-authored-by: Joel Cruz Cabrera <[email protected]> Co-authored-by: Joel Cruz Cabrera <[email protected]> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> commit f67412bdfdb3d4aa6fef1a42373e20d421eb5ccc Author: Joël Riou <[email protected]> Date: Fri Oct 30 15:27:20 2026 +0000 feat(CategoryTheory/Functor): left derived bifunctors (#45460) Using currying/uncurrying of functors, this PR introduces a `2`-variable version of the API for derived functors. commit 21f7d1b51bb511e30ae90dd1500b0c05662cfde6 Author: Joël Riou <[email protected]> Date: Fri Oct 30 15:08:35 2026 +0000 chore(CategoryTheory): deprecate `leftExactFunctor` (#45418) The property of objects `leftExactFunctor` in functor categories is deprecated in favour of `ObjectProperty.preservesFiniteLimits`. The definition of the typeclass `HasExactColimitsOfShape` is moved to a separate file `Mathlib/CategoryTheory/Limits/HasExactLimitsOfShape.lean` with reduced imports in order to avoid a cycle of imports. Results about exact colimits are moved out of `Mathlib/CategoryTheory/ObjectProperty/FunctorCategory/PreservesLimits.lean` to a new file `ExactColimits.lean`. A new file `Mathlib/CategoryTheory/ObjectProperty/BinaryProductsClosure.lean` is also added by part of the content of `FiniteProducts.lean` in order to avoid importing set theory definitions in some algebra files. Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> commit ae1569979b33751f763f8534b98a4d1419e12de6 Author: Etienne Marion <[email protected]> Date: Fri Oct 30 14:28:45 2026 +0000 feat: use `IsApply` for `AddConstMap` (#45351) Also add an `abbrev` that provides a monoid instance for a `FunLike` type satisfying `(f * g) x = f (g x)` and `1 x = x`. commit ecb7b357fca8363979edcef8fc8e11e7ae81ba59 Author: Rémy Degenne <[email protected]> Date: Fri Oct 30 14:07:32 2026 +0000 feat(Probability): define complete filtrations (#45237) A filtration `𝓕` is complete with respect to a measure `μ` if for all `i`, `𝓕 i` contains all the `μ`-null sets. We add a class for that, and a few basic results. The plan for stating that a filtration satisfies the "usual conditions" is to use the two classes `IsRightContinuous` and `IsComplete` together, without adding another class on top. Co-authored-by: Remy Degenne <[email protected]> commit 9756d93f5b0062b045322498e854b78dbebb2fa8 Author: Salvatore Mercuri <[email protected]> Date: Fri Oct 30 13:18:18 2026 +0000 refactor: make `AbsoluteValue.Completion` a one-field structure (#45407) See `InfinitePlace.Completion` and `WithLp` for analogous library implementations of one-field structures. Afterwards `InfinitePlace.Completion` will become an `abbrev`. commit 143b867c7573c7826ad6e2544c7de65f0fcdff86 Author: Rémy Degenne <[email protected]> Date: Fri Oct 30 13:18:15 2026 +0000 feat(Probability): define the `leastGT` stopping time (#45239) The existing `leastGE` is the first time a function is greater or equal to a value. The new `leastGT` is the strict version of that. Co-authored-by: Remy Degenne <[email protected]> commit dc52fb028a37863babe572ffdc744af1b41000de Author: Thomas Browning <[email protected]> Date: Fri Oct 30 13:18:12 2026 +0000 chore(GroupTheory/PGroup): reorder lemmas (#41816) This PR reorders the `iff` lemmas in `GroupTheory/PGroup.lean` to allow for some golfing. Co-authored-by: tb65536 <[email protected]> commit 14577ea482283da071a3e7e6eac0725e5eb4da97 Author: Dhruv Gupta <[email protected]> Date: Fri Oct 30 12:28:11 2026 +0000 feat: `insert a` and `· \ {a}` are injective on the sets they move (#45161) Add `Set.insert_injOn_notMem`, `Set.sdiff_singleton_injOn_mem` and `Finset.insert_injOn_notMem`: adding `a` is injective on the sets not containing `a`, and removing `a` is injective on the sets containing `a`. For finsets, the second statement is `Finset.erase_injOn'`. commit ca845bae38a828a90555e03ede3668ff28f8ef92 Author: quantumsnow <[email protected]> Date: Fri Oct 30 11:51:04 2026 +0000 feat(AlgebraicTopology): Eilenberg Steenrod axioms (#38369) This introduces the Eilenberg-Steenrod axioms for a homology theory. Co-authored-by: Jacob Scharmberg <[email protected]> Co-authored-by: Joël Riou <[email protected]> Co-authored-by: Joël Riou <[email protected]> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> commit a5ec661b96d8667b3a49da001a0c4a6e0c3a32c0 Author: Fernando Chu <[email protected]> Date: Fri Oct 30 11:31:07 2026 +0000 feat(CategoryTheory/Bicategory): pasting for kan extensions (#41530) This PR constructs pasting for left lifts and shows the pasting lemma for (abs) left kan lifts. This is done for all four notions of left/right lifts/extensions. This is needed for the oo-cosmos project. - [x] depends on: #41484 commit 50f132d0a490c5df6be2ccfe612796dc08a2eec1 Author: Rémy Degenne <[email protected]> Date: Fri Oct 30 11:10:14 2026 +0000 feat: nullMeasurable versions of some measurable_of_X lemmas (#45232) They are all one-line consequence of the `measurable` lemmas but I think they are useful for discoverability. Co-authored-by: Remy Degenne <[email protected]> commit bc65bfb94a0539f77c23ed782420c62cfe0e4b24 Author: Rémy Degenne <[email protected]> Date: Fri Oct 30 11:10:11 2026 +0000 feat: add `MeasurableSpace.prod_mono` (#45231) Add a monotonicity lemma for products of measurable spaces, tagged with `gcongr`. Co-authored-by: Remy Degenne <[email protected]> commit 3dd2bdf956a7e7956e847d04b30370ef662d077b Author: Rémy Degenne <[email protected]> Date: Fri Oct 30 11:03:23 2026 +0000 feat(Topology): compact systems on sum and sigma types (#45228) Add the following: * `IsCompactSystem.infClosure`: the finite intersections of sets of a compact system form a compact system. * `IsCompactSystem.sum`: compact systems on `α` and `β` give a compact system on `α ⊕ β`. * `IsCompactSystem.sigma`: compact systems on `α i` give a compact system on `Σ i, α i`. Co-authored-by: Peter Pfaffelhuber <[email protected]> Co-authored-by: Remy Degenne <[email protected]> commit 690d7309693a84b03ceef618d46e88a2e4d9edd3 Author: Yaël Dillies <[email protected]> Date: Fri Oct 30 09:21:22 2026 +0000 feat(Algebra): mapping associates (#45424) commit 9c3101a274bcc37e8aa14424129a1f541e09cbc6 Author: Eric Wieser <[email protected]> Date: Fri Oct 30 03:52:36 2026 +0000 feat(Topology/Instances/Matrix): interactions between `tsum` and {`IsHermitian`, `PosSemidef`, `trace`} (#45191) The main results here are `(∑'[L] a, f a).IsHermitian` and `(∑'[L] a, f a).PosSemidef` under suitable assumptions. commit 4a3c46beb259c114200018c98c5cc22d0d207d1b Author: Yury G. Kudryashov <[email protected]> Date: Fri Oct 30 03:41:07 2026 +0000 feat(Asymptotics/TVS): add `IsLittleOTVS.sum` and `IsBigOTVS.sum` (#44206) Add versions of `IsLittleO.sum`/`IsBigO.sum` for the TVS-valued asymptotics, and move the shared typeclass assumptions of the lemmas about sums of two functions to a `variable` line. Extracted by Claude from a larger refactor written by Yury. Co-authored-by: Claude Opus 5 <[email protected]> commit 70078b363d019ff4e975ac0f06eabd3cdb64b0de Author: Marcelo Lynch <[email protected]> Date: Fri Oct 30 00:12:08 2026 +0000 ci: run independent build-pipeline steps in parallel (#44603) This PR runs independent steps of `build_template.yml` at the same time, with the Actions parallel-steps feature. The feature needs runner 2.335.0 or later. The self-hosted fleet is now on 2.338.x. - `build`: the library build runs next to the Mathlib staging. The noisy-output check runs next to the library stagings. - `upload_cache`: the artifact download runs in the background while the cache tool builds. - `post_steps`: the declaration dump runs in the background while the other checks run. A/B runs on `ci-dev` branches: | Job | Stock | This PR | |---|---|---| | Build tail, small change | 30 / 43 / 30 s | 24 / 22 / 24 s | | Build tail, large change | 200 s | 163 s | | Upload to cache, small change | 72 / 65 / 62 s | 52 / 56 / 47 s | | Upload to cache, large change | 54 s | 60 s | | Post-Build, small change | 254 / 226 / 214 s | 259 / 225 / 196 s | | Post-Build, large change | 252 s | 198 s | The build tail starts when the library cache fetch ends and stops when the staging check starts. In the small-change rounds, stock ran on 16-, 32- and 16-vCPU hosts, and this PR ran on 32-, 16- and 32-vCPU hosts. Both large-change runs ran on 16-vCPU hosts. The Upload and Post-Build jobs run on GitHub-hosted runners, so their times vary more than the build tail. For example, the Mathlib cache fetch in Post-Build takes 62 to 83 s. The declaration dump takes 22 to 28 s, so the background dump saves at most that much per run. A failed step has the same effect as in the sequential template, with two differences: - When the noisy-output check fails, the library stagings in its group still finish. - When the Mathlib staging fails, the job skips the three library checks and the noisy-output check. Then `RUN_TESTS` is false, and `test_lint` skips the tests. The sequential template runs these checks before the staging, so a failed staging does not stop the tests. A cancelled run does not start the members of a parallel group, and it stops the members that run. Thus a separate step after the first group stages the Mathlib cache files of a cancelled run, as the sequential template does. `cache stage` stages only the files that it packs in the same call, so the step first deletes the `.ltar` files that are newer than a mark of `prepare staging directory`. `cache stage` then packs and stages them again. actionlint does not know the new keys yet, so `.github/actionlint.yml` ignores those messages until rhysd/actionlint#694 ships. Runs (stock / this PR): [39810059783](https://github.com/leanprover-community/mathlib4/actions/runs/39810059783) / [39810242765](https://github.com/leanprover-community/mathlib4/actions/runs/39810242765), [39810249867](https://github.com/leanprover-community/mathlib4/actions/runs/39810249867) / [39810256875](https://github.com/leanprover-community/mathlib4/actions/runs/39810256875), [39810264124](https://github.com/leanprover-community/mathlib4/actions/runs/39810264124) / [39810270566](https://github.com/leanprover-community/mathlib4/actions/runs/39810270566), [39810439760](https://github.com/leanprover-community/mathlib4/actions/runs/39810439760) / [39810446557](https://github.com/leanprover-community/mathlib4/actions/runs/39810446557). Failure path: [39810453754](https://github.com/leanprover-community/mathlib4/actions/runs/39810453754). Cancel during the Mathlib build: [39811113217](https://github.com/leanprover-community/mathlib4/actions/runs/39811113217) / [39814237132](https://github.com/leanprover-community/mathlib4/actions/runs/39814237132). Cancel during the first group: [39811130707](https://github.com/leanprover-community/mathlib4/actions/runs/39811130707) / [39816283784](https://github.com/leanprover-community/mathlib4/actions/runs/39816283784), where a `sleep` holds the staging member open until the cancel. 🤖 commit 7881f45c7801795a613687790ea0556e6d86f8ea Author: Moritz Doll <[email protected]> Date: Thu Oct 29 22:29:49 2026 +0000 chore(Topology): use `IsApply` for `ContinuousMapZero` (#45292) commit 237c53b714060dd21b54c29e7e3256ec0c65f132 Author: Gregory Loges <[email protected]> Date: Thu Oct 29 21:19:25 2026 +0000 feat(LinearAlgebra/MultilinearMap): notation for `MultilinearMap` (#43877) Introduces the notation `(Π i, M i) →ₗₘ[R] N` for `MultilinearMap R M N` and `(I → M) →ₗₘ[R] N` for `MultilinearMap R (fun _ : I => M) N`, mirroring the notation `M →ₗ[R] N` for `LinearMap R M N`. Closes #43855. Co-authored-by: gloges <[email protected]> commit e1b16f5f6a696c975ec188a85ed08ba1cc98f3bc Author: David Loeffler <[email protected]> Date: Thu Oct 29 19:51:50 2026 +0000 feat(NumberTheory/ModularForms): define order at infinity (#45011) Define the "order of vanshing at infinity" of a function on the upper half-plane, and provide basic API. This is preparation for finite-dimensionality of modular forms spaces. The definitions are carefully chosen so that the order is well-defined for arbitrary functions (neither holomorphy nor periodicity is assumed), to avoid constantly having to pass proof arguments. commit cfd775e20342f2d98fbc366f3167b1d09ca6fe21 Author: David Loeffler <[email protected]> Date: Thu Oct 29 19:28:48 2026 +0000 feat(NumberTheory/Padics): the Amice transform is a ring isomorphism (#42836) Show that the Amice-transform isomorphism from measures on `ℤ_[p]` to `ℤ_[p]⟦X⟧` is an isomorphism of rings, when the measures are equipped with the ring structure defined by convolution. Co-authored-by: faenuccio <[email protected]> commit 7db326f5280be7ca10231aef6711b09783b5445f Author: Artie Khovanov <[email protected]> Date: Thu Oct 29 18:58:00 2026 +0000 feat(FieldTheory): field with no nontrivial extensions is algebraically closed (#44310) Co-authored-by: artie2000 <[email protected]> commit f1a9649a26d5e38c8c835c901abee97c56cdfa78 Author: Attila Gáspár <[email protected]> Date: Thu Oct 29 18:27:29 2026 +0000 chore(MeasureTheory): generalize `CircleIntegrable.const_smul` (#45189) This lemma unnecessarily assumed that the ring of scalars is the same as the codomain of the function. Two other lemmas are also generalized from `NormSMulClass` to `IsBoundedSMul`. commit 06a6c7b24b52650b4fcbd0c673814a5f7e5b3c22 Author: Paul Cadman <[email protected]> Date: Thu Oct 29 17:46:14 2026 +0000 feat(Tactic/NormCharpoly): add the `norm_charpoly` simproc and the `eval_charpoly` tactic (#44433) add the `norm_charpoly` simproc and `eval_charpoly` tactic that normalise the characteristic polynomial of a matrix literal over a commutative ring that embeds in ℚ such as ℚ and ℤ. ```lean example : Matrix.charpoly (R := ℤ) !![1, 2; 3, 4] = X ^ 2 - 5 * X - 2 := by eval_charpoly ``` The simproc `norm_charpoly` rewrites `Matrix.charpoly A` to a polynomial in the normal form of `ring_nf`. It works similar to `norm_rank` and `norm_det` by producing an untrusted computation. In this case the computations are reduction of an input matrix to Hessenberg form (#44432) and efficient algorithm to compute characteristic polynomial from a Hessenberg matrix (#44431). This PR adds the tactic / meta code to certify the untrusted computations for an input matrix literal via the kernel. Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> commit eb2643244d11dae2c2e849c6e28092b4537390c5 Author: Leonid Ryvkin <[email protected]> Date: Thu Oct 29 17:46:10 2026 +0000 feat: lemmas showing properties of ofDerivation added (#41887) Given an `R`-Lie algebra `L` and a commutative `R`-algebra `A`, there is a Lie algebra structure on `(A ⊗[R] L)`. A derivation of `A` induces a Lie derivation of `(A ⊗[R] L)`, and one obtains a Lie algebra map ``` ofDerivation : Derivation R A A →ₗ⁅R⁆ LieDerivation R (A ⊗[R] L) (A ⊗[R] L) ``` In this PR we add a Lemma showing that `ofDerivation` is in fact `A`-linear, and that the resulting LieDerivation satisfies a Leibniz rule with respect to the `A`-multiplication on `A ⊗[R] L`. Co-authored-by: Eric Wieser <[email protected]> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Oliver Nash <[email protected]> Co-authored-by: Oliver Nash <[email protected]> commit c5e59a9dad93a84d6d2a650da603535adee6d6fb Author: Etienne Marion <[email protected]> Date: Thu Oct 29 17:20:29 2026 +0000 feat: use `IsApply` for `Module.Basis` (#45307) commit 32a422c83a18ddd0f352908187e5f68aad829904 Author: Anne Baanen <[email protected]> Date: Thu Oct 29 16:29:31 2026 +0000 feat: un-revert "feat: enable Verso if no syntax or doc-gen changes (#45031)" (#45094) (#45466) This reverts commit 499b0ec11b396d6e1d5fc9fcd786fcb0a4036fd8 (#45094), which reverted commit bbe3db288201b39ef92689278906d3bf6d45c291 (#45031). The original PR discovered a core Lean bug, which had a random chance to be triggered on each build. With v4.36.0-rc2, this bug should be fixed (leanprover/lean4#15839) and we can enable Verso again. Original PR description: This PR enables Verso docstrings in the 1352 files where this is possible without making any syntactical changes to the file, and the doc-gen output is identical. So we get some nice Verso features like syntax highlighting and (opt-in, because no roles are assigned yet) code checking. Note that doc-gen doesn't support Verso yet so all docstrings get converted back to Markdown before rendering in doc-gen (and indeed this PR should have the diff be exactly identical): for now you'll see Verso's features in the editor or while compiling only. This PR contains all the files from #44830 which do not show up on a diff on the doc-gen output. To replicate, follow the steps to get a doc-gen diff in #44830, and then: * `diff -rq doc-*-filtered > verso-doc-diff.txt` * Delete `tactics.html` from `verso-doc-diff.txt` * Check out the Mathlib `master` branch (here commit `67013005101cbec00f56fd1bb726fe675744bb7a`) * `git checkout verso-migrate-identical -- .` * < verso-doc-diff.txt sed 's|^Files doc-master-2026-10-13-filtered/\(.*\).html and.*$|\1.lean|' | xargs git restore --staged * `git commit` Co-authored-by: Anne C.A. Baanen <[email protected]> commit 2556b1c7573ebc8817bfb36a3b7530c40f827af2 Author: Aaron Liu <[email protected]> Date: Thu Oct 29 16:29:28 2026 +0000 chore(FieldTheory/KummerPolynomial): rename theorems (#45461) Rename theorems from `X_pow_sub_C_irreducible` to `irreducible_X_pow_sub_C`. commit e07c004ce56406df2f8d50ab989f88a058d09a3f Author: Jeremy Tan Jie Rui <[email protected]> Date: Thu Oct 29 16:29:24 2026 +0000 feat: `Int.natAbs_prod` (#45398) From [Redhill](https://github.com/Parcly-Taxel/Redhill/blob/56e6442e787cd143172297824a597359eef497b6/Redhill/Common/SubsumCondition.lean#L98). Co-authored-by: Parcly Taxel <[email protected]> commit 5b08efb3fa4374f50443e3388de6308eb1ae400f Author: Etienne Marion <[email protected]> Date: Thu Oct 29 16:29:21 2026 +0000 feat: use `IsApply` for `LinearEquiv` (#45391) I did not add an `IsSMulApply` instance because the already existing `smul_apply` lemma seems more relevant. commit f3ffa60952236813341b08cef230356ec5103c43 Author: Alain Chavarri <[email protected]> Date: Thu Oct 29 16:29:18 2026 +0000 feat(FieldTheory/Finite): add irreducibility criterion for polynomials over finite fields (#45286) Add `irreducible_iff_dvd_X_pow_card_pow_sub_X_and_isCoprime` giving an irreducibility criterion for a polynomial `f` of degree `n` over a finite field with `q` elements: `f` is irreducible if and only if `f` divides `X ^ q ^ n - X` and `f` is coprime to `X ^ q ^ m - X` for every proper divisor `m` of `n`. This is a variant of Rabin's irreducibility test, which only considers maximal proper divisors of `n`. That version will be a follow-up PR, using `Nat.exists_prime_dvd_and_dvd_div` from #45283. commit c5ad680749cbcb7eab8c1eb158d9d16d9e7836cb Author: JX-Mo <[email protected]> Date: Thu Oct 29 16:29:14 2026 +0000 feat(RingTheory/SimpleModule): simple modules over a simple Artinian ring are isomorphic (#45047) commit ddd252fa63f8deb407f4f0bf2def5966f39af93d Author: Xavier Roblot <[email protected]> Date: Thu Oct 29 16:29:10 2026 +0000 feat(NumberTheory/AddCharacter): the additive character attached to the trace (#44545) Given a primitive `p`-th root of unity `ζ` in a ring `R`, and a commutative algebra `A` over `ZMod p`, this adds the additive character of `A` with values in `R` sending `x` to `ζ` raised to the trace of `x`. The basic properties follow: the character is nontrivial, hence primitive, when `A` is a finite field, it is invariant under the Frobenius, it is compatible with extending the ring of values, and its values are congruent to `1` modulo any ideal containing `ζ - 1`. This character will be used to construct the Gauss sums in Stickelberger's theorem. :robot: This PR was extracted from the [SKW project](https://github.com/xroblot/SKW) by Claude. commit 1cadb48320723bbf68f79977bc4d1b145c8ee5ff Author: Artie Khovanov <[email protected]> Date: Thu Oct 29 16:29:07 2026 +0000 feat(Algebra/GCDMonoid): `simp` lemmas for `normalize` being irreducible and prime (#44487) * Add `simp` lemmas reducing `Irreducible (normalise x)` and `Prime (normalize x)` to `Irreducible x` and `Prime x`, respectively. These are no-longer-relevant API lemmas split from #44287 Co-authored-by: artie2000 <[email protected]> commit c1a399bc462b6d3880fb19d00e6375d812d9e47f Author: KodamaSec Labs LTD <[email protected]> Date: Thu Oct 29 16:29:04 2026 +0000 feat(NumberTheory/LegendreSymbol): the quadratic character sum along an odd function vanishes (#44122) If `-1` is not a square in a finite field `F`, then for every odd `f : F → F` the sum `∑ x, quadraticChar F (f x)` is zero: reindexing by the involution `x ↦ -x` turns the sum into `quadraticChar F (-1)` times itself, so it equals its own negative. Stated next to `quadraticChar_sum_zero`, which is the sum of the character over the whole field. `Function.Odd` is the predicate already in Mathlib; importing `Mathlib.Algebra.Group.EvenFunction` for it adds no module to the transitive closure (it was already reachable through `Mathlib.Data.ZMod.Basic`), the direct import only brings the name into scope. Co-authored-by: Joel Cruz Cabrera <[email protected]> commit c1ec7f6c5944890743d69ceb93cd501c4992cc83 Author: Etienne Marion <[email protected]> Date: Thu Oct 29 15:19:24 2026 +0000 chore: protect `Pi.*_apply` lemmas (#45435) Prevent namespace conflicts in #45329. commit 4bc4670bf916c8dc2ede840e3ead86301e52a40d Author: Osman Safa <[email protected]> Date: Thu Oct 29 15:08:40 2026 +0000 feat(GroupTheory/PresentedGroup): additivize `PresentedGroup` (#45459) The `AddGroup` structure has to be put in place manually due to limitations of `deriving` when using `to_additive`. commit df46efed7dded295ed4cab907b5f4ed40f86d26d Author: Thomas Browning <[email protected]> Date: Thu Oct 29 15:08:36 2026 +0000 feat(RingTheory/Unramified/Finite): add missing API for `Algebra.FormallyUnramified.sec` (#45183) This PR adds some missing API for `Algebra.FormallyUnramified.sec`. Co-authored-by: tb65536 <[email protected]> commit c9ca884d20683b9ecf7f9aa154d2c9bc09400365 Author: Etienne Marion <[email protected]> Date: Thu Oct 29 14:31:31 2026 +0000 feat: use `IsApply` for `AddChar` (#45338) commit 312e0b7a8e3dc26537e4d3efe608291be71c4d2c Author: David Loeffler <[email protected]> Date: Thu Oct 29 12:52:47 2026 +0000 feat(Tactic/Linter/Flexible): flag `simp?` and friends as flexible (#45414) Prevent use of `simp?`, `simp!` and `simp!?` (and their `simp_all` analogues) as a way of bypassing the flexible-tactic linter. commit 5cc3cb8e30d468f57415b3eecae890d47fcc329d Author: Justus Springer <[email protected]> Date: Thu Oct 29 11:59:55 2026 +0000 feat(Algebra/Group/Pointwise/Set/SelfInv): a few more lemmas about self-inverse sets (#43773) `IsSelfInv` and `IsSelfNeg` got added recently (#42611). This is a follow-up that adds just a few more lemmas, which will get used to refactor a few in #43774. Co-authored-by: Jireh Loreaux <[email protected]> commit de45c71d6e9b339261c12f61ef532d0003e7bc8b Author: Robin Carlier <[email protected]> Date: Thu Oct 29 11:46:39 2026 +0000 feat(CategoryTheory/Inserter): limits and colimits of inserters (#45275) In this PR, we study co/limits of inserters. We show that for `F G : F G : C ⥤ D`, if `C` has colimits (resp. limit) of a given shape and if such colimits (resp. limits) are preserved by `F` (resp. `G`), then the category `Inserter F G` also has colimits (resp. limits) of such shape and the projection `Inserter F G ⥤ C` preserves them. Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> commit 78115f65c0583699a2a6acf64804295c966f7d38 Author: Artie Khovanov <[email protected]> Date: Thu Oct 29 11:14:20 2026 +0000 refactor(Algebra/Order/Ring/Ordering): unbundle `RingPreordering` (#36863) The current design for [RingPreordering](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Algebra/Order/Ring/Ordering/Defs.html#RingPreordering) ran into issues at PR #32077. This PR unbundles [RingPreordering](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Algebra/Order/Ring/Ordering/Defs.html#RingPreordering) into a predicate on [Subsemiring](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Algebra/Ring/Subsemiring/Defs.html#Subsemiring), generalising the material on supports as far as possible. Zulip thread: https://leanprover.zulipchat.com/#narrow/channel/116395-maths/topic/Ring.20orderings.20-.20structure.20or.20predicate.3F/with/562594050 See #37298 for the analogous change to group and ring cones. Co-authored-by: artie2000 <[email protected]> commit 9bb5e306206014ecee5f033738bb5a6a8490d5c9 Author: mathlib-update-dependencies[bot] <258990618+mathlib-update-dependencies[bot]@users.noreply.github.com> Date: Thu Oct 29 10:02:32 2026 +0000 chore: update Mathlib dependencies 2026-10-29 (#45452) This PR updates the Mathlib dependencies. It is not merged automatically: a maintainer should look at what the new dependency revisions bring in before sending it to bors. commit 4c414bc969d5b265a07943adc019d39aafb1ea1f Author: Ben "Pig" Chu <[email protected]> Date: Thu Oct 29 09:32:13 2026 +0000 feat(Data): add theorem about `List.count` of `List.ofFn` (#44993) This PR add the theorem said that List.count of List.ofFn of a map equal to card of the FInset.univ filtered by the condition that the map equals the value, with the `List.Vector` version and `List.CountP` versions. commit d0207795ac79006da92d98544e1ce915ae386160 Author: Artie Khovanov <[email protected]> Date: Thu Oct 29 02:16:49 2026 +0000 refactor(Algebra/Order): unbundle group and ring cone (#37298) * Unbundle `GroupCone` and `RingCone` using `Submonoid.IsMulPointed` This PR deprecates the [GroupCone](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Algebra/Order/Group/Cone.html#GroupCone) and [RingCone](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Algebra/Order/Ring/Cone.html#RingCone) structures, making use of the predicates `Submonoid.IsMulPointed` and `AddSubmonoid.IsPointed` defined in that file instead. These predicates allow us to treat uniformly * positive cones in groups and rings * pointed cones in vector spaces over an ordered field * orderings in rings This reduces duplication of theorems. Unbundling group and ring cones is further justified by the principle that there are no new operations on them: they correspond to operations on the underlying submonoids and subsemirings, respectively. See the discussion at https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/When.20should.20subobjects.20be.20bundled.3F/with/609099816 See also #36863 for the analogous change to ring orderings. Co-authored-by: artie2000 <[email protected]> commit 8fe7ce475b056f0b266d7107893f2c4d772c712f Author: Etienne Marion <[email protected]> Date: Wed Oct 28 22:35:08 2026 +0000 feat: use `IsApply` for `Measure` (#45225) Make [LinearMap.smul_apply](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Algebra/Module/LinearMap/Defs.html#LinearMap.smul_apply) `protected` in the process. Unsqueeze several `simp`s, none of them being particularly slow. This PR illustrates why unnecessary squeezing `simp`s can make refactors more difficult. commit 986248d3fb7124d91465588d5048e8f6a76f2d90 Author: Marcelo Lynch <[email protected]> Date: Wed Oct 28 22:35:05 2026 +0000 fix(cache): time out stalled downloads and retry hard failures in a fresh pass (#45096) `cache get` can lose a few downloads when a transfer stops early, or when a connection freezes and curl waits without a time limit. On 2026-10-27 a frozen connection held a CI job for 95 minutes on 5 of 9,080 files. The download curl runs with `--connect-timeout 30 --speed-time 30 --speed-limit 1`. A connection setup that takes more than 30 s, or a transfer that receives no bytes for 30 s, fails with curl exit 28. curl retries a failed connection setup on a new connection. After the first pass over all cache locations, the tool retries the failed downloads once, in new `curl` processes. curl retries a timed-out transfer on the same connection. The new process of the second pass opens a new connection, which recovers the file. A healthy get has a first-byte time under 1 s, and a slow transfer keeps its bytes flowing, so the limit trips on a frozen connection only. When every transfer fails, the second pass repeats the first, so the time to failure about doubles. Tested against a local proxy that interrupts transfers, and against a local HTTP/2 server that leaves 3 of 94 requests unanswered on the first connection. The tool recovers in both tests and exits 1 when a failure persists. Without the stall flags it hangs in the second test. - [x] depends on: #44940 🤖 commit 1d11fcd1249243342fd387881052ac38ea28af1e Author: Yaël Dillies <[email protected]> Date: Wed Oct 28 22:35:02 2026 +0000 chore(Topology): deprecate `UniformSpace.ball` in favor of `SetRel.ball` (#44887) Since `UniformSpace.ball` is a right-ball and `SetRel.ball` is a left-ball, we need to move around some appeals to symmetry of the relation. Follow-up to #33077. commit 7d34419fab85a2113e651d8407fb2ae06eb2321d Author: Snir Broshi <[email protected]> Date: Wed Oct 28 22:34:58 2026 +0000 chore: replace some more `omega`s (#44345) commit 6fef5d57eac8b75cd5662bd9a6fce06a6902d6cd Author: Marcelo Lynch <[email protected]> Date: Wed Oct 28 22:34:55 2026 +0000 chore(Init): stop setting a default library suggestions engine (#44323) This PR removes the import of `Lean.LibrarySuggestions.Default` from `Mathlib.Init`. As a result, Mathlib does not set a default library suggestions engine. The default engine makes Mathlib slow to use. Since leanprover/lean4#15159, the engine builds its index at the first query in each process. With `import Mathlib`, this index build takes minutes. The Lean maintainers consider the feature unused. Effect on users: a file that uses the `+suggestions` mode of `grind`, `simp?`, `simp_all?` or `solve_by_elim` must select an engine, or the tactic fails. To select the default engine, add `import Lean.LibrarySuggestions.Default`. To select a different engine, use `set_library_suggestions`. `try?` works without an engine. Other changes: - `Mathlib.Tactic.DuplicateDecls` imports `Lean.Meta.CompletionName` directly. The removed import supplied this module transitively. - `MathlibTest/RegisterTryTactic.lean` does not disable library suggestions. Without a default engine, this workaround has no purpose. - The docstrings in `Mathlib.Tactic.TacticAnalysis.Declarations` use `grind` as the example tactic, not `grind +suggestions`. Discussion: [#lean4 > lean4#15159 causes significant regression in MathlibTests](https://leanprover.zulipchat.com/#narrow/channel/270676-lean4/topic/lean4.2315159.20causes.20significant.20regression.20in.20MathlibTests) 🤖 Co-authored-by: Jon Eugster <[email protected]> commit 8f1ecf03232700ee58912cf59daa2737c06e8134 Author: David Loeffler <[email protected]> Date: Wed Oct 28 21:44:20 2026 +0000 chore: fix non-terminal `simp!`'s missed by flex-tactic linter (#45431) commit 0ea073b33f73cee89d2c060c2f658a836090faa9 Author: Lua Viana Reis <[email protected]> Date: Wed Oct 28 20:52:39 2026 +0000 fix(GroupTheory/Complement): adjust statement of existsUnique_smul_mem (#45408) The previous statement mixed left and right multiplication, so it required `CommGroup`. It also used `smul`/`vadd` for no reason (other than that fitting better in the original application it was made for). This splits it into left and right versions not assuming commutativity, and uses `mul`/`add`. Also moves it to a better place in the file. commit 5b66d0084d7d0bfeb5fa9cad36f4c36e96db6ace Author: Yaël Dillies <[email protected]> Date: Wed Oct 28 18:28:21 2026 +0000 feat(Geometry/Convex): `positivity` extension for `StdSimplex.weights` (#43612) Also add some Qq helper to Qq-match a type with `Finsupp`. From the Polyhedra in Berlin workshop where people would have found it useful for `positivity` to close some goals. Generated by Claude Opus in a few prompts worth of review. Assisted-by: Claude Opus 5 commit f98c80e0d9d1c7b7e31dc777f9752eff67107a3e Author: mathlib-splicebot[bot] <261196803+mathlib-splicebot[bot]@users.noreply.github.com> Date: Wed Oct 28 17:57:51 2026 +0000 chore(Algebra/Polynomial/RingDivision): automated extraction from #45053 (#45428) This PR was automatically created from PR #45053 by @tomaz1502 via a [review comment](https://github.com/leanprover-community/mathlib4/pull/45053#discussion_r4403778694) by @ocfnash. Co-authored-by: tomaz1502 <[email protected]> commit b2115b96757894e56b53fd0f94bd63acd64d8025 Author: teorth <[email protected]> Date: Wed Oct 28 16:46:39 2026 +0000 feat(Analysis/Distribution): compactly supported functions are dense in Schwartz space (#43046) We prove `SchwartzMap.dense_hasCompactSupport`: the compactly supported Schwartz functions are dense in `𝓢(E, F)` (for `E` a finite-dimensional real normed space). Co-authored-by: Terence Tao <[email protected]> Co-authored-by: Oliver Nash <[email protected]> Co-authored-by: Oliver Nash <[email protected]> commit 97bcf245a4285886363c8c50df393a4ac54ad9dc Author: Etienne Marion <[email protected]> Date: Wed Oct 28 16:14:10 2026 +0000 feat: use `IsApply` for `Module.End` (#45347) commit f2bcc2514f284a1c2d4e0510607154d1d148a5be Author: Snir Broshi <[email protected]> Date: Wed Oct 28 16:04:49 2026 +0000 feat(Tactic/Linter/TextBased): lint against more characters in module names (#44803) Instead of forbidding `<>"/\|?*` and whitespace, we forbid everything except for alphanumeric characters and `_`. commit 2aa2784a4e62bc38be6695810788aacece56fd50 Author: Garmelon <[email protected]> Date: Wed Oct 28 15:36:47 2026 +0000 chore: update bench suite (#45330) This PR brings the benchmark suite back into alignment with the other ones. It fixes how wall-clock and how maxrss are measured, and adds support for precompilation. Co-authored-by: Joscha <[email protected]> commit 6e7db8d7d6c975b23d0b07919b5167d96d8905c0 Author: Attila Vajda <[email protected]> Date: Wed Oct 28 15:36:44 2026 +0000 doc(LinearAlgebra/Matrix): document `trace_units_conj'` (#43634) Add a docstring for `Matrix.trace_units_conj'` and remove `linter.docPrime`. Used Aristotle AI to find this issue and solution. commit 4ec037474c175dd329fbe55ce83655066217cdff Author: Jeremy Tan Jie Rui <[email protected]> Date: Wed Oct 28 15:03:16 2026 +0000 refactor: `FreeMonoid` as a one-field structure (#45212) Implement the second point in https://github.com/leanprover-community/mathlib4/pull/36934#discussion_r4345214702: ```lean structure FreeMonoid (α : Type*) where /-- Convert a `List α` to a `FreeMonoid α`. -/ ofList :: /-- The underlying list -/ toList : List α ``` `mulRecOn` and the two following lemmas about it were filled in by GPT-6.1 Sol. Their names, as well as the current `mulCasesOn`, were changed because now that `FreeMonoid` is a structure, `FreeMonoid.rec(On)` and `FreeMonoid.casesOn` are auto-generated. Declarations about `FreeMonoid.length/mem/reverse` are all deprecated. Use list membership and `List.reverse` on `toList`-converted `FreeMonoid` objects and the `StarMul` instance in `Mathlib.Algebra.Star.Free` instead. New declarations are `FreeMonoid.toListEquiv` and `Cardinal.mk_freeMonoid_eq_mk_list`. Co-authored-by: Parcly Taxel <[email protected]> commit 401d9e68527fed51af2f621b4464319fb87137be Author: Wenrong Zou <[email protected]> Date: Wed Oct 28 14:40:43 2026 +0000 feat(MvPowerSeries/Substitution): add some lemmas about `HasSubst` (#44942) In this PR, we add some lemmas about `HasSubst` for substitution of multivariate power series. commit 27402ab39e26e127d21546fb0837f19916e180b9 Author: Etienne Marion <[email protected]> Date: Wed Oct 28 14:22:13 2026 +0000 feat: use `IsApply` for `AffineBasis` (#45333) commit 3e1821461a4bc54072a3bd970e5a2ea5d9fd9713 Author: Bryan Gin-ge Chen <[email protected]> Date: Wed Oct 28 13:41:20 2026 +0000 ci: bump lint-style-action (#45415) Includes https://github.com/leanprover-community/lint-style-action/pull/20 which fixes an issue that is blocking #45330. commit e3f2f2dd81e66ee4e3651dd224958a939dcdecb3 Author: Etienne Marion <[email protected]> Date: Wed Oct 28 13:41:18 2026 +0000 chore: make `LinearMap.*_apply` lemmas protected (#45319) This is preliminary work for using `IsApply` lemmas instead in #45307 and #45271 for instance. commit 09d232babbf55bdd4eff5958b06bdb3bc155b1b8 Author: Snir Broshi <[email protected]> Date: Wed Oct 28 13:41:14 2026 +0000 feat(NumberTheory/ArithmeticFunction/Misc): `ω n = n.primeFactors.card` (#45005) and golf a couple of proofs. commit caa0dcb1e65f04b16c420c56a69bb6d32a4fca1d Author: Aaron Liu <[email protected]> Date: Wed Oct 28 12:53:20 2026 +0000 feat(Algebra/Group/IsApply): new typeclass `IsNPowApplyEqIterate` (#45218) Create a new typeclass `IsNPowApplyEqIterate`, so that `FunLike.compMonoidWithZero` does not force consumers to use the default value `npow` field `npowRec`. commit 572247c4e55f1e0bc884527c5953088d0d2d82b7 Author: Bolton Bailey <[email protected]> Date: Wed Oct 28 12:53:15 2026 +0000 chore: rename `ENNReal.toReal_mono'` (#43856) This PR addresses tech debt by renaming `ENNReal.toReal_mono'` to `ENNReal.toReal_mono_of_top_imp_top` (and similarly renaming the related `ENNReal.toReal_le_add'`). This change makes the naming scheme more similar to `ENNReal.le_of_top_imp_top_of_toNNReal_le` I chose these names myself, but used LLM assistance to scan the library for instances of the lemmas. commit 3b0a28c9933d9c2374345fb908f1959d176d9cec Author: Weiyi Wang <[email protected]> Date: Wed Oct 28 11:47:44 2026 +0000 feat(Analysis/Fourier): `fourierCoeff` extracts coefficients from Fourier series (#45257) If a function is known to have a Fourier series expansion, then `fourierCoeff` extracts those coefficients. Can be also seen as the converse of `has_pointwise_sum_fourier_series_of_summable`, tho…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update the module docstring of
Probability.Distributions.Uniformafter #42909, and fix a deprecation in which thePMFnamespace was forgotten.