Skip to content

Commit b8e3880

Browse files
Khakim-em
andcommitted
chore: run the new shake tool (leanprover-community#32731)
This is a first candidate run of the [new module-aware Shake](https://github.com/leanprover/lean4/blob/master/script/Shake.lean) on Mathlib. It has been run manually on nightly-testing-green and then rebased onto master as some Lean-side changes to be released in the next RC are needed. Known limitations: * If a command `attribute [attr] decl` is imported, the import will be preserved if `decl` is referenced in any way in the file. This is a conservative approximation that avoids having to extend every single attribute implementation with precise tracking but may lead to redundant imports especially if often-used declarations such as `id` are tagged. Co-authored-by: Kim Morrison <kim@tqft.net>
1 parent 3c32718 commit b8e3880

736 files changed

Lines changed: 1499 additions & 980 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Archive/Imo/Imo2024Q5.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ import Mathlib.Data.Fin.VecNotation
77
import Mathlib.Data.List.ChainOfFn
88
import Mathlib.Data.List.TakeWhile
99
import Mathlib.Data.Nat.Dist
10-
import Mathlib.Order.Fin.Basic
10+
import Mathlib.Data.Fintype.Fin
1111
import Mathlib.Tactic.IntervalCases
12+
import Mathlib.Tactic.FinCases
1213

1314
/-!
1415
# IMO 2024 Q5

Counterexamples/GameMultiplication.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
44
Authors: Violeta Hernández Palacios
55
-/
66

7+
import Mathlib.Data.Fintype.Fin
78
import Mathlib.SetTheory.Game.Basic
89
import Mathlib.Tactic.FinCases
910
import Mathlib.Tactic.Linter.DeprecatedModule

Mathlib.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module
1+
module -- shake: keep-all
22

33
public import Std
44
public import Batteries

Mathlib/Algebra/AffineMonoid/Embedding.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import Mathlib.Algebra.EuclideanDomain.Int
1414
import Mathlib.GroupTheory.MonoidLocalization.Finite
1515
import Mathlib.LinearAlgebra.Dimension.Free
1616
import Mathlib.LinearAlgebra.FreeModule.PID
17+
public import Mathlib.LinearAlgebra.Dimension.Free
1718

1819
/-!
1920
# Affine monoids embed into `ℤⁿ`

Mathlib/Algebra/AffineMonoid/Irreducible.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ module
88
public import Mathlib.Algebra.Group.Irreducible.Defs
99
public import Mathlib.GroupTheory.Finiteness
1010

11-
import Mathlib.Algebra.Group.Submonoid.BigOperators
1211

1312
/-!
1413
# An affine monoid with no non-trivial unit is generated by its irreducible elements

Mathlib/Algebra/Algebra/Subalgebra/Order.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Authors: Damiano Testa
66
module
77

88
public import Mathlib.Algebra.Algebra.Subalgebra.Basic
9-
public import Mathlib.Algebra.Module.Submodule.Order
109
public import Mathlib.Algebra.Ring.Subsemiring.Order
1110

1211
/-!
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
module
22

3-
public import Mathlib.Analysis.SpecificLimits.ArithmeticGeometric
3+
public import Mathlib.Algebra.Order.Module.Field
4+
public import Mathlib.Data.EReal.Inv
5+
public import Mathlib.Topology.Algebra.InfiniteSum.Order
6+
public import Mathlib.Topology.MetricSpace.Bounded
47

58
deprecated_module (since := "2025-09-17")

Mathlib/Algebra/Azumaya/Basic.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ module
88
public import Mathlib.Algebra.Azumaya.Defs
99
public import Mathlib.Algebra.Central.End
1010
public import Mathlib.Algebra.Central.TensorProduct
11-
public import Mathlib.LinearAlgebra.Matrix.ToLin
1211
public import Mathlib.RingTheory.Finiteness.Basic
1312
public import Mathlib.GroupTheory.GroupAction.Hom
1413
public import Mathlib.RingTheory.TensorProduct.Maps

Mathlib/Algebra/BigOperators/Group/Finset/Defs.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public import Mathlib.Algebra.Group.TypeTags.Basic
1010
public import Mathlib.Algebra.BigOperators.Group.Multiset.Defs
1111
public import Mathlib.Data.Fintype.Sets
1212
public import Mathlib.Data.Multiset.Bind
13+
public meta import Mathlib.Tactic.ToDual
1314

1415
/-!
1516
# Big operators

Mathlib/Algebra/BigOperators/Group/Finset/Interval.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ module
88
public import Mathlib.Algebra.CharP.Defs
99
public import Mathlib.Algebra.Group.EvenFunction
1010
public import Mathlib.Data.Int.Interval
11-
public import Mathlib.Tactic.Zify
1211

1312
/-!
1413
# Sums/products over integer intervals

0 commit comments

Comments
 (0)