Sync upstream mathlib4 (2026-08-03, +4 commits) - #93
Merged
Merged
Conversation
This PR uses `to_dual` to generate stuff about `HasColimit` from `HasLimit`.
…tegrability lemmas (#40587)
Generalization PR:
- IntervalIntegrable.{smul_continuousOn, continuousOn_smul}, IntegrableOn.{continuousOn_smul, smul_continuousOn} (+ _of_subset forms), and the LocallyIntegrableOn analogues now need only IsBoundedSMul 𝕜 E instead of NormSMulClass 𝕜 E. (Every NormSMulClass is an IsBoundedSMul, so all existing uses still apply; over a NormedDivisionRing they coincide.) This works because these reduce to Integrable.bdd_smul/bdd_mul, which only need IsBoundedSMul, using IntegrableOn f s μ = Integrable f (μ.restrict s).
- integrableOn_rpow_mul_exp_neg_rpow / …_mul_rpow are generalized from 1 ≤ p to 0 < p (via u = xᵖ), matching the 0 < p of integral_rpow_mul_exp_neg_rpow.
… at least two leaves (#41669) Generalizes [`IsTree.exists_vert_degree_one_of_nontrivial`](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Combinatorics/SimpleGraph/Acyclic.html#SimpleGraph.IsTree.exists_vert_degree_one_of_nontrivial). Co-authored-by: robo7179 <abhinavn004@gmail.com>
We use `IsApply` classes for `SlashInvariantForm`, `ModularForm` and `CuspForm` at the same time to avoid temporary name clashes and since they are not used as widely as `LinearMap` and `ContinuousLinearMap` for example.
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.
Automated daily sync from
leanprover-community/mathlib4@master.9c0c555bde5a8277cd36dc4dc6dfe2a5a77a2b11Auto-merges to
masteronceCI (self-hosted)passes. Regenerateddaily until merged or until a conflict appears.
Note
Medium Risk
The large
HasLimits@[to_dual]refactor and generalized Gaussian integrability hypotheses could affect dependent proofs in a synced fork; most other changes are proof simplifications or API deprecations with replacements.Overview
Daily mathlib4 upstream merge (4 commits).
Category theory limits —
HasLimits.leanis reorganized so colimit API (HasColimit,colimit,colim, etc.) lives alongside the limit section and is generated via@[to_dual], removing a large hand-duplicatedColimitblock. Related touch-ups:ToDualname hints forlim/colim,const_mapbinder/to_dualonconst_map_app,rflin finite coproduct preservation, and aReflexivelemma unfoldingcolimit.cocone_ι.Analysis —
GammaIntegral_convergentandintegrableOn_rpow_mul_exp_neg_rpoware reproved more briefly; the latter now assumes0 < p(not onlyp ≥ 1) by reducing to the Γ-integral with a change of variables.Modular forms —
ModularForm,CuspForm, andSlashInvariantFormuseFunLike/IsAddApply-style instances andfast_instance%for algebraic structures; oldercoe_*lemmas are deprecated.Other — nontrivial trees get
exists_ne_and_degree_eq_one; walk lemmas gaingrindhints; locally integrablesmulusesIsBoundedSMulinstead ofNormSMulClass; doc notes about manual limit/colimit duplication are dropped fromIsLimit/HasLimits.Reviewed by Cursor Bugbot for commit 2063127. Bugbot is set up for automated code reviews on this repo. Configure here.