Sync upstream mathlib4 (2026-08-01, +14 commits) - #91
Merged
Merged
Conversation
…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>
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.1f8806b67d6f09e6d2552c031e6d3a3171016116Auto-merges to
masteronceCI (self-hosted)passes. Regenerateddaily 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 scatteredset_option backward.isDefEq.respectTransparency/backward.defeqAttrib.useBackwardblocks—an elaboration/definitional-equality strategy cleanup across limits, comma categories, opposites, and related files.Quadratic algebras: Adds
QuadraticAlgebra.traceas anR-linear map with simp lemmas,sub_star, and characteristic-equation identities; fixes thestardocstring to usex + b * y; renamesnorm_mem_nonZero_divisors_iff→norm_mem_nonZeroDivisors_iff.Other math changes:
FGModuleCat.EssentiallySmallweakensCommRingtoRing;LocallyConvex.Basicnarrows imports and addsassert_not_exists NormedSpace;Seminormconvex/restrict-scalars sections useNormSMulClass/SMulinstead of fullNormedSpace;algΓAlgSpecAdjunctiongets an explicitCommRingCat.{u}universe.Minor: Clifford counterexample uses
sum_applyinstead ofQuadraticMap.sum_apply.Reviewed by Cursor Bugbot for commit 4ea40cd. Bugbot is set up for automated code reviews on this repo. Configure here.