Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 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
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
4c45d0e
chore: bump to nightly-2026-04-19
mathlib-nightly-testing[bot] Apr 19, 2026
815f7dc
chore: adaptations for nightly-2026-04-19
kim-em Apr 21, 2026
c2da6e1
lake update
kim-em Apr 21, 2026
0d5f9c4
lake update
kim-em Apr 21, 2026
22a3e4b
pull another change from nightly-testing
kim-em Apr 21, 2026
4812df1
set aesop to specific version
kim-em Apr 21, 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
4 changes: 0 additions & 4 deletions Mathlib/Analysis/CStarAlgebra/CStarMatrix.lean
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ instance instNonUnitalSemiring [Fintype n] [NonUnitalSemiring A] :
NonUnitalSemiring (CStarMatrix n n A) :=
inferInstanceAs <| NonUnitalSemiring (Matrix n n A)

set_option backward.inferInstanceAs.wrap false in
instance instNonAssocSemiring [Fintype n] [DecidableEq n] [NonAssocSemiring A] :
NonAssocSemiring (CStarMatrix n n A) :=
inferInstanceAs <| NonAssocSemiring (Matrix n n A)
Expand All @@ -353,17 +352,14 @@ instance instNonUnitalRing [Fintype n] [NonUnitalRing A] :
NonUnitalRing (CStarMatrix n n A) :=
inferInstanceAs <| NonUnitalRing (Matrix n n A)

set_option backward.inferInstanceAs.wrap false in
instance instNonAssocRing [Fintype n] [DecidableEq n] [NonAssocRing A] :
NonAssocRing (CStarMatrix n n A) :=
inferInstanceAs <| NonAssocRing (Matrix n n A)

set_option backward.inferInstanceAs.wrap false in
instance instSemiring [Fintype n] [DecidableEq n] [Semiring A] :
Semiring (CStarMatrix n n A) :=
inferInstanceAs <| Semiring (Matrix n n A)

set_option backward.inferInstanceAs.wrap false in
instance instRing [Fintype n] [DecidableEq n] [Ring A] : Ring (CStarMatrix n n A) :=
inferInstanceAs <| Ring (Matrix n n A)

Expand Down
2 changes: 0 additions & 2 deletions Mathlib/GroupTheory/Abelianization/Defs.lean
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ def Abelianization : Type u :=

namespace Abelianization

attribute [local instance] QuotientGroup.leftRel

instance commGroup : CommGroup (Abelianization G) where
__ := QuotientGroup.Quotient.group _
mul_comm x y := Quotient.inductionOn₂ x y fun a b ↦ Quotient.sound' <|
Expand Down
2 changes: 0 additions & 2 deletions Mathlib/GroupTheory/FreeAbelianGroup.lean
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ instance [Nonempty α] : Nontrivial (FreeAbelianGroup α) where

end

attribute [local instance] QuotientGroup.leftRel

@[elab_as_elim]
protected theorem induction_on
{motive : FreeAbelianGroup α → Prop} (z : FreeAbelianGroup α) (zero : motive 0)
Expand Down
2 changes: 0 additions & 2 deletions Mathlib/Topology/MetricSpace/Gluing.lean
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,6 @@ def inductivePremetric (I : ∀ n, Isometry (f n)) : PseudoMetricSpace (Σ n, X
_ = inductiveLimitDist f x y + inductiveLimitDist f y z := by
rw [inductiveLimitDist_eq_dist I x y m hx hy, inductiveLimitDist_eq_dist I y z m hy hz]

attribute [local instance] inductivePremetric

/-- The type giving the inductive limit in a metric space context. -/
def InductiveLimit (I : ∀ n, Isometry (f n)) : Type _ :=
@SeparationQuotient _ (inductivePremetric I).toUniformSpace.toTopologicalSpace
Expand Down
4 changes: 2 additions & 2 deletions MathlibTest/ToDual.lean
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ structure Lattice (α : Type) extends SemilatticeInf α, SemilatticeSup α
attribute [to_dual existing] Lattice.toSemilatticeInf

-- we can reorder arguments of arguments in `SemilatticeInf.mk`
@[to_dual]
instance [Min α] (le_inf : ∀ a b c : α, a ≤ b → a ≤ c → a ≤ b ⊓ c) : SemilatticeInf α where
@[to_dual, reducible]
def le_inf_test [Min α] (le_inf : ∀ a b c : α, a ≤ b → a ≤ c → a ≤ b ⊓ c) : SemilatticeInf α where
le_inf

-- we can reorder arguments of arguments of arguments in `SemilatticeInf.casesOn`
Expand Down
39 changes: 15 additions & 24 deletions MathlibTest/globalAttributeIn.lean
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,30 @@ import Mathlib.Tactic.Linter.GlobalAttributeIn

/-! Tests for the `globalAttributeIn` linter. -/

-- After https://github.com/leanprover/lean4/pull/12263,
-- we need to add `instance_reducible` before we can add `instance` to `Int.add`.
set_option allowUnsafeReducibility true in
attribute [instance_reducible] Int.add
-- Since lean4#13223 applying a global attribute using ... `in` ... is an error

class Dummy where
field : True

@[reducible] def dummyInst : Dummy := ⟨True.intro⟩

/--
error: Despite the `in`, the attribute instance 1100 is added globally to Int.add
error: Despite the `in`, the attribute instance 1100 is added globally to dummyInst
please remove the `in` or make this a `local instance 1100`
-/
#guard_msgs in
set_option autoImplicit false in
attribute [instance 1100] Int.add in
attribute [instance 1100] dummyInst in
set_option autoImplicit false in
instance : Inhabited Int where
default := 0

/--
error: Despite the `in`, the attribute instance is added globally to Int.add
error: Despite the `in`, the attribute instance is added globally to dummyInst
please remove the `in` or make this a `local instance`
-/
#guard_msgs in
attribute [instance] Int.add in
attribute [instance] dummyInst in
instance : Inhabited Int where
default := 0

Expand Down Expand Up @@ -58,42 +60,31 @@ please remove the `in` or make this a `local ext`
-/
#guard_msgs in
set_option warning.simp.varHead false in
attribute [simp, local simp, ext, scoped instance, -simp, -ext] foo in
attribute [simp, local simp, ext, -simp, -ext] foo in
def bar := False

#guard_msgs in
-- `local instance` is allowed with `in`
attribute [local instance] Int.add in
attribute [local instance] dummyInst in
instance : Inhabited Int where
default := 0

#guard_msgs in
-- `local instance priority` is allowed with `in`
attribute [local instance 42] Int.add in
attribute [local instance 42] dummyInst in
instance : Inhabited Int where
default := 0

#guard_msgs in
-- `scoped instance` is allowed with `in`
attribute [scoped instance] Int.add in
attribute [scoped instance] dummyInst in
instance : Inhabited Int where
default := 0

#guard_msgs in
-- `scoped instance priority` is allowed with `in`
attribute [scoped instance 42] Int.add in
attribute [scoped instance 42] dummyInst in
instance : Inhabited Int where
default := 0

end X

-- Omitting the `in` is also fine.

attribute [local instance 42] X.foo

-- Global instance without the `in` are also left alone.
attribute [instance 20000] X.foo

namespace X

attribute [scoped instance 0] foo
10 changes: 5 additions & 5 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": "82d457fb3bdd9efadbae06608ff337d689efdddf",
"rev": "2db6054a44326f8c0230ee0570e2ddb894816511",
"name": "proofwidgets",
"manifestFile": "lake-manifest.json",
"inputRev": "v0.0.97",
"inputRev": "v0.0.98",
"inherited": false,
"configFile": "lakefile.lean"},
{"url": "https://github.com/leanprover-community/aesop",
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "ad416ddf6cc9d5b1c00eaf04a48e703538132760",
"rev": "bf91f5d1e444cf2bd9795bd2499658b802759af7",
"name": "aesop",
"manifestFile": "lake-manifest.json",
"inputRev": "nightly-testing",
"inputRev": "bf91f5d1e444cf2bd9795bd2499658b802759af7",
"inherited": false,
"configFile": "lakefile.toml"},
{"url": "https://github.com/leanprover-community/quote4",
Expand All @@ -65,7 +65,7 @@
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "4b591181697264394a76288a163fd1d47621c96e",
"rev": "667d80cc94e379283e9f0216673fff456692fa5c",
"name": "batteries",
"manifestFile": "lake-manifest.json",
"inputRev": "nightly-testing",
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 "nightly-testing"
require "leanprover-community" / "aesop" @ git "bf91f5d1e444cf2bd9795bd2499658b802759af7"
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-16
leanprover/lean4:nightly-2026-04-19
Loading