Skip to content

Sync upstream mathlib4 (2026-08-02, +12 commits) - #92

Merged
winstonyin-ax merged 13 commits into
masterfrom
sync/upstream
Aug 2, 2026
Merged

Sync upstream mathlib4 (2026-08-02, +12 commits)#92
winstonyin-ax merged 13 commits into
masterfrom
sync/upstream

Conversation

@winstonyin-ax

@winstonyin-ax winstonyin-ax commented Aug 2, 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

Low Risk
Routine mathlib4 upstream sync: mostly additive lemmas, proof refactors, and documentation. No auth, deployment, or breaking application-layer changes in this repo’s sync workflow.

Overview
Daily upstream merge from leanprover-community/mathlib4 (tip ae0d973).

New API: DirectSum.sigmaFiberAddEquiv and related sigmaCurry/equivCongrLeft simp lemmas; Module.finrank_dvd_finrank_left/right and division cancel lemmas (used in intermediate fields); Functor.Elements equivalences hasInitial_iff_isCorepresentable / hasInitial_iff_isRepresentable; HomotopyEquiv.copy and homotopyEquivalences instances (IsMultiplicative, two-out-of-three, RespectsIso); Measure.map_homothety_hausdorffMeasure; normed star group lemmas (Metric.star_ball, dist_star_star, etc.).

Proof / definitional cleanup: valuation restrict and IsEquiv API; homotopy equivalence API (@[simps], implicit C in refl/symm/trans); simple-graph edge/sup_adj proofs via grind; intermediate field finrank_dvd routed through new module lemmas.

Misc: noncomputable on several archive/counterexample defs; doc/typo fixes across tactics and ring theory; lake-manifest Batteries revision bump.

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

mathlib-update-dependencies Bot and others added 13 commits August 1, 2026 07:42
This PR updates the Mathlib dependencies.
…1488)

Split from #37959

Co-authored-by: artie2000 <artem.khovanov@gmail.com>
… and double sum indexed by ι₂ and fibres of f : ι₁ → ι₂ (#39607)

1. Add variant `equivCongrLeft'` of `equivCongrLeft`, and corresponding `…_apply` lemma.
2. Add `…_of lemmas` for both `equivCongrLeft` and `equivCongrLeft'`.
3. Add `…of lemma` for `sigmaCurry`, i.e. `sigmaCurry_of`.
4. Add `sigmaFiberAddEquiv`: the equivalence between a direct sum indexed by a type `ι₁` and the  double sum indexed by a type `ι₂` and the fibres of a map `f : ι₁ → ι₂`.  Add two `…_apply` lemmas and an `…_of` lemma.

Co-authored-by: TentativeConvert <marcus.zibrowius@cantab.net>
All these definitions are noncomputable (because they use choice/produce sets), but the computability checker doesn't spot this until I try making `Set` a one-field structure. This is because the computability checker doesn't even try to compute sorts, but it doesn't see that `s : Set α` is (equivalent to) a family of sorts.

Follow-up to #41446.

Generated by Claude Opus, then reviewed and cherry-picked line-by-line by myself.

Assisted-by: Claude Opus 4.8
This PR probably removes most existing typos in mathlib docstrings.
They were found by first extracting docstrings and putting them in a seperate txt file, then run a spell checker on in (in this case: https://github.com/codespell-project/codespell) and finally checking the output (many false ositives from names...)

Co-authored-by: Batixx <s59fpern@uni-bonn.de>
…ty (#41798)

Prove `Measure.map (AffineMap.homothety x c) μH[d] = ‖c‖₊⁻¹ ^ d • μH[d]` for `c ≠ 0`, resolving the TODO in `Mathlib/MeasureTheory/Measure/Hausdorff.lean`: the generalisation of `AffineMap.homothety_continuous` it was waiting for has since been merged, so the result follows from `hausdorffMeasure_homothety_preimage` via `Measure.ext`.
…ile (#42335)

Co-authored-by: Whysoseriourhah <yx3021@ic.ac.uk>
Also tags `Subgraph.Adj.adj_sub`/`spanningCoe_adj`/`sup_adj`/`edge_adj` with `grind`.
This PR updates the Mathlib dependencies.
If the category of elements of a covariant functor has an initial object, then the functor is corepresentable.

Co-authored-by: emilyriehl <eriehl@jhu.edu>
@winstonyin-ax
winstonyin-ax merged commit 000d826 into master Aug 2, 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.