Sync upstream mathlib4 (2026-07-31, +8 commits) - #90
Merged
Conversation
Co-authored-by: Batixx <s59fpern@uni-bonn.de>
Change `/- ` to `/-- ` when it is arguably meant to be. In a few cases, it wasn't 100% clear to me which is preferable. This was just done with regex search, so probably not exhaustive. Co-authored-by: Batixx <s59fpern@uni-bonn.de>
Partially enabled through #35683.
…n form and pivots of matrices (#42236) We add definitions for the row echelon form and pivots of matrices. We also add some more API about matrix ranks and add abbreviations for upper/lower-triangular matrices based on the current block triangular definition. Co-authored-by: raoxiaojia <raoxiaojia@gmail.com>
… command (#42274) This PR deprecates the global `#count_heartbeats` command. (Not to be confused with `#count_heartbeats in`, which we want to keep). The reason is that `#count_heartbeats` doesn't work in its current implementation. A useful alternative is to use `set_option trace.profiler true` with `set_option trace.profiler.useHeartbeats` true. As discussed in https://leanprover.zulipchat.com/#narrow/channel/263328-triage/topic/issue.20.214.2323905.3A.20linter.2EcountHeartbeats.20is.20broken/with/538006069
* Mostly useful for `ℕ` * I added the `Finset.Iic` lemmas by symmetry, but I'm happy to remove them if we think they are redundant.
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.f60ac0eb466a8db04f36381155dd58b1a213374eAuto-merges to
masteronceCI (self-hosted)passes. Regenerateddaily until merged or until a conflict appears.
Note
Low Risk
Routine upstream merge: mostly additive definitions, deprecated aliases, and proof refactors with limited behavioral change outside linear algebra API renames.
Overview
Upstream mathlib sync adding row echelon / pivot theory (
Matrix.IsRowEchelon,IsReducedRowEchelon,IsPivotedBywithrank_eqand uniqueness), wired intoMathlib.lean.Matrix triangular API is renamed for clarity:
IsUpperTriangular/IsLowerTriangularabbreviateBlockTriangular, anddet_of_isUpperTriangular/charpoly_of_isUpperTriangularreplace the old*_upperTriangularnames (deprecated aliases kept). Call sites (Gram–Schmidt, charpoly, determinant docs) follow the new names.Rank and determinant gain non-zero-divisor / injectivity-based lemmas (
rank_of_det_mem_nonZeroDivisors,rank_mul_eq_*,mulVec_injective_of_det_*,rank_le_card_of_support_subset);range_lt_top_of_det_eq_zerois generalized beyond fields to[IsDomain R] [Free R M].Smaller churn: new Finset product identities on
Iio/IicforLocallyFiniteOrderBot; widespreadfun_prop/ measurability proof simplifications; doc and@[to_additive]comment fixes;=ᵐ[μ]instead of=ᶠ[ae μ]in a few measure-theory spots;#count_heartbeatslinter deprecated in favor of#count_heartbeats in/ profiler options.Reviewed by Cursor Bugbot for commit d8e37ce. Bugbot is set up for automated code reviews on this repo. Configure here.