Skip to content

Sync upstream mathlib4 (2026-08-01, +14 commits) - #91

Merged
winstonyin-ax merged 15 commits into
masterfrom
sync/upstream
Aug 1, 2026
Merged

winstonyin-ax merged 15 commits into
masterfrom
sync/upstream

Conversation

@winstonyin-ax

@winstonyin-ax winstonyin-ax commented Aug 1, 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
Large automated sync with widespread category-theory defeq/elaboration changes that can affect downstream proof stability; quadratic-algebra API additions and renames are localized but user-visible.

Overview
Daily mathlib4 upstream merge (~14 commits) touching category theory, algebra, and analysis.

Category theory (bulk of the diff): Many cone/limit/adjunction/equivalence definitions gain @[implicit_reducible] and lose scattered set_option backward.isDefEq.respectTransparency / backward.defeqAttrib.useBackward blocks—an elaboration/definitional-equality strategy cleanup across limits, comma categories, opposites, and related files.

Quadratic algebras: Adds QuadraticAlgebra.trace as an R-linear map with simp lemmas, sub_star, and characteristic-equation identities; fixes the star docstring to use x + b * y; renames norm_mem_nonZero_divisors_iffnorm_mem_nonZeroDivisors_iff.

Other math changes: FGModuleCat.EssentiallySmall weakens CommRing to Ring; LocallyConvex.Basic narrows imports and adds assert_not_exists NormedSpace; Seminorm convex/restrict-scalars sections use NormSMulClass / SMul instead of full NormedSpace; algΓAlgSpecAdjunction gets an explicit CommRingCat.{u} universe.

Minor: Clifford counterexample uses sum_apply instead of QuadraticMap.sum_apply.

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

JovanGerb and others added 15 commits July 31, 2026 08:20
…cible` (#42161)

This PR removes a lot of the transparency related `set_option`. I did this by using `#defeq_abuse in` to determine which definition was not being unfolded, and then tagging such definitions with `implicit_reducible`.

In particular `backward.isDefEq.respectTransparency` can almost always be removed like this, but `backward.defeqAttrib.useBackward` is still sometimes tricky to remove.

Presumably, the changes from this PR will let us remove many more `set_option` in further files that this PR doesn't touch.
Add `QuadraticAlgebra.trace`, the trace of a quadratic algebra as an `R`-linear map.

(Also fixes two typos in docstrings.)
…t` (#42251)

This PR removes the `setOfSucc` -> `setOfPred` translation from the `to_dual` abbreviation dictionary, since the `ofSucc` -> `ofPred` translation already implies it.
This is in preparation for disallowing `NormedSpace` in `Analysis.Seminorm`.
…ear in the type (#42228)

This PR fixes a bug in `to_dual`/`to_additive` that makes it impossible to use it on a structure where a universe level doesn't appear in its type.
… (#42303)

This PR adds a universe annotation in `algΓAlgSpecAdjunction`, which was seemingly forgotten. This speeds it up by more that 10x.

In the rest of the file, the universe is already specified everywhere.

For an explanation of why a universe metavariable can cause such an enormous slowdown, see leanprover/lean4#10414
…representations (#42151)

Add a missing surjectivity lemma `surjective_or_eq_zero` for irreducible representations, parallel to the existing `injective_or_eq_zero` `bijective_or_eq_zero`.
…f instead of aesop (#41870)

The file speeds up by 25%, with significant impact on readability.
This PR adds the config option `linter.style.header.license` to the header linter. This allows downstream projects to use the linter on their projects even if they need to specify a different license or a different filename for the license.
Replace the `CommRing` instance with `Ring`.
…orsion free to faithful smul (#41379)

This PR removes some `IsDomain` assumptions by generalizing `Module.IsTorsionFree` to `FaithfulSMul`.

(As @SnirBroshi pointed out in the comments, this is not quite a generalization when the top ring is the zero ring, but this never arises in practice).

Co-authored-by: tb65536 <thomas.l.browning@gmail.com>
After [batteries#1927](leanprover-community/batteries#1927) is merged:

- [x] Merge leanprover-community/mathlib4:master
- [x] Edit the lakefile to point to leanprover-community/batteries:main
- [x] Run lake update batteries
- [ ] Wait for CI and merge

Co-authored-by: mathlib-nightly-testing[bot] <mathlib-nightly-testing[bot]@users.noreply.github.com>
@winstonyin-ax
winstonyin-ax merged commit 62a2540 into master Aug 1, 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.