Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
2dd3a1a
Update lean-toolchain for testing https://github.com/leanprover/lean4…
Feb 5, 2026
f532e9a
Update lean-toolchain for https://github.com/leanprover/lean4/pull/12325
Feb 5, 2026
1f59a0f
Update lean-toolchain for https://github.com/leanprover/lean4/pull/12325
Feb 6, 2026
04ae226
Update lean-toolchain for testing https://github.com/leanprover/lean4…
Feb 23, 2026
6fdcfbf
chore: adapt for inclusion of leading whitespace in input syntax
mhuisi Feb 25, 2026
faad388
chore: add Mathlib.Tactic exception
mhuisi Feb 25, 2026
445449b
Update lean-toolchain for https://github.com/leanprover/lean4/pull/12662
Feb 25, 2026
129c3f7
chore: add module docstring linter special handling for eoi tokens
mhuisi Feb 26, 2026
9a29323
Update lean-toolchain for https://github.com/leanprover/lean4/pull/12325
Mar 4, 2026
edb380e
rm stray file
kim-em Mar 5, 2026
3c63763
Merge master into nightly-testing
mathlib-nightly-testing[bot] Mar 5, 2026
4c240d3
Merge branch 'nightly-testing' of https://github.com/leanprover-commu…
kim-em Mar 5, 2026
aaea335
mk_all
kim-em Mar 5, 2026
f584b9a
Merge branch 'bump/nightly-2026-03-04' into nightly-testing
kim-em Mar 5, 2026
d20daa0
fixes
kim-em Mar 5, 2026
284b704
Update lean-toolchain for https://github.com/leanprover/lean4/pull/12325
Mar 5, 2026
ec89131
chore: bump to nightly-2026-03-05
mathlib-nightly-testing[bot] Mar 5, 2026
29e0d5d
fix: address classDefReducibility warnings for lean4#12325
kim-em Mar 5, 2026
daec739
Update lean-toolchain for https://github.com/leanprover/lean4/pull/12325
Mar 5, 2026
f147a6b
fix: remove set_option/implicit_reducible from Setoid-typed defs
kim-em Mar 5, 2026
d6d02d2
fix: address classDefReducibility warnings in Archive
kim-em Mar 6, 2026
f682ac9
Merge master into nightly-testing
mathlib-nightly-testing[bot] Mar 6, 2026
858a3d5
fix: address classDefReducibility warnings in MathlibTest
kim-em Mar 6, 2026
4d08fa8
chore: bump to nightly-2026-03-06
mathlib-nightly-testing[bot] Mar 6, 2026
960bf78
Merge master into nightly-testing
mathlib-nightly-testing[bot] Mar 7, 2026
cc5e4e1
chore: bump to nightly-2026-03-07
mathlib-nightly-testing[bot] Mar 7, 2026
9d5ff52
merge lean-pr-testing-12662
mathlib-nightly-testing[bot] Mar 7, 2026
506e309
Merge master into nightly-testing
mathlib-nightly-testing[bot] Mar 8, 2026
c64e602
Update lean-toolchain for testing https://github.com/leanprover/lean4…
Mar 8, 2026
a81f3f5
Update lean-toolchain for https://github.com/leanprover/lean4/pull/12841
Mar 8, 2026
93efe7e
fix
kmill Mar 9, 2026
365251e
Merge master into nightly-testing
mathlib-nightly-testing[bot] Mar 9, 2026
9e6b540
chore: bump to nightly-2026-03-09
mathlib-nightly-testing[bot] Mar 9, 2026
425bcd5
merge lean-pr-testing-12841
mathlib-nightly-testing[bot] Mar 9, 2026
a4e193e
Merge master into nightly-testing
mathlib-nightly-testing[bot] Mar 10, 2026
56d241b
fix: isStructureLike → isStructure
kim-em Mar 10, 2026
0342568
Merge branch 'nightly-testing' of https://github.com/leanprover-commu…
kim-em Mar 10, 2026
d5bdbfc
merge
kim-em Mar 10, 2026
feebe0f
chore: update plausible to nightly-testing (lean4#12325 adaptations)
kim-em Mar 10, 2026
ed9f3fe
fix merge
kim-em Mar 10, 2026
49f8693
implicit_reducible warning
kim-em Mar 10, 2026
795e3ac
fix merge
kim-em Mar 10, 2026
e14778e
more implict_reducible
kim-em Mar 10, 2026
5375d4f
simplify proof
kim-em Mar 10, 2026
b901a68
chore: adaptations for nightly-2026-03-09
kim-em Mar 10, 2026
c04eb92
Apply suggestion from @kim-em
kim-em Mar 10, 2026
8bbcc56
Apply suggestion from @kim-em
kim-em Mar 10, 2026
c7ac5a1
Apply suggestion from @kim-em
kim-em Mar 10, 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
3 changes: 2 additions & 1 deletion Mathlib/CategoryTheory/ConcreteCategory/Basic.lean
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/-
Copyright (c) 2018 Kim Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison, Johannes Hölzl, Reid Barton, Sean Leather, Yury Kudryashov, Anne Baanen, Dagur Asgeirsson
Authors: Kim Morrison, Johannes Hölzl, Reid Barton, Sean Leather, Yury Kudryashov, Anne Baanen,
Dagur Asgeirsson
-/
module

Expand Down
3 changes: 2 additions & 1 deletion Mathlib/Data/Nat/Choose/Basic.lean
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Bhavik Mehta, Stuart Presnell, Antoine Chambert-Loir, María-Inés de Frutos—Fernández
Authors: Chris Hughes, Bhavik Mehta, Stuart Presnell, Antoine Chambert-Loir,
María-Inés de Frutos—Fernández
-/
module

Expand Down
7 changes: 6 additions & 1 deletion Mathlib/RingTheory/Valuation/LocalSubring.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/-
Copyright (c) 2024 Andrew Yang, Yaël Dillies, Javier López-Contreras, Daniel Funck, Junyan Xu. All rights reserved.
Copyright (c) 2024 Andrew Yang, Yaël Dillies, Javier López-Contreras, Daniel Funck, Junyan Xu.
All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang, Yaël Dillies, Javier López-Contreras, Daniel Funck, Junyan Xu
-/
Expand All @@ -12,6 +13,10 @@ public import Mathlib.RingTheory.Polynomial.Ideal
public import Mathlib.RingTheory.Valuation.Integral
public import Mathlib.RingTheory.Valuation.ValuationSubring

-- The copyright notice exceeds the maximum column width, but the `linter.style.header` linter
-- flags the copyright notice if "All rights reserved." is not on the same line as "Copyright".
set_option linter.style.header false

/-!

# Valuation subrings are exactly the maximal local subrings
Expand Down
2 changes: 2 additions & 0 deletions Mathlib/Tactic/CancelDenoms.lean
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ module

public import Mathlib.Tactic.CancelDenoms.Core
public import Mathlib.Tactic.NormNum.Ineq

set_option linter.style.header false
2 changes: 1 addition & 1 deletion Mathlib/Tactic/DefEqTransformations.lean
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def etaStruct? (e : Expr) (tryWhnfR : Bool := true) : MetaM (Option Expr) := do
let .const f _ := e.getAppFn | return none
let some (ConstantInfo.ctorInfo fVal) := (← getEnv).find? f | return none
unless 0 < fVal.numFields && e.getAppNumArgs == fVal.numParams + fVal.numFields do return none
unless isStructureLike (← getEnv) fVal.induct do return none
unless isStructure (← getEnv) fVal.induct do return none
let args := e.getAppArgs
let mut x? ← findProj fVal args pure
if tryWhnfR then
Expand Down
2 changes: 2 additions & 0 deletions Mathlib/Tactic/Linter.lean
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ public import Mathlib.Tactic.Linter.PPRoundtrip
public import Mathlib.Tactic.Linter.PrivateModule
public import Mathlib.Tactic.Linter.UnusedInstancesInType
public import Mathlib.Tactic.Linter.UpstreamableDecl

set_option linter.style.header false
3 changes: 2 additions & 1 deletion Mathlib/Tactic/Linter/Header.lean
Original file line number Diff line number Diff line change
Expand Up @@ -419,13 +419,14 @@ def headerLinter : Linter where run := withSetOptionIn fun stx ↦ do
| .original lead .. => lead.toString
| _ => ""
-- Report any errors about the copyright line.
if mainModule != `Mathlib.Init then
if mainModule != `Mathlib.Init && mainModule != `Mathlib.Tactic then
for (stx, m) in copyrightHeaderChecks copyright do
Linter.logLint linter.style.header stx m!"* '{stx.getAtomVal}':\n{m}\n"
-- Report a missing module doc-string.
match afterImports with
| none => return
| some (.node _ ``Lean.Parser.Command.moduleDoc _) => return
| some (.node _ ``Lean.Parser.Command.eoi _) => return
| some rest =>
Linter.logLint linter.style.header rest
m!"The module doc-string for a file should be the first command after the imports.\n\
Expand Down
2 changes: 2 additions & 0 deletions Mathlib/Tactic/Monotonicity.lean
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ module

public import Mathlib.Tactic.Monotonicity.Basic
public import Mathlib.Tactic.Monotonicity.Lemmas

set_option linter.style.header false
2 changes: 2 additions & 0 deletions Mathlib/Tactic/NormNum.lean
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ public import Mathlib.Tactic.NormNum.Ineq
public import Mathlib.Tactic.NormNum.Inv
public import Mathlib.Tactic.NormNum.OfScientific
public import Mathlib.Tactic.NormNum.Pow

set_option linter.style.header false
2 changes: 2 additions & 0 deletions Mathlib/Tactic/Positivity.lean
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ module

public import Mathlib.Tactic.Positivity.Basic
public import Mathlib.Tactic.Positivity.Finset

set_option linter.style.header false
2 changes: 2 additions & 0 deletions Mathlib/Tactic/Ring.lean
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ module
public import Mathlib.Tactic.Ring.Basic
public import Mathlib.Tactic.Ring.PNat
public import Mathlib.Tactic.Ring.RingNF

set_option linter.style.header false
6 changes: 3 additions & 3 deletions Mathlib/Tactic/Translate/Core.lean
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,14 @@ structure Config : Type where
/-- The given name of the target. -/
tgt : Name := Name.anonymous
/-- An optional doc string. -/
doc : Option String := none
doc : Option String := .none
/-- If `allowAutoName` is `false` (default) then
we check whether the given name can be auto-generated. -/
allowAutoName : Bool := false
/-- The arguments that should be reordered when translating, using cycle notation. -/
reorder? : Option Reorder := none
reorder? : Option Reorder := .none
/-- The argument used to determine whether this constant should be translated. -/
relevantArg? : Option RelevantArg := none
relevantArg? : Option RelevantArg := .none
/-- The attributes which we want to give to the original and translated declaration.
For `simps` this will also add generated lemmas to the translation dictionary. -/
attrs : Array Syntax := #[]
Expand Down
12 changes: 6 additions & 6 deletions lake-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "8629a535d10cd7edfbf1a2c5cdfbaeee135a62cd",
"rev": "c7314e41459a8c0aa8c9b610748c72292851625d",
"name": "plausible",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inputRev": "nightly-testing",
"inherited": false,
"configFile": "lakefile.toml"},
{"url": "https://github.com/leanprover-community/LeanSearchClient",
Expand All @@ -25,7 +25,7 @@
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "f7f57d837a219a8e298798faba94bc7082111a7d",
"rev": "f207d9fcf0cef00ba79962a33ef156061914d9c7",
"name": "importGraph",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
Expand Down Expand Up @@ -65,7 +65,7 @@
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "922c94b86687f3b7ab165d43ce9ddee610696d0c",
"rev": "4f2de985dc0dd8daac986dcdb4cc9ea38774d35a",
"name": "batteries",
"manifestFile": "lake-manifest.json",
"inputRev": "nightly-testing",
Expand All @@ -75,10 +75,10 @@
"type": "git",
"subDir": null,
"scope": "leanprover",
"rev": "06c8b4d690d9b7ef98d594672bbdaa618156215a",
"rev": "3de531c1135f5e3a01f3ac04830996fda476b28e",
"name": "Cli",
"manifestFile": "lake-manifest.json",
"inputRev": "v4.29.0-rc4",
"inputRev": "v4.29.0-rc6",
"inherited": true,
"configFile": "lakefile.toml"}],
"name": "mathlib",
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-03-05
leanprover/lean4:nightly-2026-03-09
Loading