Skip to content

Sync upstream mathlib4 (2026-08-03, +4 commits) - #93

Merged
winstonyin-ax merged 5 commits into
masterfrom
sync/upstream
Aug 3, 2026
Merged

winstonyin-ax merged 5 commits into
masterfrom
sync/upstream

Conversation

@winstonyin-ax

@winstonyin-ax winstonyin-ax commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Automated daily sync from leanprover-community/mathlib4@master.

Auto-merges to master once CI (self-hosted) passes. Regenerated
daily 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 limitsHasLimits.lean is reorganized so colimit API (HasColimit, colimit, colim, etc.) lives alongside the limit section and is generated via @[to_dual], removing a large hand-duplicated Colimit block. Related touch-ups: ToDual name hints for lim/colim, const_map binder/to_dual on const_map_app, rfl in finite coproduct preservation, and a Reflexive lemma unfolding colimit.cocone_ι.

AnalysisGammaIntegral_convergent and integrableOn_rpow_mul_exp_neg_rpow are reproved more briefly; the latter now assumes 0 < p (not only p ≥ 1) by reducing to the Γ-integral with a change of variables.

Modular formsModularForm, CuspForm, and SlashInvariantForm use FunLike/IsAddApply-style instances and fast_instance% for algebraic structures; older coe_* lemmas are deprecated.

Other — nontrivial trees get exists_ne_and_degree_eq_one; walk lemmas gain grind hints; locally integrable smul uses IsBoundedSMul instead of NormSMulClass; doc notes about manual limit/colimit duplication are dropped from IsLimit/HasLimits.

Reviewed by Cursor Bugbot for commit 2063127. Bugbot is set up for automated code reviews on this repo. Configure here.

JovanGerb and others added 5 commits August 2, 2026 09:28
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.
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.
@winstonyin-ax
winstonyin-ax merged commit abef3f0 into master Aug 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants