Sync upstream mathlib4 (2026-07-26, +4 commits) - #85
Merged
Conversation
…(#29077) Prove that the inclusion of an interval into the real numbers is a smooth embedding, and use this to golf the proof that this inclusion is smooth. While at it, rename the smoothness lemmas after the coercion `Subtype.val` they are using, as mandated by the naming convention.
…ial_le (#41577) This PR adds the `@[gcongr]` attribute to `Nat.ascFactorial_le` and to the identically-shaped `Nat.descFactorial_le`, so that `gcongr` can rewrite under `ascFactorial`/`descFactorial`. `Nat.factorial_le` in the same file is already tagged `@[mono, gcongr]`. Follow-up to [#40816 (feat(Data/Nat/Factorial/Basic): add `ascFactorial_le`)](leanprover-community/mathlib4#40816). 🤖 Prepared with Claude Code
This PR updates the Mathlib dependencies.
This PR updates the Mathlib dependencies.
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.9cebae57f419f984d008f357605b2621a1d9f13bAuto-merges to
masteronceCI (self-hosted)passes. Regenerateddaily until merged or until a conflict appears.
Note
Low Risk
Routine upstream merge touching Mathlib proofs and a dependency pin; no auth, security, or application runtime code.
Overview
Upstream mathlib4 sync (tip
9cebae57…) bumps batteries and advancesupstream_sha.Nat factorials:
ascFactorial_leanddescFactorial_leare tagged with@[gcongr]so the monotonicity tactic can use them when rewriting under ascending/descending factorials.Manifold
Iccintervals: The proof thatIcc x y → ℝis smooth is reworked usingSmoothEmbedding/IsImmersionOfComplementinstead of a long chart-by-chart argument. New results includeisSmoothEmbedding_subtypeVal_Icc,contMDiff_iff_comp_subtypeVal_Icc, andisImmersionOfComplement_subtypeVal_Icc. Public names move fromcontMDiff_subtype_coe_Icc/mfderiv_subtype_coe_Icc_onetocontMDiff_subtypeVal_Icc/mfderiv_subtypeVal_Icc_one(old names kept as deprecated aliases).Mathlib/Geometry/Manifold/Instances/Real.leangains simp-friendly lemmas for𝓡∂ n,IccLeftChart, andIccRightChart(apply/symm forms) to support the new proofs.Reviewed by Cursor Bugbot for commit 1789ffe. Bugbot is set up for automated code reviews on this repo. Configure here.