Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
baa71fa
Update lean-toolchain for testing https://github.com/leanprover/lean4…
Mar 24, 2026
cbf62a7
feat: add `Lean.Grind.PowIdentity` instance for finite fields
kim-em Mar 24, 2026
f420f53
Update lean-toolchain for testing https://github.com/leanprover/lean4…
Mar 26, 2026
28dc0ab
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13132
Mar 26, 2026
d7aee7e
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13132
Mar 26, 2026
deb87e3
Update lean-toolchain for testing https://github.com/leanprover/lean4…
Apr 1, 2026
b465a60
Update lean-toolchain for testing https://github.com/leanprover/lean4…
Apr 1, 2026
f841c8f
chore: indent tactic blocks after `by` and `decreasing_by`
nomeata Mar 31, 2026
b779d44
chore: indent tactic block in EmptyLine test
nomeata Mar 31, 2026
61a6a0f
chore: indent expression continuations at column 0
nomeata Apr 1, 2026
e714425
chore: indent expression continuations at column 0
nomeata Apr 1, 2026
7845a1a
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13229
Apr 1, 2026
7eff816
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13223
Apr 1, 2026
e533fde
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13229
Apr 1, 2026
37ec501
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13229
Apr 1, 2026
dd773b3
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13223
Apr 1, 2026
3602bc0
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13229
Apr 2, 2026
ce608e7
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13223
Apr 2, 2026
f8c6bd6
chore: fix linter tests
wkrozowski Apr 2, 2026
638efeb
Merge master into nightly-testing
mathlib-nightly-testing[bot] Apr 7, 2026
8d08e27
lake update
kim-em Apr 7, 2026
940f396
fix hash command linter
kim-em Apr 7, 2026
12400c5
fix bad merge
kim-em Apr 7, 2026
89270ab
fixes
kim-em Apr 7, 2026
c102fda
fixes
kim-em Apr 7, 2026
3a751b4
unpleasant fix.
kim-em Apr 7, 2026
5212dc4
touch for CI
kim-em Apr 7, 2026
ac5cf06
cleanup of adaptation notes
kim-em Apr 7, 2026
ac1ee15
Merge commit '5212dc478426d5caca02fc5aea6df6d211fbdd7e' into bump/nig…
Apr 7, 2026
85c19f2
chore: adaptations for nightly-2026-04-06
Apr 7, 2026
939b283
chore: bump to nightly-2026-04-07
mathlib-nightly-testing[bot] Apr 7, 2026
9189553
Merge branch 'nightly-testing' of github.com:leanprover-community/mat…
kim-em Apr 7, 2026
e59ea1d
Merge commit '939b2837a108267d255e41aece8c6aca29009a2a' into bump/nig…
Apr 7, 2026
fc6fe78
chore: adaptations for nightly-2026-04-07
Apr 7, 2026
8bea2c2
merge
kim-em Apr 8, 2026
d0e2436
Merge master into nightly-testing
mathlib-nightly-testing[bot] Apr 8, 2026
177922a
chore: bump to nightly-2026-04-08
mathlib-nightly-testing[bot] Apr 8, 2026
755deb4
merge lean-pr-testing-13223
mathlib-nightly-testing[bot] Apr 8, 2026
9e49d8c
Update lean-toolchain for testing https://github.com/leanprover/lean4…
Apr 8, 2026
6cc8eaf
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13262
Apr 8, 2026
2e1e83b
Merge master into nightly-testing
mathlib-nightly-testing[bot] Apr 9, 2026
8335db3
universe fixes
kmill Apr 9, 2026
ba688b0
chore: bump to nightly-2026-04-09
mathlib-nightly-testing[bot] Apr 9, 2026
6b9dcf5
merge lean-pr-testing-13086
mathlib-nightly-testing[bot] Apr 9, 2026
5815ab3
merge lean-pr-testing-13229
mathlib-nightly-testing[bot] Apr 9, 2026
7f29606
Update lean-toolchain for testing https://github.com/leanprover/lean4…
Apr 9, 2026
7dae754
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13346
Apr 9, 2026
8a63c26
Merge master into nightly-testing
mathlib-nightly-testing[bot] Apr 10, 2026
5c03f00
lake update
kim-em Apr 10, 2026
e512945
fixes
kim-em Apr 10, 2026
f55f739
fix tests
kim-em Apr 10, 2026
3f81638
ci: skip inputRev validation on nightly-testing branch
kim-em Apr 10, 2026
d5cca85
chore: bump to nightly-2026-04-10
mathlib-nightly-testing[bot] Apr 10, 2026
77f0e70
merge lean-pr-testing-13262
mathlib-nightly-testing[bot] Apr 10, 2026
40c6fcb
fix
Kha Apr 10, 2026
aaa0ccc
chore(nolints): add docBlame exceptions for auto-generated `instInhab…
kim-em Apr 10, 2026
ba9bf0f
fix(lint-style): filter out duplicate `Init` from `Mathlib.lean` imports
kim-em Apr 10, 2026
b6db754
fix
Kha Apr 10, 2026
f053cf0
fix plausible
Kha Apr 10, 2026
9b1fae7
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13346
Apr 10, 2026
f48d5bb
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13346
Apr 10, 2026
0960739
Merge master into nightly-testing
mathlib-nightly-testing[bot] Apr 11, 2026
a1c9945
chore: update importGraph, remove duplicate Init workaround
kim-em Apr 11, 2026
0ab07d5
chore: bump to nightly-2026-04-11
mathlib-nightly-testing[bot] Apr 11, 2026
8da25c3
silence linter
kim-em Apr 11, 2026
957e226
chore: adaptations for nightly-2026-04-10
kim-em Apr 12, 2026
d2d45e8
broken test: still broken, but doesn't stop the build.
kim-em Apr 12, 2026
fb70c13
Merge master into nightly-testing
mathlib-nightly-testing[bot] Apr 12, 2026
eb7a774
fix: exempt files registering initializers from the `privateModule` l…
thorimur Apr 12, 2026
853d41e
Revert "silence linter"
thorimur Apr 12, 2026
7a5e5b4
chore: remove unused sections in front of lone `declare_aesop_rule_sets`
thorimur Apr 12, 2026
8568f33
chore: restore `initialize` test for `privateModule` linter with corr…
thorimur Apr 12, 2026
d49f1ed
chore: restore `privateModule` `initialize` test with linter turned on
thorimur Apr 12, 2026
365191c
fixes
kim-em Apr 12, 2026
bea414c
Merge branch 'nightly-testing' of https://github.com/leanprover-commu…
kim-em Apr 12, 2026
7913a69
fix from nightly-testing
kim-em Apr 12, 2026
af85844
importGraph has been fixed
kim-em Apr 12, 2026
c949d5c
Merge master into nightly-testing
mathlib-nightly-testing[bot] Apr 13, 2026
3439f4f
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13132
Apr 13, 2026
0b824b5
chore: bump to nightly-2026-04-13
mathlib-nightly-testing[bot] Apr 13, 2026
7fccdee
Update lean-toolchain for testing https://github.com/leanprover/lean4…
Apr 13, 2026
02083f3
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13325
Apr 13, 2026
19b8510
chore: silence simp `varHead` and `varOther` warnings
wkrozowski Apr 13, 2026
4462ca1
chore: silence `varHead` warning
wkrozowski Apr 13, 2026
39ef8de
chore: fix `globalAtrtributeIn` test
wkrozowski Apr 13, 2026
d044337
chore: fix `Archive` build
wkrozowski Apr 13, 2026
f74b5ed
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13325
Apr 13, 2026
670c0bf
Update lean-toolchain for https://github.com/leanprover/lean4/pull/13325
Apr 13, 2026
2f4e09c
fix from nightly-testing
kim-em Apr 13, 2026
5cc009b
Merge master into nightly-testing
mathlib-nightly-testing[bot] Apr 14, 2026
d3e9985
chore: bump to nightly-2026-04-14
mathlib-nightly-testing[bot] Apr 14, 2026
fa06fde
merge lean-pr-testing-13132
mathlib-nightly-testing[bot] Apr 14, 2026
48d0a7b
merge lean-pr-testing-13325
mathlib-nightly-testing[bot] Apr 14, 2026
88db77b
Merge master into nightly-testing
mathlib-nightly-testing[bot] Apr 15, 2026
606f569
chore: bump to nightly-2026-04-15
mathlib-nightly-testing[bot] Apr 15, 2026
c533eff
Merge master into nightly-testing
mathlib-nightly-testing[bot] Apr 16, 2026
9e7eebd
fixes
kim-em Apr 16, 2026
8ba9584
fix
kim-em Apr 16, 2026
f9ae5cc
fixes
kim-em Apr 16, 2026
cecf37b
chore: bump to nightly-2026-04-16
mathlib-nightly-testing[bot] Apr 16, 2026
83c4f31
Merge master into nightly-testing
mathlib-nightly-testing[bot] Apr 17, 2026
6d92cce
fix tests
kim-em Apr 17, 2026
f4804b9
chore: adaptations for nightly-2026-04-16
kim-em Apr 17, 2026
d6af0d0
merge master
kim-em Apr 17, 2026
55ca726
Merge branch 'bump/nightly-2026-04-10' of github.com:leanprover-commu…
kim-em Apr 17, 2026
c33286b
fix upstreamed import
kim-em Apr 17, 2026
32b824d
chore: bump to nightly-2026-04-17
mathlib-nightly-testing[bot] Apr 17, 2026
bba4e07
set_option
kim-em Apr 17, 2026
1ebf1cc
Update lean-toolchain for testing https://github.com/leanprover/lean4…
Apr 17, 2026
b098eb1
chore: adaptations for leanprover/lean4#13389
wkrozowski Apr 17, 2026
a450fa0
fixes
kim-em Apr 17, 2026
e479388
fixes
kim-em Apr 17, 2026
183f0cd
merge
kim-em Apr 17, 2026
d33ab3c
fixes
kim-em Apr 17, 2026
eb5fd08
Merge branch 'lean-pr-testing-13346' of https://github.com/leanprover…
kim-em Apr 17, 2026
4f40f6e
fix Init filter in MinImports
kim-em Apr 17, 2026
6f52cc6
merge bump/nightly-2026-04-10
kim-em Apr 17, 2026
ebb5175
merge bump/nightly-2026-04-16
kim-em Apr 17, 2026
23925f2
Merge master into nightly-testing
mathlib-nightly-testing[bot] Apr 18, 2026
5b25c4e
fix test
kim-em Apr 18, 2026
0647d35
Merge master into nightly-testing
mathlib-nightly-testing[bot] Apr 19, 2026
6723fdb
add set_options
kim-em Apr 19, 2026
4c45d0e
chore: bump to nightly-2026-04-19
mathlib-nightly-testing[bot] Apr 19, 2026
eab9a03
Merge master into nightly-testing
mathlib-nightly-testing[bot] Apr 20, 2026
eaa4c1f
chore: bump to nightly-2026-04-20
mathlib-nightly-testing[bot] Apr 20, 2026
85b88b5
merge lean-pr-testing-13441
mathlib-nightly-testing[bot] Apr 20, 2026
efc26a2
Merge master into nightly-testing
mathlib-nightly-testing[bot] Apr 21, 2026
9d91c9d
fix bad merge
kim-em Apr 21, 2026
67244f5
fix #guard_msgs output
kim-em Apr 21, 2026
0777acc
Merge master into nightly-testing
mathlib-nightly-testing[bot] Apr 22, 2026
650965a
chore: adaptations for nightly-2026-04-20
kim-em Apr 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Mathlib/Algebra/BigOperators/Group/Finset/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ lemma prod_filter_not_mul_prod_filter (s : Finset ι) (p : ι → Prop) [Decidab
(∏ x ∈ s with ¬p x, f x) * ∏ x ∈ s with p x, f x = ∏ x ∈ s, f x := by
rw [mul_comm, prod_filter_mul_prod_filter_not]

set_option backward.isDefEq.respectTransparency false in
@[to_additive]
theorem prod_filter_xor (p q : ι → Prop) [DecidablePred p] [DecidablePred q] :
(∏ x ∈ s with (Xor' (p x) (q x)), f x) =
Expand Down
2 changes: 2 additions & 0 deletions Mathlib/Algebra/Homology/DerivedCategory/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ variable {C}
/-- The localization functor `CochainComplex C ℤ ⥤ DerivedCategory C`. -/
def Q : CochainComplex C ℤ ⥤ DerivedCategory C := HomologicalComplexUpToQuasiIso.Q

set_option backward.isDefEq.respectTransparency false in
instance : (Q (C := C)).IsLocalization
(HomologicalComplex.quasiIso C (ComplexShape.up ℤ)) := by
dsimp only [Q, DerivedCategory]
Expand All @@ -114,6 +115,7 @@ variable (C)
def quotientCompQhIso : HomotopyCategory.quotient C (ComplexShape.up ℤ) ⋙ Qh ≅ Q :=
HomologicalComplexUpToQuasiIso.quotientCompQhIso C (ComplexShape.up ℤ)

set_option backward.isDefEq.respectTransparency false in
instance : Qh.IsLocalization (HomotopyCategory.quasiIso C (ComplexShape.up ℤ)) := by
dsimp [Qh, DerivedCategory]
infer_instance
Expand Down
3 changes: 3 additions & 0 deletions Mathlib/Algebra/Lie/Free.lean
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def of : X → FreeLieAlgebra R X := fun x => Quot.mk _ (lib.of R x)

variable {L : Type w} [LieRing L] [LieAlgebra R L]

set_option backward.isDefEq.respectTransparency false in
/-- An auxiliary definition used to construct the equivalence `lift` below. -/
def liftAux (f : X → CommutatorRing L) :=
lib.lift R f
Expand All @@ -197,6 +198,7 @@ theorem liftAux_map_mul (f : X → L) (a b : lib R X) :
liftAux R f (a * b) = ⁅liftAux R f a, liftAux R f b⁆ :=
map_mul _ a b

set_option backward.isDefEq.respectTransparency false in
theorem liftAux_spec (f : X → L) (a b : lib R X) (h : FreeLieAlgebra.Rel R X a b) :
liftAux R f a = liftAux R f b := by
induction h with
Expand All @@ -208,6 +210,7 @@ theorem liftAux_spec (f : X → L) (a b : lib R X) (h : FreeLieAlgebra.Rel R X a
| mul_left c' _ h₂ => simp only [liftAux_map_mul, h₂]
| mul_right c' _ h₂ => simp only [liftAux_map_mul, h₂]

set_option backward.isDefEq.respectTransparency false in
/-- The quotient map as a `NonUnitalAlgHom`. -/
def mk : lib R X →ₙₐ[R] CommutatorRing (FreeLieAlgebra R X) where
toFun := Quot.mk (Rel R X)
Expand Down
2 changes: 2 additions & 0 deletions Mathlib/Algebra/Lie/NonUnitalNonAssocAlgebra.lean
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ namespace LieHom
variable {R L}
variable {L₂ : Type w} [LieRing L₂] [LieAlgebra R L₂]

set_option backward.isDefEq.respectTransparency false in
/-- Regarding the `LieRing` of a `LieAlgebra` as a `NonUnitalNonAssocRing`, we can
regard a `LieHom` as a `NonUnitalAlgHom`. -/
@[simps]
Expand All @@ -87,6 +88,7 @@ def toNonUnitalAlgHom (f : L →ₗ⁅R⁆ L₂) : CommutatorRing L →ₙₐ[R]
map_zero' := f.toLinearMap.map_zero
map_mul' := f.map_lie }

set_option backward.isDefEq.respectTransparency false in
theorem toNonUnitalAlgHom_injective :
Function.Injective (toNonUnitalAlgHom : _ → CommutatorRing L →ₙₐ[R] CommutatorRing L₂) :=
fun _ _ h => ext <| NonUnitalAlgHom.congr_fun h
Expand Down
1 change: 1 addition & 0 deletions Mathlib/Analysis/CStarAlgebra/Matrix.lean
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def l2OpNormedRingAux : NormedRing (Matrix n n 𝕜) :=
open Bornology Filter
open scoped Topology Uniformity

set_option backward.isDefEq.respectTransparency false in
/-- The metric on `Matrix m n 𝕜` arising from the operator norm given by the identification with
(continuous) linear maps of `EuclideanSpace`. -/
@[instance_reducible]
Expand Down
1 change: 1 addition & 0 deletions Mathlib/CategoryTheory/Monoidal/Free/Coherence.lean
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ section

variable (C)

set_option backward.isDefEq.respectTransparency false in
/-- Our normalization procedure works by first defining a functor `F C ⥤ (N C ⥤ N C)` (which turns
out to be very easy), and then obtain a functor `F C ⥤ N C` by plugging in the normal object
`𝟙_ C`. -/
Expand Down
2 changes: 2 additions & 0 deletions Mathlib/CategoryTheory/Pi/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def comapComp (f : K → J) (g : J → I) : comap C g ⋙ comap (C ∘ g) f ≅
{ app := fun X b => 𝟙 (X (g (f b)))
naturality := fun X Y f' => by simp only [comap, Function.comp]; funext; simp }

set_option backward.isDefEq.respectTransparency false in
/-- The natural isomorphism between pulling back then evaluating, and just evaluating. -/
@[simps!]
def comapEvalIsoEval (h : J → I) (j : J) : comap C h ⋙ eval (C ∘ h) j ≅ eval C (h j) :=
Expand All @@ -117,6 +118,7 @@ instance sumElimCategory : ∀ s : I ⊕ J, Category.{v₁} (Sum.elim C D s)
| Sum.inl i => inferInstanceAs <| Category (C i)
| Sum.inr j => inferInstanceAs <| Category (D j)

set_option backward.isDefEq.respectTransparency false in
/-- The bifunctor combining an `I`-indexed family of objects with a `J`-indexed family of objects
to obtain an `I ⊕ J`-indexed family of objects.
-/
Expand Down
1 change: 1 addition & 0 deletions Mathlib/CategoryTheory/Shift/Adjunction.lean
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ this constructs the unique compatible `CommShift` structure on `E.functor`.
noncomputable def commShiftFunctor [E.inverse.CommShift A] : E.functor.CommShift A :=
E.symm.toAdjunction.rightAdjointCommShift A

set_option backward.isDefEq.respectTransparency false in
lemma commShift_of_inverse [E.inverse.CommShift A] :
letI := E.commShiftFunctor A
E.CommShift A := by
Expand Down
1 change: 1 addition & 0 deletions Mathlib/CategoryTheory/Shift/Twist.lean
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ identify to the shift functors on `C`. -/
noncomputable def shiftIso (m : A) : shiftFunctor t.Category m ≅ shiftFunctor C m :=
Iso.refl _

set_option backward.isDefEq.respectTransparency false in
lemma shiftFunctor_map {X Y : t.Category} (f : X ⟶ Y) (m : A) :
(shiftFunctor t.Category m).map f =
(t.shiftIso m).hom.app X ≫ (shiftFunctor C m).map f ≫ (t.shiftIso m).inv.app Y := by
Expand Down
1 change: 1 addition & 0 deletions Mathlib/CategoryTheory/Triangulated/Adjunction.lean
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ instance [h : E.inverse.IsTriangulated] : E.symm.functor.IsTriangulated := h
lemma mk' (h : E.functor.IsTriangulated) : E.IsTriangulated where
rightAdjoint_isTriangulated := E.toAdjunction.isTriangulated_rightAdjoint

set_option backward.isDefEq.respectTransparency false in
/-- Constructor for `Equivalence.IsTriangulated`. -/
lemma mk'' (h : E.inverse.IsTriangulated) : E.IsTriangulated where
leftAdjoint_isTriangulated := (mk' E.symm h).rightAdjoint_isTriangulated
Expand Down
1 change: 1 addition & 0 deletions Mathlib/Combinatorics/SimpleGraph/Extremal/Turan.lean
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ private lemma sum_ne_add_mod_eq_sub_one {c : ℕ} :
rw [Nat.add_mod_mod, ← add_assoc, ← one_add_mul, show 1 + (r - 1) = r by lia,
Nat.mul_add_mod_self_left]

set_option backward.isDefEq.respectTransparency false in
lemma card_edgeFinset_turanGraph_add :
#(turanGraph (n + r) r).edgeFinset =
#(turanGraph n r).edgeFinset + n * (r - 1) + r.choose 2 := by
Expand Down
1 change: 1 addition & 0 deletions Mathlib/Geometry/Manifold/IntegralCurve/ExistUnique.lean
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ variable
{M : Type*} [TopologicalSpace M] [ChartedSpace H M] [IsManifold I 1 M]
{γ γ' : ℝ → M} {v : (x : M) → TangentSpace I x} {s s' : Set ℝ} (t₀ : ℝ) {x₀ : M}

set_option backward.isDefEq.respectTransparency false in
/-- Existence of local integral curves for a $C^1$ vector field at interior points of a `C^1`
manifold. -/
theorem exists_isMIntegralCurveAt_of_contMDiffAt [CompleteSpace E]
Expand Down
3 changes: 3 additions & 0 deletions Mathlib/Geometry/Manifold/MFDeriv/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ theorem writtenInExtChartAt_comp (h : ContinuousWithinAt f s x) :
variable {f' f₀' f₁' : TangentSpace I x →L[𝕜] TangentSpace I' (f x)}
{g' : TangentSpace I' (f x) →L[𝕜] TangentSpace I'' (g (f x))}

set_option backward.isDefEq.respectTransparency false in
/-- `UniqueMDiffWithinAt` achieves its goal: it implies the uniqueness of the derivative. -/
protected nonrec theorem UniqueMDiffWithinAt.eq (U : UniqueMDiffWithinAt I s x)
(h : HasMFDerivWithinAt I I' f s x f') (h₁ : HasMFDerivWithinAt I I' f s x f₁') : f' = f₁' := by
Expand Down Expand Up @@ -717,6 +718,7 @@ lemma mfderivWithin_of_isOpen (hs : IsOpen s) (hx : x ∈ s) :
mfderivWithin I I' f s x = mfderiv I I' f x :=
mfderivWithin_of_mem_nhds (hs.mem_nhds hx)

set_option backward.isDefEq.respectTransparency false in
theorem hasMFDerivWithinAt_insert {y : M} :
HasMFDerivWithinAt I I' f (insert y s) x f' ↔ HasMFDerivWithinAt I I' f s x f' := by
have : T1Space M := I.t1Space M
Expand Down Expand Up @@ -1115,6 +1117,7 @@ theorem mfderiv_congr {f' : M → M'} (h : f = f') :

variable (x)

set_option backward.isDefEq.respectTransparency false in
theorem HasMFDerivWithinAt.comp (hg : HasMFDerivWithinAt I' I'' g u (f x) g')
(hf : HasMFDerivWithinAt I I' f s x f') (hst : s ⊆ f ⁻¹' u) :
HasMFDerivWithinAt I I'' (g ∘ f) s x (g'.comp f') := by
Expand Down
1 change: 1 addition & 0 deletions Mathlib/Geometry/Manifold/MFDeriv/FDeriv.lean
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ the simpNF linter complains about this being `@[simp]`. -/
theorem writtenInExtChartAt_model_space : writtenInExtChartAt 𝓘(𝕜, E) 𝓘(𝕜, E') x f = f :=
rfl

set_option backward.isDefEq.respectTransparency false in
theorem hasMFDerivWithinAt_iff_hasFDerivWithinAt {f'} :
HasMFDerivWithinAt 𝓘(𝕜, E) 𝓘(𝕜, E') f s x f' ↔ HasFDerivWithinAt f f' s x := by
simpa only [HasMFDerivWithinAt, and_iff_right_iff_imp, mfld_simps] using
Expand Down
7 changes: 7 additions & 0 deletions Mathlib/Geometry/Manifold/Riemannian/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ attribute [local instance] normedSpaceTangentSpaceVectorSpace

variable (I)

set_option backward.isDefEq.respectTransparency false in
lemma eventually_norm_mfderiv_extChartAt_lt (x : M) :
∃ C > 0, ∀ᶠ y in 𝓝 x, ‖mfderiv% (extChartAt I x) y‖ < C := by
rcases eventually_norm_trivializationAt_lt E (fun (x : M) ↦ TangentSpace I x) x
Expand All @@ -247,6 +248,7 @@ lemma eventually_norm_mfderiv_extChartAt_lt (x : M) :
filter_upwards [hC, hx] with y hy h'y
rwa [← TangentBundle.continuousLinearMapAt_trivializationAt h'y]

set_option backward.isDefEq.respectTransparency false in
lemma eventually_enorm_mfderiv_extChartAt_lt (x : M) :
∃ C > (0 : ℝ≥0), ∀ᶠ y in 𝓝 x, ‖mfderiv% (extChartAt I x) y‖ₑ < C := by
rcases eventually_norm_mfderiv_extChartAt_lt I x with ⟨C, C_pos, hC⟩
Expand All @@ -257,6 +259,7 @@ lemma eventually_enorm_mfderiv_extChartAt_lt (x : M) :
simp only [enorm, nnnorm]
exact_mod_cast hy

set_option backward.isDefEq.respectTransparency false in
lemma eventually_norm_mfderivWithin_symm_extChartAt_comp_lt (x : M) :
∃ C > 0, ∀ᶠ y in 𝓝 x, ‖mfderiv[range I] (extChartAt I x).symm (extChartAt I x y)‖ < C := by
rcases eventually_norm_symmL_trivializationAt_lt E (fun (x : M) ↦ TangentSpace I x) x
Expand All @@ -269,6 +272,7 @@ lemma eventually_norm_mfderivWithin_symm_extChartAt_comp_lt (x : M) :
(extChartAt I x).left_inv (by simpa using h'y)
convert hy using 3 <;> congr

set_option backward.isDefEq.respectTransparency false in
lemma eventually_norm_mfderivWithin_symm_extChartAt_lt (x : M) :
∃ C > 0, ∀ᶠ y in 𝓝[range I] (extChartAt I x x),
‖mfderiv[range I] (extChartAt I x).symm y‖ < C := by
Expand All @@ -283,6 +287,7 @@ lemma eventually_norm_mfderivWithin_symm_extChartAt_lt (x : M) :
simp only [preimage_setOf_eq, mem_setOf_eq] at hy
convert hy

set_option backward.isDefEq.respectTransparency false in
lemma eventually_enorm_mfderivWithin_symm_extChartAt_lt (x : M) :
∃ C > (0 : ℝ≥0), ∀ᶠ y in 𝓝[range I] (extChartAt I x x),
‖mfderiv[range I] (extChartAt I x).symm y‖ₑ < C := by
Expand All @@ -294,6 +299,7 @@ lemma eventually_enorm_mfderivWithin_symm_extChartAt_lt (x : M) :
simp only [enorm, nnnorm]
exact_mod_cast hy

set_option backward.isDefEq.respectTransparency false in
/-- Around any point `x`, the Riemannian distance between two points is controlled by the distance
in the extended chart. In other words, the extended chart is locally Lipschitz. -/
lemma eventually_riemannianEDist_le_edist_extChartAt (x : M) :
Expand Down Expand Up @@ -378,6 +384,7 @@ lemma eventually_riemannianEDist_lt (x : M) {c : ℝ≥0∞} (hc : 0 < c) :
· exact Or.inl (mod_cast C_pos.ne')
· simp

set_option backward.isDefEq.respectTransparency false in
/-- Any neighborhood of `x` contains all the points which are close enough to `x` for the
Riemannian distance, `ℝ≥0` version. -/
lemma setOf_riemannianEDist_lt_subset_nhds [RegularSpace M] {x : M} {s : Set M} (hs : s ∈ 𝓝 x) :
Expand Down
1 change: 1 addition & 0 deletions Mathlib/Geometry/Manifold/VectorField/LieBracket.lean
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ theorem mlieBracketWithin_eventually_congr_set (h : s =ᶠ[𝓝 x] t) :
mlieBracketWithin I V W s =ᶠ[𝓝 x] mlieBracketWithin I V W t :=
mlieBracketWithin_eventually_congr_set' x <| h.filter_mono inf_le_left

set_option backward.isDefEq.respectTransparency false in
theorem _root_.Filter.EventuallyEq.mlieBracketWithin_vectorField_eq
(hV : V₁ =ᶠ[𝓝[s] x] V) (hxV : V₁ x = V x) (hW : W₁ =ᶠ[𝓝[s] x] W) (hxW : W₁ x = W x) :
mlieBracketWithin I V₁ W₁ s x = mlieBracketWithin I V W s x := by
Expand Down
2 changes: 1 addition & 1 deletion MathlibTest/GCongr/GCongr.lean
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ a b c d : ℕ
h : b~d
⊢ a~a

case a.a
case a
a b c d : ℕ
h : b~d
⊢ c~c
Expand Down
4 changes: 2 additions & 2 deletions MathlibTest/GRewrite.lean
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ the inequality goes in the wrong direction). -/
/--
error: Tactic `grewrite` failed: could not discharge x ≤ y using x ≥ y

case h₁.hbc
case hbc
x y b : ℚ
h : x ≥ y
⊢ x ≤ y
Expand Down Expand Up @@ -257,7 +257,7 @@ example {Prime : ℕ → Prop} {a a' : ℕ} (h₁ : Prime (a + 1)) (h₂ : a = a
/--
error: Tactic `grewrite` failed: could not discharge b ≤ a using a ≤ b

case h₂.hbc
case hbc
a b c : ℚ
h₁ : a ≤ b
h₂ : 0 ≤ c
Expand Down
1 change: 0 additions & 1 deletion MathlibTest/Linarith/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,6 @@ example (x : ℤ) : 0 ≤ x * wrapped x := by nlinarith
def tightlyWrapped (z : ℤ) : ℤ := z
/--
error: linarith failed to find a contradiction
case h
x : ℤ
a✝ : x * tightlyWrapped x < 0
⊢ False
Expand Down
1 change: 0 additions & 1 deletion MathlibTest/congr.lean
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ example (inst1 : BEq α) [LawfulBEq α] (inst2 : BEq α) [LawfulBEq α] (xs : Li

/--
error: unsolved goals
case h.e'_2
α : Type
inst1 : BEq α
inst✝¹ : LawfulBEq α
Expand Down
9 changes: 3 additions & 6 deletions MathlibTest/conv_widget.lean
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ conv =>
enter [1, x, 5]
skip
---
trace: case h
x : False
trace: x : False
| true
-/
#guard_msgs in
Expand Down Expand Up @@ -115,8 +114,7 @@ conv =>
enter [1, 0, x, 1]
skip
---
trace: case h
x : Unit
trace: x : Unit
| false
-/
#guard_msgs in
Expand Down Expand Up @@ -384,8 +382,7 @@ conv =>
enter [1, 0, x0, x1, x2, 2]
skip
---
trace: case h.h.h
x0 x1 x2 : Bool → Nat
trace: x0 x1 x2 : Bool → Nat
| x2 true
-/
#guard_msgs in
Expand Down
8 changes: 4 additions & 4 deletions lake-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "2db6054a44326f8c0230ee0570e2ddb894816511",
"rev": "82d457fb3bdd9efadbae06608ff337d689efdddf",
"name": "proofwidgets",
"manifestFile": "lake-manifest.json",
"inputRev": "v0.0.98",
"inputRev": "v0.0.97",
"inherited": false,
"configFile": "lakefile.lean"},
{"url": "https://github.com/leanprover-community/aesop",
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "bf91f5d1e444cf2bd9795bd2499658b802759af7",
"rev": "94778bc57a7fced2cdb8cda599c6e2672193d708",
"name": "aesop",
"manifestFile": "lake-manifest.json",
"inputRev": "bf91f5d1e444cf2bd9795bd2499658b802759af7",
"inputRev": "nightly-testing",
"inherited": false,
"configFile": "lakefile.toml"},
{"url": "https://github.com/leanprover-community/quote4",
Expand Down
2 changes: 1 addition & 1 deletion lakefile.lean
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ open Lake DSL

require "leanprover-community" / "batteries" @ git "nightly-testing"
require "leanprover-community" / "Qq" @ git "nightly-testing"
require "leanprover-community" / "aesop" @ git "bf91f5d1e444cf2bd9795bd2499658b802759af7"
require "leanprover-community" / "aesop" @ git "nightly-testing"
require "leanprover-community" / "proofwidgets" @ git "v0.0.98"
with NameMap.empty.insert `errorOnBuild
"ProofWidgets failed to reuse pre-built JS code. \
Expand Down
2 changes: 1 addition & 1 deletion lean-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
leanprover/lean4:nightly-2026-04-19
leanprover/lean4:nightly-2026-04-20
Loading